.tempo-card{background:var(--color-surface);border:1px solid var(--color-border);border-radius:16px;padding:1.5rem;transition:all .3s cubic-bezier(.34,1.56,.64,1);cursor:pointer;display:flex;flex-direction:column;min-height:180px;width:100%;position:relative;overflow:hidden;--theme-color-rgb: 231, 76, 60;--theme-color-hex: #e74c3c}.tempo-type-bullet{--theme-color-rgb: 255, 71, 87;--theme-color-hex: #ff4757}.tempo-type-blitz{--theme-color-rgb: 255, 165, 2;--theme-color-hex: #ffa502}.tempo-type-rapid{--theme-color-rgb: 46, 134, 222;--theme-color-hex: #2e86de}.tempo-card:hover:not(.disabled):not(.searching):not(.match-found){background:var(--color-surface-hover);border-color:var(--color-border-light);transform:translateY(-2px)}.tempo-card.selected{background:rgba(var(--theme-color-rgb),.1);border-color:rgba(var(--theme-color-rgb),.5);box-shadow:0 0 20px rgba(var(--theme-color-rgb),.15)}.tempo-card.searching{transform:scale(.96);background:var(--color-surface-active);border-color:var(--color-accent);box-shadow:var(--shadow-glow)}.tempo-card.match-found{transform:scale(1.02);background:#4ade801a;border-color:var(--color-success);box-shadow:0 0 30px #4ade804d}.tempo-card.disabled{opacity:.4;pointer-events:none;filter:grayscale(.5)}.tempo-card-header{display:flex;align-items:center;gap:.75rem;margin-bottom:1rem;transition:opacity .3s ease}.tempo-state-overlay{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;width:100%;animation:fadeIn .3s ease-out;padding:1rem 0}.searching-container,.match-success-container{display:flex;flex-direction:column;align-items:center;gap:1rem}.spinner-container{position:relative;width:40px;height:40px}.spinner-ring{width:100%;height:100%;border:3px solid rgba(255,255,255,.1);border-top:3px solid var(--color-accent);border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.state-text{font-size:1.1rem;font-weight:600;color:var(--color-text-primary)}.state-subtext{font-size:.85rem;color:var(--color-text-secondary)}.success-checkmark{width:60px;height:60px}.checkmark{width:60px;height:60px;border-radius:50%;display:block;stroke-width:2;stroke:#fff;stroke-miterlimit:10;box-shadow:inset 0 0 0 var(--color-success);animation:fill .4s ease-in-out .4s forwards,scale .3s ease-in-out .9s both}.checkmark-circle{stroke-dasharray:166;stroke-dashoffset:166;stroke-width:2;stroke-miterlimit:10;stroke:var(--color-success);fill:none;animation:stroke .6s cubic-bezier(.65,0,.45,1) forwards}.checkmark-check{transform-origin:50% 50%;stroke-dasharray:48;stroke-dashoffset:48;animation:stroke .3s cubic-bezier(.65,0,.45,1) .8s forwards}@keyframes stroke{to{stroke-dashoffset:0}}@keyframes scale{0%,to{transform:none}50%{transform:scale3d(1.1,1.1,1)}}@keyframes fill{to{box-shadow:inset 0 0 0 30px var(--color-success)}}.tempo-card-icon{width:42px;height:42px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,rgba(var(--theme-color-rgb),.3),rgba(var(--theme-color-rgb),.15));border-radius:12px;color:var(--theme-color-hex);flex-shrink:0;filter:drop-shadow(0 0 4px rgba(var(--theme-color-rgb),.3));transition:all .3s ease}.tempo-card-icon svg{width:24px;height:24px;filter:drop-shadow(0 2px 4px rgba(0,0,0,.2))}.tempo-title{font-size:1.1rem;font-weight:600;color:var(--color-text-primary);margin:0;letter-spacing:-.3px}.tempo-controls{display:flex;gap:.5rem;margin-bottom:1rem;transition:opacity .3s ease;width:100%}.tempo-btn{background:var(--color-surface);border:1px solid var(--color-border);color:var(--color-text-secondary);font-size:.85rem;font-weight:500;padding:.5rem 1rem;border-radius:8px;cursor:pointer;transition:all .2s ease;flex:1 1 0;min-width:0;display:inline-flex;align-items:center;justify-content:center;text-align:center}.tempo-btn:hover:not(:disabled){background:var(--color-surface-hover);color:var(--color-text-primary);border-color:var(--color-border-light)}.tempo-btn.active{background:rgba(var(--theme-color-rgb),.2);border-color:rgba(var(--theme-color-rgb),.5);color:var(--theme-color-hex)}.tempo-btn:disabled{cursor:not-allowed;opacity:.5}.tempo-description{color:var(--color-text-tertiary);font-size:.8rem;margin:auto 0 0;line-height:1.5;transition:opacity .3s ease}@media(max-width:768px){.tempo-card{padding:1.25rem;min-height:auto}.tempo-title{font-size:1rem}.tempo-btn{padding:.4rem .75rem;font-size:.8rem}.tempo-card-icon{width:36px;height:36px}}.cns-section{width:100%;display:grid;grid-template-columns:minmax(0,1fr);row-gap:1rem}.cns-section--with-nav{grid-template-columns:auto minmax(0,1fr) auto;column-gap:.5rem;grid-template-areas:". header ." "prev viewport next" ". dots ."}.cns-section--with-nav .cns-header{grid-area:header}.cns-section--with-nav .cns-nav-btn--prev{grid-area:prev;align-self:center}.cns-section--with-nav .cns-carousel-viewport{grid-area:viewport}.cns-section--with-nav .cns-nav-btn--next{grid-area:next;align-self:center}.cns-section--with-nav .cns-dots{grid-area:dots}.cns-header{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem}.cns-header-text{display:flex;flex-direction:column;gap:.2rem}.cns-title{font-size:1.25rem;font-weight:600;color:var(--color-text-primary);margin:0;line-height:1.2}.cns-subtitle{font-size:.85rem;color:var(--color-text-tertiary);margin:0}.cns-all-link{display:inline-flex;align-items:center;gap:.3rem;padding:0;border:none;background:none;color:var(--color-accent);font-size:.82rem;font-weight:700;cursor:pointer;white-space:nowrap;transition:opacity var(--transition-fast),gap var(--transition-fast);flex-shrink:0;padding-bottom:.15rem}.cns-all-link:hover{opacity:.8;gap:.5rem}.cns-carousel-viewport{width:100%;min-width:0;overflow:hidden}.cns-nav-btn{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:2.25rem;height:2.25rem;padding:0;border:1px solid var(--color-border-light);border-radius:50%;background:var(--color-bg-secondary);color:var(--color-text-primary);cursor:pointer;box-shadow:0 4px 14px #00000040;transition:background .18s ease,border-color .18s ease,color .18s ease,opacity .18s ease}.cns-nav-btn:hover{background:var(--color-surface-hover);border-color:var(--color-accent);color:var(--color-accent)}.cns-nav-btn:focus-visible{outline:2px solid var(--color-accent);outline-offset:2px}[data-theme=light] .cns-nav-btn{background:var(--color-surface);box-shadow:0 2px 10px #0000001f}.cns-cards-track{display:flex;width:100%;gap:var(--cns-gap);transition:transform .5s cubic-bezier(.4,0,.2,1)}.cns-slide{flex:0 0 calc((100% - (var(--items-per-page) - 1) * var(--cns-gap)) / var(--items-per-page));box-sizing:border-box}.cns-card{display:flex;flex-direction:column;background:var(--color-surface);border:1px solid var(--color-border);border-radius:14px;overflow:hidden;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;height:100%;outline:none;text-align:left;color:var(--color-text-primary);position:relative}.cns-card:hover{transform:translateY(-3px);border-color:var(--color-border-light);box-shadow:0 12px 32px #0003}.cns-card:focus-visible{outline:2px solid var(--color-accent);outline-offset:2px}.cns-card-img-wrap{position:relative;width:100%;aspect-ratio:16 / 9;overflow:hidden;background:var(--color-bg-secondary);flex-shrink:0}.cns-card-img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s ease}.cns-card:hover .cns-card-img{transform:scale(1.04)}.cns-card-img-placeholder{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#ffffff0a,#ffffff03)}.cns-card-body{display:flex;flex-direction:column;gap:.5rem;padding:.875rem 1rem;flex:1}.cns-card-meta-row{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.cns-card-category{font-size:.68rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--color-accent)}.cns-card-date{font-size:.72rem;color:var(--color-text-tertiary);white-space:nowrap}.cns-card-title{font-size:.92rem;font-weight:600;color:var(--color-text-primary);line-height:1.35;margin:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.cns-card-summary{font-size:.8rem;color:var(--color-text-secondary);line-height:1.4;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;flex:1}.cns-card-footer{display:flex;align-items:center;justify-content:space-between;margin-top:auto;padding-top:.35rem;border-top:1px solid var(--color-border)}.cns-source-badge{display:inline-flex;align-items:center;gap:.3rem;font-size:.7rem;font-weight:700;color:var(--badge-color, var(--color-text-secondary));opacity:.9}.cns-card-read-more{font-size:.7rem;font-weight:700;color:var(--color-text-tertiary);opacity:0;transition:opacity var(--transition-fast)}.cns-card:hover .cns-card-read-more{opacity:1}.cns-card--skeleton{pointer-events:none}.cns-skeleton-block{border-radius:6px;background:linear-gradient(90deg,var(--color-surface) 25%,var(--color-surface-hover) 50%,var(--color-surface) 75%);background-size:200% 100%;animation:shimmer 1.4s infinite}.cns-card--skeleton .cns-card-img{display:none}.cns-card--skeleton .cns-card-img-placeholder{position:relative;display:block;aspect-ratio:16/9;inset:unset}.cns-skeleton-line{height:.8rem;width:100%;margin-bottom:.35rem}.cns-skeleton-line--short{width:40%}.cns-skeleton-line--medium{width:70%}.cns-skeleton-meta{height:.65rem;width:55%;margin-top:.5rem}.cns-dots{display:flex;justify-content:center;align-items:center;gap:.5rem;margin-top:1.25rem}.cns-dot{width:.5rem;height:.5rem;border-radius:50%;background:var(--color-border);cursor:pointer;border:none;padding:0;transition:background .3s ease,width .3s ease}.cns-dot:hover{background:var(--color-text-tertiary)}.cns-dot.active{background:var(--color-accent);width:1.5rem;border-radius:4px}@media(max-width:768px){.cns-title{font-size:1.1rem}.cns-section--with-nav{column-gap:.35rem}.cns-nav-btn{width:2rem;height:2rem}}[data-theme=light] .cns-card{background:var(--color-surface);box-shadow:0 1px 4px #0000000f}[data-theme=light] .cns-card:hover{box-shadow:0 8px 24px #0000001f}[data-theme=light] .cns-card-img-placeholder{background:var(--color-bg-secondary)}.home-page{min-height:100vh;display:flex;flex-direction:column;background:var(--color-bg-primary);transition:background var(--transition-normal)}.home-content{max-width:1400px;margin:0 auto;padding:100px 2rem 3rem}.hero-section{text-align:center;margin-bottom:3rem}.hero-title{font-size:3rem;font-weight:700;color:var(--color-text-primary);margin:0 0 1rem;letter-spacing:-1px}.hero-subtitle{font-size:1.1rem;color:var(--color-text-secondary);max-width:500px;margin:0 auto}.main-grid{max-width:900px;margin:0 auto;width:100%}.daily-puzzle-container{margin-top:2rem;width:100%;display:flex;justify-content:center;align-items:stretch;gap:1rem}.daily-puzzle-container .dpw-root,.daily-puzzle-container .daily-puzzle-placeholder,.home-blog-card{width:min(416px,100%);flex:1 1 0;max-width:416px}.daily-puzzle-placeholder{min-height:400px;border-radius:24px;border:1px solid var(--color-border);background:var(--color-surface)}.home-blog-card{position:relative;height:400px;min-height:400px;display:flex;flex-direction:column;gap:.85rem;padding:1.35rem;overflow:hidden;border:0;border-radius:24px;cursor:pointer;text-align:left;color:var(--color-text-primary);background:radial-gradient(circle at top left,rgba(46,204,113,.12),transparent 42%),linear-gradient(145deg,#ffffff0d,#ffffff03),var(--color-surface);box-shadow:inset 0 0 0 1px #ffffff12,0 20px 48px #0003;transition:transform .18s ease,box-shadow .18s ease}.home-blog-card:hover{transform:translateY(-2px);box-shadow:inset 0 0 0 1px #ffffff1a,0 24px 56px #0000003d}.home-blog-kicker{font-size:.7rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#5eead4}.home-blog-card strong{display:block;font-size:1.45rem;line-height:1.18;color:var(--color-text-primary);overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.home-blog-meta{color:var(--color-text-tertiary);font-size:.82rem;line-height:1.35}.home-blog-preview{display:-webkit-box;flex:1;min-height:0;overflow:hidden;color:var(--color-text-secondary);font-size:.9rem;line-height:1.45;-webkit-line-clamp:7;-webkit-box-orient:vertical;mask-image:linear-gradient(180deg,#000 72%,rgba(0,0,0,.72) 88%,transparent 100%);-webkit-mask-image:linear-gradient(180deg,#000 72%,rgba(0,0,0,.72) 88%,transparent 100%)}.home-blog-action{display:inline-flex;align-items:center;gap:.35rem;width:fit-content;flex-shrink:0;padding:0;border:0;color:#5eead4;font-size:.9rem;font-weight:800}.tempo-section{display:flex;flex-direction:column;gap:1.5rem;width:100%}.section-header{margin-bottom:.5rem}.section-title{font-size:1.25rem;font-weight:600;color:var(--color-text-primary);margin:0 0 .25rem}.section-subtitle{font-size:.9rem;color:var(--color-text-tertiary);margin:0}.tempo-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;width:100%}.custom-options{margin-top:1rem}.custom-title{font-size:1rem;font-weight:600;color:var(--color-text-primary);margin:0 0 1rem}.custom-buttons{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem}.custom-btn{display:flex;align-items:center;gap:1rem;padding:1.25rem;background:var(--color-surface);border:1px solid var(--color-border);border-radius:12px;cursor:pointer;transition:all .2s ease;text-align:left}.custom-btn:hover{background:var(--color-surface-hover);border-color:var(--color-border-light);transform:translateY(-2px)}.custom-btn-icon{width:40px;height:40px;display:flex;align-items:center;justify-content:center;background:var(--color-surface);border-radius:10px;color:var(--color-text-secondary);flex-shrink:0;transition:all .2s ease}.custom-btn:hover .custom-btn-icon{background:linear-gradient(135deg,#e74c3c33,#e74c3c1a);color:#ff6b6b}.custom-btn-icon svg{width:20px;height:20px}.custom-btn-content{display:flex;flex-direction:column;gap:.25rem}.custom-btn-title{font-size:.95rem;font-weight:500;color:var(--color-text-primary)}.custom-btn-desc{font-size:.8rem;color:var(--color-text-tertiary)}.history-section{position:sticky;top:80px}@media(max-width:1024px){.main-grid{grid-template-columns:1fr}.history-section{position:static}}@media(max-width:768px){.home-content{width:100%;padding:80px .875rem 2rem}.hero-title{font-size:2rem}.hero-subtitle{font-size:1rem}.tempo-cards{grid-template-columns:minmax(0,1fr);gap:.85rem}.custom-buttons{grid-template-columns:1fr}.daily-puzzle-container{flex-direction:column;align-items:center}.daily-puzzle-container .dpw-root,.daily-puzzle-container .daily-puzzle-placeholder,.home-blog-card{flex-basis:auto;max-width:416px}}@media(max-width:540px){.home-content{padding-inline:.75rem}.tempo-section{gap:.9rem}.tempo-cards{gap:.75rem}}.search-status-bar{display:flex;flex-direction:column;align-items:center;gap:.75rem;justify-content:center;margin-top:1.275rem;min-height:40px}.cancel-search-btn{color:var(--color-text-secondary);font-size:.9rem;padding:.5rem 1rem;border-radius:8px;transition:all .2s ease;background:transparent;border:1px solid transparent}.cancel-search-btn:hover{color:var(--color-text-primary);background:var(--color-surface);border-color:var(--color-border)}.search-warning-card{width:min(100%,460px);display:flex;flex-direction:column;gap:.3rem;padding:.9rem 1rem;border-radius:14px;border:1px solid rgba(231,180,92,.22);background:linear-gradient(180deg,#ffe2a814,#ffe2a805),var(--color-surface);text-align:center}.search-warning-card--bot-offer{width:min(100%,920px);padding:.85rem .9rem .8rem;text-align:left;border-color:var(--color-border);background:var(--color-surface)}.search-warning-kicker{color:#f1c66f;font-size:.72rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase}.search-warning-text{color:var(--color-text-secondary);font-size:.9rem;line-height:1.45}.custom-options.disabled{opacity:.5;pointer-events:none;filter:grayscale(.5);transition:opacity .3s ease}.custom-btn.locked{opacity:.6;cursor:not-allowed;background:var(--color-bg-secondary);border-color:var(--color-border)}.custom-btn.locked:hover{transform:none;background:var(--color-bg-secondary);border-color:var(--color-border)}.custom-btn.locked .custom-btn-icon,.custom-btn.locked:hover .custom-btn-icon{color:var(--color-text-tertiary);background:#ffffff0d}
