:root{font-family:Pretendard,Noto Sans KR,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;line-height:1.5;font-weight:400;color:#0f172a;background-color:#f1f5f9;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*{box-sizing:border-box}body{margin:0;min-width:320px}#root.mobile-landing-root{min-height:100vh;min-height:100dvh;padding:0;background:transparent}.mobile-landing{min-height:100vh;min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:0;padding-bottom:env(safe-area-inset-bottom,0px);background:radial-gradient(circle at top,rgba(14,165,233,.2),transparent 36%),radial-gradient(circle at 20% 20%,rgba(251,191,36,.12),transparent 22%),linear-gradient(180deg,#dbe7f5,#f7fafc 46%,#e8eef7)}.mobile-landing-shell{width:100%}.mobile-landing-header{display:flex;justify-content:center;margin:.6rem 0;padding:0 .75rem}.mobile-landing-card{position:relative;overflow:hidden;padding:1rem .95rem .9rem;border:0;border-top:1px solid rgba(148,163,184,.24);border-bottom:1px solid rgba(148,163,184,.24);border-radius:0;background:linear-gradient(145deg,#fffffff0,#f8fafce6),#ffffffe6;box-shadow:0 12px 28px #0f172a14,inset 0 1px #fffc}.mobile-landing-card:before{content:"";position:absolute;inset:auto -12% -30% auto;width:16rem;height:16rem;border-radius:999px;background:radial-gradient(circle,rgba(14,165,233,.14),transparent 68%);pointer-events:none}.mobile-landing-copy{position:relative;z-index:1}.mobile-landing-badges{display:flex;flex-wrap:wrap;align-items:center;gap:.55rem;margin-bottom:.8rem}.mobile-landing-eyebrow{margin:0;color:#0369a1;font-size:.78rem;font-weight:800;letter-spacing:0;text-transform:uppercase}.mobile-landing-badge{display:inline-flex;align-items:center;min-height:1.8rem;padding:.28rem .7rem;border:1px solid rgba(14,116,144,.18);border-radius:999px;background:#0ea5e914;color:#0f766e;font-size:.78rem;font-weight:800;letter-spacing:0}.mobile-landing-service-title{margin:0;color:#0f172a;font-size:1.35rem;font-weight:900;line-height:1.2;text-wrap:balance}.mobile-landing-service-subtitle{margin:.55rem 0 0;color:#475569;font-size:.92rem;line-height:1.55;text-wrap:pretty}.mobile-landing-notice{display:grid;gap:.95rem;margin-top:1rem;padding:.95rem;border-radius:20px;background:linear-gradient(180deg,#eff6ffc7,#ffffffd1);border:1px solid rgba(186,230,253,.8)}.mobile-landing-card h1{margin:0;color:#172036;font-size:2rem;line-height:1.04;letter-spacing:0;text-wrap:balance}.mobile-landing-description{margin:.75rem 0 0;color:#334155;font-size:.97rem;line-height:1.62;text-wrap:pretty}.mobile-landing-desktop-hint{margin:.6rem 0 0;color:#0369a1;font-size:.88rem;font-weight:700}.mobile-landing-board{position:relative;z-index:1;display:flex;justify-content:center;margin-top:1rem}.mobile-landing-board--store{margin-top:.2rem;opacity:.72}.mobile-landing-board-surface{width:min(100%,13.5rem);aspect-ratio:1;border-radius:18px;background:linear-gradient(145deg,#f4cc8af2,#deb56ef5);box-shadow:inset 0 2px #ffffff52,inset 0 -3px 12px #78350f2e,0 12px 18px #47556929}.mobile-app-icon-wrap{width:4.8rem;height:4.8rem;display:grid;place-items:center;margin-bottom:1rem;border-radius:22px;background:#ffffffdb;box-shadow:0 14px 26px #0f172a24,inset 0 1px #ffffffeb}.mobile-app-icon{width:4rem;height:4rem;border-radius:18px;display:block}.mobile-store-button{display:inline-flex;align-items:center;justify-content:center;gap:.45rem;min-height:3rem;margin-top:1rem;padding:.78rem 1.1rem;border:1px solid rgba(15,23,42,.92);border-radius:8px;background:#101827;color:#fff;font-size:.94rem;font-weight:800;line-height:1.2;text-decoration:none;box-shadow:0 12px 20px #0f172a2e}.mobile-store-button-icon{display:inline-grid;place-items:center;width:1.2rem;height:1.2rem;font-family:-apple-system,BlinkMacSystemFont,SF Pro Display,Helvetica Neue,Arial,sans-serif;font-size:1.2rem;font-weight:600;line-height:1}.mobile-store-button-icon--android svg{width:1.05rem;height:1.05rem;display:block}.mobile-store-button:hover{background:#172036}.mobile-landing-board-svg{width:100%;height:100%;display:block}.mobile-landing-board-svg line{stroke:#78350f73;stroke-width:.35}.mobile-landing-board-star{fill:#44260ac7}.mobile-landing-board-stone{stroke-width:.35}.mobile-landing-board-stone--black{fill:#111827;stroke:#0f172a3d}.mobile-landing-board-stone--white{fill:#f8fafc;stroke:#94a3b8e6}.mobile-landing-continue{position:relative;z-index:1;display:block;margin:.9rem auto 0;border:0;padding:0;background:transparent;color:#64748b;font-size:.72rem;line-height:1.4;text-decoration:underline;text-underline-offset:.14em;cursor:pointer}.mobile-landing-continue:hover{color:#334155}@media(min-width:760px){.mobile-landing{padding:1.8rem;padding-bottom:calc(1.8rem + env(safe-area-inset-bottom,0px))}.mobile-landing-shell{width:min(100%,58rem)}.mobile-landing-header{margin:0 0 1rem;padding:0}.mobile-landing-card{padding:1.7rem;border:1px solid rgba(148,163,184,.42);border-radius:30px;box-shadow:0 18px 40px #0f172a1f,inset 0 1px #fffc}.mobile-landing-notice{padding:1.2rem}.mobile-landing-board{justify-content:center}.mobile-landing-board-surface{width:min(100%,16rem)}.mobile-landing-service-title{font-size:1.65rem}.mobile-landing-card h1{font-size:2.55rem}}#root{min-height:100vh;min-height:100dvh;padding:1rem;padding-bottom:calc(1rem + env(safe-area-inset-bottom,0px));background:#f1f5f9;color:#0f172a}.app{max-width:1200px;margin:0 auto;display:grid;gap:1rem;align-items:start}.license-notice{order:99;color:#475569;font-size:.78rem;line-height:1.55;width:100%;display:flex;align-items:center;justify-content:space-between;gap:.8rem;overflow-wrap:anywhere;word-break:keep-all}.license-copy{min-width:0;flex:1}.license-notice p{margin:0;text-wrap:pretty}.license-notice a:not(.feedback-cta){color:#0369a1;font-weight:700}.license-notice a:not(.feedback-cta):hover{color:#075985}.feedback-cta{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;gap:.36rem;min-height:2.35rem;padding:.5rem .78rem;border:1px solid #0369a1;border-radius:999px;background:#0284c7;color:#fff;font-size:.84rem;font-weight:800;text-decoration:none;box-shadow:0 8px 18px #0284c747;transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease}.feedback-cta:hover{border-color:#075985;background:#0369a1;color:#fff;box-shadow:0 10px 22px #0369a157;transform:translateY(-1px)}.feedback-cta:focus-visible{outline:3px solid rgba(14,165,233,.35);outline-offset:3px}.feedback-cta svg{width:1rem;height:1rem}.locale-switch{display:inline-flex;gap:.25rem;background:#e2e8f0f2;border:1px solid rgba(148,163,184,.62);border-radius:999px;padding:.22rem;box-shadow:0 6px 14px #0f172a33}.locale-switch button{border:0;background:transparent;border-radius:999px;padding:.22rem;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}.locale-switch button img{width:24px;height:16px;border-radius:2px;border:1px solid rgba(148,163,184,.75)}.locale-switch button.active{background:#fff;box-shadow:0 1px 2px #0f172a33}h1{margin:0;font-size:clamp(1.4rem,3vw,2rem)}.sub{margin:0;color:#334155}.panel{background:linear-gradient(168deg,#fffffffa,#f8fafcf2);border:1px solid rgba(148,163,184,.5);border-radius:18px;padding:1.1rem 1.1rem 1.2rem;box-shadow:0 10px 24px #0f172a1f,inset 0 1px #ffffffd9}.panel p{margin:.26rem 0}.game-panel{display:flex;flex-direction:column}.panel-stack{display:flex;flex-direction:column;gap:.75rem}.mobile-install-promo{display:none}.game-controls-section{order:2}.game-model-error{order:3;max-height:8.5rem;overflow:auto;padding-right:.25rem;word-break:break-word}.game-analysis-section{order:4}.game-player-cards{order:1;margin-top:0;padding-top:0;border-top:0;margin-bottom:.65rem}.panel select{margin-left:.4rem;border:1px solid #94a3b8;border-radius:6px;padding:.15rem .35rem;background:#fff}.panel select:disabled{opacity:.6}.player-cards{display:grid;gap:.55rem;margin-bottom:.65rem}.player-card{position:relative;overflow:hidden;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:.7rem;padding:.58rem .62rem;border:1px solid #cbd5e1;border-radius:12px;background:#f8fafc;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease,background .16s ease}.player-pass-badge{position:absolute;top:.55rem;right:.55rem;z-index:1;padding:.18rem .52rem;border-radius:999px;background:linear-gradient(135deg,#dc2626,#f97316);color:#fff7ed;font-size:.72rem;font-weight:900;letter-spacing:.01em;box-shadow:0 8px 18px #dc262647}.player-card.active{border-color:#0369a1;background:linear-gradient(95deg,#eff6ff,#f0f9ff);box-shadow:0 0 0 3px #0e749040,0 12px 22px -14px #0284c7a6;transform:translateY(-2px) scale(1.01)}.player-card.ai-thinking{border-color:#1d4ed8;background:linear-gradient(105deg,#dbeafed9,#f0f9fff2)}.player-card.ai-thinking:after{content:"";position:absolute;inset:-60% auto auto -25%;width:45%;height:220%;background:linear-gradient(120deg,transparent 0%,rgba(59,130,246,.16) 45%,transparent 100%);transform:rotate(12deg);animation:ai-card-scan 1.8s ease-in-out infinite;pointer-events:none}.turn-indicator{position:absolute;left:0;top:.4rem;bottom:.4rem;width:.35rem;border-radius:999px;background:linear-gradient(180deg,#0ea5e9,#0284c7);box-shadow:0 0 0 1px #ffffffb3,0 0 12px #0ea5e973}.player-stone{width:1.75rem;height:1.75rem;border-radius:999px;box-shadow:inset 0 2px 5px #ffffff59,0 1px 2px #0f172a47}.player-card-black .player-stone{background:radial-gradient(circle at 30% 30%,#3b4452,#0f172a 70%)}.player-card-white .player-stone{background:radial-gradient(circle at 30% 30%,#fff,#e2e8f0 72%);border:1px solid #cbd5e1}.player-name{margin:0;font-size:.95rem}.player-captures{margin:.1rem 0 0;font-size:.78rem;color:#475569}.player-stone-thinking{display:inline-flex;align-items:center;justify-content:center}.ai-thinking-dots{display:inline-flex;align-items:center;gap:.14rem}.player-stone .ai-thinking-dots span{width:.2rem;height:.2rem;border-radius:999px;background:#38bdf8;box-shadow:0 0 5px #38bdf8bf;animation:ai-thinking-dot 1s ease-in-out infinite}.player-card-white .player-stone .ai-thinking-dots span{background:#0284c7;box-shadow:0 0 4px #0284c78c}.ai-thinking-dots span:nth-child(2){animation-delay:.12s}.ai-thinking-dots span:nth-child(3){animation-delay:.24s}.screen-reader-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.player-time p{margin:0;font-size:.76rem;line-height:1.35;text-align:right}.thinking-pace-buttons{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.25rem}.thinking-pace-buttons button{border:1px solid #8095b1;background:linear-gradient(180deg,#fff,#e7eef8);border-radius:999px;padding:.22rem .58rem;font-size:.82rem;font-weight:700;color:#1e293b;cursor:pointer;box-shadow:inset 0 1px #ffffffd9,0 1px 1px #0f172a1f;transition:transform .14s ease,box-shadow .14s ease,border-color .14s ease,background .14s ease}.thinking-pace-buttons button.active{background:linear-gradient(180deg,#1f2f45,#0f172a);border-color:#0b1220;color:#fff;box-shadow:inset 0 1px #ffffff24,0 3px 8px #0f172a47}.thinking-pace-buttons button:hover:not(:disabled):not(.active){transform:translateY(-1px);border-color:#546a88;background:linear-gradient(180deg,#fff,#dde8f6);box-shadow:0 4px 9px #0f172a29}.thinking-pace-buttons button.active:hover:not(:disabled){border-color:#0b1220;background:linear-gradient(180deg,#1f2f45,#0f172a);color:#fff}.thinking-pace-buttons button:disabled{opacity:.6;cursor:not-allowed}.thinking-pace-fixed-label{margin:0;display:flex;align-items:center;width:100%;border:1px solid #94a3b8;border-radius:14px;padding:clamp(.75rem,2vw,.94rem);min-height:calc(clamp(1rem,2.2vw,1.08rem)*1.2 + clamp(.75rem,2vw,.94rem)*2);box-sizing:border-box;background:linear-gradient(180deg,#fff,#f8fafc);color:#0f172a;font-size:clamp(1rem,2.2vw,1.08rem);font-weight:700;line-height:1.2;box-shadow:inset 0 1px #ffffffb8}.status{margin-top:.45rem;color:#0f172a;font-weight:600}.error{margin-top:.5rem;color:#b91c1c;font-size:.92rem}.analysis-panel{margin-top:.8rem;padding-top:.7rem;border-top:1px solid #e2e8f0}.analysis-loader{margin:.8rem 0 .9rem;min-height:64px;display:grid;place-items:center;position:relative}.analysis-loader-ring,.analysis-loader-core{position:absolute;border-radius:50%}.analysis-loader-ring{border:3px solid transparent}.analysis-loader-ring:nth-child(1){width:44px;height:44px;border-top-color:#0ea5e9;border-right-color:#0ea5e973;animation:spin .9s linear infinite}.analysis-loader-ring:nth-child(2){width:28px;height:28px;border-bottom-color:#334155;border-left-color:#33415561;animation:spin-reverse .72s linear infinite}.analysis-loader-core{width:11px;height:11px;background:radial-gradient(circle at 35% 30%,#f8fafc,#38bdf8 65%,#0f172a);box-shadow:0 0 10px #38bdf8a6}.panel-stack{display:grid;gap:.8rem}.analysis-header-row{display:flex;align-items:center;justify-content:space-between;gap:.6rem;margin-bottom:.4rem}.analysis-body{padding-top:.55rem;border-top:1px solid #dbe2ea}.analysis-ownership-summary{display:flex;align-items:center;gap:.35rem}.analysis-ownership-label{display:inline-flex;align-items:center}.analysis-ownership-values{display:inline-flex;align-items:center;gap:.34rem;line-height:1}.analysis-inline-stone{width:.95rem;height:.95rem;border-radius:50%;box-shadow:inset -1px -2px 3px #00000040,inset 1px 1px 2px #fff3,0 1px 2px #0f172a33}.analysis-inline-stone.black{background:radial-gradient(circle at 32% 26%,#8a94a6,#334155 36%,#020617 88%)}.analysis-inline-stone.white{background:radial-gradient(circle at 34% 24%,#fff,#f8fafc 38%,#dce4ee);border:1px solid rgba(148,163,184,.7)}.analysis-summary-separator{margin:0 .1rem}.analysis-header-row button{border:1px solid #94a3b8;background:#f8fafc;border-radius:8px;padding:.25rem .55rem;font-size:.78rem;font-weight:700}.analysis-header-row .actions{margin-top:0;gap:.4rem;flex-wrap:nowrap}.analysis-header-row .actions button{border:1px solid #7f95b2;background:linear-gradient(180deg,#fff,#e8eff9);border-radius:8px;padding:.32rem .68rem;font-size:.82rem;font-weight:700;color:#1f2f46;box-shadow:inset 0 1px #ffffffd9,0 1px 1px #0f172a1f}.debug-panel{margin-top:0}.debug-panel-header{display:flex;align-items:center;justify-content:space-between;gap:.6rem}.debug-panel-header h2{margin:0;font-size:1rem}.debug-panel-header button{border:1px solid #64748b;background:#fff;border-radius:8px;padding:.3rem .7rem;font-size:.85rem;font-weight:700;cursor:pointer}.debug-help{margin-top:.45rem;color:#334155;font-size:.85rem}.debug-log-list{margin-top:.5rem;max-height:220px;overflow:auto;border:1px solid #cbd5e1;border-radius:8px;background:#f8fafc;padding:.45rem}.debug-empty{margin:0;color:#64748b;font-size:.82rem}.debug-log{margin:0;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:.75rem;line-height:1.4;color:#0f172a;white-space:pre-wrap;word-break:break-word}.debug-log+.debug-log{margin-top:.2rem}.debug-log.warn{color:#9a3412}.debug-log.error{color:#991b1b}.actions{margin-top:.8rem;display:flex;gap:.6rem}.panel-actions{padding-top:.55rem;border-top:1px solid #dbe2ea;flex-wrap:wrap}.panel-actions button{white-space:nowrap;flex:1 1 calc(33.333% - .4rem);min-width:86px}.actions button{border:1px solid #445b79;background:linear-gradient(180deg,#fff,#e5edf9);border-radius:10px;padding:.42rem .88rem;font-weight:700;color:#122236;box-shadow:inset 0 1px #ffffffd9,0 1px 1px #0f172a24;cursor:pointer;transition:transform .14s ease,box-shadow .14s ease,border-color .14s ease,background .14s ease}.actions button:hover:not(:disabled){transform:translateY(-1px);border-color:#2f4868;background:linear-gradient(180deg,#fff,#d9e6f7);box-shadow:0 5px 12px #0f172a2e}.actions button:active:not(:disabled){transform:translateY(0);box-shadow:0 1px 3px #0f172a29}.actions button:disabled{opacity:.55;cursor:not-allowed}.board-wrap{--board-radius: 12px;position:relative;width:min(100%,88vmin);max-width:840px;border-radius:var(--board-radius)}.pre-game-top-right{position:absolute;top:.7rem;right:.7rem;z-index:8}.board{--board-size: min(100%, 840px);--board-padding: clamp(16px, calc(var(--board-size) * .036), 30px);--grid-size: calc(var(--board-size) - (var(--board-padding) * 2));--grid-gap: calc(var(--grid-size) / 18);--line-color: rgba(88, 45, 8, .72);--star-color: rgba(70, 36, 7, .9);position:relative;width:var(--board-size);margin:0 auto;aspect-ratio:1 / 1;border-radius:var(--board-radius);overflow:hidden;background-color:#d99636;background-image:linear-gradient(180deg,#ffe8a81f,#5027081f),url(/assets/badukpan-D4LXABrB.png);background-position:center;background-size:cover;box-shadow:0 18px 34px #0f172a47,0 4px 10px #42200638}.board-grid{position:absolute;top:var(--board-padding);left:var(--board-padding);width:var(--grid-size);height:var(--grid-size);overflow:visible;pointer-events:none}.board-grid line{stroke:var(--line-color);stroke-width:1px;vector-effect:non-scaling-stroke;shape-rendering:geometricPrecision}.star-point{position:absolute;width:clamp(4px,calc(var(--grid-gap) * .22),8px);height:clamp(4px,calc(var(--grid-gap) * .22),8px);border-radius:999px;background:var(--star-color);box-shadow:0 0 0 1px #2d170433;transform:translate(-50%,-50%);pointer-events:none}.cell{position:absolute;transform:translate(-50%,-50%);width:calc(var(--grid-gap) * 1.08);height:calc(var(--grid-gap) * 1.08);border:0;background:transparent;display:grid;place-items:center;padding:0;cursor:pointer}.ownership-dot{position:absolute;width:clamp(8px,calc(var(--grid-gap) * .45),18px);height:clamp(8px,calc(var(--grid-gap) * .45),18px);border-radius:50%;pointer-events:none}.ownership-dot.black{background:#0f172a8c}.ownership-dot.white{background:#f8fafce6;box-shadow:0 0 0 1px #0f172a33}.ownership-dot.neutral{background:#64748b47}.cell:disabled{cursor:not-allowed}.hint-move{position:absolute;left:50%;top:50%;width:clamp(24px,calc(var(--grid-gap) * 1.2),42px);height:clamp(24px,calc(var(--grid-gap) * 1.2),42px);border-radius:999px;background:radial-gradient(circle at 35% 30%,#fef9c3f2,#facc15db 58%,#ca8a04eb);border:1px solid rgba(146,64,14,.75);color:#422006;display:grid;align-content:center;justify-items:center;line-height:1;pointer-events:none}.hint-move.top-rank{background:radial-gradient(circle at 35% 26%,#f8fcfffc,#bae6fdfa 22%,#38bdf8f5 58%,#0ea5e9fa);border-color:#0284c7f5;color:#082f49;box-shadow:0 0 0 2px #7dd3fce6,0 0 18px #38bdf88c,0 0 28px #0ea5e947}.hint-move strong{font-size:clamp(.62rem,calc(var(--grid-gap) * .32),.9rem)}.hint-move small{font-size:clamp(.45rem,calc(var(--grid-gap) * .2),.62rem);margin-top:1px}.hint-move.top-rank strong,.hint-move.top-rank small{text-shadow:-1px 0 rgba(240,249,255,.92),1px 0 rgba(240,249,255,.92),0 -1px rgba(240,249,255,.92),0 1px rgba(240,249,255,.92),0 1px 2px rgba(8,47,73,.32)}.hint-move.top-rank strong{color:#082f49;font-weight:900}.hint-move.top-rank small{color:#0c4a6e;font-weight:800}.stone{width:90.74%;height:90.74%;border-radius:50%;position:relative;display:block;box-shadow:inset -2px -3px 4px #00000057,inset 2px 3px 5px #ffffff24,0 3px 6px #0006}.stone.preview{opacity:.5;box-shadow:inset -2px -3px 4px #0003,inset 2px 3px 5px #fff3,0 2px 4px #00000040;pointer-events:none}.board-cell-loader{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none}.board-cell-loader-graphic.analysis-loader{margin:0;min-height:0;width:clamp(18px,calc(var(--grid-gap) * .92),30px);height:clamp(18px,calc(var(--grid-gap) * .92),30px);filter:drop-shadow(0 1px 3px rgba(15,23,42,.35))}.board-cell-loader-graphic.analysis-loader .analysis-loader-ring{border-width:2px}.board-cell-loader-graphic.analysis-loader .analysis-loader-ring:nth-child(1){width:100%;height:100%;border-top-color:#f8fafcf5;border-right-color:#e2e8f07a}.board-cell-loader-graphic.analysis-loader .analysis-loader-ring:nth-child(2){width:64%;height:64%;border-bottom-color:#0f172aeb;border-left-color:#33415566}.board-cell-loader-graphic.analysis-loader .analysis-loader-core{width:22%;height:22%;background:radial-gradient(circle at 35% 30%,#fff,#f8fafc 58%,#0f172a);box-shadow:0 0 7px #f8fafc8c}.stone.black{background:radial-gradient(circle at 32% 26%,#a7adb6,#4b5563 18%,#111827 44%,#020617 78%)}.stone.white{background:radial-gradient(circle at 34% 24%,#fff,#fdfefe 20%,#eef2f7,#d8dee7 76%,#c9d2dd);box-shadow:inset -2px -3px 6px #94a3b880,inset 2px 3px 4px #fffffff2,0 2px 5px #0f172a42}.stone:before{content:"";position:absolute;width:46%;height:30%;top:14%;left:20%;border-radius:50%;background:#ffffff6b;filter:blur(.5px)}.stone:after{content:"";position:absolute;inset:1px;border-radius:50%;background:radial-gradient(circle at 50% 78%,rgba(2,6,23,.24),transparent 45%)}.dead-stone-indicator{position:absolute;width:clamp(8px,calc(var(--grid-gap) * .46),18px);height:clamp(8px,calc(var(--grid-gap) * .46),18px);border-radius:50%;top:50%;left:50%;transform:translate(-50%,-50%);box-shadow:0 0 0 1px #0f172a33,0 1px 3px #0f172a40}.dead-stone-indicator.black{background:#0f172ac2}.dead-stone-indicator.white{background:#f8fafcf2}.stone.black:before{background:#ffffff4d}.last-move-marker{position:absolute;width:clamp(5px,calc(var(--grid-gap) * .3),10px);height:clamp(5px,calc(var(--grid-gap) * .3),10px);border-radius:50%;background:#ef4444;top:50%;left:50%;transform:translate(-50%,-50%)}.overlay{position:absolute;inset:0;display:grid;place-content:center;gap:.4rem;text-align:center;background:#0f172a80;color:#f8fafc;z-index:5;border-radius:inherit}.progress{font-size:.85rem;opacity:.95}.overlay .analysis-loader.overlay-loader{margin:0;min-height:48px}.overlay .analysis-loader.overlay-loader .analysis-loader-ring:nth-child(1){border-top-color:#e2e8f0;border-right-color:#e2e8f07a}.overlay .analysis-loader.overlay-loader .analysis-loader-ring:nth-child(2){border-bottom-color:#f8fafc;border-left-color:#f8fafc66}.overlay .analysis-loader.overlay-loader .analysis-loader-core{background:radial-gradient(circle at 35% 30%,#fff,#e2e8f0 64%,#64748b);box-shadow:0 0 10px #f1f5f9a6}.overlay.hint-overlay{background:#0f172a42;-webkit-backdrop-filter:blur(1.5px);backdrop-filter:blur(1.5px)}.overlay-action{border:1px solid rgba(241,245,249,.85);border-radius:999px;background:#0f172aa6;color:#f8fafc;padding:.42rem .9rem;font-weight:700;cursor:pointer}.overlay-action:hover{background:#0f172acc}@keyframes spin{to{transform:rotate(360deg)}}@keyframes spin-reverse{to{transform:rotate(-360deg)}}@keyframes ai-card-scan{0%{transform:translate(-180%) rotate(12deg);opacity:0}20%{opacity:1}to{transform:translate(320%) rotate(12deg);opacity:0}}@keyframes ai-thinking-dot{0%,80%,to{transform:translateY(0);opacity:.45}40%{transform:translateY(-2px);opacity:1}}@media(max-width:768px){#root{padding:.75rem;padding-bottom:max(5.75rem,calc(env(safe-area-inset-bottom,0px) + 4.75rem))}.actions{flex-wrap:wrap}.actions button{flex:1 1 calc(50% - .4rem);min-width:120px}.analysis-header-row .actions{flex-wrap:nowrap;justify-content:flex-end}.analysis-header-row .actions button{flex:0 0 auto;min-width:0}.player-card{grid-template-columns:auto 1fr}.player-time{grid-column:1 / -1;padding-left:2.45rem}.player-time p{text-align:left}.board-wrap{width:100%}.board{--board-size: 100%}}@media(max-width:1023px){.app-with-panel .board-wrap{order:1;width:100%;max-width:none}.app-with-panel .board{--board-size: 100%}.app-with-panel .panel-stack{order:2}}@media(min-width:1024px){.app h1{grid-area:title}.app .sub{grid-area:subtitle}.app-with-panel{grid-template-columns:minmax(320px,420px) minmax(0,1fr);grid-template-areas:"title title" "subtitle subtitle" "panel board" "footer footer";column-gap:1.25rem}.app-with-panel .panel-stack{grid-area:panel;position:sticky;top:1rem}.app-with-panel .board-wrap{grid-area:board;width:min(100%,82vh,calc(100vw - 30rem),840px);max-width:840px}.app-with-panel .board{--board-size: min(82vh, calc(100vw - 30rem) , 840px)}.app-with-panel .license-notice{grid-area:footer}.mobile-install-promo{display:grid;gap:.5rem;padding:.74rem .82rem;border:1px solid rgba(148,163,184,.42);border-radius:12px;background:#ffffff9e;color:#334155;box-shadow:0 8px 18px #0f172a12;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.mobile-install-promo p{margin:0}.mobile-install-promo-eyebrow{color:#0369a1;font-size:.7rem;font-weight:850}.mobile-install-promo-title{color:#0f172a;font-size:.88rem;font-weight:850;line-height:1.28;text-wrap:pretty}.mobile-install-promo-description{color:#64748b;font-size:.76rem;line-height:1.45;text-wrap:pretty;word-break:keep-all}.mobile-install-promo-actions{display:flex;flex-wrap:wrap;gap:.48rem;margin-top:.02rem}.mobile-install-store-link{display:inline-flex;align-items:center;justify-content:center;gap:.32rem;min-height:1.85rem;padding:.34rem .62rem;border:1px solid #cbd5e1;border-radius:999px;background:#fff;color:#0f172a;font-size:.75rem;font-weight:820;line-height:1;text-decoration:none;transition:border-color .16s ease,background-color .16s ease,color .16s ease,transform .16s ease}.mobile-install-store-link:hover{border-color:#0369a1;background:#f0f9ff;color:#075985;transform:translateY(-1px)}.mobile-install-store-link:focus-visible{outline:3px solid rgba(14,165,233,.28);outline-offset:2px}.mobile-install-store-icon{flex:0 0 auto;width:.95rem;height:.95rem}.mobile-install-store-icon.apple{color:#111827}.mobile-install-store-icon.play{filter:drop-shadow(0 .5px 0 rgba(15,23,42,.12))}.app-with-panel.app-focused-game{grid-template-areas:"panel board";align-items:start}.app-with-panel.app-focused-game .board-wrap{width:min(100%,88dvh,calc(100vw - 30rem),920px);max-width:920px}.app-with-panel.app-focused-game .board{--board-size: min(88dvh, calc(100vw - 30rem) , 920px)}.app-pre-game{--pre-game-board-size: min(max(320px, calc(100dvh - 18rem) ), calc(100vw - 4rem) , 1000px);grid-template-columns:minmax(0,1fr);grid-template-areas:"title" "subtitle" "board" "footer"}.app-pre-game h1,.app-pre-game .sub{width:min(100%,var(--pre-game-board-size));justify-self:center}.app-pre-game .board-wrap{grid-area:board;width:min(100%,var(--pre-game-board-size));max-width:1000px;justify-self:center}.app-pre-game .board{--board-size: var(--pre-game-board-size)}.app-pre-game .license-notice{grid-area:footer;width:min(100%,var(--pre-game-board-size));justify-self:center}}@media(max-width:640px){.license-notice{align-items:flex-start;flex-direction:column}.feedback-cta{align-self:flex-start}}.pre-game-overlay{position:absolute;inset:0;z-index:6;display:grid;align-content:end;justify-items:center;padding:1rem;overflow-y:auto;background:linear-gradient(to bottom,#0f172a47,#0f172a8c);-webkit-backdrop-filter:blur(1px);backdrop-filter:blur(1px);border-radius:inherit;overscroll-behavior:contain}.pre-game-overlay.elevated{z-index:29}.pre-game-card{width:min(96%,820px);background:linear-gradient(168deg,#fffffffa,#f1f5f9f7);border:1px solid rgba(148,163,184,.55);border-radius:24px;padding:clamp(1.1rem,2vw,1.65rem);padding-bottom:clamp(1.45rem,2.4vw,2rem);min-height:340px;box-shadow:0 20px 40px #0f172a57}.pre-game-title{margin:0;font-size:clamp(1.7rem,5vw,2.35rem);font-weight:850;color:#0f172a}.pre-game-options{margin-top:1.2rem;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(.8rem,1.7vw,1.2rem)}.setup-field{display:grid;gap:.48rem;font-size:clamp(.95rem,2vw,1.02rem);font-weight:800;color:#1e293b}.setup-dropdown{position:relative}.setup-dropdown-trigger{width:100%;border:1px solid #94a3b8;border-radius:14px;padding:clamp(.75rem,2vw,.94rem);background:linear-gradient(180deg,#fff,#f8fafc);font-size:clamp(1rem,2.2vw,1.08rem);font-weight:700;color:#0f172a;display:flex;justify-content:space-between;align-items:center;cursor:pointer;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease;box-shadow:inset 0 1px #ffffffb8}.setup-dropdown-trigger:hover{border-color:#64748b;transform:translateY(-1px)}.setup-dropdown-trigger.open,.setup-dropdown-trigger:focus-visible{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb2e;outline:0}.setup-dropdown-chevron{color:#475569;font-size:1rem}.setup-dropdown-menu{position:absolute;z-index:3;left:0;right:0;margin:.42rem 0 0;padding:.45rem;list-style:none;border:1px solid #cbd5e1;border-radius:14px;background:#fff;box-shadow:0 14px 28px #0f172a33;max-height:min(260px,48vh);overflow-y:auto}.setup-dropdown-menu.open-upward{top:auto;bottom:calc(100% + .35rem);margin-top:0}.setup-dropdown-item{width:100%;border:0;border-radius:9px;background:transparent;text-align:left;font-size:clamp(.98rem,2.1vw,1.04rem);color:#1e293b;padding:.64rem .72rem;cursor:pointer}.setup-dropdown-item:hover,.setup-dropdown-item.selected{background:#eff6ff;color:#1d4ed8}.start-game-button{margin-top:1.25rem;width:100%;border:0;background:linear-gradient(120deg,var(--modal-confirm-color),var(--modal-confirm-color-dark));color:#fff;border-radius:14px;padding:clamp(.9rem,2vw,1.05rem) 1rem;font-size:clamp(1.05rem,2.4vw,1.2rem);font-weight:850;cursor:pointer;transition:transform .16s ease,box-shadow .16s ease}.start-game-button:hover{transform:translateY(-1px);box-shadow:0 8px 18px #009fe357}.start-game-button.secondary{margin-top:.65rem;background:linear-gradient(160deg,#fff,#e2e8f0);color:#0f172a;border:1px solid #94a3b8}.start-game-button.secondary:hover{box-shadow:0 8px 18px #0f172a29}@media(max-width:900px){.pre-game-card{width:min(97%,760px)}.pre-game-options{grid-template-columns:1fr}}@media(max-height:700px){.pre-game-overlay{position:fixed;inset:0;z-index:26;align-content:start;padding:calc(env(safe-area-inset-top,0px) + 1rem) 1rem calc(env(safe-area-inset-bottom,0px) + 1rem);border-radius:0;overscroll-behavior:contain}.pre-game-card{width:min(100%,760px);min-height:auto;margin-bottom:1rem}}@media(max-width:640px){.pre-game-top-right{position:fixed;top:calc(env(safe-area-inset-top,0px) + .5rem);right:.5rem;z-index:28;max-width:calc(100% - 1rem)}.locale-switch button{padding:.2rem}.pre-game-overlay{position:fixed;inset:0;z-index:26;align-content:start;padding:calc(env(safe-area-inset-top,0px) + 3rem) .7rem calc(env(safe-area-inset-bottom,0px) + .7rem);overflow-y:auto;border-radius:0}.pre-game-card{width:100%;max-height:none;min-height:auto;border-radius:18px;padding:1rem;overflow:visible}}.resume-dialog-backdrop{position:fixed;inset:0;z-index:30;display:grid;place-items:center;padding:1rem;background:#0f172a94;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);overscroll-behavior:contain}.resume-dialog{width:min(100%,520px);border-radius:20px;border:1px solid rgba(148,163,184,.45);background:linear-gradient(160deg,#fff,#f8fafc);box-shadow:0 24px 44px #0f172a57;padding:clamp(1rem,2.2vw,1.5rem)}.resume-dialog h2{margin:0;font-size:clamp(1.1rem,2.7vw,1.45rem);color:#0f172a}.resume-dialog p{margin:.75rem 0 0;color:#334155;line-height:1.5}.alert-dialog{position:relative}.alert-dialog--empty{background:radial-gradient(circle at top right,rgba(14,165,233,.14),transparent 36%),linear-gradient(160deg,#fff,#f8fafc)}.alert-dialog-badge{display:inline-flex;align-items:center;justify-content:center;min-width:3.2rem;margin-bottom:.45rem;padding:.35rem .72rem;border-radius:999px;background:linear-gradient(135deg,#0ea5e929,#0284c73d);color:#0369a1;font-size:.82rem;font-weight:900;letter-spacing:.04em}.resume-dialog-actions{margin-top:1.2rem;display:flex;justify-content:flex-end;gap:.55rem}.modal-action-button{border-radius:999px;padding:.68rem 1.28rem;font-size:.98rem;font-weight:800;line-height:1;cursor:pointer;border:1px solid transparent;transition:transform .14s ease,box-shadow .14s ease,filter .14s ease}.modal-action-button:hover{transform:translateY(-1px)}.modal-action-button:active{transform:translateY(0);filter:brightness(.96)}.modal-action-button--cancel{color:#334155;border-color:#cbd5e1;background:linear-gradient(160deg,#f8fafc,#e2e8f0)}:root{--modal-confirm-color: #009fe3;--modal-confirm-color-dark: #0079bf}.modal-action-button--confirm{color:#fff;background:linear-gradient(120deg,var(--modal-confirm-color),var(--modal-confirm-color-dark));box-shadow:0 8px 16px #009fe352}.kifu-name-dialog{width:min(100%,560px)}.kifu-name-input{margin-top:.9rem;width:100%;border-radius:13px;border:1px solid #9caec6;background:#fff;color:#0f172a;padding:.72rem .9rem;font-size:1rem;outline:none;box-sizing:border-box;transition:border-color .16s ease,box-shadow .16s ease}.kifu-name-input:focus{border-color:#009fe3;box-shadow:0 0 0 3px #009fe32e}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:640px){.resume-dialog{width:min(100%,420px);border-radius:16px}.resume-dialog-actions{justify-content:stretch}.resume-dialog-actions .modal-action-button{flex:1;justify-content:center}}.pass-hint-slot{position:absolute;left:50%;top:calc(var(--board-padding) * .56);transform:translate(-50%,-50%);min-width:clamp(56px,calc(var(--grid-gap) * 1.85),92px);min-height:clamp(26px,calc(var(--grid-gap) * .82),38px);padding:.16rem .5rem .18rem;border-radius:999px;border:1px solid rgba(146,64,14,.68);background:linear-gradient(180deg,#fff7ccf5,#facc15e0);color:#422006;display:inline-grid;grid-template-columns:auto auto;align-items:center;justify-items:center;column-gap:.28rem;cursor:pointer;z-index:4;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.pass-hint-slot.top-rank{border-color:#0284c7e6;background:linear-gradient(180deg,#f8fcfffa,#7dd3fceb 48%,#0ea5e9f0);color:#082f49}.pass-hint-slot:disabled{cursor:not-allowed}.pass-hint-slot-label{grid-column:1 / 2;font-size:clamp(.44rem,calc(var(--grid-gap) * .18),.62rem);font-weight:900;letter-spacing:.08em;line-height:1}.pass-hint-slot-rank{grid-column:2 / 3;grid-row:1 / 3;font-size:clamp(.74rem,calc(var(--grid-gap) * .34),1rem);font-weight:900;line-height:1}.pass-hint-slot-winrate{grid-column:1 / 2;font-size:clamp(.4rem,calc(var(--grid-gap) * .16),.58rem);font-weight:800;line-height:1}.kifu-toolbar{display:flex;gap:.4rem}.kifu-browser-panel{margin-top:.55rem;padding:.9rem;border-radius:22px;border:1px solid #9caec6;background:radial-gradient(circle at 0% -30%,#b3d2ff59,#b3d2ff00 52%),linear-gradient(165deg,#fbfdff,#f1f5fb 46%,#e6edf8);box-shadow:inset 0 1px #ffffffe0,0 14px 30px #0f172a24}.kifu-browser-header{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem;margin-bottom:.85rem}.kifu-browser-header strong{display:block;font-size:1.45rem;line-height:1.1;letter-spacing:-.02em;color:#0f172a}.kifu-browser-subtitle{margin:.25rem 0 0;font-size:.8rem;color:#5b6c83;font-weight:600}.kifu-close-button{border-radius:999px;border:1px solid #8ba0bb;background:linear-gradient(180deg,#fff,#e9eff8);color:#1f2f46;font-size:.84rem;font-weight:700;padding:.34rem .72rem;box-shadow:0 2px 8px #0f172a14;cursor:pointer}.kifu-close-button:hover:not(:disabled){border-color:#667d9e;background:linear-gradient(180deg,#fff,#dce8f8)}.kifu-top-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:.65rem;margin-bottom:.6rem}.kifu-top-actions--board{display:none}@media(max-width:1023px){.kifu-top-actions--panel{display:none}.kifu-top-actions--board{display:grid;width:100%;margin-top:.55rem;margin-bottom:.45rem}}@media(max-width:680px){.kifu-top-actions{grid-template-columns:1fr}}.kifu-nav-buttons{grid-column:1 / -1;display:inline-flex;gap:.45rem;overflow-x:visible;min-width:0;width:100%;padding:.08rem .1rem .35rem}.kifu-nav-buttons button,.kifu-move-number-toggle{white-space:nowrap;min-height:2.3rem;border-radius:12px;border:1px solid #7286a3;background:linear-gradient(180deg,#fff,#e5edf8);color:#102238;font-weight:700;box-shadow:0 1px #ffffffe6,0 2px 4px #0f172a1f;cursor:pointer}.kifu-nav-buttons button{min-width:3.15rem;flex:0 0 auto}.kifu-move-number-toggle{width:auto;justify-self:start;padding-inline:.8rem;display:inline-flex;align-items:center;justify-content:center;gap:.55rem}.kifu-button-loader{margin:0;min-height:0;width:1.1rem;height:1.1rem;flex:0 0 auto}.kifu-button-loader .analysis-loader-ring:nth-child(1){width:1.1rem;height:1.1rem;border-width:2px}.kifu-button-loader .analysis-loader-ring:nth-child(2){width:.72rem;height:.72rem;border-width:2px}.kifu-button-loader .analysis-loader-core{width:.28rem;height:.28rem}.kifu-nav-buttons button:hover:not(:disabled),.kifu-move-number-toggle:hover:not(:disabled){border-color:#4f6f98;background:linear-gradient(180deg,#fff,#d8e7fb)}.kifu-nav-buttons button:disabled,.kifu-move-number-toggle:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}.kifu-step-indicator{margin:0 0 .75rem;padding:.62rem .82rem;border-radius:12px;border:1px solid rgba(130,150,177,.42);background:#ffffffd1;font-size:1.03rem;font-weight:800;color:#16263f;box-shadow:inset 0 1px #fffffff2}.kifu-analysis-section{grid-column:1 / -1;margin-bottom:.75rem}.kifu-browser-layout{display:block}.kifu-list{list-style:none;margin:0;padding:.45rem;max-height:308px;overflow:auto;display:grid;gap:.45rem;border-radius:15px;background:#ffffffbd;border:1px solid rgba(138,156,181,.42)}.kifu-list button{width:100%;text-align:left;border-radius:11px;border:1px solid #8f9eb3;background:linear-gradient(180deg,#fefefe,#eef3f9);cursor:pointer}.kifu-list-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.5rem;align-items:center}.kifu-delete-button{min-height:2.2rem;padding:.2rem .7rem;border-radius:10px;border:1px solid #9c4853;background:linear-gradient(180deg,#fff0f2,#ffd9df);color:#7c1f2c;font-weight:700;cursor:pointer}.kifu-delete-button:hover:not(:disabled){border-color:#7f2430;background:linear-gradient(180deg,#ffe8eb,#ffc6d0)}.kifu-list button:hover:not(.active){border-color:#5c789d;background:linear-gradient(180deg,#fff,#e1ecfa)}.kifu-list button.active{background:linear-gradient(180deg,#1a355b,#12233d);border-color:#0f1d34;color:#fff}.kifu-list button small{display:block;opacity:.82}.move-number{position:absolute;inset:0;display:grid;place-items:center;font-weight:700;font-size:clamp(.78rem,calc(var(--grid-gap) * .62),1.34rem);color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.8)}@media(max-width:1023px){.move-number{font-size:clamp(.98rem,calc(var(--grid-gap) * .74),2rem);font-weight:800}}.stone.white .move-number{color:#0f172a;text-shadow:none}
