.lobby-shell{width:100vw;height:100vh;display:grid;grid-template-columns:206px minmax(0,1fr);background-color:var(--bg);background-image:linear-gradient(var(--bg-grid) 1px,transparent 1px),linear-gradient(90deg,var(--bg-grid) 1px,transparent 1px);background-size:var(--grid-cell) var(--grid-cell);color:var(--text)}.lobby-shell a{text-decoration:none}.lobby-shell a:focus-visible{outline:3px solid var(--brand);outline-offset:3px}.lobby-rail{background:var(--card);border-right:1px solid var(--border);padding:28px 18px;display:flex;flex-direction:column;gap:36px}.lobby-brand{display:flex;align-items:center;gap:10px;font-size:21px;font-weight:900;letter-spacing:-1.2px}.lobby-brand img{width:34px;height:34px}.lobby-rail nav{display:grid;gap:6px}.lobby-rail nav a{display:flex;align-items:center;gap:12px;min-height:45px;border-radius:var(--r-md);padding:0 13px;font-size:13px;font-weight:750;color:var(--muted)}.lobby-rail nav a.is-active{background:var(--border-soft);color:var(--brand-deep)}.lobby-rail nav svg{width:20px;height:20px}.lobby-rail-foot{margin-top:auto;border-top:1px solid var(--border);padding-top:20px;font-size:12px;line-height:1.55;color:var(--muted)}.lobby-rail-foot strong{display:block;color:var(--text);font-size:13px}.lobby-content{width:100%;min-width:0;height:100%;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;padding:30px max(40px,calc((100vw - 1306px)/2 + 40px)) 70px}.lobby-content>*{max-width:1100px;margin-left:auto;margin-right:auto}.lobby-topline{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:26px;font-size:13px;font-weight:750;color:var(--muted)}.lobby-top-actions{display:flex;align-items:center;gap:8px}.lobby-top-actions>a,.lobby-topline .sound-toggle{background:var(--card);border:1px solid var(--border);border-radius:var(--r-full);padding:10px 14px;color:var(--text);font-size:12px;font-weight:750;box-shadow:none}.lobby-eyebrow{font-size:11px;font-weight:850;letter-spacing:1.8px;text-transform:uppercase;color:var(--brand-deep)}.lobby-hero{display:grid;grid-template-columns:1.2fr .8fr;min-height:290px;background:var(--card-dark);border-radius:var(--r-2xl);overflow:hidden;color:var(--on-brand);box-shadow:var(--shadow-card)}.lobby-hero-copy{padding:40px 42px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}.lobby-hero .lobby-eyebrow{color:var(--brand-lift)}.lobby-hero h1{max-width:500px;font-size:clamp(32px,4.3vw,54px);line-height:1.04;letter-spacing:-2.8px;margin:10px 0 16px}.lobby-hero p{max-width:390px;color:var(--border);font-size:15px;line-height:1.5;margin:0 0 24px}.lobby-cta{display:inline-flex;align-items:center;justify-content:center;gap:10px;background:var(--brand);color:var(--on-brand);border-radius:var(--r-md);padding:14px 20px;min-height:48px;font-size:14px;font-weight:850;box-shadow:var(--shadow-soft)}.lobby-hero-art{position:relative;display:grid;place-items:center;background:var(--brand-halo);overflow:hidden}.lobby-hero-board{width:250px;height:250px;transform:rotate(-10deg);border:10px solid var(--card);border-radius:var(--r-sm);box-shadow:var(--shadow-lift);background:conic-gradient(var(--card) 25%,var(--border-pick) 0 50%,var(--card) 0 75%,var(--border-pick) 0) 0 0/25% 25%}.lobby-hero-art svg{position:absolute;top:52px;left:50%;width:96px;height:96px;fill:var(--card);stroke:var(--brand-ink);stroke-width:1.7;stroke-linejoin:round;filter:drop-shadow(0 10px 12px var(--modal-backdrop))}.lobby-section-head{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-top:34px;margin-bottom:16px}.lobby-section-head h2{font-size:22px;letter-spacing:-.8px;margin:5px 0 0}.lobby-section-head p{font-size:13px;color:var(--muted);margin:5px 0 0}.lobby-game-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.lobby-shell .lobby-game-card{min-height:160px;border-radius:var(--r-xl);background:var(--card);border:1px solid var(--border);padding:17px;display:flex;flex-direction:column;align-items:flex-start;box-shadow:var(--shadow-soft);gap:0}.lobby-game-thumb{width:58px;height:58px;margin-bottom:auto;border-radius:var(--r-md);display:grid;place-items:center;background:var(--bg);border:1px solid var(--border-soft)}.lobby-game-thumb svg{width:32px;height:32px}.lobby-game-card .choice-title{font-size:17px}.lobby-game-card .choice-sub{font-size:12px;font-weight:500}.lobby-card-arrow{margin-left:auto;color:var(--brand-deep);font-weight:900}.lobby-shell .lobby-game-card.is-featured{background:var(--brand-grad);color:var(--on-brand);border-color:transparent}.lobby-game-card.is-featured .lobby-game-thumb{background:var(--gloss);border-color:var(--border-pick)}.lobby-game-card.is-featured .choice-sub,.lobby-game-card.is-featured .lobby-card-arrow{color:var(--on-brand)}.lobby-info-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:14px}.lobby-info-card{min-height:128px;background:var(--card);border:1px solid var(--border);border-radius:var(--r-xl);padding:20px;box-shadow:none}.lobby-info-card h3{font-size:17px;margin:5px 0 4px}.lobby-info-card p{font-size:13px;color:var(--muted);line-height:1.5;margin:8px 0 0}.lobby-info-card>a{display:inline-block;margin-top:14px;color:var(--brand-deep);font-size:12px;font-weight:850}.lobby-shell .lobby-arena-card{display:flex;flex-direction:column;align-items:flex-start;gap:0;box-shadow:none}.lobby-arena-card .choice-title{margin-top:5px}.lobby-arena-card .choice-sub{font-size:13px;margin-top:8px}.lobby-arena-card .lobby-card-arrow{margin-top:auto}.lobby-shell .lobby-mobile-nav{display:none}.lobby-game-page{max-width:900px;min-height:500px;background:var(--card);border:1px solid var(--border);border-radius:var(--r-2xl);box-shadow:var(--shadow-card);padding:28px 34px 40px}.lobby-shell .back-pill{position:static;width:fit-content;border:1px solid var(--border);box-shadow:none}.lobby-game-page .header-block{margin-top:32px}.lobby-game-page .game-modes{max-width:620px;margin:26px auto 0}.lobby-game-page .tray{box-shadow:none;border:1px solid var(--border)}@media(min-width:768px)and (max-height:520px){.lobby-rail{min-height:0;padding:14px 18px;gap:14px}.lobby-rail nav a{min-height:36px}.lobby-rail-foot{padding-top:9px;line-height:1.35}}@media(max-width:767px){.lobby-shell{display:block}.lobby-rail{display:none}.lobby-content{padding:20px 20px calc(90px + env(safe-area-inset-bottom))}.lobby-topline{margin-bottom:21px}.lobby-top-actions>a:last-child,.lobby-topline .sound-toggle{display:none}.lobby-hero{display:block;min-height:0}.lobby-hero-copy{padding:27px 25px}.lobby-hero h1{font-size:36px;letter-spacing:-1.8px}.lobby-hero p{font-size:13px;margin-bottom:19px}.lobby-hero-art{height:130px}.lobby-hero-board{width:190px;height:190px}.lobby-hero-art svg{width:70px;height:70px;top:14px}.lobby-section-head{margin-top:27px;margin-bottom:13px}.lobby-game-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.lobby-shell .lobby-game-card{min-height:142px;padding:13px}.lobby-game-thumb{width:45px;height:45px}.lobby-game-thumb svg{width:27px;height:27px}.lobby-game-card .choice-title{font-size:14px}.lobby-game-card .choice-sub{font-size:10px}.lobby-info-grid{grid-template-columns:1fr}.lobby-info-card{min-height:0}.lobby-shell .lobby-mobile-nav{display:flex;width:100%;left:0;transform:none;padding-bottom:max(14px,env(safe-area-inset-bottom));z-index:5}.lobby-game-page{min-height:0;padding:20px 16px 30px}.lobby-game-page .header-block{margin-top:25px}.lobby-game-page .game-modes{margin-top:20px}}.profile-page .back-pill{position:static;width:fit-content;margin-bottom:26px;border:0;background:transparent;box-shadow:none;padding:0;color:var(--muted);font-size:13px}.profile-page .options-head{width:100%;max-width:none;margin:0 0 22px;text-align:left}.profile-page .options-head h1{font-size:clamp(32px,4.3vw,54px);line-height:1.04;letter-spacing:-2.8px;margin:5px 0 14px}.profile-page .options-head p{font-size:15px;font-weight:500}.profile-page .options-content{width:100%;display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:20px;align-items:start;padding:0;overflow:visible}.profile-page .profile-panel,.profile-page .options-card{width:100%;max-width:none;background:var(--card);border:1px solid var(--border);border-radius:var(--r-xl);box-shadow:var(--shadow-soft)}.profile-page .profile-panel{min-width:0;padding:26px}.profile-page .history-account{width:100%;max-width:none;padding:0 0 24px;margin:0;border-radius:0;border-bottom:1px solid var(--border);background:transparent;box-shadow:none}.profile-page .history-account h2{margin:0 0 12px;color:var(--brand-deep);font-size:11px;font-weight:850;letter-spacing:1.8px;text-transform:uppercase}.profile-page .history-account-head{gap:14px}.profile-page .history-avatar{flex-basis:64px;height:64px;border-radius:var(--r-lg);font-size:28px}.profile-page .history-account-head strong{font-size:20px;letter-spacing:-.5px}.profile-page .history-account-head small{font-size:12px}.profile-page .history-account>p{font-size:12px}.profile-page .history-account .history-google{margin-top:16px}.profile-page .profile-stats,.profile-page .profile-privacy{padding:24px 0 0;margin:0;background:transparent;border:0;border-radius:0;box-shadow:none}.profile-page .profile-stats h2,.profile-page .profile-privacy h2{color:var(--brand-deep);font-size:11px;font-weight:850;letter-spacing:1.8px}.profile-page .profile-counts{gap:12px;margin-top:20px}.profile-page .profile-counts span{padding:14px;text-align:left}.profile-page .profile-counts strong{font-size:24px}.profile-ratings{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:9px;margin-top:16px}.profile-ratings>div{display:grid;gap:3px;padding:12px;border:1px solid var(--border);border-radius:var(--r-md);background:var(--bg)}.profile-ratings span{font-size:11px;color:var(--muted)}.profile-ratings strong{font-size:23px;color:var(--brand-deep)}.profile-ratings small{font-size:10px;color:var(--muted)}.profile-page .profile-privacy{margin-top:22px;border-top:1px solid var(--border)}.profile-page .options-content>section.options-card{padding:26px}.profile-page .options-content>section.options-card:before{content:"TRẢI NGHIỆM";display:block;color:var(--brand-deep);font-size:11px;font-weight:850;letter-spacing:1.8px;margin-bottom:7px}.profile-page .options-field{margin:0;padding:17px 0;border-top:1px solid var(--border)}.profile-page .options-field:first-child{border-top:0}.profile-page .options-field h2{font-size:18px;color:var(--text);letter-spacing:-.4px;text-transform:none}.profile-page .options-switch{border:0;background:transparent;padding:0;min-height:30px}.profile-page .options-field p{margin-top:4px}@media(max-width:767px){.profile-page .back-pill{margin-bottom:20px}.profile-page .options-head h1{font-size:36px;letter-spacing:-1.8px}.profile-page .options-head p{font-size:13px}.profile-page .options-content{grid-template-columns:1fr;gap:14px}.profile-page .profile-panel,.profile-page .options-content>section.options-card{padding:20px}.profile-page .history-avatar{flex-basis:52px;height:52px;font-size:22px}.profile-page .history-account-head strong{font-size:16px}.profile-page .profile-counts{gap:7px}.profile-page .profile-counts span{padding:10px}.profile-page .profile-counts strong{font-size:20px}}.history-page .back-pill{position:static;width:fit-content;margin-bottom:26px;border:0;background:transparent;box-shadow:none;padding:0;color:var(--muted);font-size:13px}.history-page .history-head{width:100%;max-width:none;margin:0;text-align:left}.history-page .history-head h1{font-size:clamp(32px,4.3vw,54px);line-height:1.04;letter-spacing:-2.8px;margin:5px 0 14px}.history-page .history-head p{font-size:15px;font-weight:500}.history-page .history-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:20px;align-items:start;margin-top:24px}.history-page .history-panel,.history-page .history-filters{width:100%;max-width:none;background:var(--card);border:1px solid var(--border);border-radius:var(--r-xl);padding:26px;box-shadow:var(--shadow-soft)}.history-page .history-section{width:100%;max-width:none;margin:0;padding:0 0 20px;border-bottom:1px solid var(--border);display:grid;gap:6px}.history-page .history-section strong{font-size:22px;letter-spacing:-.8px}.history-page .history-list{width:100%;max-width:none;overflow:visible;display:block;padding:0}.history-page .history-row{min-height:93px;padding:0;border-radius:0;border-bottom:1px solid var(--border);box-shadow:none;gap:14px}.history-page .history-row-mark{width:48px;height:48px;flex:none;display:grid;place-items:center;border-radius:var(--r-md);background:var(--bg);color:var(--wall);font-size:21px;font-weight:850}.history-page .history-row-mark svg{width:28px;height:28px}.history-page .history-row-main{gap:4px}.history-page .history-row-main strong{font-size:15px}.history-page .history-row-main span,.history-page .history-row-main time{font-size:12px}.history-page .history-result{padding:7px 10px;border-radius:var(--r-full);color:var(--brand-deep);background:var(--border-soft);font-size:12px}.history-page .history-result.is-draw{color:var(--muted);background:var(--bg)}.history-page .history-load-more{margin-top:20px}.history-page .history-rating-note{padding:0;background:transparent;font-size:12px}.history-page .history-filters{margin:0}.history-page .history-filters h2{font-size:22px;margin:6px 0 20px}.history-page .history-filter-row{display:block;margin:0}.history-page .history-filters label{display:block;margin:0 0 16px;font-size:11px}.history-page .history-filters select{height:44px;margin-top:7px}.history-page .history-filters>p{font-size:12px;color:var(--muted);line-height:1.5}.history-page .history-empty{margin-top:18px;box-shadow:none}@media(max-width:767px){.history-page .back-pill{margin-bottom:20px}.history-page .history-head h1{font-size:36px;letter-spacing:-1.8px}.history-page .history-head p{font-size:13px}.history-page .history-layout{display:flex;flex-direction:column;gap:14px;margin-top:20px}.history-page .history-filters{order:0}.history-page .history-panel{order:1}.history-page .history-panel,.history-page .history-filters{padding:18px}.history-page .history-filters h2{margin-bottom:14px}.history-page .history-filters label{margin-bottom:10px}.history-page .history-filters>p{display:none}.history-page .history-section strong{font-size:20px}.history-page .history-row{min-height:82px;gap:10px}.history-page .history-row-mark{width:40px;height:40px;font-size:18px}.history-page .history-row-main strong{font-size:14px}.history-page .history-row-main span,.history-page .history-row-main time{font-size:10px}.history-page .history-result{font-size:11px;padding:5px 7px}.history-page .history-rating-note{font-size:11px}}:root{--col-width: 390px;--col-width-desktop: 480px;--board-col-width-desktop: 940px;--tray-col-width-desktop: 240px;--form-max-width: 640px;--breakpoint-desktop: 768px;--grid-cell: 40px;--font-stack: system-ui, -apple-system, sans-serif;--bg: #f8f9fa;--bg-grid: rgba(15, 23, 42, .04);--card: #ffffff;--card-dark: #1e293b;--border: #e2e8f0;--border-soft: #edf0f3;--text: #0f172a;--muted: #64748b;--subtle: #94a3b8;--on-brand: #ffffff;--brand: #8b5cf6;--brand-deep: #6d28d9;--brand-ink: #4c1d95;--brand-lift: #a855f7;--brand-grad: linear-gradient(140deg, #8b5cf6 0%, #6d28d9 52%, #4c1d95 100%);--brand-tile: linear-gradient(135deg, #a855f7 0%, #8b5cf6 52%, #6d28d9 100%);--brand-halo: radial-gradient(85% 100% at 50% 0%, rgba(139, 92, 246, .09) 0%, transparent 100%);--red: #e1463c;--red-grad: linear-gradient(140deg, #e1574b 0%, #c0392b 100%);--red-zone: radial-gradient(75% 100% at 50% 0%, rgba(225, 70, 60, .1) 0%, transparent 70%);--blue: #327deb;--blue-grad: linear-gradient(140deg, #3c5a8c 0%, #24406e 100%);--blue-zone: radial-gradient(75% 100% at 50% 100%, rgba(50, 125, 235, .09) 0%, transparent 70%);--red-zone-x: radial-gradient(100% 75% at 0% 50%, rgba(225, 70, 60, .1) 0%, transparent 70%);--blue-zone-x: radial-gradient(100% 75% at 100% 50%, rgba(50, 125, 235, .09) 0%, transparent 70%);--wall: #334155;--piece-dark: var(--wall);--piece-light: var(--card);--modal-backdrop: rgba(15, 23, 42, .52);--wall-ghost: rgba(51, 65, 85, .28);--cell-a: #ffffff;--cell-b: #fafbfc;--cell-line: #edf0f3;--board-frame: linear-gradient(#eef1f7 0%, #e4e9f1 55%, #d9e0ec 100%);--board-gloss: radial-gradient(115% 50% at 50% 0%, rgba(255, 255, 255, .85) 0%, transparent 52%);--easy: #16a34a;--normal: #d9a520;--hard: #dc2626;--shadow-soft: 0 2px 8px rgba(0, 0, 0, .06);--shadow-card: 0 4px 24px rgba(0, 0, 0, .08), 0 1px 4px rgba(0, 0, 0, .04);--shadow-lift: 0 2px 5px rgba(15, 23, 42, .1), 0 12px 28px rgba(15, 23, 42, .16);--shadow-brand: 0 12px 30px rgba(139, 92, 246, .42), inset 0 1px 1px rgba(255, 255, 255, .35);--gloss: linear-gradient(rgba(255, 255, 255, .13), transparent);--r-xs: 2px;--r-sm: 11px;--r-md: 13px;--r-lg: 16px;--r-xl: 20px;--r-2xl: 24px;--r-full: 999px;--r-pick: 12px;--r-clock: 9px;--brand-pick: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);--border-pick: #d6dded;--shadow-pick: 0 2px 5px rgba(15, 23, 42, .1), 0 8px 18px rgba(15, 23, 42, .14), inset 0 1px 0 rgba(255, 255, 255, .5);--shadow-pick-on: 0 3px 10px rgba(124, 58, 237, .35), 0 0 22px rgba(124, 58, 237, .35), inset 0 1px 0 rgba(255, 255, 255, .22);--shadow-toggle-on: 0 3px 12px rgba(139, 92, 246, .4), 0 0 20px rgba(139, 92, 246, .3);--clock-pill-bg: rgba(0, 0, 0, .32);--clock-pill-bg-idle: rgba(0, 0, 0, .24);--clock-pill-border: rgba(255, 255, 255, .15);--clock-pill-ring: 0 0 0 1.5px rgba(255, 255, 255, .28), inset 0 1px 2px rgba(0, 0, 0, .3);--clock-low: #fde047;--scrim: rgba(0, 0, 0, .55);--shadow-dialog: 0 24px 64px rgba(0, 0, 0, .3);--motion-press: .14s ease-out;--motion-enter: .22s cubic-bezier(.22, 1, .36, 1);--motion-pulse: .6s}*{box-sizing:border-box;margin:0;padding:0}html,body{height:100vh;overflow:hidden}body{font-family:var(--font-stack);color:var(--text);background-color:var(--bg);background-image:linear-gradient(var(--bg-grid) 1px,transparent 1px),linear-gradient(90deg,var(--bg-grid) 1px,transparent 1px);background-size:var(--grid-cell) var(--grid-cell);min-height:100vh;display:flex;justify-content:center}#root{max-width:100%}a{color:inherit}.screen{width:var(--col-width);max-width:100%;height:100vh;position:relative;padding:28px 20px 112px}.screen.no-nav{padding-bottom:32px}.screen--board{height:100vh;display:flex;flex-direction:column;overflow:hidden}@media(min-width:768px){.screen{width:var(--col-width-desktop)}.screen--board{width:var(--board-col-width-desktop)}}@media(min-width:768px){.screen--board{display:grid;grid-template-columns:1fr var(--tray-col-width-desktop);grid-template-rows:auto auto auto 1fr auto;column-gap:24px;grid-template-areas:"header  header" "score   tray" "turn    tray" "board   tray" "notice  tray"}.match-header{grid-area:header}.score-row{grid-area:score;margin-bottom:0}.turn-banner{grid-area:turn;margin:0}.board-area{grid-area:board}.notice-slot{grid-area:notice;margin-top:0}.action-tray{grid-area:tray;align-self:center;margin-top:0}}.t-display{font-size:32px;font-weight:900;letter-spacing:-1.8px;color:var(--text)}.t-heading{font-size:28px;font-weight:900;letter-spacing:-1.2px;color:var(--text)}.t-card-title{font-size:17px;font-weight:800;letter-spacing:-.3px;color:var(--text)}.t-body{font-size:15px;font-weight:500;color:var(--text)}.t-subtitle{font-size:13px;font-weight:600;color:var(--muted)}.t-eyebrow{font-size:10px;font-weight:800;letter-spacing:3px;text-transform:uppercase;color:var(--subtle)}.section-rule{display:flex;align-items:center;gap:12px;margin:28px 0 16px}.section-rule:before,.section-rule:after{content:"";flex:1;height:1px;background:var(--border-soft)}.section-rule span{white-space:nowrap}.header-block{text-align:center;display:flex;flex-direction:column;align-items:center;gap:10px}.app-mark,.icon-tile-lg{width:64px;height:64px;border-radius:var(--r-2xl);background:var(--brand-grad);box-shadow:var(--shadow-brand);display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}.app-mark:after,.icon-tile-lg:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:var(--gloss)}.app-mark svg,.icon-tile-lg svg{width:30px;height:30px;stroke:var(--on-brand);position:relative;z-index:1}.app-mark.is-logo{background:none;box-shadow:none;border-radius:0;overflow:visible}.app-mark.is-logo:after{content:none}.app-mark.is-logo svg{width:64px;height:64px;stroke:none;display:block;filter:drop-shadow(0 6px 14px rgba(15,23,42,.18))}.back-pill{position:absolute;top:28px;left:20px;display:inline-flex;align-items:center;gap:6px;background:var(--card);border-radius:var(--r-full);box-shadow:var(--shadow-soft);padding:10px 16px 10px 12px;font-size:14px;font-weight:700;color:var(--text);text-decoration:none}.back-pill svg{width:16px;height:16px;stroke:var(--text)}.tray{background:var(--card);border-radius:var(--r-2xl);box-shadow:var(--shadow-card);padding:14px;display:flex;flex-direction:column;gap:10px}.tray-row{display:flex;gap:10px}.tile{flex:1;background:var(--brand-tile);border-radius:var(--r-xl);padding:16px;position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;gap:32px;min-height:108px;text-decoration:none;box-shadow:var(--shadow-brand)}.tile:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:var(--gloss);pointer-events:none}.tile-icon{width:34px;height:34px;border-radius:var(--r-md);background:var(--brand-lift);display:flex;align-items:center;justify-content:center;position:relative;z-index:1}.tile-icon svg{width:18px;height:18px;stroke:var(--on-brand)}.tile-title{font-size:17px;font-weight:800;letter-spacing:-.3px;color:var(--on-brand);position:relative;z-index:1}.tile-sub{font-size:13px;font-weight:600;color:var(--on-brand);opacity:.78;margin-top:2px;position:relative;z-index:1}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:48px;padding:0 22px;border-radius:var(--r-full);font-size:15px;font-weight:800;font-family:var(--font-stack);border:none;cursor:pointer;text-decoration:none;transition:transform var(--motion-press),box-shadow var(--motion-press)}.btn:active{transform:scale(.98)}.btn-block{width:100%}.btn-primary{background:var(--brand-grad);color:var(--on-brand);box-shadow:var(--shadow-brand);position:relative;overflow:hidden}.btn-primary:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:var(--gloss);pointer-events:none}.btn-secondary{background:var(--card);color:var(--text);box-shadow:var(--shadow-soft)}.btn svg{width:18px;height:18px;position:relative;z-index:1}.btn-primary svg{stroke:var(--on-brand)}.btn-secondary svg{stroke:var(--text)}.bottom-nav{position:fixed;bottom:0;left:50%;transform:translate(-50%);width:var(--col-width);max-width:100%;background:var(--card);display:flex;border-top:1px solid var(--border-soft);padding:10px 0 14px}.nav-item{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;text-decoration:none;color:var(--subtle);font-size:11px;font-weight:700}.nav-item svg{width:22px;height:22px;stroke:var(--subtle)}.nav-item.active{color:var(--brand)}.nav-item.active svg{stroke:var(--brand)}.screen--history{display:flex;flex-direction:column;overflow:hidden}.history-head{width:100%;max-width:352px;margin:36px auto 12px;text-align:center;flex:0 0 auto}.history-icon{width:48px;height:48px;margin:0 auto 10px;border-radius:var(--r-lg);background:var(--brand-tile);display:grid;place-items:center}.history-icon svg{width:24px;height:24px;stroke:var(--on-brand)}.history-head h1{font-size:22px;font-weight:900;letter-spacing:-.3px}.history-head p{margin-top:4px;font-size:12px;font-weight:600;color:var(--subtle)}.history-list{width:100%;max-width:352px;min-height:0;margin:0 auto;flex:1 1 auto;overflow-y:auto;display:flex;flex-direction:column;gap:10px;padding:2px 2px 12px}.history-row{min-height:67px;padding:10px 14px;border-radius:var(--r-md);background:var(--card);box-shadow:var(--shadow-soft);display:flex;align-items:center;gap:10px}.history-row-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.history-row-main strong{font-size:14px;font-weight:800}.history-row-main span,.history-row-main time{color:var(--muted);font-size:11px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.history-result{color:var(--brand);font-size:13px;font-weight:800;flex:0 0 auto}.history-result.is-draw{color:var(--muted)}.history-empty{padding:20px 14px;text-align:center;color:var(--muted);font-size:13px;font-weight:600}.history-filters{width:100%;max-width:352px;margin:0 auto 16px;padding:18px;border-radius:var(--r-lg);background:var(--card);box-shadow:var(--shadow-card);flex:0 0 auto}.history-filter-row{display:flex;gap:8px;margin-bottom:10px}.history-filter-row:last-of-type{margin-bottom:0}.history-load-more{width:100%;min-height:42px;flex:0 0 auto;border:1.5px solid var(--border);border-radius:var(--r-md);background:var(--card);color:var(--text);font:800 12px var(--font-stack);cursor:pointer}.history-load-more:focus-visible{outline:2px solid var(--brand);outline-offset:2px}.history-load-more:disabled{opacity:.65;cursor:default}.history-google{width:100%;max-width:352px;margin:0 auto 12px;display:grid;justify-items:center;gap:8px;flex:0 0 auto}.history-google p{color:var(--muted);font-size:11px;font-weight:600;text-align:center}.history-google-fallback,.history-google-choice button{min-height:40px;padding:8px 12px;border:1px solid var(--border);border-radius:var(--r-md);background:var(--card);color:var(--text);font:800 12px/1.2 var(--font-stack)}.history-google-fallback:disabled{opacity:.55}.history-google-choice{display:flex;gap:8px}.history-google-choice button{cursor:pointer}.history-head{margin-bottom:20px}.history-icon{width:64px;height:64px;border-radius:var(--r-2xl);margin-bottom:12px;background:var(--brand-grad);box-shadow:var(--shadow-brand)}.history-icon svg{width:30px;height:30px;color:var(--on-brand)}.history-account{width:100%;max-width:352px;margin:0 auto;padding:18px;border-radius:var(--r-lg);background:var(--card);box-shadow:var(--shadow-card);flex:0 0 auto}.history-account-head{display:flex;align-items:center;gap:12px}.history-avatar{display:grid;place-items:center;flex:0 0 46px;height:46px;border-radius:var(--r-full);color:var(--on-brand);background:var(--brand-grad);font-size:18px;font-weight:900}.history-account-head strong{display:block;font-size:15px;font-weight:900}.history-account-head small{display:block;margin-top:4px;color:var(--brand-deep);font-size:11px;font-weight:800}.history-account>p{margin-top:14px;color:var(--subtle);font-size:12px;line-height:1.5}.history-account>p[role=status]{color:var(--muted)}.history-account .history-google{margin:18px 0 0;display:block}.history-account .history-google-fallback{min-height:49px;width:100%}.history-account .history-google-choice{margin-top:18px}.history-account .history-google-choice button{flex:1;min-height:42px;background:var(--bg)}.history-section{width:100%;max-width:352px;margin:28px auto 10px;display:flex;align-items:baseline;justify-content:space-between;flex:0 0 auto}.history-section strong{font-size:14px;font-weight:900}.history-section span{color:var(--subtle);font-size:11px;font-weight:600}.history-list{gap:8px}.history-empty{padding:28px 16px;border-radius:var(--r-lg);background:var(--card);box-shadow:var(--shadow-card);color:var(--subtle);font-size:12px}.screen--options{display:flex;flex-direction:column;align-items:center;overflow:hidden}.options-head{width:100%;max-width:352px;margin:12px auto 0;text-align:center;flex:0 0 auto}.options-icon{width:64px;height:64px;margin:0 auto 12px;display:grid;place-items:center;border-radius:var(--r-2xl);color:var(--on-brand);background:var(--brand-grad);box-shadow:var(--shadow-brand)}.options-icon svg{width:30px;height:30px;color:var(--on-brand);stroke:var(--on-brand)}.options-head h1{font-size:22px;font-weight:900;letter-spacing:-.3px}.options-head p{margin-top:4px;color:var(--subtle);font-size:12px;font-weight:600}.options-content{width:100%;min-height:0;flex:1 1 auto;overflow-y:auto;padding:22px 2px 20px}.options-content .history-account{margin-bottom:16px}.options-content .history-account h2{margin-bottom:14px;color:var(--subtle);font-size:10px;font-weight:700;letter-spacing:1px;text-transform:uppercase}.options-card{width:100%;max-width:352px;margin:0 auto;padding:20px;border-radius:var(--r-lg);background:var(--card);box-shadow:var(--shadow-card)}.options-content .profile-stats,.options-content .profile-privacy{margin-bottom:16px}.profile-stats h2,.profile-privacy h2{margin:0 0 12px;color:var(--subtle);font-size:10px;font-weight:700;letter-spacing:1px;text-transform:uppercase}.profile-filters{display:flex;gap:8px}.profile-filters label,.history-filters label{flex:1;min-width:0;color:var(--subtle);font-size:10px;font-weight:800;letter-spacing:.7px;text-transform:uppercase}.profile-filters select,.history-filters select{display:block;width:100%;height:40px;margin-top:5px;padding:0 9px;border:1.5px solid var(--border);border-radius:var(--r-md);background:var(--bg);color:var(--text);font:700 12px var(--font-stack)}.profile-filters select:focus-visible,.history-filters select:focus-visible{outline:2px solid var(--brand);outline-offset:2px}.profile-counts{display:flex;gap:8px;margin-top:12px}.profile-counts span{flex:1;min-width:0;padding:9px 4px;border-radius:var(--r-md);background:var(--bg);text-align:center;color:var(--subtle);font-size:11px}.profile-counts strong{display:block;color:var(--text);font-size:18px;font-weight:900}.profile-stats-message{margin-top:12px;color:var(--subtle);font-size:12px}.profile-rating-note,.history-rating-note{margin-top:12px;padding:10px;border-radius:var(--r-md);background:var(--bg);color:var(--subtle);font-size:11px;line-height:1.5}.profile-privacy p{color:var(--subtle);font-size:12px;line-height:1.5}.profile-privacy .history-google-choice{margin-top:12px}.profile-privacy .history-google-choice button{flex:1}.options-field{margin-bottom:18px}.options-field:last-child{margin-bottom:0}.options-field h2{margin-bottom:8px;color:var(--subtle);font-size:10px;font-weight:700;letter-spacing:1px;text-transform:uppercase}.options-switch{width:100%;min-height:53px;padding:12px 14px;border:1.5px solid var(--border);border-radius:10px;background:var(--bg);display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--text);text-align:left;font:700 13px/1.2 var(--font-stack);cursor:pointer}.options-switch:focus-visible{outline:2px solid var(--brand);outline-offset:2px}.options-switch:disabled{opacity:.65;cursor:default}.options-track{flex:0 0 44px;height:26px;padding:3px;border-radius:13px;background:var(--border);display:flex;justify-content:flex-start;transition:background var(--motion-press)}.options-track.is-on{background:var(--easy);justify-content:flex-end}.options-track>span{width:20px;height:20px;border-radius:var(--r-full);background:var(--card);box-shadow:var(--shadow-soft)}.options-field p{margin-top:6px;color:var(--subtle);font-size:11px;line-height:1.4}html[data-reduce-motion=true] *,html[data-reduce-motion=true] *:before,html[data-reduce-motion=true] *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.form-card{background:var(--card);border-radius:var(--r-xl);box-shadow:var(--shadow-card);padding:20px;display:flex;flex-direction:column;gap:12px}.field-label{font-size:13px;font-weight:600;color:var(--muted)}.field-input{height:48px;border-radius:var(--r-lg);border:1px solid var(--border);background:var(--card);padding:0 16px;font-size:15px;font-weight:500;color:var(--text);font-family:var(--font-stack);width:100%}.field-input::placeholder{color:var(--subtle)}.field-input:focus{border-color:var(--brand);outline:none}.code-card{background:var(--card);border-radius:var(--r-2xl);box-shadow:var(--shadow-card);padding:36px 24px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:18px}.room-code{font-size:34px;font-weight:900;letter-spacing:6px;color:var(--text)}.status-line{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px;font-weight:600}.pulse-dot{width:8px;height:8px;border-radius:50%;background:var(--easy);animation:pulse 1.2s ease-in-out infinite}@keyframes pulse{0%,to{opacity:1}50%{opacity:.35}}.match-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.match-brand{display:flex;align-items:center;gap:8px;font-size:17px;font-weight:800;letter-spacing:-.3px;color:var(--text)}.mark-sm{width:32px;height:32px;border-radius:var(--r-md);background:var(--brand-grad);display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}.mark-sm:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:var(--gloss)}.mark-sm svg{width:18px;height:18px;stroke:var(--on-brand);position:relative;z-index:1}.leave-pill{display:inline-flex;align-items:center;gap:6px;background:var(--card);border-radius:var(--r-full);box-shadow:var(--shadow-soft);padding:9px 14px;font-size:11px;font-weight:800;color:var(--text);text-decoration:none}.leave-pill svg{width:14px;height:14px;stroke:var(--text)}.score-row{display:flex;align-items:stretch;gap:8px;margin-bottom:10px}.score-card{flex:1;border-radius:var(--r-xl);padding:8px 10px;display:flex;flex-direction:column;gap:4px;position:relative;overflow:hidden;transition:opacity var(--motion-press),box-shadow var(--motion-press)}.score-card.red{background:var(--red-grad)}.score-card.blue{background:var(--blue-grad)}.score-card:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:var(--gloss);pointer-events:none}.score-card.is-inactive{opacity:.82}.score-card.is-active{box-shadow:var(--shadow-lift)}.score-sphere{width:22px;height:22px;border-radius:50%;position:relative;overflow:hidden;z-index:1}.score-sphere.red{background:var(--red-grad)}.score-sphere.blue{background:var(--blue-grad)}.score-sphere:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:var(--gloss)}.score-top-row{display:flex;align-items:center;gap:6px}.score-name{font-size:16px;font-weight:900;color:var(--on-brand);position:relative;z-index:1;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.score-timer{position:relative;z-index:1;width:26px;height:26px;flex-shrink:0;display:flex;align-items:center;justify-content:center}.score-timer svg{width:100%;height:100%;transform:rotate(-90deg)}.score-timer-track{fill:none;stroke:var(--on-brand);opacity:.28;stroke-width:2.5}.score-timer-progress{fill:none;stroke:var(--on-brand);stroke-width:2.5;stroke-linecap:round;transition:stroke-dashoffset .32s linear}.score-timer.is-idle .score-timer-progress{opacity:.28}.score-timer-num{position:absolute;font-size:9px;font-weight:800;color:var(--on-brand)}.score-timer.is-warning .score-timer-progress{stroke:var(--clock-low)}.score-timer.is-warning .score-timer-num{color:var(--clock-low)}.score-timer.is-warning{animation:timer-warn-flash var(--motion-pulse) ease-in-out 1}@keyframes timer-warn-flash{0%,to{opacity:1}50%{opacity:.4}}.score-nickname{font-size:11px;font-weight:700;color:var(--on-brand);opacity:.78;position:relative;z-index:1;margin-top:-2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.score-walls{display:flex;align-items:center;gap:6px;color:var(--on-brand);font-size:13px;font-weight:800;opacity:.92;position:relative;z-index:1}.score-walls svg{width:14px;height:14px;stroke:var(--on-brand)}.vs-divider{width:32px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;background:var(--card);border-radius:var(--r-lg);box-shadow:var(--shadow-soft);font-size:11px;font-weight:800;color:var(--subtle);letter-spacing:1px}.kebab{display:flex;flex-direction:column;gap:3px}.kebab span{width:3px;height:3px;border-radius:50%;background:var(--subtle)}.turn-banner{display:flex;align-items:center;justify-content:center;gap:12px;margin:4px 0 8px}.turn-banner .rule{flex:1;height:1px}.turn-banner.is-red .rule{background:var(--red)}.turn-banner.is-blue .rule{background:var(--blue)}.turn-banner .label{display:flex;align-items:center;gap:6px;font-size:10px;font-weight:800;letter-spacing:3px;white-space:nowrap}.turn-banner.is-red .label{color:var(--red)}.turn-banner.is-blue .label{color:var(--blue)}.board-area{flex:1 1 auto;min-height:0;display:flex;align-items:center;justify-content:center;container-type:size}.board-bezel{background:var(--board-frame);border-radius:var(--r-2xl);padding:18px;position:relative;box-shadow:var(--shadow-card);width:min(100cqw,100cqh,var(--board-col-width-desktop, var(--col-width)));height:min(100cqw,100cqh,var(--board-col-width-desktop, var(--col-width)));aspect-ratio:1 / 1}.board-bezel:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-radius:var(--r-2xl);background:var(--board-gloss);pointer-events:none}.board-nub{position:absolute;top:50%;width:8px;height:18px;margin-top:-9px;border-radius:var(--r-xs);background:var(--muted);opacity:.3}.board-nub.left{left:5px}.board-nub.right{right:5px}.playfield{position:relative;aspect-ratio:1 / 1;border-radius:var(--r-lg);overflow:hidden;background:var(--cell-a)}.board-grid{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;grid-template-columns:repeat(9,1fr);grid-template-rows:repeat(9,1fr)}.cell{border:.5px solid var(--cell-line)}.cell.b{background:var(--cell-b)}.cell.a{background:var(--cell-a)}.goal-band{position:absolute;left:0;right:0;height:11.11%;pointer-events:none}.goal-band.top{top:0}.goal-band.bottom{bottom:0}.goal-band.top.zone-red{background-image:var(--red-zone);border-bottom:1px solid var(--red)}.goal-band.top.zone-blue{background-image:var(--blue-zone);border-bottom:1px solid var(--blue)}.goal-band.bottom.zone-blue{background-image:var(--blue-zone);border-top:1px solid var(--blue)}.goal-band.bottom.zone-red{background-image:var(--red-zone);border-top:1px solid var(--red)}.pawn{position:absolute;width:9.6%;aspect-ratio:1 / 1;border-radius:50%;transform:translate(-50%,-50%);box-shadow:var(--shadow-soft);overflow:hidden}.pawn.red{background:var(--red-grad)}.pawn.blue{background:var(--blue-grad)}.pawn:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:var(--gloss)}.move-dot-hit{position:absolute;width:calc(100% / 9);height:calc(100% / 9);transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;background:transparent;border:0;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}.move-dot{width:32.4%;aspect-ratio:1 / 1;border-radius:50%;opacity:.55}.move-dot.red{background:var(--red-grad)}.move-dot.blue{background:var(--blue-grad)}.wall{position:absolute;border-radius:var(--r-xs);transform:translate(-50%,-50%)}.wall.is-solid{background:var(--wall)}.wall.is-ghost{background:var(--wall-ghost)}.action-tray{background:var(--card);border-radius:var(--r-2xl);box-shadow:var(--shadow-card);padding:12px;margin-top:10px;text-align:center}.action-tray .t-eyebrow{display:block;margin-bottom:6px}.wall-count{font-size:15px;font-weight:800;color:var(--text);margin-bottom:8px}.orient-toggle{display:flex;gap:10px;justify-content:center}.orient-btn{width:64px;height:44px;border-radius:var(--r-lg);border:1px solid var(--border);background:var(--card);display:flex;align-items:center;justify-content:center}.orient-btn.is-selected{background:var(--card-dark);border-color:var(--card-dark);box-shadow:var(--shadow-soft)}.orient-btn svg{width:22px;height:22px;stroke:var(--text)}.orient-btn.is-selected svg{stroke:var(--on-brand)}.notice-slot{min-height:68px;margin-top:10px}.notice{display:flex;align-items:flex-start;gap:10px;background:var(--card);border-radius:var(--r-lg);box-shadow:var(--shadow-soft);padding:14px 16px;text-align:left}.notice svg{width:20px;height:20px;stroke:var(--hard);flex-shrink:0;margin-top:1px}.notice p{font-size:13px;font-weight:600;color:var(--text);line-height:1.4}.notice strong{color:var(--hard);font-weight:800}.result-wrap{display:flex;flex-direction:column;align-items:center;gap:20px;text-align:center;margin-top:14vh}.result-sphere{width:88px;aspect-ratio:1 / 1;border-radius:50%;position:relative;overflow:hidden;box-shadow:var(--shadow-lift)}.result-sphere.red{background:var(--red-grad)}.result-sphere.blue{background:var(--blue-grad)}.result-sphere:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:var(--gloss)}.result-actions{display:flex;flex-direction:column;gap:12px;width:100%;margin-top:8px}.wall-slot{position:absolute;transform:translate(-50%,-50%);background:transparent;border:0;width:calc(100% / 9);height:calc(100% / 9);cursor:pointer;touch-action:none;-webkit-tap-highlight-color:transparent;z-index:1}.move-dot-hit{z-index:2}.wall.is-solid,.wall.is-ghost,.pawn,.move-dot{pointer-events:none}.score-card.pulse-turn.red{animation:turn-pulse-red var(--motion-pulse) ease-out}.score-card.pulse-turn.blue{animation:turn-pulse-blue var(--motion-pulse) ease-out}@keyframes turn-pulse-red{0%{box-shadow:var(--shadow-lift)}50%{box-shadow:var(--shadow-lift),0 0 0 3px var(--red)}to{box-shadow:var(--shadow-lift)}}@keyframes turn-pulse-blue{0%{box-shadow:var(--shadow-lift)}50%{box-shadow:var(--shadow-lift),0 0 0 3px var(--blue)}to{box-shadow:var(--shadow-lift)}}.btn.is-disabled{opacity:.45;pointer-events:none}.status-pill{display:inline-flex;align-items:center;gap:6px;background:var(--card);border-radius:var(--r-full);box-shadow:var(--shadow-soft);padding:9px 14px;font-size:11px;font-weight:800;color:var(--text)}.pulse-dot.is-reconnecting{background:var(--normal)}.pulse-dot.is-disconnected{background:var(--hard);animation:none}.notice.is-positive svg{stroke:var(--easy)}.notice.is-positive strong{color:var(--easy)}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}.sound-toggle{display:inline-flex;align-items:center;gap:4px;background:var(--card);border-radius:var(--r-full);box-shadow:var(--shadow-soft);padding:4px}.sound-btn{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;border:0;background:transparent;border-radius:var(--r-full);cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background var(--motion-press)}.sound-btn svg{width:15px;height:15px;stroke:var(--subtle)}.sound-btn.is-on svg{stroke:var(--text)}.sound-btn:hover{background:var(--border-soft)}.sound-btn:active{transform:scale(.98)}.sound-toggle.is-floating{position:absolute;top:16px;right:16px;z-index:3}.match-header-right{display:inline-flex;align-items:center;gap:8px}.chat-fab{position:fixed;bottom:20px;right:20px;width:52px;height:52px;border:0;border-radius:var(--r-full);background:var(--brand-grad);box-shadow:var(--shadow-brand);display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:50;-webkit-tap-highlight-color:transparent;transition:transform var(--motion-press)}.chat-fab:active{transform:scale(.96)}.chat-fab svg{width:22px;height:22px;stroke:var(--on-brand)}.chat-badge{position:absolute;top:-2px;right:-2px;min-width:20px;height:20px;padding:0 4px;border-radius:var(--r-full);border:2px solid var(--bg);background:var(--hard);color:var(--on-brand);font-size:11px;font-weight:800;display:flex;align-items:center;justify-content:center}.chat-panel{position:fixed;bottom:84px;right:20px;width:min(320px,calc(100vw - 40px));height:min(420px,calc(100vh - 140px));background:var(--card);border-radius:var(--r-2xl);box-shadow:var(--shadow-card);display:flex;flex-direction:column;overflow:hidden;z-index:51}.chat-panel-header{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid var(--border-soft);flex-shrink:0}.chat-close-btn{width:28px;height:28px;padding:0;border:0;border-radius:var(--r-full);background:transparent;display:flex;align-items:center;justify-content:center;cursor:pointer;-webkit-tap-highlight-color:transparent}.chat-close-btn:hover{background:var(--border-soft)}.chat-close-btn svg{width:14px;height:14px;stroke:var(--muted)}.chat-messages{flex:1;overflow-y:auto;padding:12px 16px;display:flex;flex-direction:column;gap:8px}.chat-empty{margin-top:20px;color:var(--subtle);font-size:13px;text-align:center}.chat-bubble{max-width:80%;padding:8px 12px;border-radius:var(--r-lg);font-size:14px;font-weight:500;line-height:1.4;word-break:break-word}.chat-bubble.is-self{align-self:flex-end;background:var(--brand-grad);color:var(--on-brand);border-bottom-right-radius:var(--r-xs)}.chat-bubble.is-other{align-self:flex-start;background:var(--border-soft);color:var(--text);border-bottom-left-radius:var(--r-xs)}.chat-input-row{display:flex;align-items:center;gap:8px;padding:12px 16px;border-top:1px solid var(--border-soft);flex-shrink:0}.chat-input{flex:1;min-width:0;border:1px solid var(--border);border-radius:var(--r-full);padding:9px 14px;font-size:14px;font-family:var(--font-stack);color:var(--text);background:var(--card);outline:none}.chat-input:focus{border-color:var(--brand)}.chat-send-btn{width:34px;height:34px;flex-shrink:0;padding:0;border:0;border-radius:var(--r-full);background:var(--brand-grad);display:flex;align-items:center;justify-content:center;cursor:pointer;-webkit-tap-highlight-color:transparent}.chat-send-btn:disabled{opacity:.5;cursor:not-allowed}.chat-send-btn svg{width:15px;height:15px;stroke:var(--on-brand)}.screen--setup{display:flex;flex-direction:column}.setup-head{margin-top:0}.head-title{margin-top:6px}.menu-head{margin-top:64px}.menu-main{margin-top:28px}.header-block .rules-summary{margin-top:-4px}.room-main{display:flex;flex-direction:column;gap:12px}.room-or{margin:6px 0}.room-notice{margin-top:12px}.pick-label{display:flex;align-items:center;gap:8px;padding-left:2px;margin:18px 0 9px;font-size:10.5px;font-weight:800;letter-spacing:1.5px;text-transform:uppercase;color:var(--subtle)}.pick-label:before{content:"";flex-shrink:0;width:3.5px;height:13px;border-radius:var(--r-xs);background:var(--subtle);opacity:.5}.pick-row{display:flex;gap:6px}.pick{flex:1;height:39px;padding:11px 4px;border-radius:var(--r-pick);font-family:var(--font-stack);font-size:12px;font-weight:800;letter-spacing:.3px;white-space:nowrap;display:flex;align-items:center;justify-content:center;background:var(--card);color:var(--text);border:1.5px solid var(--border-pick);box-shadow:var(--shadow-pick);cursor:pointer;transition:transform var(--motion-press),box-shadow var(--motion-press)}.pick:active{transform:scale(.98)}.pick.is-selected{background:var(--brand-pick);color:var(--on-brand);border-color:transparent;box-shadow:var(--shadow-pick-on)}.pick-row.is-disabled{opacity:.45;pointer-events:none}.rules-summary{font-size:11px;font-weight:700;color:var(--subtle)}.pick-help{margin-top:6px;padding-left:2px}.toggle-card{display:flex;align-items:center;gap:10px;width:100%;height:53px;margin-top:18px;padding:11px 12px;border-radius:var(--r-sm);background:var(--card);border:1.5px solid var(--border);color:var(--text);font-family:var(--font-stack);text-align:left;cursor:pointer;transition:transform var(--motion-press),box-shadow var(--motion-press)}.toggle-card:active{transform:scale(.98)}.toggle-icon{width:24px;height:24px;flex-shrink:0;display:flex;align-items:center;justify-content:center}.toggle-icon svg{width:24px;height:24px;stroke:var(--muted)}.toggle-title{display:block;font-size:13px;font-weight:800}.toggle-line{display:block;font-size:9px;font-weight:600;opacity:.8;margin-top:2px}.toggle-card.is-on{background:var(--brand);border-color:var(--brand);color:var(--on-brand);box-shadow:var(--shadow-toggle-on)}.toggle-card.is-on .toggle-icon svg{width:18px;height:18px;stroke:var(--on-brand)}.more-row{display:flex;align-items:center;gap:12px;margin-top:18px;padding:12px 14px;background:var(--card);border-radius:var(--r-lg);box-shadow:var(--shadow-card);color:var(--text);text-decoration:none;transition:transform var(--motion-press)}.more-row:active{transform:scale(.98)}.more-text{flex:1;min-width:0}.more-title{display:block;font-size:14px;font-weight:900;letter-spacing:-.3px}.more-row .rules-summary{display:block;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.more-row svg{width:16px;height:16px;stroke:var(--subtle);flex-shrink:0}.setup-cta{margin-top:22px}.clock-pill{position:relative;z-index:1;align-self:flex-start;display:inline-flex;align-items:center;gap:4px;padding:3px 8px;border-radius:var(--r-clock);border:1px solid var(--clock-pill-border);background:var(--clock-pill-bg-idle);color:var(--on-brand);opacity:.82;transition:background var(--motion-press),box-shadow var(--motion-press)}.clock-pill.is-running{background:var(--clock-pill-bg);box-shadow:var(--clock-pill-ring);opacity:1}.clock-pill svg{width:11px;height:11px;stroke:currentColor;opacity:.9}.clock-digits{font-size:14px;font-weight:900;letter-spacing:.3px;line-height:14px;font-variant-numeric:tabular-nums}.clock-pill.is-low{color:var(--clock-low)}.series-score{font-size:15px;font-weight:800;letter-spacing:0;color:var(--text);font-variant-numeric:tabular-nums;white-space:nowrap}.tray-controls{display:flex;align-items:center;justify-content:center;gap:16px}.undo-btn{display:inline-flex;align-items:center;gap:6px;height:44px;padding:0 12px;border-radius:var(--r-lg);border:1px solid var(--border);background:var(--card);color:var(--text);font-family:var(--font-stack);font-size:13px;font-weight:800;cursor:pointer;transition:transform var(--motion-press)}.undo-btn:active{transform:scale(.98)}.undo-btn svg{width:18px;height:18px;stroke:var(--text)}.undo-btn.is-disabled{opacity:.45;pointer-events:none}.goal-band.left,.goal-band.right{top:0;bottom:0;width:11.11%;height:auto}.goal-band.left{left:0;right:auto;background-image:var(--red-zone-x);border-right:1px solid var(--red)}.goal-band.right{right:0;left:auto;background-image:var(--blue-zone-x);border-left:1px solid var(--blue)}.board-nub.top,.board-nub.bottom{left:50%;width:18px;height:8px;margin:0 0 0 -9px}.board-nub.top{top:5px}.board-nub.bottom{top:auto;bottom:5px}@media(min-width:768px){.screen--board .tray-controls{flex-direction:column;gap:10px}}.result-hero{display:flex;flex-direction:column;align-items:center;gap:20px}.result-sub{margin-top:6px}.result-main{display:flex;flex-direction:column;align-items:center;gap:14px;width:100%}.score-board{width:100%;background:var(--card);border-radius:var(--r-2xl);box-shadow:var(--shadow-card);padding:18px 20px;display:flex;flex-direction:column;align-items:center;gap:10px}.score-line{display:flex;align-items:center;justify-content:center;gap:14px;width:100%}.score-side{flex:1;display:flex;align-items:center;gap:8px;min-width:0}.score-side.is-right{justify-content:flex-end}.score-side .score-sphere{width:22px;height:22px}.score-figures{font-size:32px;font-weight:900;letter-spacing:-1.8px;color:var(--text);font-variant-numeric:tabular-nums;white-space:nowrap}.result-main .result-actions{margin-top:0}@media(max-height:500px)and (orientation:landscape){.screen.screen--split{width:var(--form-max-width);padding:16px 20px;display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr);grid-template-rows:auto 1fr;grid-template-areas:"back main" "head main";column-gap:24px;row-gap:12px}.screen--split .back-pill{position:static;grid-area:back;justify-self:start;align-self:start}.screen--split .header-block{grid-area:head;align-self:center;margin-top:0}.screen--split .header-block .t-subtitle{text-wrap:balance}.screen--split .split-main{grid-area:main;align-self:center;margin-top:0}.screen.screen--room{grid-template-rows:auto 1fr auto;grid-template-areas:"back main" "head main" "note main"}.screen--room .room-main{gap:8px}.screen--room .room-or{margin:0}.screen--room .form-card{padding:16px;gap:8px}.screen--room .room-notice{grid-area:note;margin-top:0}.screen.screen--setup{grid-template-rows:auto 1fr auto auto;grid-template-areas:"back fields" "head fields" "more fields" "cta  fields"}.screen--setup .setup-fields{grid-area:fields;align-self:center}.screen--setup .setup-fields>.pick-label:first-child{margin-top:0}.screen--setup .more-row{grid-area:more;margin-top:0}.screen--setup .setup-cta{grid-area:cta;margin-top:0}.screen.screen--result{width:var(--form-max-width);padding:16px 20px}.screen--result .result-wrap{height:100%;margin-top:0;display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr);column-gap:24px;align-items:center}}@media(max-height:500px)and (orientation:landscape){.screen.screen--board:not(.screen--duo){width:100%;max-width:100%;padding:12px 16px;display:grid;grid-template-columns:calc(100vh - 24px) minmax(0,var(--col-width));grid-template-rows:auto auto auto auto 1fr;grid-template-areas:"board header" "board score" "board turn" "board tray" "board .";justify-content:center;column-gap:20px;row-gap:8px}.screen--board:not(.screen--duo) .match-header{grid-area:header;margin:0}.screen--board:not(.screen--duo) .match-brand{display:none}.screen--board:not(.screen--duo) .score-row{grid-area:score;margin:0}.screen--board:not(.screen--duo) .turn-banner{grid-area:turn;margin:0}.screen--board:not(.screen--duo) .board-area{grid-area:board}.screen--board:not(.screen--duo) .action-tray{grid-area:tray;align-self:start;margin:0}.screen--board:not(.screen--duo) .tray-controls{flex-direction:row;gap:16px}.screen--board:not(.screen--duo) .notice-slot{grid-area:board;align-self:end;position:relative;z-index:3;min-height:0;margin:0 12px 12px}}.player-tray{display:none}.series-pips{display:flex;gap:3px;position:relative;z-index:1;flex-shrink:0}.pip{width:6px;height:6px;border-radius:50%;background:var(--on-brand);opacity:.28}.pip.is-won{opacity:1}@media(max-width:767px),(max-height:500px)and (orientation:landscape){.screen--setup .field-orient{display:none}.screen.screen--board.screen--duo{width:var(--col-width);max-width:100%;padding:12px 16px;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto auto;grid-template-areas:"top" "board" "bar" "bottom";row-gap:8px;column-gap:0}.screen--duo .match-brand{display:none}.screen--duo .match-header{grid-area:bar;margin:0;justify-content:center}.screen--duo .board-area{grid-area:board}.screen--duo .player-tray{display:flex;flex-direction:column;gap:8px;padding:10px;background:var(--card);border-radius:var(--r-2xl);box-shadow:var(--shadow-card)}.screen--duo .player-tray.blue{grid-area:top;transform:rotate(180deg)}.screen--duo .player-tray.red{grid-area:bottom}.player-tray .score-card{flex:0 0 auto;flex-direction:row;align-items:center;gap:8px;padding:8px 12px;min-height:42px}.player-tray .tray-controls{flex-direction:row;gap:16px}.player-tray.is-waiting .orient-toggle{opacity:.45;pointer-events:none}.screen--duo .notice-slot{grid-area:board;align-self:end;position:relative;z-index:3;min-height:0;margin:0}.screen--duo.turn-blue .notice-slot{align-self:start;transform:rotate(180deg)}}@media(max-height:500px)and (orientation:landscape){.screen.screen--board.screen--duo{width:100%;padding:8px 16px;grid-template-columns:minmax(0,1fr) calc(100vh - 132px) minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto;grid-template-areas:"top    top    top" ".      board  bar" "bottom bottom bottom";row-gap:6px;column-gap:16px}.screen--duo .match-header{align-self:center;justify-self:center}.screen--duo .player-tray{flex-direction:row;align-items:center;gap:10px;padding:4px}.player-tray .score-card{flex:1 1 auto}}.choice-list{display:flex;flex-direction:column;gap:11px}.choice-row{display:flex;align-items:center;gap:12px;padding:12px 14px;background:var(--card);border-radius:var(--r-xl);box-shadow:var(--shadow-card);color:var(--text);text-decoration:none;transition:transform var(--motion-press)}.choice-row:active{transform:scale(.98)}.choice-text{flex:1;min-width:0}.choice-title{display:block;font-size:17px;font-weight:800;letter-spacing:-.3px}.choice-sub{display:block;margin-top:2px;font-size:13px;font-weight:600;color:var(--muted)}.choice-row>svg{width:16px;height:16px;stroke:var(--subtle);flex-shrink:0}.tray .choice-row{box-shadow:var(--shadow-soft)}.choice-tile{width:40px;height:40px;flex-shrink:0;border-radius:var(--r-md);position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center}.choice-tile:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:var(--gloss);pointer-events:none}.choice-tile.is-easy{background:var(--easy)}.choice-tile.is-normal{background:var(--normal)}.choice-tile.is-hard{background:var(--hard)}.choice-tile.is-master{background:var(--card-dark)}.choice-tile.is-brand{background:var(--brand-tile)}.arena-hub-tile{background:var(--brand-tile);color:var(--on-brand);font-size:25px;font-weight:700}.choice-tile.is-brand svg{width:20px;height:20px;stroke:var(--on-brand);position:relative;z-index:1}.choice-dot{width:13px;height:13px;border-radius:50%;background:var(--on-brand);position:relative;z-index:1}.choice-tile.is-board{background:var(--board-frame);padding:4px}.choice-tile.is-board:after{background:var(--board-gloss)}.thumb{width:32px;height:32px;display:block;position:relative;z-index:1}.thumb-field{fill:var(--cell-a)}.thumb-grid{fill:none;stroke:var(--border);stroke-width:1}.thumb-x{fill:none;stroke:var(--red);stroke-width:2;stroke-linecap:round}.thumb-o{fill:none;stroke:var(--blue);stroke-width:2}.thumb-wall{fill:var(--wall)}.thumb-red{fill:var(--red)}.thumb-blue{fill:var(--blue)}.hub-head .t-eyebrow{margin-top:-2px}@media(max-height:500px)and (orientation:landscape){.screen.screen--game{width:var(--form-max-width);padding:16px 20px 76px;display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr);grid-template-rows:auto 1fr;grid-template-areas:"back main" "head main";column-gap:24px;row-gap:12px}.screen--game .back-pill{position:static;grid-area:back;justify-self:start;align-self:start}.screen--game .header-block{grid-area:head;align-self:center}.screen--hub .header-block{grid-row:1 / 3}.screen--game .game-modes{grid-area:main;align-self:center}.screen--game .section-rule{margin:0 0 8px}.screen--game .game-modes>.tray+.section-rule{margin-top:12px}.screen--game .tile{gap:0;min-height:0;justify-content:center}.screen--game .tile-icon{display:none}}.svg-defs{position:absolute;width:0;height:0;overflow:hidden}.board-bezel.is-caro{padding:6px;border-radius:var(--r-xl)}.board-bezel.is-caro:before{border-radius:var(--r-xl)}.is-caro .playfield{border-radius:var(--r-md);background:var(--cell-a)}@media(min-width:768px)and (min-height:501px){.board-bezel.is-caro{padding:18px;border-radius:var(--r-2xl)}.board-bezel.is-caro:before{border-radius:var(--r-2xl)}.is-caro .playfield{border-radius:var(--r-lg)}}.caro-grid,.caro-pieces,.caro-hit{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%}.caro-grid{fill:none;stroke:var(--border)}.caro-grid path{stroke-width:1px;vector-effect:non-scaling-stroke}.caro-grid .center-mark{fill:var(--subtle);stroke:none;opacity:.5}.caro-pieces{pointer-events:none;overflow:visible}.caro-pieces use,.caro-glyph use,.caro-cell svg use{fill:none;stroke-width:1.5;stroke-linecap:round}.caro-pieces .x,.caro-cell .x use{stroke:var(--red)}.caro-pieces .o,.caro-cell .o use{stroke:var(--blue)}.caro-pieces .ghost{opacity:.32}.caro-pieces .last-mark{fill:none;stroke-width:.7;opacity:.5}.caro-pieces .last-mark.x{stroke:var(--red)}.caro-pieces .last-mark.o{stroke:var(--blue)}.caro-pieces .win-line{stroke-width:1.2;stroke-linecap:round;opacity:.9;animation:caro-strike var(--motion-enter) both}.caro-pieces .win-line.x{stroke:var(--red)}.caro-pieces .win-line.o{stroke:var(--blue)}@keyframes caro-strike{0%{stroke-dasharray:0 200}to{stroke-dasharray:200 0}}.caro-hit{display:grid;grid-template-columns:repeat(15,1fr);grid-template-rows:repeat(15,1fr)}.caro-cell{position:relative;padding:0;border:0;background:transparent;cursor:pointer;-webkit-tap-highlight-color:transparent}.caro-cell:disabled{cursor:default}.caro-cell:focus-visible{outline:2px solid var(--brand);outline-offset:-2px;border-radius:var(--r-xs)}.caro-cell svg{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;opacity:0;transition:opacity var(--motion-press)}@media(hover:hover)and (pointer:fine){.caro-cell:hover:not(:disabled) svg{opacity:.32}}.score-glyph{width:22px;height:22px;flex-shrink:0;position:relative;z-index:1}.caro-glyph{display:block}.caro-glyph use{stroke:var(--on-brand)}.score-level{font-size:11px;font-weight:700;color:var(--on-brand);opacity:.78;position:relative;z-index:1;white-space:nowrap}.score-top-row .score-level{margin-left:auto}.screen--caro .score-row .score-card{container:score-card / inline-size}@container score-card (max-width: 130px){.score-top-row:has(.score-level){flex-wrap:wrap;row-gap:0}.score-top-row .score-level{margin-left:0;flex-basis:100%}}.rules-card .rule-name{font-size:15px;font-weight:800;color:var(--text)}.rules-card .rules-summary{margin-top:2px}.rules-card .tray-controls{margin-top:10px}.screen--caro .board-area{position:relative}.board-notice{position:absolute;left:12px;right:12px;bottom:12px;z-index:3}.board-notice .notice{margin-top:0}.notice.is-info svg{stroke:var(--muted)}.notice.is-info strong{color:var(--text)}.result-sphere{display:flex;align-items:center;justify-content:center}.result-sphere .caro-glyph{width:44px;height:44px;position:relative;z-index:1}.result-pair{display:flex;justify-content:center;gap:10px}.result-pair .result-sphere{width:64px}.result-pair .result-sphere .caro-glyph{width:32px;height:32px}.score-side .score-sphere .caro-glyph{width:14px;height:14px}.score-side .score-sphere .caro-glyph use{stroke-width:1.8}@media(min-width:768px)and (min-height:501px){.screen--board.screen--caro{row-gap:8px}}@media(max-width:767px){.screen--board.screen--caro:not(.screen--duo){padding-left:16px;padding-right:16px}}@media(max-width:767px)and (min-height:501px){.screen--board.screen--caro:not(.screen--duo){container-type:inline-size}.screen--caro:not(.screen--duo) .board-area{max-height:100cqw}.screen--caro:not(.screen--duo) .score-row{margin-top:auto}.screen--caro:not(.screen--duo) .rules-card{margin-bottom:auto}}@media(max-width:767px),(max-height:500px)and (orientation:landscape){.rules-card{display:flex;align-items:center;gap:12px;text-align:left}.rules-card .rules-text{flex:1;min-width:0}.rules-card .tray-controls{margin-top:0}.screen--caro.screen--duo .player-tray{flex-direction:row;align-items:center;gap:8px}.screen--caro.screen--duo .player-tray .score-card{flex:1 1 auto;min-width:0}.screen--caro .player-tray .score-name{font-size:15px}}@media(max-height:500px)and (orientation:landscape){.screen--caro.screen--duo .match-header-right{flex-direction:column}.screen.screen--board.screen--caro.screen--duo{grid-template-columns:minmax(0,1fr) calc(100vh - 16px) minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;grid-template-areas:"top board bottom" "top board bar";padding:8px 16px;column-gap:12px;row-gap:8px}.screen--caro.screen--duo .player-tray{flex-direction:column;align-items:stretch;align-self:center;padding:8px}.screen--caro.screen--duo .player-tray .score-card{flex:0 0 auto;flex-wrap:wrap;row-gap:6px}.screen--caro.screen--duo .player-tray .tray-controls{justify-content:center}.screen--caro.screen--duo .match-header{align-self:end;justify-self:center}}@container score-card (max-width: 140px){.player-tray .score-glyph+.score-name{display:none}}.screen--choose{display:flex;flex-direction:column}.screen--choose .header-block{margin-top:64px}.screen--choose .choice-list{margin-top:28px}@media(max-height:500px)and (orientation:landscape){.screen--choose .header-block,.screen--choose .choice-list{margin-top:0}}.is-busy .caro-hit{pointer-events:none}@media(min-width:768px)and (min-height:501px){.screen--board{--score-zoom: 1.5}.score-row{zoom:var(--score-zoom)}.vs-divider{width:auto;min-width:32px;padding:8px 0}.series-score{padding:0 10px;font-size:calc(32px / var(--score-zoom));font-weight:900;letter-spacing:calc(-1.8px / var(--score-zoom));line-height:1}.screen--board{grid-template-rows:auto auto auto 1fr;grid-template-areas:"header  header" "score   tray" "turn    tray" "board   tray"}.screen--board .notice-slot{grid-area:board;align-self:end;position:relative;z-index:3;min-height:0;margin:0 12px 12px}}@media(min-width:768px)and (min-height:600px)and (orientation:landscape){.screen.screen--board{width:calc(min(100vh - 110px,var(--board-col-width-desktop)) + var(--tray-col-width-desktop) + 64px);grid-template-columns:minmax(0,1fr) var(--tray-col-width-desktop);grid-template-rows:auto 1fr auto auto auto 1fr;grid-template-areas:"header  header" "board   ." "board   score" "board   turn" "board   tray" "board   .";row-gap:0}.screen--board .score-row{flex-direction:column}.screen--board .kebab{display:none}.screen--board .turn-banner{margin:14px 0}.screen--board .action-tray{align-self:start}}@media(min-width:768px)and (min-height:600px)and (max-height:719.98px)and (orientation:landscape){.screen--board{--score-zoom: 1.25}}@media(min-width:768px)and (min-height:501px)and (max-height:655.98px)and (orientation:landscape){.screen--board{--score-zoom: 1}}@media(min-width:768px)and (min-height:501px)and (max-height:599.98px)and (orientation:landscape){.vs-divider{padding:0}.series-score{font-size:15px;font-weight:800;letter-spacing:0;line-height:normal}}@media(min-width:768px)and (min-height:501px)and (orientation:portrait){.screen--board{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto minmax(0,1fr) auto;grid-template-areas:"header" "score" "turn" "board" "tray"}.screen--board .action-tray{align-self:stretch;margin-top:10px}.screen--board .action-tray:not(.rules-card){display:grid;grid-template-columns:1fr auto;grid-template-areas:"eyebrow controls" "count   controls";align-items:center;column-gap:12px;padding:12px 16px;text-align:left}.action-tray:not(.rules-card) .t-eyebrow{grid-area:eyebrow;align-self:end;margin-bottom:2px}.action-tray:not(.rules-card) .wall-count{grid-area:count;align-self:start;margin-bottom:0}.action-tray:not(.rules-card)>.tray-controls,.action-tray:not(.rules-card)>.orient-toggle{grid-area:controls}.screen--board .tray-controls{flex-direction:row;gap:16px}.rules-card{display:flex;align-items:center;gap:12px;text-align:left}.rules-card .rules-text{flex:1;min-width:0}.rules-card .tray-controls{margin-top:0}}.screen--co-lon{--cl-w: 50;--cl-h: 70;--bz: 6px}.is-co-lon .playfield{aspect-ratio:var(--cl-w) / var(--cl-h);container-type:inline-size;overflow:visible}.colon-lines,.colon-marks,.colon-points{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%}.colon-lines,.colon-marks{overflow:visible;pointer-events:none}.colon-lines path{fill:none;stroke:var(--subtle);stroke-width:1.5px;stroke-linecap:round;vector-effect:non-scaling-stroke}.colon-lines .den{fill:var(--border-soft);stroke:none}.colon-lines .last-path{stroke-width:3px;stroke-linecap:round;opacity:.35;vector-effect:non-scaling-stroke}.colon-lines .last-from{fill:var(--cell-a);stroke-width:1.5px;opacity:.8;vector-effect:non-scaling-stroke}.colon-lines .red{stroke:var(--red)}.colon-lines .blue{stroke:var(--blue)}.pt{position:absolute;left:calc(var(--x) / var(--cl-w) * 100%);top:calc(var(--y) / var(--cl-h) * 100%);width:calc(var(--s) / var(--cl-w) * 100%);height:calc(var(--s) / var(--cl-h) * 100%);transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;padding:0;border:0;background:transparent;cursor:pointer;-webkit-tap-highlight-color:transparent}.pc{position:relative;width:calc(13.6cqw * 50 / var(--cl-w));height:calc(13.6cqw * 50 / var(--cl-w));border-radius:50%;overflow:hidden;box-shadow:var(--shadow-soft);display:flex;align-items:center;justify-content:center;transition:transform var(--motion-press),box-shadow var(--motion-press)}.pc:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:var(--gloss);pointer-events:none}.pc.red{background:var(--red-grad)}.pc.blue{background:var(--blue-grad)}.pc.is-con{width:calc(10.4cqw * 50 / var(--cl-w));height:calc(10.4cqw * 50 / var(--cl-w))}.pc-icon{width:62%;height:62%;stroke:var(--on-brand);position:relative;z-index:1}.pc.is-con .pc-icon{width:66%;height:66%}.pc.is-selected{transform:scale(1.08);box-shadow:var(--shadow-lift)}.pt.is-target:before{content:"";width:calc(4.8cqw * 50 / var(--cl-w));height:calc(4.8cqw * 50 / var(--cl-w));border-radius:50%;opacity:.55}.pt.is-target.red:before{background:var(--red-grad)}.pt.is-target.blue:before{background:var(--blue-grad)}.colon-marks circle{fill:none;stroke-width:2px;vector-effect:non-scaling-stroke}.colon-marks .cap-ring{stroke-dasharray:4 3}.colon-marks .red{stroke:var(--red)}.colon-marks .blue{stroke:var(--blue)}.colon-marks .sel-ring{opacity:.9}.board-bezel.is-co-lon{padding:var(--bz);width:min(100cqw,calc((100cqh - 2 * var(--bz)) * var(--cl-w) / var(--cl-h) + 2 * var(--bz)));height:auto;aspect-ratio:auto}@media(min-width:768px)and (min-height:501px){.screen--co-lon{--bz: 18px}}.screen--co-lon.is-horizontal{--cl-w: 70;--cl-h: 50}@media(min-width:768px)and (min-height:600px)and (orientation:landscape){.screen.screen--board.screen--co-lon.is-horizontal{width:calc((min(100vh - 110px,var(--board-col-width-desktop)) - 2 * var(--bz)) * var(--cl-w) / var(--cl-h) + 2 * var(--bz) + var(--tray-col-width-desktop) + 64px)}}@media(max-width:767px)and (min-height:501px){.screen--co-lon:not(.screen--duo) .board-area{max-height:calc((100cqw - 2 * var(--bz)) * var(--cl-h) / var(--cl-w) + 2 * var(--bz))}}@media(max-height:500px)and (orientation:landscape){.screen.screen--board.screen--co-lon{grid-template-columns:calc((100vh - 24px - 2 * var(--bz)) * var(--cl-w) / var(--cl-h) + 2 * var(--bz)) minmax(0,var(--col-width))}}.colon-glyph{stroke:var(--on-brand);fill:none}.score-card .colon-glyph+.score-name{font-size:16px}.screen--co-lon .score-nickname{margin-top:0}.rules-card .count-figure{font-variant-numeric:tabular-nums}.result-sphere .colon-glyph{width:44px;height:44px;position:relative;z-index:1}.result-pair .result-sphere .colon-glyph{width:32px;height:32px}.score-side .score-sphere .colon-glyph{width:14px;height:14px}.score-side .score-sphere{display:flex;align-items:center;justify-content:center}.turn-banner.is-none .rule{background:var(--border)}.turn-banner.is-none .label{color:var(--muted)}.thumb-lines{fill:none;stroke:var(--subtle);stroke-width:.7;stroke-linecap:round}.thumb-den{fill:var(--border-soft)}.scrim{position:fixed;top:0;right:0;bottom:0;left:0;background:var(--scrim);z-index:10}.help-dialog{position:fixed;z-index:11;left:50%;top:50%;transform:translate(-50%,-50%);width:320px;max-width:calc(100vw - 32px);max-height:calc(100vh - 32px);background:var(--card);border-radius:var(--r-xl);box-shadow:var(--shadow-dialog);padding:22px 22px 18px;animation:dialog-in var(--motion-enter) both}@keyframes dialog-in{0%{opacity:0;transform:translate(-50%,-48%)}}.dialog-close{position:absolute;top:6px;right:6px;width:44px;height:44px;display:flex;align-items:center;justify-content:center}.dialog-close svg{width:22px;height:22px;stroke:var(--subtle)}.dialog-title{font-size:18px;font-weight:900;letter-spacing:-.3px;color:var(--text);text-align:center}.rule-list{list-style:none;margin-top:14px;display:flex;flex-direction:column;gap:10px}.rule-row{display:flex;align-items:flex-start;gap:10px}.rule-icon{width:28px;height:28px;flex-shrink:0;border-radius:var(--r-sm);background:var(--bg);display:flex;align-items:center;justify-content:center}.rule-icon svg{width:16px;height:16px;stroke:var(--muted)}.rule-line{font-size:13px;font-weight:500;line-height:1.35;color:var(--muted)}.rule-line strong{color:var(--text);font-weight:800}@media(max-height:500px)and (orientation:landscape){.help-dialog{width:600px;padding:16px 20px 14px}.rule-list{display:grid;grid-template-columns:1fr 1fr;column-gap:18px;row-gap:10px;margin-top:10px}}.dialog-close{padding:0;border:0;background:transparent;cursor:pointer}.pt:disabled{cursor:default}.pt:focus-visible{outline:2px solid var(--brand);outline-offset:-2px;border-radius:var(--r-full)}.screen--xiangqi{--bz: 6px;--piece-dark: var(--wall);--piece-font: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Arial Unicode MS", sans-serif}.screen--xiangqi .score-card.dark{background:var(--card-dark)}.screen--xiangqi .score-card .score-name{color:var(--on-brand)}.xiangqi-badge{font:800 20px/1 var(--piece-font);color:var(--on-brand)}.screen--xiangqi .board-bezel{width:min(100cqw,calc((100cqh - 2 * var(--bz)) * var(--board-aspect) + 2 * var(--bz)),var(--board-col-width-desktop));height:auto;aspect-ratio:auto;padding:var(--bz);border-radius:var(--r-xl)}.screen--xiangqi .board-bezel:before{border-radius:var(--r-xl)}.screen--xiangqi .playfield{aspect-ratio:var(--board-aspect);border-radius:var(--r-md);overflow:hidden;container-type:inline-size}.xiangqi-lines,.xiangqi-points{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%}.xiangqi-lines{pointer-events:none}.xiangqi-lines path{fill:none;stroke:var(--subtle);stroke-width:1.2;vector-effect:non-scaling-stroke}.xiangqi-lines .palace{stroke:var(--muted)}.xiangqi-lines .river{fill:var(--muted);stroke:none;font:800 3px/1 var(--font-stack);letter-spacing:1px}.xiangqi-points{display:grid;grid-template-columns:repeat(9,1fr);grid-template-rows:repeat(10,1fr)}.xiangqi-point{position:relative;border:0;padding:0;background:transparent;display:grid;place-items:center;cursor:pointer;-webkit-tap-highlight-color:transparent}.xiangqi-point:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0}.xiangqi-piece{position:relative;z-index:1;width:77%;aspect-ratio:1;border-radius:var(--r-full);display:grid;place-items:center;font:800 clamp(15px,4.2cqw,32px)/1 var(--piece-font);color:var(--on-brand);box-shadow:var(--shadow-soft);background:var(--red-grad)}.xiangqi-piece.dark{background:var(--piece-dark)}.xiangqi-piece:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-radius:inherit;background:var(--gloss);pointer-events:none}.xiangqi-point.is-selected .xiangqi-piece{box-shadow:var(--shadow-lift);transform:scale(1.08);outline:2px solid var(--red);outline-offset:2px}.xiangqi-point.is-target:after{content:"";position:absolute;width:27%;aspect-ratio:1;border-radius:var(--r-full);background:var(--red-grad);opacity:.55}.xiangqi-point.is-last:before{top:7%;right:7%;bottom:7%;left:7%;border:2px solid var(--red);border-radius:var(--r-md);opacity:.5}.xiangqi-point.is-check .xiangqi-piece{outline:2px solid var(--hard);outline-offset:2px;box-shadow:var(--shadow-lift)}.screen--xiangqi .rules-card{display:flex;align-items:center;justify-content:space-between;gap:10px}.screen--xiangqi .rules-card .rule-name{font-size:15px;font-weight:800;color:var(--text)}.screen--xiangqi .rules-card .rules-summary{font-size:13px;color:var(--muted)}.xiangqi-demo{border:1px solid var(--border);border-radius:var(--r-pick);background:var(--card);color:var(--text);font:800 12px/1 var(--font-stack);padding:10px 12px;cursor:pointer}.xiangqi-demo:focus-visible,.xiangqi-point:focus-visible{outline:2px solid var(--brand);outline-offset:2px}@media(min-width:768px)and (min-height:501px){.screen--xiangqi{--bz: 18px}.screen--xiangqi .board-bezel,.screen--xiangqi .board-bezel:before{border-radius:var(--r-2xl)}.screen--xiangqi .playfield{border-radius:var(--r-lg)}}@media(max-width:767px){.screen--board.screen--xiangqi{padding-left:16px;padding-right:16px}}
