/*
 * Axinar v0.24 mature application foundation styles.
 *
 * Preserves the historical source order from v13 through v206 so cascade
 * behaviour remains stable while the browser no longer loads release-numbered
 * CSS files. New feature styling belongs in functional v0.24 stylesheets.
 */

/* ===== Consolidated from assets/v13.css ===== */
@font-face{font-family:Lato;src:url('fonts/lato-regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:Lato;src:url('fonts/lato-bold.ttf') format('truetype');font-style:normal;font-weight:700;font-display:swap}
@font-face{font-family:Lato;src:url('fonts/lato-black.ttf') format('truetype');font-style:normal;font-weight:900;font-display:swap}
@font-face{font-family:'Libre Baskerville';src:url('fonts/libre-baskerville.ttf') format('truetype');font-style:normal;font-weight:400 700;font-display:swap}

:root{--ui-font:Lato,system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;--display-font:'Libre Baskerville',Georgia,serif;--board-blue-v012:#03080c;--board-mahogany:rgba(34,13,8,.58)}
html,body,button,input,select,textarea{font-family:var(--ui-font)}
.brand strong,.brand-under,.auth-card h1,.whats-new h2,.mobile-nav-title,.game-section-title,.result-card h1,.result-card h2,.arcana-achievement h2,.better-word,.general-modal>h2,.current-game-summary>h2{font-family:var(--display-font)}
.tile{font-family:var(--ui-font)!important;font-weight:900;letter-spacing:-.025em}
.tile .score,.turn-score-bubble,.suggested-length{font-family:var(--ui-font)}
.brand strong,.brand-under strong{color:#f5cf72;background:linear-gradient(180deg,#fff4b5 4%,#f2c55d 45%,#b87618 75%,#ffe69a);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;text-shadow:0 2px 10px rgba(244,184,60,.3);filter:drop-shadow(0 1px 0 #6a3e08)}

button{transition:background-color .16s,border-color .16s,box-shadow .16s,filter .16s,transform .16s}
button:hover:not(:disabled),button:focus-visible:not(:disabled){border-color:#e7c266;box-shadow:0 0 0 1px rgba(255,224,133,.35),0 0 14px rgba(255,190,60,.34);filter:brightness(1.12)}
.tile{transition:box-shadow .15s,filter .15s,transform .15s}
.tile:hover:not(.locked),.tile:focus-visible{filter:brightness(1.12);box-shadow:0 3px 7px rgba(0,0,0,.62),inset 0 1px 1px rgba(255,255,255,.9),0 0 13px rgba(255,220,126,.65)}

.play-column{position:relative;background-image:linear-gradient(rgba(12,5,3,.39),rgba(12,5,3,.45)),var(--game-background,url('/assets/backgrounds/winter-night.webp'));background-size:cover;background-position:center;background-repeat:no-repeat;isolation:isolate}
.board{background:var(--board-mahogany)!important;border-color:#6b3e21!important;box-shadow:0 0 0 1px #8b6241,0 0 28px rgba(73,30,11,.44)!important;transition:opacity 1.8s ease,transform 1.8s ease,filter 1.8s ease}
.square:not([data-premium]){background:radial-gradient(circle at 78% 18%,rgba(237,181,116,.045),transparent 20%),repeating-linear-gradient(35deg,transparent 0 12px,rgba(226,164,100,.018) 12px 13px),linear-gradient(145deg,rgba(62,28,17,.8),rgba(31,13,9,.76))!important;border-color:rgba(170,105,64,.2)}
.rack-wrap,.icon-actions,.mobile-zoom-controls,.mobile-players{transition:opacity 1.5s ease,transform 1.5s ease,filter 1.5s ease}
.play-column.just-looking .board,.play-column.just-looking .rack-wrap,.play-column.just-looking .icon-actions,.play-column.just-looking .mobile-zoom-controls,.play-column.just-looking .mobile-players,.play-column.just-looking .board-status{opacity:0;pointer-events:none;filter:blur(5px);transform:scale(.985)}
.just-look-button{position:absolute;right:9px;top:9px;z-index:18;padding:5px 9px;border-color:#92733b;background:rgba(9,20,28,.8);color:#ffe09a;font-size:.72rem;backdrop-filter:blur(5px)}
.play-column.just-looking .just-look-button{background:rgba(92,54,18,.9);font-size:.8rem}

.board-status{position:absolute;z-index:19;top:7px;left:50%;transform:translate(-50%,-8px);width:min(650px,calc(100% - 145px));min-height:0;margin:0;padding:8px 38px 8px 12px;border:1px solid #934c4c;border-radius:9px;background:rgba(36,10,12,.94);color:#ffb0b0!important;box-shadow:0 5px 22px rgba(0,0,0,.5);opacity:0;pointer-events:none;transition:opacity .32s,transform .32s;text-align:left;backdrop-filter:blur(7px)}
.board-status.show{opacity:1;pointer-events:auto;transform:translate(-50%,0)}
.board-status.good{border-color:#38794a;background:rgba(10,38,20,.94);color:#a4f5b8!important}
.board-status #statusClose{position:absolute;right:5px;top:4px;width:27px;height:27px;padding:0;border:0;background:transparent}
.board-status .reveal-suggestion{margin-left:8px;padding:3px 7px;font-size:.7rem}

.rack-wrap{padding:clamp(6px,.8dvh,9px)!important;margin-top:clamp(4px,.7dvh,8px)!important}
.rack{padding:clamp(5px,.7dvh,8px)!important;gap:clamp(5px,.65dvh,8px)!important}
.icon-actions{gap:clamp(7px,.9dvh,10px)!important;margin-top:clamp(4px,.7dvh,8px)!important}
.side-game-page{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.side-game-page button{min-height:42px;border-color:#6d603b;background:linear-gradient(180deg,#214966,#102b40);color:#fff5cd;box-shadow:0 0 12px rgba(64,164,224,.12)}

.track-art-button{overflow:hidden;border-color:#6f5b35!important;background:#09131d!important}
.track-art-button img{display:block;width:100%;height:100%;object-fit:cover;border-radius:4px}
.desktop-mini-player{width:280px;grid-template-columns:30px 30px 30px 30px minmax(0,1fr)}
.mobile-audio>div.mini-player{grid-template-columns:40px 40px 40px 40px minmax(0,1fr)}
.track-display small{color:#d0aa68}
.track-art-full{display:block;max-width:min(760px,86vw);max-height:76vh;margin:auto;border:2px solid #bc9451;border-radius:12px;box-shadow:0 14px 50px #000}

.account-submenu{border-top:1px solid rgba(255,255,255,.08);border-bottom:1px solid rgba(255,255,255,.08)}
.account-submenu summary{padding:8px 12px;cursor:pointer;font-weight:700;list-style:none}
.account-submenu summary::after{content:'▸';float:right}.account-submenu[open] summary::after{content:'▾'}
.account-submenu button{padding-left:24px!important;color:#cfe7f8!important}
.game-title-row{display:flex;align-items:center;gap:7px}.game-title-row h2{flex:1}.tiny-button{width:31px;height:31px;padding:0}

.result-art{aspect-ratio:1;opacity:1;transition:opacity .2s}.result-card.loading .result-art{opacity:0}
.suggested-position{transition:box-shadow 9s ease}.suggested-position::before,.suggested-position::after{transition:opacity 9s ease}.suggested-position.fading{box-shadow:none!important}.suggested-position.fading::before,.suggested-position.fading::after{opacity:0}
.suggested-letter{position:absolute;z-index:8;inset:8%;display:grid;place-items:center;border-radius:5px;background:rgba(235,226,204,.82);border:1px dashed #ffe28a;color:#21170d;font:900 clamp(.65rem,1.6vw,1.35rem)/1 var(--ui-font);box-shadow:0 0 12px rgba(255,220,105,.55);pointer-events:none}

@media(max-width:1050px){.desktop-mini-player{width:210px}.desktop-mini-player .track-display small{display:block}}
@media(max-width:700px){.just-look-button{top:34px;right:5px;padding:4px 7px}.board-status{top:31px;width:calc(100% - 92px);font-size:.74rem}.rack-wrap{padding:8px!important;margin-top:8px!important}.icon-actions{gap:6px!important;margin-top:7px!important}}
@media(hover:none){.tile:hover:not(.locked){filter:none;box-shadow:0 2px 4px rgba(0,0,0,.5),inset 0 1px 1px rgba(255,255,255,.8)}}


/* ===== Consolidated from assets/v14.css ===== */
/* Axinar 0.14.2: variable boards, calibrated room treatment and legacy devices. */
:root{
 --board-base-rgb:33,17,13;
 --board-overlay-rgb:112,67,34;
 --board-empty-opacity:.85;
 --board-grid:rgba(12,6,5,.86);
 --gap:1px;
 scrollbar-color:#c58a35 #08131d;
 scrollbar-width:thin;
}

*::-webkit-scrollbar{width:11px;height:11px}
*::-webkit-scrollbar-track{background:#08131d;border-left:1px solid #1d3040}
*::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#e3b85a,#9a5d1d);border:2px solid #08131d;border-radius:10px}
*::-webkit-scrollbar-thumb:hover{background:linear-gradient(180deg,#f4d17a,#bc7527)}

.game-screen,html.desktop-layout .game-screen{grid-template-columns:minmax(246px,294px) minmax(0,1fr) minmax(258px,312px)!important}
.play-column{background-image:linear-gradient(rgba(12,5,3,.39),rgba(12,5,3,.45)),var(--game-background,url('/assets/backgrounds/winter-night.webp'))}
.board{grid-template-columns:repeat(var(--board-columns,17),minmax(0,1fr))!important;grid-template-rows:repeat(var(--board-rows,17),minmax(0,1fr))!important;gap:0!important;padding:1px!important;background:transparent!important}
.square{border:0!important;border-right:1px solid var(--board-grid)!important;border-bottom:1px solid var(--board-grid)!important}
.square:not([data-premium]),.square[data-premium=""]{background:linear-gradient(rgba(var(--board-overlay-rgb),.055),rgba(var(--board-overlay-rgb),.025)),rgba(var(--board-base-rgb),var(--board-empty-opacity))!important}
.square>.tile,.rack-slot>.tile{width:calc(100% - 2px)!important;height:calc(100% - 2px)!important}
.tile{box-shadow:0 2px 4px rgba(0,0,0,.55),inset 0 1px 1px rgba(255,255,255,.86),inset 0 7px 12px rgba(255,255,255,.055)!important}
.square.has-tile .tile::before{content:'';position:absolute;z-index:3;left:7%;right:7%;top:2%;height:14%;border-radius:999px;background:linear-gradient(90deg,transparent,rgba(255,255,255,.28),transparent);opacity:.42;pointer-events:none}
.rack .tile{background:linear-gradient(var(--tint),var(--tint)),radial-gradient(circle at 30% 16%,rgba(255,255,255,.88),transparent 23%),repeating-linear-gradient(118deg,rgba(255,255,255,.11) 0 2px,rgba(0,0,0,.035) 2px 4px),linear-gradient(145deg,#f0f1f2 0%,#c6c9cc 46%,#969a9e 100%)}
.rack,html.desktop-layout .rack,html.touch-layout .rack{grid-template-columns:repeat(var(--rack-size,9),minmax(0,1fr))!important}
.rack-slot{position:relative}
.rack-slot:has(.tile){background:rgba(0,0,0,.34)}

#renameGameBtn{display:none!important}
.bot-level{margin-left:4px;background:#1c4862!important;color:#c9efff!important;border-color:#4c819f!important}
.bug-edit-dialog textarea{width:100%;min-height:8rem;resize:vertical}
.bug-comment{white-space:pre-wrap}
.bug-comment-actions{display:inline-flex;margin-left:8px}
.suggested-letter{transition:opacity 10s ease!important}.suggested-position.fading .suggested-letter{opacity:0}
.preference-range{display:grid;grid-template-columns:minmax(160px,1fr) minmax(150px,2fr) 58px;align-items:center;gap:10px;margin:10px 0}
.legacy-choice-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:16px}
.legacy-choice .preference-toggle{margin-top:14px}

@media(max-width:1100px) and (min-width:801px){.game-screen,html.desktop-layout .game-screen{grid-template-columns:222px minmax(0,1fr) 234px!important}.board{--board-size:min(calc(100vh - 175px),calc(100vw - 470px))}}
@media(max-width:800px){.game-screen{grid-template-columns:1fr!important}.just-look-button{display:none!important}}

/* Plain, low-compositing fallback for old WebKit and resource-limited devices. */
html.legacy-device *,html.legacy-device *::before,html.legacy-device *::after{animation:none!important;transition:none!important;filter:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;text-shadow:none!important}
html.legacy-device body{background:#07111b!important}
html.legacy-device .play-column{background:#07111b!important}
html.legacy-device .panel,html.legacy-device .rack-wrap,html.legacy-device .rack,html.legacy-device button{background:#102334!important;box-shadow:none!important}
html.legacy-device .board{background:#120b08!important;border:2px solid #684224!important;box-shadow:none!important}
html.legacy-device .square:not([data-premium]),html.legacy-device .square[data-premium=""]{background:#21110d!important;opacity:1!important}
html.legacy-device .tile,html.legacy-device .rack .tile{background:#d4d5d6!important;color:#111!important;border:1px solid #333!important;box-shadow:none!important;opacity:1!important}
html.legacy-device .tile.mutable{background:#626970!important;color:#fff!important}
html.legacy-device.touch-layout .tile:not(.dragging){will-change:auto!important;transform:none!important;contain:none!important}
html.legacy-device.touch-layout .tile.dragging{will-change:auto!important;contain:none!important;box-shadow:none!important}
html.legacy-device .square[data-premium="QW"]{background:#5b3583!important}
html.legacy-device .square[data-premium="QL"]{background:#8060a3!important}
html.legacy-device .square[data-premium="TW"]{background:#8e2942!important}
html.legacy-device .square[data-premium="TL"]{background:#20569b!important}
html.legacy-device .square[data-premium="DW"]{background:#946d21!important}
html.legacy-device .square[data-premium="DL"]{background:#14789a!important}
html.legacy-device .square.has-tile .tile::before{display:none!important}
html.legacy-device .just-look-button{display:none!important}


/* ===== Consolidated from assets/v15.css ===== */
/* Axinar 0.15 - multi-board/admin additions */
.board-selector{margin:0 0 12px;padding:10px;border:1px solid rgba(230,190,110,.2);border-radius:10px;background:rgba(0,0,0,.14)}
.board-selector>label{display:grid;gap:5px}.board-selector select{width:100%}.board-design-carousel{display:grid;grid-template-columns:38px minmax(0,1fr) 38px;align-items:center;gap:8px;margin-top:8px}.board-design-carousel>button{font-size:1.7rem;padding:4px}.board-design-preview{height:150px;display:grid;place-items:center;overflow:hidden}.mini-board{width:min(145px,100%);aspect-ratio:var(--c)/var(--r);display:grid;grid-template-columns:repeat(var(--c),1fr);grid-template-rows:repeat(var(--r),1fr);gap:1px;padding:2px;background:#140d08;border:1px solid #76552a;box-shadow:0 3px 12px rgba(0,0,0,.45)}.mini-cell{background:#5d4935}.mini-cell.dw{background:#1743a3}.mini-cell.dl{background:#5b8ac2}.mini-cell.tw{background:#a51b25}.mini-cell.tl{background:#a66270}.mini-cell.qw{background:#4b18af}.mini-cell.ql{background:#8f67ba}
.admin-board-class,.system-alert-admin{margin:12px 0;padding:12px;border:1px solid rgba(255,255,255,.12);border-radius:9px;background:rgba(0,0,0,.16)}.admin-inline{display:flex;gap:7px;flex-wrap:wrap;margin-top:8px}.admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.admin-grid label,.letter-value-grid label{display:grid;gap:4px}.letter-value-grid{display:grid;grid-template-columns:repeat(6,minmax(54px,1fr));gap:8px}.letter-value-grid button{grid-column:1/-1}.danger-callout{padding:12px;border:1px solid #b84b4b;border-radius:9px;background:rgba(95,15,20,.32);color:#ffd2d2}.system-alert-popup{max-width:620px;margin:auto}.system-alert-popup.warning,.system-alert-popup.important{border-left:5px solid #d29d42;padding-left:14px}.system-alert-popup.important{border-left-color:#d95050}
/* #205: status messages no longer obscure words being built at the top edge. */
.board-status{top:auto!important;bottom:132px!important;transform:translate(-50%,8px)!important}.board-status.show{transform:translate(-50%,0)!important}
/* #210/#214/#195: stronger mutable contrast and ensure committed mutable tiles remain clickable above validation paint. */
#rack .tile.mutable{background:linear-gradient(var(--tint),var(--tint)),linear-gradient(145deg,rgba(108,116,126,.96),rgba(35,40,48,.96))!important;color:#fff!important;opacity:.92!important}.square .tile.locked.mutable{z-index:7;pointer-events:auto}.square.preview-valid .tile.locked.mutable,.square.preview-invalid .tile.locked.mutable,.square.preview-unknown .tile.locked.mutable{z-index:7}
/* #206: score bubble is always above adjacent board tiles. */
.turn-score-bubble{z-index:20!important}
.tiles-remaining-badge{position:absolute;left:8px;bottom:14px;z-index:10;display:flex;align-items:center;gap:5px;padding:5px 8px;border-radius:999px;background:rgba(12,12,15,.82);border:1px solid rgba(255,255,255,.18);font:700 12px system-ui}.tiles-remaining-badge.low{color:#ff8b8b;border-color:#b84b4b}
@media(max-width:700px){.admin-grid{grid-template-columns:1fr}.letter-value-grid{grid-template-columns:repeat(4,1fr)}.board-status{bottom:118px!important}.tiles-remaining-badge{bottom:116px}}

.mobile-drawer-tab{display:none}
@media(max-width:900px){
 .mobile-drawer-tab{display:block;position:fixed;top:42%;z-index:60;width:24px;height:68px;padding:0;border:1px solid rgba(235,202,126,.42);background:rgba(24,18,14,.88);color:#f1cd7c;font-size:1.35rem;box-shadow:0 3px 14px rgba(0,0,0,.45);touch-action:none}
 .mobile-drawer-tab.left{left:0;border-radius:0 12px 12px 0}.mobile-drawer-tab.right{right:0;border-radius:12px 0 0 12px}
 .game-screen .left-side,.game-screen .right-side{display:block!important;position:fixed!important;top:0!important;bottom:0!important;width:min(82vw,340px)!important;max-width:340px!important;height:100dvh!important;z-index:55!important;overflow:auto!important;transition:transform .24s ease!important;will-change:transform}
 .game-screen .left-side{left:0!important;transform:translateX(-102%)}.game-screen .right-side{right:0!important;transform:translateX(102%)}
 html.mobile-left-drawer .game-screen .left-side{transform:translateX(0)}html.mobile-right-drawer .game-screen .right-side{transform:translateX(0)}
 html.mobile-left-drawer .mobile-drawer-tab.left{left:min(82vw,340px)}html.mobile-right-drawer .mobile-drawer-tab.right{right:min(82vw,340px)}
 html.mobile-left-drawer::after,html.mobile-right-drawer::after{content:"";position:fixed;inset:0;z-index:54;background:rgba(0,0,0,.38)}
}


/* ===== Consolidated from assets/v151.css ===== */
/* Axinar 0.15.1 maintenance UI */
:root{--team-1:#36a9e1;--team-2:#ef476f;--team-3:#52b84b;--team-4:#f0a429;--team-5:#8d5ce6;--team-6:#26a69a;--team-7:#e05bbd;--team-8:#5978d9}
.axinar-fact-panel{grid-column:1/-1;text-align:center}.axinar-fact-panel p{font-family:var(--display-font,Georgia,serif);font-size:1.05rem}.axinar-fact-panel small{opacity:.65}
.integrated-board-designer{width:min(94vw,1250px)}.integrated-board-designer iframe{width:100%;height:min(76vh,900px);border:1px solid rgba(255,255,255,.15);border-radius:10px;background:#15120f}.general-modal:has(.integrated-board-designer){width:min(96vw,1320px);max-width:none}
.bag-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(54px,1fr));gap:8px}.bag-grid>div{display:flex;justify-content:space-between;gap:8px;padding:8px 10px;border:1px solid rgba(255,255,255,.13);border-radius:7px;background:rgba(0,0,0,.18)}.tiles-remaining-badge{cursor:pointer}
.bug-toolbar-v151{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:12px}.bug-toolbar-v151>input{min-width:240px;flex:1}.bug-item.critical{border-color:#b73333!important;box-shadow:inset 3px 0 #d33}.critical-flag{filter:saturate(1.4)}.critical-toggle{display:inline-flex;gap:5px;align-items:center}.bug-back-top{margin:14px auto 0;display:block;position:sticky;bottom:8px}.validateBoardDesign{margin-left:4px}


/* ===== Consolidated from assets/v152.css ===== */
/* Axinar 0.15.2 maintenance UI */
/* A little more breathing room between the board/zoom controls and the rack. */
.rack-wrap{margin-top:clamp(8px,1dvh,12px)!important}

/* Founder controls live under one deliberate account-menu branch. */
#founderMenu{margin-top:3px;border-top:1px solid rgba(255,255,255,.12);border-bottom:1px solid rgba(255,255,255,.12)}
#founderMenu>summary{color:#f0cb77}
#founderMenu>button{padding-left:24px!important}
#founderMenu .account-submenu.nested{margin-left:10px;border-bottom:0}
#founderMenu .account-submenu.nested summary{padding-left:14px;color:#cfe7f8}
#founderMenu .account-submenu.nested button{padding-left:34px!important}

/* Mobile players become a real horizontal carousel only when they overflow. */
.mobile-player-carousel{display:none}
html.touch-layout .mobile-player-carousel{order:-1;min-width:0;grid-template-columns:28px minmax(0,1fr) 28px;align-items:stretch;background:rgba(5,15,24,.94);border-bottom:1px solid #365269}
html.touch-layout .mobile-player-carousel.active{display:grid}
html.touch-layout .mobile-player-carousel:not(.active){display:block}
html.touch-layout .mobile-player-carousel:not(.active) .mobile-player-nav{display:none}
html.touch-layout .mobile-player-carousel .mobile-players{display:flex!important;order:initial;min-width:0;min-height:29px;overflow-x:auto;overflow-y:hidden;gap:4px;padding:2px 3px;border:0;background:transparent;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none}
html.touch-layout .mobile-player-carousel .mobile-players::-webkit-scrollbar{display:none}
html.touch-layout .mobile-player-carousel .mobile-player{scroll-snap-align:center;scroll-snap-stop:always;flex:0 0 auto}
.mobile-player-nav{display:none;padding:0;border:0;border-radius:0;background:rgba(18,37,53,.95);color:#e7ca79;font-size:1.25rem;line-height:1}
html.touch-layout .mobile-player-carousel.active .mobile-player-nav{display:block}

/* Drawer tabs are fixed to the viewport edges, but JS aligns their centre to
   the mobile zoom controls so they sit below the playing board rather than on it. */
@media(max-width:900px){
 .mobile-drawer-tab{top:auto;bottom:auto;width:25px;height:58px;z-index:72;touch-action:none;user-select:none;-webkit-user-select:none}
 .game-screen .left-side,.game-screen .right-side{z-index:70!important;top:50px!important;height:calc(100dvh - 50px)!important}
 html.mobile-left-drawer .mobile-drawer-tab.left{left:0!important}
 html.mobile-right-drawer .mobile-drawer-tab.right{right:0!important}
 html.mobile-left-drawer::after,html.mobile-right-drawer::after{z-index:69}
 html.mobile-left-drawer .mobile-drawer-tab.left,html.mobile-right-drawer .mobile-drawer-tab.right{background:rgba(55,39,20,.96);box-shadow:0 0 0 1px rgba(241,205,124,.22),0 3px 14px rgba(0,0,0,.5)}
}
@media(max-width:700px){.rack-wrap{margin-top:10px!important}}

/* v0.15.3 drawer visibility fix.
   touch-layout historically hides the desktop sidebars with !important. The
   mobile drawer reuses those same DOM panels, so explicitly re-enable them here
   at higher specificity while keeping them translated off-canvas until opened. */
@media(max-width:900px){
 html.touch-layout .game-screen .left-side,
 html.touch-layout .game-screen .right-side{
   display:block!important;
 }
 .mobile-drawer-tab{
   height:44px!important;
   width:23px!important;
   font-size:1.15rem!important;
 }
}


/* ===== Consolidated from assets/v16.css ===== */
.lexicon-manager{width:min(1180px,92vw)}.lexicon-stats,.lexicon-toolbar,.lex-checks{display:flex;gap:.65rem;flex-wrap:wrap;align-items:center}.lexicon-stats span{padding:.45rem .65rem;border:1px solid rgba(255,255,255,.14);border-radius:8px}.lexicon-toolbar{margin:1rem 0}.lexicon-toolbar input{min-width:14rem}.lexicon-table-wrap{overflow:auto;max-height:58vh}.lexicon-table{width:100%;border-collapse:collapse;font-size:.88rem}.lexicon-table th,.lexicon-table td{text-align:left;padding:.5rem;border-bottom:1px solid rgba(255,255,255,.12);vertical-align:top}.lexicon-table tr.disabled{opacity:.62}.lexicon-table small{display:block}.lex-description{max-width:20rem}.lexicon-pages{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-top:.8rem}.lex-form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:.8rem}.lexicon-editor label{display:grid;gap:.3rem;margin:.6rem 0}.lexicon-editor fieldset{margin:1rem 0;border:1px solid rgba(255,255,255,.18);border-radius:10px}.lexicon-editor .lex-checks label{display:flex;grid-template-columns:auto 1fr;align-items:center}.source-evidence article{padding:.6rem;border-bottom:1px solid rgba(255,255,255,.12)}@media(max-width:700px){.lexicon-manager{width:auto}.lexicon-table-wrap{max-height:55vh}.lexicon-pages span{font-size:.75rem;text-align:center}}


/* ===== Consolidated from assets/v161.css ===== */
/* v0.16.1 definitions and in-game word lookup. */
.general-modal:has(.lexicon-manager) {
  width:min(1500px,calc(100vw - 30px));
  max-width:none;
  overflow-x:hidden;
  box-sizing:border-box;
}
.lexicon-manager {width:100%;max-width:100%;min-width:0;box-sizing:border-box}
.lexicon-toolbar {max-width:100%}
.lexicon-toolbar>* {min-width:0;max-width:100%}
.lexicon-table-wrap {width:100%;max-width:100%;overflow-x:auto;box-sizing:border-box}
.lexicon-table {width:100%;table-layout:fixed}
.lexicon-table th:nth-child(1),.lexicon-table td:nth-child(1){width:15%}
.lexicon-table th:nth-child(2),.lexicon-table td:nth-child(2),
.lexicon-table th:nth-child(3),.lexicon-table td:nth-child(3),
.lexicon-table th:nth-child(4),.lexicon-table td:nth-child(4){width:7%}
.lexicon-table th:nth-child(5),.lexicon-table td:nth-child(5){width:10%}
.lexicon-table th:nth-child(6),.lexicon-table td:nth-child(6){width:14%;overflow-wrap:anywhere}
.lexicon-table th:nth-child(7),.lexicon-table td:nth-child(7){width:30%;max-width:none;overflow-wrap:anywhere}
.lexicon-table th:nth-child(8),.lexicon-table td:nth-child(8){width:6%}
.square.dictionary-selected {
  box-shadow: inset 0 0 0 3px #fff, inset 0 0 14px rgba(255,255,255,.72) !important;
  filter: brightness(1.18);
}
.side-dictionary-lookup {
  margin:.7rem 0 1rem;
  padding:.65rem;
  border:1px solid rgba(255,255,255,.16);
  border-radius:9px;
  background:rgba(5,12,20,.42);
}
.side-dictionary-lookup label {display:block;margin-bottom:.35rem;font-weight:700}
.side-dictionary-lookup>div {display:flex;gap:.35rem}
.side-dictionary-lookup input {min-width:0;width:100%;text-transform:uppercase}
.side-dictionary-lookup button {flex:0 0 auto}
.side-dictionary-lookup p {margin:.55rem 0 0;line-height:1.35;max-height:12rem;overflow:auto}
.lex-add-word {white-space:nowrap;font-weight:800}
@media(max-width:700px){
  .general-modal:has(.lexicon-manager){width:calc(100vw - 16px);padding:12px}
  .lexicon-table{min-width:850px}
  .lexicon-manager .section-head {align-items:flex-start}
  .lex-add-word {min-height:42px}
}


/* ===== Consolidated from assets/v162.css ===== */
/* Axinar v0.16.2.1: explicit per-device compatibility and maintenance polish. */
.auth-device-help{width:100%;margin-top:.55rem;border:0;background:transparent;color:#9fd8ff;text-decoration:underline;font-size:.78rem}
.device-settings-card{position:relative;width:min(680px,calc(100vw - 24px));max-height:min(88vh,780px);overflow:auto;padding:22px}
.device-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.device-settings-grid label{display:grid;gap:5px}.device-settings-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.device-summary{padding:10px;border:1px solid #365269;border-radius:8px;background:#081722}
.admin-user{display:grid!important;grid-template-columns:minmax(180px,1fr) minmax(130px,190px) auto;gap:8px;align-items:center}.admin-user select{width:100%}.admin-user.founder-protected{border-color:#7a4d91}.founder-lock{color:#d8a9ef;font-size:.75rem}
.bug-form{gap:10px!important}.bug-form button[disabled]{opacity:.65;cursor:wait}.bug-submit-success{color:#72e69a;font-weight:800}
.bug-edit-dialog{width:min(760px,calc(100vw - 30px))}.bug-edit-dialog>label{display:grid;gap:5px;margin:12px 0}.bug-edit-dialog input,.bug-edit-dialog textarea{width:100%;box-sizing:border-box}
.square.bot-return-move{outline:3px solid rgba(255,228,110,.96)!important;outline-offset:-3px;animation:lastMoveGlow 1.6s ease-in-out infinite alternate}
.square.suggested-position{box-shadow:inset 0 0 0 4px #fff,0 0 14px rgba(255,255,255,.95)!important}.square.suggested-position::before{border-color:#fff!important;border-width:2px!important}
.better-play{max-width:560px;margin:auto}.better-play h2{font-size:1.35rem}.better-play p{font-weight:400}.better-play .better-word{font-size:clamp(1.7rem,7vw,3.2rem)}.better-play .better-play-disable{width:min(100%,440px);box-sizing:border-box;margin:12px auto;justify-content:center;text-align:left}.better-play .better-play-disable>span{flex:0 1 auto}
.new-game-panel .message{position:sticky;top:4px;z-index:4}.opponent-limit-warning{color:#ffcf72;font-weight:800;box-shadow:0 0 0 1px #bd7d24;padding:7px;border-radius:6px;background:#251807}

/* Samsung Internet fallback is deliberately isolated from all other browsers.
   Standard is preferred. This counter-palette is only for forced-dark pages. */
html.samsung-browser{color-scheme:only dark}
html.samsung-compat .square:not([data-premium]),html.samsung-compat .square[data-premium=""]{background:#6a4125!important;opacity:1!important}
html.samsung-compat .board{background:#160e09!important;border-color:#8b5c32!important}
html.samsung-compat .tile,html.samsung-compat .rack .tile{background:#101010!important;color:#fff!important;border:2px solid #f4f4f4!important;box-shadow:inset 0 0 0 1px #000,0 2px 3px #000!important;opacity:1!important}
html.samsung-compat .tile.mutable,html.samsung-compat .rack .tile.mutable{background:#f4f4f4!important;color:#111!important;border:3px dashed #111!important;box-shadow:inset 0 0 0 2px #fff,0 2px 3px #000!important}
.samsung-browser-help{margin:14px 0;padding:12px;border:1px solid #8b6427;border-radius:10px;background:#17130d}.samsung-browser-help h3{margin:0 0 6px;color:#f2ca70}.samsung-browser-help p{margin:7px 0}.samsung-browser-help img{display:block;width:min(100%,390px);max-height:48vh;object-fit:contain;margin:10px auto;border-radius:9px;border:1px solid #654b22}

/* A touchscreen laptop keeps desktop layout but its draggable tiles must own
   the touch gesture, otherwise Windows browsers cancel it after a few pixels. */
html.desktop-layout .tile:not(.locked){touch-action:none!important;-ms-touch-action:none!important}

/* Apple Safe Mode is an independent last-resort repaint layer. Legacy remains unchanged. */
html.apple-safe *,html.apple-safe *::before,html.apple-safe *::after{animation:none!important;transition:none!important;filter:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;will-change:auto!important;contain:none!important;text-shadow:none!important}
html.apple-safe .play-column{background:#07111b var(--game-background) center/cover no-repeat!important}
html.apple-safe .panel{background:#102334!important}

html.classic-device *,html.classic-device *::before,html.classic-device *::after{animation-duration:.01ms!important;transition-duration:.01ms!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}

/* Drawer chevrons are updated by script to show the next movement. */
.mobile-drawer-tab{line-height:1;font-weight:900}

@media(max-width:700px){.device-settings-grid{grid-template-columns:1fr}.device-settings-card{padding:16px}.admin-user{grid-template-columns:1fr}.bug-edit-dialog{width:100%}}


/* ===== Consolidated from assets/v163.css ===== */
/* Axinar v0.16.3: shared navigation, calmer geometry and resilient visuals. */

/* The new banquet artwork remains a clean 16:9 master. Each placement controls
   its own crop and soft edge treatment without modifying the source image. */
.auth-card{width:min(760px,96vw)}
.auth-card .auth-tabs,.auth-card #loginPane,.auth-card #registerPane,.auth-card #authError{width:min(440px,100%);margin-left:auto;margin-right:auto}
.auth-hero{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;object-position:54% center;margin:0 auto 10px;border-radius:7px;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 7%,#000 93%,transparent 100%);
  mask-image:linear-gradient(90deg,transparent 0,#000 7%,#000 93%,transparent 100%)}
.wizard-lockup{margin:2px 0 10px}
.wizard-lockup img{display:block;width:100%;max-width:230px;aspect-ratio:16/9;height:auto;object-fit:cover;object-position:54% center;margin:auto;border-radius:6px;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 8%,#000 92%,transparent 100%);
  mask-image:linear-gradient(90deg,transparent 0,#000 8%,#000 92%,transparent 100%)}

/* One predictable navigation entry point on every layout. */
.app-header .brand{display:flex;align-items:center;gap:10px;min-width:0}
.brand>.mobile-nav-wrap{display:block!important;flex:none}
.axinar-wordmark{font-family:var(--display-font,Georgia,serif);font-size:clamp(1.12rem,2vw,1.42rem)!important;letter-spacing:.11em;white-space:nowrap;color:#f5cf72!important}
.mobile-nav-button{width:40px;height:40px;border-radius:6px;font-size:1.35rem;line-height:1}
.mobile-nav-menu{left:8px;right:auto;width:min(380px,calc(100vw - 16px));border-radius:8px}
.nav-build{margin-top:9px;padding:8px 5px 1px;border-top:1px solid #2b465b;color:#8298a9;font-size:.68rem;text-align:right}
html.desktop-layout .top-tools{display:none!important}
html.desktop-layout .brand .mobile-nav-wrap{display:block!important}
html.desktop-layout .app-header{justify-content:space-between}
html.touch-layout .app-header{grid-template-columns:minmax(0,1fr) auto!important}
html.touch-layout .brand .mobile-nav-wrap{display:block!important}
html.touch-layout .mobile-nav-menu{top:50px;left:5px;right:5px;width:auto}

/* Slightly squarer without becoming severe. True pills and circular avatars
   deliberately retain their semantic shape. */
.panel{border-radius:9px}
button,input,select,textarea,.account-menu,.mobile-nav-menu,.general-modal,.device-settings-card{border-radius:6px}
.account-button,.bot-choice,.search-person,.friend-person,.request,.side-game,.player,.rule-example,.preference-toggle,.bug-section{border-radius:7px}
.tier-badge,.turn-chip,.person-chip,.dict-chip,.count-badge,.tiles-remaining-badge,.suggested-length,.power-track,.avatar{border-radius:999px}

/* Dispel Glamour is a genuinely simple last-resort renderer. It is independent
   of Standard, Classic, Legacy and Apple Safe profiles. */
html.barebones-device *,html.barebones-device *::before,html.barebones-device *::after{
  animation:none!important;transition:none!important;filter:none!important;
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
  text-shadow:none!important;box-shadow:none!important;will-change:auto!important}
html.barebones-device,html.barebones-device body{background:#05080b!important}
html.barebones-device .panel,html.barebones-device .side,html.barebones-device .auth-card,
html.barebones-device .mobile-nav-menu,html.barebones-device .account-menu{background:#101820!important;border-color:#62717c!important}
html.barebones-device .play-column{background:#05080b!important}
html.barebones-device .auth-hero,html.barebones-device .wizard-lockup{display:none!important}
html.barebones-device button{background:#1c3040!important;border-color:#718696!important;color:#fff!important}
html.barebones-device button.primary{background:#155d88!important;border-color:#8ac8eb!important}
html.barebones-device input,html.barebones-device select,html.barebones-device textarea{background:#071018!important;border-color:#718696!important;color:#fff!important}
html.barebones-device .board{background:#17110d!important;border-color:#a77b4c!important}
html.barebones-device .square:not([data-premium]),html.barebones-device .square[data-premium=""]{background:#9b7250!important;opacity:1!important}
html.barebones-device .tile{background:#e6e6e6!important;color:#111!important;border:2px solid #111!important;opacity:1!important}
html.barebones-device .tile.mutable{background:#191919!important;color:#fff!important;border:2px dashed #fff!important;opacity:1!important}
html.barebones-device .tile::before{display:none!important}

@media(max-width:700px){
  .auth-card{padding:14px}
  .auth-hero{width:calc(100% + 12px);max-width:none;margin-left:-6px}
  .axinar-wordmark{font-size:1.14rem!important}
}


/* ===== Consolidated from assets/v17.css ===== */
/* Axinar 0.17: data-driven badges, invitation UI and reclaimed game header. */
.tier-badge.membership{background:var(--badge-bg)!important;color:var(--badge-fg)!important;border:1px solid var(--badge-border)!important;border-radius:6px;padding:3px 8px;font-weight:800;letter-spacing:.035em;white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;line-height:1.2}
.tier-badge.shape-pill{border-radius:999px}.tier-badge.shape-bevelled{border-radius:3px;clip-path:polygon(7px 0,100% 0,100% calc(100% - 7px),calc(100% - 7px) 100%,0 100%,0 7px)}.tier-badge.shape-rune{border-radius:3px;clip-path:polygon(9px 0,calc(100% - 9px) 0,100% 50%,calc(100% - 9px) 100%,9px 100%,0 50%)}.tier-badge.shape-shield{border-radius:7px 7px 45% 45%}.tier-badge.shape-sigil{border-radius:50%;aspect-ratio:1;padding:5px;min-width:34px}
.game-capacity{margin:8px 0;padding:7px 9px;border:1px solid #31516a;border-radius:6px;background:#0a1926;color:#bad6e9}.game-capacity.full{border-color:#8b3944;color:#ffd3d8}
.games-panel-tools{justify-content:flex-end}.game-list-section{min-width:0}.game-card-grid{display:grid;grid-template-columns:1fr;gap:0}.challenge-row{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid #294052;min-width:0}.challenge-row small{display:block;color:var(--muted);margin-top:3px}.challenge-row>div:first-child{min-width:0}.challenge-row>div:last-child{display:flex;gap:5px;flex:none}
html.desktop-layout .game-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:14px}html.desktop-layout .game-card-grid>.game-card>div:first-child{grid-column:1/-1}html.desktop-layout .challenge-grid>.challenge-row{display:grid;grid-template-columns:minmax(0,1fr) auto}html.desktop-layout .challenge-grid>.challenge-row>div:first-child{grid-column:1/-1}html.desktop-layout .challenge-grid>.challenge-row>div:last-child{grid-column:2}
.tier-admin-layout{display:grid;grid-template-columns:190px minmax(0,1fr);gap:14px}.tier-admin-list{display:flex;flex-direction:column;gap:5px}.tier-admin-list button{text-align:left}.tier-admin-list button.active{border-color:#e1b74d}.tier-editor{display:grid;gap:9px}.tier-editor label{display:grid;gap:4px}.tier-editor fieldset{border:1px solid #30495c;border-radius:6px;padding:9px}.tier-editor fieldset label{display:grid;grid-template-columns:auto 1fr;align-items:start;margin:7px 0}.tier-editor fieldset small{grid-column:2;color:var(--muted)}.badge-colours{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}#tierBadgePreview{padding:12px;background:#07121d;border:1px solid #294052;border-radius:5px}
.desktop-game-brand-slot,.desktop-game-account-slot{display:none}.desktop-game-brand-slot .brand{width:100%}.desktop-game-account-slot .account-menu-wrap{width:100%}.desktop-game-account-slot .account-button{width:100%;justify-content:flex-end}.desktop-game-account-slot .account-menu{top:44px}
html.touch-layout .account-menu{max-height:calc(var(--visible-vh,100dvh) - 58px - env(safe-area-inset-bottom,0px));overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y}
html.touch-layout .tiles-remaining-badge{left:34px!important}
html.desktop-layout.game-active #globalHeader{display:none!important}html.desktop-layout.game-active .game-screen{height:100dvh!important}.desktop-game-brand-slot+.wizard-lockup{margin-top:5px}
html.desktop-layout.game-active .desktop-game-brand-slot,html.desktop-layout.game-active .desktop-game-account-slot{display:flex;min-height:42px;align-items:center;margin-bottom:5px}
/* Desktop game breathing room. The game-screen already contributes 7px at the
   viewport edges, so another 8px here gives an effective 15px above the board
   and below the controls. Mobile geometry is deliberately unaffected. */
html.desktop-layout.game-active .play-column{padding:8px 0!important}
html.desktop-layout.game-active .rack-wrap{margin-top:5px!important}
html.desktop-layout.game-active .tiles-remaining-badge{left:8px!important;bottom:8px!important;height:4.75dvh;min-width:7dvh;padding:.4dvh .8dvh;border-radius:.82dvh;font-size:1.55dvh;justify-content:center}html.desktop-layout.game-active .tiles-remaining-badge .bag-icon{font-size:2.65dvh;line-height:1}
.play-column.just-looking .tiles-remaining-badge{opacity:0;pointer-events:none;filter:blur(5px);transform:scale(.985);transition:opacity 1.5s ease,transform 1.5s ease,filter 1.5s ease}
/* Game banner crops more tightly than the login artwork, concentrating on the table and letters. */
html.desktop-layout .left-side .wizard-lockup{overflow:hidden;border-radius:5px;aspect-ratio:16/7}.left-side .wizard-lockup img{width:128%;max-width:none;height:128%;object-fit:cover;object-position:54% 58%;transform:translate(-11%,-10%);margin:0}
.mobile-players{scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;touch-action:pan-x}.mobile-player{scroll-snap-align:center}
@media(max-width:760px){.tier-admin-layout{grid-template-columns:1fr}.tier-admin-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.challenge-row{align-items:flex-start;flex-direction:column}.badge-colours{grid-template-columns:1fr}}


/* ===== Consolidated from assets/v171.css ===== */
/* Axinar v0.17.1 maintenance UI. */
.axinar-scroll-panel{grid-column:1/-1;text-align:center;width:100%;box-sizing:border-box}
.axinar-scroll-panel h2{margin-bottom:.45rem}
.axinar-scroll-panel blockquote{margin:.3rem auto .65rem;max-width:72rem;border:0;padding:0;font-family:Georgia,serif;font-size:clamp(1rem,1.45vw,1.25rem);font-style:italic;line-height:1.5;color:#f3d494}
.axinar-scroll-panel small{display:block;color:var(--muted)}
.scroll-admin-list{display:grid;gap:.55rem;margin-top:1rem}.scroll-admin-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:1rem;align-items:center;padding:.75rem;border:1px solid var(--line);border-radius:5px;background:rgba(5,17,28,.62)}.scroll-admin-row.disabled{opacity:.58}.scroll-admin-row p{margin:.2rem 0}.scroll-admin-row>div:last-child{display:flex;gap:.4rem}.scroll-order{display:inline-block;min-width:2rem;color:#efbf67;font-weight:700}.scroll-editor{display:grid;gap:.85rem}.scroll-editor label{display:grid;gap:.35rem}.device-opacity span{display:flex;align-items:center;gap:.55rem}.device-opacity input{min-width:8rem;flex:1}.device-opacity output{min-width:3.1rem;text-align:right}.device-opacity small{color:var(--muted)}
@media(max-width:620px){.scroll-admin-row{grid-template-columns:1fr}.scroll-admin-row>div:last-child{justify-content:flex-end}}


/* ===== Consolidated from assets/v18.css ===== */
/* Axinar v0.18 statistics and final Observatory framing. */
html.desktop-layout .left-side .wizard-lockup{aspect-ratio:16/9}
html.desktop-layout .left-side .wizard-lockup img{width:100%;max-width:100%;height:100%;object-fit:contain;object-position:center;transform:none;margin:0}
.stats-page,.founder-stats{display:grid;gap:12px}.stats-identity{display:flex;align-items:center;justify-content:space-between;gap:12px}.stats-identity h2{margin:0}.level-badge{display:inline-flex;align-items:center;padding:3px 8px;border:1px solid var(--level-border);border-radius:5px;background:var(--level-bg);color:var(--level-fg);font-size:.72em;vertical-align:middle}.stats-private-note{color:#9dc6dc;font-size:.78rem}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(130px,1fr));gap:8px}.stat-card{display:flex;flex-direction:column;min-height:88px;padding:11px;border:1px solid #29475c;background:#091722;border-radius:6px}.stat-card>span{color:#9db4c3;font-size:.78rem}.stat-card>strong{color:#f2cb73;font-size:1.45rem;margin:auto 0}.stat-card>small{color:#8199a8}.stats-table-wrap{max-width:100%;overflow:auto;border:1px solid #29475c;border-radius:6px}.stats-table{width:100%;border-collapse:collapse;white-space:nowrap}.stats-table th,.stats-table td{padding:8px 10px;border-bottom:1px solid #223b4d;text-align:right}.stats-table th:first-child,.stats-table td:first-child{text-align:left}.stats-table th{color:#e7c46f;background:#0c1e2b}.stats-sharing{border-top:1px solid #29475c;padding-top:8px}.stats-sharing>div{display:flex;gap:6px}.stats-sharing input{flex:1}.stats-person{display:block;width:100%;text-align:left;margin-top:5px}.stats-person small{color:#8fa7b7}.stats-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(220px,1fr));gap:8px}.stats-settings-grid label,.stats-level-editor label{display:flex;flex-direction:column;gap:3px;font-size:.8rem;color:#afc3d1}.stats-level-editor{display:grid;grid-template-columns:repeat(2,minmax(260px,1fr));gap:8px;margin-bottom:10px}.stats-level-editor fieldset{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;border:1px solid #345268;border-radius:6px}.stats-level-editor legend{color:#f0c96d;font-weight:700}.stats-level-editor .stats-enabled{flex-direction:row;align-items:center}.general-modal:has(.founder-stats),.general-modal:has(.stats-page){width:min(1180px,96vw)}
.bot-event-summary{display:flex;flex-wrap:wrap;gap:7px}.bot-event-summary span{padding:7px 9px;border:1px solid #29475c;background:#091722;border-radius:5px;text-transform:capitalize}.bot-event-summary strong{color:#f2cb73}
.faq-levels{display:grid;grid-template-columns:auto 1fr auto;gap:7px 10px;align-items:center}.faq-levels small{color:#8fa7b7}
@media(max-width:700px){.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stats-settings-grid,.stats-level-editor{grid-template-columns:1fr}.stats-identity{align-items:flex-start;flex-direction:column}.stat-card{min-height:80px;padding:8px}.stat-card>strong{font-size:1.2rem}}


/* ===== Consolidated from assets/v181.css ===== */
/* Axinar v0.18.1 friends and Founder Workbench. */
.friends-v181,.friendship-weaver{display:grid;gap:14px}
.friends-v181 h2,.friendship-weaver h2{margin-bottom:3px}
.friends-v181 h3{display:flex;align-items:center;gap:7px;margin:4px 0 7px}
.friend-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px}
.friend-search input{min-width:0}
.friend-manager-list{display:grid;gap:6px}
.friend-manager-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:9px;align-items:center;padding:8px;border:1px solid #294961;border-radius:6px;background:#091722}
.friend-manager-identity{min-width:0}
.friend-manager-identity small{display:block;color:var(--muted);overflow:hidden;text-overflow:ellipsis}
.friend-manager-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px}
.relationship-state,.count-chip{display:inline-block;padding:3px 7px;border:1px solid #38566d;border-radius:999px;color:#a9bed0;font-size:.78rem}
.empty-state{padding:9px;border:1px dashed #294961;border-radius:6px}
.quiet-danger{border-color:#704044!important;color:#ffb5b5!important}
#founderWorkbench>summary{color:#d9bdf7!important}
.weaver-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;max-height:270px;overflow:auto}
.weaver-user{display:flex;align-items:center;justify-content:space-between;text-align:left;gap:8px;min-width:0}
.weaver-user span{min-width:0}
.weaver-user small{display:block;color:var(--muted);overflow:hidden;text-overflow:ellipsis}
.weaver-user.selected{border-color:#d0ac55;background:#24351c}
.weaver-selected{display:flex;flex-wrap:wrap;gap:6px;min-height:38px}
.weaver-chip{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border:1px solid #47667d;border-radius:999px;background:#132a3c}
.weaver-chip small{color:#a9bed0}
.weaver-chip button{padding:0 3px;border:0;background:transparent}
.weaver-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:9px;border-top:1px solid #294961}
.weaver-footer>div{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px}
@media(max-width:620px){.friend-manager-row{grid-template-columns:auto minmax(0,1fr)}.friend-manager-actions{grid-column:1/-1;justify-content:flex-start}.weaver-results{grid-template-columns:1fr}.weaver-footer{align-items:flex-start;flex-direction:column}.weaver-footer>div{justify-content:flex-start}}


/* ===== Consolidated from assets/v19.css ===== */
/* Axinar v0.19 Hall of Arcana. */
.hall-of-arcana{display:grid;gap:16px}.hall-of-arcana>header{display:flex;align-items:center;gap:12px}.hall-of-arcana h2,.hall-of-arcana p{margin:0}.achievement-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.achievement-card{display:grid;grid-template-columns:120px minmax(0,1fr);gap:12px;padding:10px;border:1px solid #385671;border-radius:7px;background:linear-gradient(145deg,#102638,#08151f)}.achievement-card>img,.achievement-card-rune{width:120px;height:120px;object-fit:cover;border-radius:5px;border:1px solid #98743b}.achievement-card-rune{display:grid;place-items:center;font-size:4rem;color:#e8c663;background:#211b35}.achievement-card.locked{filter:saturate(.35);opacity:.7}.achievement-card h3{margin:3px 0}.achievement-card p{margin:6px 0}.achievement-card span{font-size:.74rem;text-transform:uppercase;color:#c5a75a}.achievement-badge{display:inline-block;padding:2px 6px;border:1px solid var(--award-border);border-radius:4px;background:var(--award-bg);color:var(--award-fg);font-size:.68rem;letter-spacing:.04em;vertical-align:middle}.achievement-popup{text-align:center;max-width:680px;margin:auto}.achievement-popup-art{display:block;width:min(100%,620px);max-height:48vh;object-fit:contain;margin:0 auto 12px;border:2px solid #d0a945;border-radius:7px}.achievement-popup-rune{display:grid;place-items:center;width:120px;height:120px;margin:0 auto 10px;border:2px solid #d0a945;border-radius:50%;font-size:5rem;color:#f2d273;background:#2a2144}.achievement-popup h2{color:#ffd873;margin:4px 0}.achievement-popup h3{margin:4px 0}.achievement-category{color:#af92d2;text-transform:uppercase;letter-spacing:.12em;font-size:.75rem}.achievement-admin,.achievement-editor{display:grid;gap:13px}.achievement-admin-list{display:grid;gap:6px}.achievement-admin-list article{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px;border:1px solid #294961;border-radius:6px;background:#091722}.achievement-admin-list small{display:block;color:var(--muted);margin-top:3px}.achievement-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.achievement-fields label,.achievement-art-fields label{display:grid;gap:4px}.achievement-fields .wide{grid-column:1/-1}.achievement-toggles,.achievement-match{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.achievement-match{justify-content:space-between}.achievement-rule{display:grid;grid-template-columns:minmax(120px,1fr) 100px 150px auto;gap:6px;margin:6px 0}.achievement-rule [data-rule=word]{text-transform:uppercase}.achievement-test{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px}.achievement-test span{grid-column:1/-1}.achievement-art-fields{display:grid;grid-template-columns:1fr 1fr;gap:9px}.achievement-art-fields label{padding:9px;border:1px solid #294961;border-radius:6px}.avatar-preview{text-align:center}.avatar-preview img{display:block;width:min(78vw,520px);max-height:68vh;object-fit:contain;margin:auto;border:2px solid #d0ac55;border-radius:8px}.games-panel .games-section+.games-section,.games-panel .reveries{margin-top:14px;padding-top:12px;border-top:1px solid #365269}
@media(max-width:700px){.achievement-grid{grid-template-columns:1fr}.achievement-card{grid-template-columns:88px minmax(0,1fr)}.achievement-card>img,.achievement-card-rune{width:88px;height:88px}.achievement-fields{grid-template-columns:1fr 1fr}.achievement-rule{grid-template-columns:minmax(0,1fr) 72px}.achievement-rule select{grid-column:1/2}.achievement-art-fields{grid-template-columns:1fr}}
.games-panel .game-list-section+.game-list-section{margin-top:14px;padding-top:12px;border-top:1px solid #365269}
.tiles-remaining-badge .bag-icon{width:1.8em;height:1.8em;fill:#a62732;stroke:#f0c869;stroke-width:1.5;vertical-align:middle;filter:drop-shadow(0 1px 1px #000)}
.achievement-manual{padding-top:10px;border-top:1px solid #355169}.achievement-manual>div{display:grid;grid-template-columns:minmax(150px,.7fr) minmax(180px,1fr) auto;gap:7px}.achievement-manual #manualAwardResults{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-column:1/-1}.achievement-manual #manualAwardResults button{text-align:left}


/* ===== Consolidated from assets/v20.css ===== */
/* Axinar v0.20 Social Play and Chat */
.chat-unread,.game-chat-count{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:#b4234b;color:#fff;font:700 11px/1 Lato,sans-serif}
.account-menu #chatMenuBtn{display:flex;align-items:center;justify-content:space-between;gap:12px}.mobile-nav-links #mobileChatBtn{position:relative}.mobile-nav-links .chat-unread{margin-left:auto}
.mobile-drawer-tab.right[data-chat-unread]:not([data-chat-unread="0"])::after{content:attr(data-chat-unread);position:absolute;top:-7px;left:-7px;min-width:17px;height:17px;padding:0 3px;border-radius:9px;background:#b4234b;color:#fff;font:700 10px/17px Lato,sans-serif}
.game-chat-panel{margin-top:12px;border-top:1px solid rgba(118,169,209,.25);padding-top:8px}.game-chat-head{display:flex;align-items:center;justify-content:space-between}.game-chat-head h3{margin:0 0 7px}.game-chat-messages{display:flex;flex-direction:column;gap:7px;max-height:260px;overflow:auto;padding:4px 2px 8px;scrollbar-width:thin}.game-chat-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;align-items:stretch}.game-chat-form textarea{min-width:0;resize:vertical;max-height:110px}.game-chat-form button{padding-inline:10px}.game-chat-panel>.tiny{margin:5px 0 0}
.chat-message{display:grid;grid-template-columns:28px minmax(0,1fr);gap:7px;padding:7px;border:1px solid rgba(107,151,187,.25);border-radius:7px;background:rgba(6,18,29,.58)}.chat-message.mine{border-color:rgba(218,174,65,.36);background:rgba(44,34,15,.5)}.chat-message>.avatar{width:28px;height:28px}.chat-message header{display:flex;justify-content:space-between;gap:6px}.chat-message header strong{font-size:.82rem}.chat-message time{font-size:.66rem;color:#8fa9bd}.chat-message p{margin:2px 0;font-size:.82rem;line-height:1.35;overflow-wrap:anywhere}.chat-message footer{display:flex;gap:5px}.chat-message footer button,.chat-message.muted button{padding:2px 5px;border:0;background:none;color:#91aabd;font-size:.68rem}.chat-message.muted{display:flex;justify-content:space-between;color:#8497a6;font-size:.75rem}.chat-message.deleted{opacity:.65;font-style:italic}
.chat-reactions{display:flex;gap:3px;flex-wrap:wrap;margin-top:5px}.chat-reactions button{min-width:27px;padding:2px 4px;border:1px solid transparent;background:rgba(30,48,64,.65);font-size:.73rem}.chat-reactions button:hover,.chat-reactions button.mine{border-color:#d7ae46;background:rgba(87,66,20,.64)}.chat-reactions span{font-size:.63rem}.move .chat-reactions{margin-top:4px}.achievement-reactions{margin:10px 0}.achievement-reactions>span{font-size:.75rem;color:#9fb2c1}
.game-card,.side-game{position:relative}.game-chat-count{position:absolute;top:4px;right:4px;z-index:2}.game-card .game-chat-count{right:72px}
.chat-hub{min-height:min(620px,75vh)}.chat-hub-layout{display:grid;grid-template-columns:minmax(190px,30%) minmax(0,1fr);min-height:430px;border:1px solid rgba(91,141,181,.3);border-radius:8px;overflow:hidden}.chat-friend-list{border-right:1px solid rgba(91,141,181,.3);overflow:auto;background:rgba(4,14,23,.44)}.chat-friend-list>button{width:100%;display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:8px;align-items:center;padding:9px;border:0;border-bottom:1px solid rgba(91,141,181,.18);border-radius:0;text-align:left}.chat-friend-list>button.unread{background:rgba(63,91,27,.45)}.chat-friend-list .avatar{width:36px;height:36px}.chat-friend-list span{min-width:0}.chat-friend-list strong,.chat-friend-list small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-friend-list small{color:#8da5b7}.direct-chat-pane{display:flex;flex-direction:column;min-width:0;padding:10px}.chat-empty-rune{margin:auto auto 0;font-size:3rem}.direct-chat-pane>p{text-align:center;margin:auto}.direct-chat-head{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:9px;align-items:center;padding-bottom:8px;border-bottom:1px solid rgba(91,141,181,.28)}.direct-chat-head .avatar{width:38px;height:38px}.direct-chat-head strong,.direct-chat-head small{display:block}.direct-chat-messages{flex:1;min-height:260px;max-height:440px;overflow:auto;display:flex;flex-direction:column;gap:7px;padding:9px 2px}.chat-blocked-list{margin-top:10px}.chat-blocked-list details>div,.chat-restrictions>div{display:flex;justify-content:space-between;align-items:center;padding:6px;border-bottom:1px solid rgba(91,141,181,.2)}
.chat-report-list{display:grid;gap:9px}.chat-report{padding:10px;border:1px solid rgba(91,141,181,.3);border-radius:7px;background:rgba(6,18,29,.6)}.chat-report.open{border-left:4px solid #d0505f}.chat-report header,.chat-report footer{display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap}.chat-report blockquote{margin:8px 0;padding:8px;border-left:3px solid #6a8295;background:rgba(0,0,0,.2)}.chat-report-context{margin-top:8px;display:grid;gap:5px}.chat-settings-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:8px}.chat-settings-grid label{display:flex;flex-direction:column;gap:4px}.chat-settings-grid input{width:100%}.chat-moderation h3{margin-top:18px}
@media(max-width:700px){.chat-hub-layout{grid-template-columns:1fr;display:block}.chat-friend-list{max-height:180px;border-right:0;border-bottom:1px solid rgba(91,141,181,.3)}.direct-chat-pane{min-height:390px}.game-chat-messages{max-height:42vh}.chat-message footer button{font-size:.72rem}.chat-reactions button{min-width:31px}.chat-moderation{min-width:0}}

/* Match the bag's corner placement and disappear with Just Look. */
.game-chat-launcher{position:absolute;right:8px;bottom:14px;z-index:10;display:flex;align-items:center;gap:5px;padding:5px 8px;border-radius:6px;background:rgba(12,12,15,.82);border:1px solid rgba(255,255,255,.18);font:700 12px Lato,sans-serif}
.game-chat-launcher .chat-unread{position:absolute;right:-3px;top:-8px}
html.touch-layout .game-chat-launcher{right:34px}
@media(max-width:700px){.game-chat-launcher{bottom:116px}}
html.desktop-layout.game-active .game-chat-launcher{right:8px;bottom:8px;height:4.75dvh;min-width:7dvh;padding:.4dvh .8dvh;border-radius:.82dvh;font-size:1.55dvh;justify-content:center}
.play-column.just-looking .game-chat-launcher{opacity:0;pointer-events:none;transition:opacity 1.5s ease}
.game-chat-modal-card{width:min(720px,94vw)}
.game-chat-modal-card .game-chat-panel{border:0;margin:0;padding:0}
.game-chat-modal-card .game-chat-head{padding-right:36px;margin-bottom:10px}
.game-chat-modal-card .game-chat-messages{height:45vh;max-height:45vh;min-height:100px;margin-bottom:10px}
.chat-message time{white-space:nowrap}


/* ===== Consolidated from assets/v202.css ===== */
#mobileNavBtn{position:relative}.needs-attention::after{content:'';position:absolute;right:1px;top:1px;width:9px;height:9px;border-radius:50%;background:#b4234b;border:1px solid white}
.tiles-remaining-badge{overflow:visible!important}.tiles-remaining-badge .axnr-bag{width:38px;height:38px;object-fit:contain}.tiles-remaining-badge .bag-count{position:absolute;right:-4px;top:-7px}.tiles-remaining-badge{background:transparent;border:0}
.chat-pop{position:absolute;right:48px;top:10px}.chat-floating-card{position:fixed;left:24px;top:80px;width:min(650px,95vw);max-height:85vh;overflow:auto;z-index:45;padding:12px;box-shadow:0 6px 24px #000}.chat-float-handle{display:flex;justify-content:space-between;align-items:center;cursor:move;touch-action:none;padding-bottom:12px}.chat-floating-card .chat-hub{min-height:0}.chat-floating-card .chat-hub-layout{min-height:0}.chat-floating-card .direct-chat-messages{min-height:120px;max-height:30vh}
#calibrationOutlines{position:fixed;inset:0;pointer-events:none;z-index:70}#calibrationOutlines>div{position:absolute;outline:1px solid #00ffff;color:#fff;background:transparent;font:11px monospace;text-shadow:1px 1px #000}#calibrationTools{position:fixed;top:8px;left:50%;transform:translateX(-50%);z-index:75;background:#07121d;padding:8px;display:flex;gap:8px;max-width:95vw;flex-wrap:wrap;border:1px solid cyan}
html.layout-calibration .play-column{background-color:#253340!important;background-image:linear-gradient(90deg,transparent calc(50% - 1px),red 50%,transparent calc(50% + 1px)),linear-gradient(transparent calc(50% - 1px),red 50%,transparent calc(50% + 1px)),repeating-linear-gradient(90deg,#aab6c5 0 1px,transparent 1px 100px),repeating-linear-gradient(#aab6c5 0 1px,transparent 1px 100px)!important;background-size:100% 100%!important;outline:3px solid #ffff00;outline-offset:-3px}

/* Desktop floating windows resize without replacing composers or restarting polling. */
.chat-floating-card{display:flex;flex-direction:column;box-sizing:border-box;resize:both;width:min(650px,95vw);height:min(650px,85vh);min-width:min(420px,95vw);min-height:min(340px,85vh);max-width:95vw;max-height:95vh;overflow:auto}
.chat-floating-card>.chat-float-handle{flex:0 0 auto;gap:8px;flex-wrap:wrap}
.chat-floating-card .chat-hub{display:flex;flex-direction:column;flex:1 1 0;min-height:0;overflow:hidden}
.chat-floating-card .chat-hub>.section-head,.chat-floating-card .chat-blocked-list{flex:0 0 auto}
.chat-floating-card .chat-blocked-list{max-height:90px;overflow:auto}
.chat-floating-card .chat-hub-layout{display:grid;grid-template-columns:minmax(120px,30%) minmax(0,1fr);flex:1 1 0;min-height:0}
.chat-floating-card .direct-chat-pane{min-height:0;overflow:hidden}
.chat-floating-card .direct-chat-messages{flex:1 1 0;min-height:0;max-height:none;overflow:auto}
.chat-floating-card .game-chat-panel{display:flex;flex-direction:column;flex:1 1 0;min-height:0;overflow:hidden;margin-top:0}
.chat-floating-card .game-chat-messages{flex:1 1 0;min-height:0;max-height:none;overflow:auto}
.chat-floating-card .game-chat-head,.chat-floating-card .game-chat-form,.chat-floating-card .game-chat-panel>.tiny{flex:0 0 auto}
.chat-floating-card .chat-friend-list{min-height:0;max-height:none;overflow:auto}


/* ===== Consolidated from assets/v204.css ===== */
/* Focused v0.20.4 layout fixes. */
#alertForm{display:grid;gap:14px;max-width:850px;margin:20px auto}
#alertForm label{display:flex;flex-direction:column;gap:6px;min-width:0}
#alertForm input:not([type=checkbox]),#alertForm textarea,#alertForm select{box-sizing:border-box;width:100%;min-width:0}
#alertForm textarea{min-height:180px;resize:vertical;line-height:1.5}
#alertForm label:has(input[type=checkbox]){flex-direction:row;align-items:center}
.arcana-achievement h2{font-size:clamp(1.25rem,2.3vw,2rem)!important;line-height:1.3;max-width:30em;margin:12px auto}
.arcana-achievement img{max-height:42vh;object-fit:contain;width:auto;max-width:100%}
.general-modal{max-height:calc(100dvh - 24px);overflow-y:auto}
#founderContact{grid-column:1/-1;text-align:center;padding:8px 0 12px;font-size:.8rem}
#founderContact a{color:var(--muted,#9fb7c8);text-decoration:underline;text-underline-offset:3px}
.mobile-guidance{z-index:2200}.mobile-guidance .device-settings-card{max-width:600px;max-height:calc(100dvh - 24px);overflow:auto;padding:22px;line-height:1.5}.mobile-guidance h2{font-size:1.4rem}
.input-diagnostics{margin-top:18px}.input-diagnostics p{font-size:.9rem}
.bot-choice .bot-level{font-size:.7rem;white-space:nowrap}
.bug-attachments{display:flex;flex-wrap:wrap;gap:10px}.bug-attachments img{width:120px;height:90px;object-fit:contain}.bug-attachments figure{margin:0}.bug-attachments button{display:block}


/* ===== Consolidated from assets/v205.css ===== */
/* v0.20.5 maintenance polish. Keep these rules narrow so older release layers remain stable. */

/* #286: enlarge avatars where players are being presented, not the global header/account chrome. */
#players .avatar,.friend-person .avatar,.search-person .avatar,.chat-message .avatar,.direct-chat-head .avatar{width:43px;height:43px;object-fit:cover;flex:0 0 auto;object-position:center center}
#profileAvatar.avatar.big{width:83px;height:83px}

/* #278: name first, then compact membership/group and level badges on their own line. */
.friend-person>div,.search-person>div{min-width:0}.friend-person>div>strong,.search-person>div>strong{display:block}.friend-person .tier-badge,.search-person .tier-badge{display:inline-flex;margin:3px 0 0}.player-top>strong:first-child{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.player-top>strong:first-child .tier-badge{flex:0 0 auto;width:auto;margin:3px 0 0 15px}.v205-person-badge-line{display:block}.bot-choice strong{display:block}.bot-choice strong .bot-level{display:inline-flex;width:auto;margin:3px 0 0;color:#f3d35b}

/* #282: unread chat counts must never steal the action button's column. */
.game-card{position:relative;grid-template-columns:minmax(0,1fr) auto auto}.game-card>div:first-child{min-width:0}.game-card .openGame{flex:0 0 auto;white-space:nowrap}.game-card .game-chat-count{position:absolute;right:74px;top:8px;max-width:58px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* #284: the Pop out and close controls now share the same top line and height. */
.general-modal>.chat-pop,.general-modal>.modal-x{top:10px;height:34px;display:inline-flex;align-items:center;justify-content:center}.game-chat-head{display:flex;align-items:center;gap:10px}.game-chat-head h3{margin:0 auto 0 0}.game-chat-head button{min-height:34px;display:inline-flex;align-items:center;justify-content:center}

/* #268: score colour comes from database-driven bands via --player-score-colour. */
.player .v205-score,.mobile-player .v205-score{color:var(--player-score-colour,#fff);text-shadow:0 1px 2px rgba(0,0,0,.55)}

/* #285: cosmetic bot-turn theatre. */
.bot-thinking.v205-thinking{animation:v205-thinking-pulse 1.4s ease-in-out infinite}.bot-thinking.v205-cast{opacity:.78;font-style:italic}@keyframes v205-thinking-pulse{0%,100%{opacity:.62}50%{opacity:1}}

/* #252 first pass: placement sparkle plus restrained mutable pulse/hover. */
#board .tile:not(.locked){animation:v205-tile-arrive .55s ease-out}.tile.mutable.locked{animation:v205-mutable-breathe 4.8s ease-in-out infinite}.tile.mutable.locked:hover{opacity:.92;filter:brightness(1.28);box-shadow:0 0 10px rgba(245,237,159,.52),0 0 18px rgba(116,183,255,.30),inset 0 1px 1px rgba(255,255,255,.9)}
@keyframes v205-tile-arrive{0%{filter:brightness(1.8);box-shadow:0 0 0 rgba(255,255,255,0)}35%{box-shadow:0 0 13px rgba(255,244,171,.9),0 0 22px rgba(124,194,255,.52)}100%{filter:none}}
@keyframes v205-mutable-breathe{0%,100%{filter:brightness(1);box-shadow:0 2px 4px rgba(0,0,0,.5),inset 0 1px 1px rgba(255,255,255,.8)}50%{filter:brightness(1.10);box-shadow:0 0 8px rgba(159,210,255,.28),0 2px 4px rgba(0,0,0,.5),inset 0 1px 1px rgba(255,255,255,.8)}}
@media(prefers-reduced-motion:reduce){#board .tile:not(.locked),.tile.mutable.locked,.bot-thinking.v205-thinking{animation:none}}

/* Founder score-band editor. */
.v205-score-bands{display:grid;gap:9px;margin:10px 0 18px}.v205-score-band{display:grid;grid-template-columns:minmax(90px,1fr) 90px 90px 70px;gap:8px;align-items:end}.v205-score-band label{display:grid;gap:4px;font-size:.8rem}.v205-score-band input[type=number]{width:100%;box-sizing:border-box}.v205-score-band input[type=color]{width:100%;height:38px;padding:2px}@media(max-width:650px){.v205-score-band{grid-template-columns:1fr 1fr}.game-card .game-chat-count{position:static;justify-self:start;grid-column:1/2}}


/* ===== Consolidated from assets/v206.css ===== */
/* Axinar v0.20.6 responsive Games/profile/chat polish. */

/* #297: one card design, two-wide desktop and one-wide mobile. */
.game-card-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}
.game-card{display:block!important;min-width:0;padding:0!important;border:1px solid #294052!important;border-radius:0!important;overflow:hidden;background:linear-gradient(105deg,rgba(31,61,22,.72),rgba(5,19,28,.96) 62%)!important}
.game-card:not(.your-turn){background:linear-gradient(105deg,rgba(8,27,39,.94),rgba(5,17,26,.98))!important}
/* v0.20.6.1: content-driven height. Keep the four-line hierarchy without wasting vertical space. */
.game-card-main{position:relative;display:grid;grid-template-rows:auto auto auto auto;gap:5px;padding:16px 18px;min-width:0}
.game-name{font-size:1.18rem;font-weight:900;color:#fff}.game-players,.game-score{font-size:.96rem;color:#9fb7c8}.game-score{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.game-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-top:10px}.game-status{min-width:0}.game-status>span:not(.turn-chip){font-size:1rem;color:#eef5ff}.game-actions{display:flex;align-items:center;gap:8px;flex:none}.game-actions .openGame{min-width:94px;font-size:1.05rem}.game-card .game-chat-count{position:absolute!important;right:14px!important;top:12px!important;z-index:3}.game-card .nudge-chip{position:absolute;right:54px;top:15px}

/* First two lines stay single-line. If they do not fit, JS measures the exact overflow and gently pans them. */
.overflow-marquee{min-width:0;overflow:hidden;white-space:nowrap}.overflow-marquee>span{display:inline-block;min-width:max-content}.overflow-marquee.scrolling>span{animation:marquee-pan 7s ease-in-out 1.1s infinite alternate}@keyframes marquee-pan{0%,12%{transform:translateX(0)}88%,100%{transform:translateX(calc(-1 * var(--marquee-overflow)))}}
.game-section-title{margin:20px 0 10px}.game-section-title:first-child{margin-top:0}.game-section-title:is(:where(*)){letter-spacing:.01em}.game-section-title{color:#f4cf73}.game-section-title:first-of-type{text-shadow:0 0 10px rgba(244,207,115,.2)}

/* v0.20.6.5: top row is colour dot + marquee name + score; badges are a separate row beneath the name. */
.player-top{display:flex!important;align-items:center!important;gap:10px!important;min-width:0}
.player-top>strong:first-child{display:flex!important;align-items:center!important;gap:8px!important;flex:1 1 auto!important;min-width:0!important;flex-wrap:nowrap!important}
.player-name-marquee{display:block;flex:1 1 auto;min-width:0;overflow:hidden;white-space:nowrap}
.player-name-marquee>span{font-weight:900}
.player-badges{display:flex;align-items:center;gap:9px;min-height:30px;margin:4px 0 1px 40px}
.player-badges .tier-badge,.player-badges .level-badge{flex:0 0 auto!important;width:auto!important;margin:0!important}
.player{overflow:hidden}

/* #288: chat avatars have their own geometry and can never overlap text. */
.chat-message{display:grid!important;grid-template-columns:52px minmax(0,1fr)!important;column-gap:12px!important;align-items:start}.chat-message>.avatar{width:48px!important;height:48px!important;margin:0!important}.chat-message>div{min-width:0}.chat-message header,.chat-message p,.chat-message footer{min-width:0}.chat-message.muted{display:flex!important}

/* v0.20.6.3: align existing chat controls without moving them or touching their event handlers. */
.game-chat-modal-card{position:relative}.game-chat-modal-card .game-chat-head{padding-right:236px!important}.game-chat-modal-card #gameChatRefresh{position:absolute!important;top:10px!important;right:150px!important;height:34px!important;min-height:34px!important;margin:0!important;display:inline-flex!important;align-items:center!important}.game-chat-modal-card>.chat-pop{top:10px!important;right:48px!important;height:34px!important;min-height:34px!important;display:inline-flex!important;align-items:center!important}.game-chat-modal-card>.modal-x{top:10px!important;right:10px!important;height:34px!important;min-height:34px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}

/* #289: enlarged avatar card is an identity card, not a line of concatenated labels. */
.player-profile-card{text-align:center;display:grid;justify-items:center;gap:12px;padding:4px 10px 12px}.player-profile-avatar{display:block;width:min(760px,78vw);height:min(760px,72vh);max-width:100%;object-fit:contain;border:2px solid #d4aa4f;border-radius:12px;background:#090e12}.player-profile-card h2{margin:8px 0 0;font-size:1.65rem}.player-profile-badges{display:flex;justify-content:center;align-items:center;gap:9px;flex-wrap:wrap}.player-profile-badges .tier-badge,.player-profile-badges .level-badge{font-size:.82rem;padding:5px 10px}.player-level-static{background:#334155;color:#fff;border:1px solid #64748b}

/* #287: respect the hidden state of the chat-only pop-out control. */
.general-modal>.chat-pop[hidden]{display:none!important}

/* #295: on smaller desktop viewports reserve a safe strip above the board for Just Look. */
@media (max-width:1250px),(max-height:760px){html.desktop-layout.game-active .play-column{padding-top:48px!important}.just-look-button{top:8px!important;right:8px!important}}

@media(max-width:700px){.game-card-grid{grid-template-columns:1fr!important;gap:12px!important}.game-card-main{padding:14px 14px;gap:4px}.game-footer{padding-top:8px}.game-actions .openGame{min-width:88px}.game-card .game-chat-count{right:12px!important;top:10px!important}.game-card .nudge-chip{right:52px;top:13px}.overflow-marquee.scrolling>span{animation-duration:6s}.player-profile-avatar{width:min(90vw,680px);height:auto;max-height:68vh}.game-chat-modal-card .game-chat-head{padding-right:0!important;padding-top:46px!important}.game-chat-modal-card #gameChatRefresh{right:132px!important}.game-chat-modal-card>.chat-pop{right:42px!important}}

@media(prefers-reduced-motion:reduce){.overflow-marquee.scrolling>span{animation:none;text-overflow:ellipsis;max-width:100%;overflow:hidden}}

