:root {
  color-scheme: light;
  --bg: #faf9f7;
  --paper: #fff;
  --ink: #252034;
  --muted: #655e71;
  --soft: #f2edf8;
  --line: #e8e1ec;
  --accent: #633cac;
  --accent-dark: #4f2c94;
  --accent-light: #f3edfb;
  --display: Georgia, 'Times New Roman', serif;
  --body: 'Aptos', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
*,*::before,*::after { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--ink); font-family:var(--body); font-size:16px; -webkit-font-smoothing:antialiased; }
button,input,select,textarea { font:inherit; }
button,[type=checkbox],select { cursor:pointer; }
a { color:inherit; text-decoration:none; }
a:hover { color:var(--accent); }
button { color:inherit; }
svg { display:inline-block; vertical-align:middle; flex:none; }
img { display:block; max-width:100%; }
h1,h2,h3,p { margin:0; }
[hidden] { display:none !important; }
:focus-visible { outline:3px solid #8754dc; outline-offset:4px; }
:disabled { cursor:wait; opacity:.66; }
.sr-only,.skip:not(:focus) { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.skip:focus { z-index:10; position:fixed; top:10px; left:10px; padding:12px; background:#fff; }
#app { min-height:100vh; display:flex; flex-direction:column; }
main { flex:1; }
#main:focus { outline:none; }
.wrap,.header-inner,.footer-inner { max-width:1216px; width:calc(100% - 96px); margin-inline:auto; }
.site-header { background:#fff; border-bottom:1px solid #eee9ef; }
.header-inner { height:70px; display:flex; align-items:center; gap:31px; }
.brand { display:inline-flex; align-items:center; gap:9px; white-space:nowrap; color:var(--ink); font-size:21px; font-weight:760; letter-spacing:-.065em; }
.brand-mark { display:grid; place-items:center; background:var(--accent); color:white; border-radius:10px; width:34px; height:34px; }
.brand-mark svg { transform:rotate(-13deg); }
.brand-tango { color:var(--accent); }
.main-nav { display:flex; gap:7px; align-items:center; }
.nav-link { display:inline-flex; align-items:center; gap:7px; color:#514765; font-size:14px; font-weight:630; white-space:nowrap; padding:9px 10px; border-radius:8px; }
.nav-link:hover,.nav-link.active { color:var(--accent); background:var(--accent-light); }
.search { display:flex; align-items:center; width:min(220px,24vw); height:39px; padding:0 11px; gap:7px; border:1px solid #eae5ed; border-radius:9px; background:#faf9fb; color:#665a77; }
.header-inner > .search { margin-left:auto; }
.search:focus-within { border-color:#a789d3; }
.search input { min-width:0; width:100%; background:transparent; border:0; outline:none; font-size:14px; color:var(--ink); padding:0; }
.search input::placeholder { color:#70657a; }
.account-nav { display:inline-flex; align-items:center; gap:7px; white-space:nowrap; color:var(--ink); font-size:14px; font-weight:650; margin-left:-11px; }
.mobile-menu,.mobile-panel { display:none !important; }
.home { padding:37px 0 62px; }
.hero { display:grid; grid-template-columns:.93fr 1.07fr; align-items:stretch; min-height:365px; gap:24px; padding:18px; border:1px solid #e8dff1; border-radius:25px; background:linear-gradient(107deg,#f6effb 0%,#f4edf9 48%,#ece0f4 100%); }
.hero-copy { display:flex; flex-direction:column; align-items:flex-start; justify-content:center; padding:24px 0 24px clamp(10px,3vw,39px); }
.daily-label { display:inline-flex; align-items:center; gap:7px; padding:6px 10px; background:#fff9; border:1px solid #e6d9f1; border-radius:20px; color:#57358c; font-size:13px; font-weight:700; white-space:nowrap; }
.daily-label span,.dot { width:4px; height:4px; border-radius:50%; background:currentColor; display:inline-block; opacity:.66; }
.hero h1 { font-family:var(--display); font-weight:500; font-size:clamp(43px,5.45vw,84px); letter-spacing:-.072em; line-height:.99; margin:14px 0 15px; }
.hero h1 em { color:#6840a2; font-weight:400; }
.hero-copy > p:not(.resume) { color:#554b65; max-width:350px; font-size:16px; line-height:1.5; }
.hero-actions,.inline-actions { display:flex; flex-wrap:wrap; gap:9px; align-items:center; }
.hero-actions { margin-top:21px; }
.resume { margin-top:13px; }
.button { display:inline-flex; justify-content:center; align-items:center; gap:7px; min-height:43px; padding:10px 14px; border-radius:9px; font-weight:670; font-size:14px; line-height:1.25; white-space:nowrap; border:1px solid transparent; background:#fff; color:var(--ink); text-decoration:none; cursor:pointer; }
.button.primary { background:var(--accent); color:#fff; box-shadow:0 2px 3px #4b267c20; }
.button.primary:hover { background:var(--accent-dark); color:#fff; }
.button.outline { background:#ffffff80; border-color:#dbcee7; color:#553779; }
.button.outline:hover { background:#fff; border-color:#ac91ca; }
.button.quiet { border-color:#e5dcec; color:#553779; }
.button.quiet:hover { background:var(--accent-light); border-color:#cdb9df; }
.button.small { min-height:37px; padding:7px 11px; }
.hero-art { position:relative; overflow:hidden; border-radius:15px; align-self:stretch; min-height:335px; isolation:isolate; display:flex; align-items:end; background:#9976aa; border:1px solid #fffc; }
.hero-art > img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center; z-index:-2; transition:transform .35s ease; }
.hero-art:hover > img { transform:scale(1.035); }
.hero-art::after { content:''; position:absolute; inset:40% 0 0; background:linear-gradient(transparent,#1e1732dd); z-index:-1; }
.hero-mesh { position:absolute; inset:0; pointer-events:none; opacity:.31; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 370' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23fff' stroke-width='1.1'%3E%3Cpath d='M150 0v40c0 9-8 10-13 7-11-6-17 6-16 14 1 9 8 13 16 10 6-3 13-2 13 7v73c0 8 7 11 13 7 11-7 18 4 17 13-1 9-10 14-17 10-6-3-13-2-13 8v76c0 9-7 11-13 7-10-6-17 4-16 13 1 9 8 13 16 10 6-4 13-2 13 7v68M300 0v40c0 9 8 10 13 7 11-6 17 6 16 14-1 9-8 13-16 10-6-3-13-2-13 7v73c0 8-7 11-13 7-11-7-18 4-17 13 1 9 10 14 17 10 6-3 13-2 13 8v76c0 9 7 11 13 7 10-6 17 4 16 13-1 9-8 13-16 10-6-4-13-2-13 7v68M450 0v40c0 9-8 10-13 7-11-6-17 6-16 14 1 9 8 13 16 10 6-3 13-2 13 7v73c0 8 7 11 13 7 11-7 18 4 17 13-1 9-10 14-17 10-6-3-13-2-13 8v76c0 9-7 11-13 7-10-6-17 4-16 13 1 9 8 13 16 10 6-4 13-2 13 7v68'/%3E%3Cpath d='M0 123h57c9 0 10-8 7-13-6-11 6-17 14-16 9 1 13 8 10 16-3 6-2 13 7 13h110c8 0 11 7 7 13-7 11 4 18 13 17 9-1 14-10 10-17-3-6-2-13 8-13h115c8 0 11-7 7-13-7-11 4-18 13-17 9 1 14 10 10 17-3 6-2 13 8 13h110c9 0 10 8 7 13-6 11 6 17 14 16 9-1 13-8 10-16-3-6-2-13 7-13h56M0 246h57c9 0 10 8 7 13-6 11 6 17 14 16 9-1 13-8 10-16-3-6-2-13 7-13h110c8 0 11-7 7-13-7-11 4-18 13-17 9 1 14 10 10 17-3 6-2 13 8 13h115c8 0 11 7 7 13-7 11 4 18 13 17 9-1 14-10 10-17-3-6-2-13 8-13h110c9 0 10-8 7-13-6-11 6-17 14-16 9 1 13 8 10 16-3 6-2 13 7 13h56'/%3E%3C/g%3E%3C/svg%3E"); background-size:100% 100%; }
.hero-caption { display:flex; align-items:end; justify-content:space-between; width:100%; padding:19px; color:#fff; }
.hero-caption strong { display:block; font-size:22px; line-height:1.2; font-weight:650; letter-spacing:-.035em; }
.hero-caption small { display:block; color:#f3ecff; margin-top:4px; font-size:13px; }
.hero-caption > span,.card-play { display:grid; place-items:center; width:38px; height:38px; background:#fff; border-radius:50%; color:var(--accent); }
.home-featured { margin-top:44px; }
.section-top { display:flex; align-items:end; justify-content:space-between; gap:15px; margin-bottom:17px; }
.section-top h2,.create-banner h2,.collection-section h2 { font-family:var(--display); font-size:clamp(26px,3vw,39px); font-weight:500; line-height:1.08; letter-spacing:-.045em; }
.section-top p,.create-banner p { color:var(--muted); margin-top:6px; line-height:1.5; }
.category-row { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 19px; }
.chip { display:inline-flex; align-items:center; gap:6px; border:1px solid #e7dfeb; background:#fff; border-radius:22px; padding:8px 12px; color:#554865; font-size:14px; font-weight:630; line-height:1.2; white-space:nowrap; }
.chip svg { width:15px; height:15px; }
.chip.current,.chip:hover { background:#f2eafa; color:#583893; border-color:#ddccef; }
.grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.card { background:#fff; border:1px solid #e9e3eb; box-shadow:0 2px 4px #271a3710; border-radius:13px; overflow:hidden; min-width:0; }
.card-art { border-bottom:1px solid #e8e1e9; position:relative; height:auto; aspect-ratio:1.54; display:block; overflow:hidden; background:var(--card-color); }
.card-art:focus-visible { outline-offset:-4px; z-index:1; }
.card-art img { width:100%; height:100%; object-fit:cover; transition:transform .25s; }
.card-art:hover img { transform:scale(1.04); }
.pieces-badge { position:absolute; right:8px; top:8px; padding:4px 7px; color:#fff; background:#292037df; border:1px solid #ffffff49; display:inline-flex; align-items:center; gap:4px; border-radius:20px; font-size:12px; font-weight:650; }
.card-play { position:absolute; bottom:8px; left:9px; width:32px; height:32px; box-shadow:0 2px 7px #23173550; opacity:0; transform:translateY(5px); transition:opacity .18s,transform .18s; }
.card-art:hover .card-play,.card-art:focus-visible .card-play { opacity:1; transform:none; }
.card-body { padding:12px 13px 13px; }
.card h3 { font-size:16px; font-weight:700; line-height:1.25; letter-spacing:-.022em; overflow-wrap:anywhere; }
.card-meta { color:var(--muted); display:flex; align-items:center; flex-wrap:wrap; gap:7px; margin-top:4px; font-size:13px; }
.manage { padding-top:8px; font-size:14px; }
.create-banner { margin-top:42px; border:1px solid #e7def0; background:#f3ecf9; border-radius:15px; display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:15px; padding:22px; }
.banner-icon,.empty-icon { display:grid; place-items:center; border-radius:12px; width:54px; height:54px; background:#e9daf7; color:var(--accent); }
.create-banner h2 { font-size:clamp(23px,3vw,32px); }
.site-footer { border-top:1px solid #eae3eb; background:#fff; }
.footer-inner { display:flex; align-items:center; gap:24px; min-height:88px; padding-block:13px; }
.footer-inner .brand { font-size:18px; }
.footer-inner .brand-mark { width:29px; height:29px; border-radius:7px; }
.footer-inner nav { display:flex; align-items:center; flex-wrap:wrap; gap:14px; margin-left:auto; color:#544962; font-size:14px; }
.footer-inner small { font-size:13px; color:#706879; white-space:nowrap; }
.inner { padding:40px 0 68px; }
.page-heading { margin-bottom:21px; }
.section-top .page-heading { margin-bottom:0; }
.page-heading h1,.play-title h1 { font:500 clamp(38px,5vw,61px)/1.05 var(--display); letter-spacing:-.052em; overflow-wrap:anywhere; }
.page-heading p:not(.eyebrow) { color:var(--muted); margin-top:8px; line-height:1.5; max-width:650px; }
.eyebrow { color:var(--accent); font-size:14px; font-weight:750; margin-bottom:7px; display:flex; align-items:center; gap:6px; }
.results-count { color:var(--muted); font-size:14px; margin-bottom:12px; }
.loading { color:var(--muted); padding:28px 0; }
.empty { border:1px dashed #ddd3e8; border-radius:16px; padding:44px 18px; background:#fff; text-align:center; }
.empty-icon { margin-inline:auto; }
.empty h2 { margin:13px 0 6px; font:500 28px/1.12 var(--display); }
.empty p { color:var(--muted); line-height:1.5; }
.empty .button { margin-top:14px; }
.panel { border:1px solid var(--line); border-radius:15px; background:#fff; padding:21px; min-width:0; }
.panel h2 { font:500 26px/1.18 var(--display); letter-spacing:-.035em; margin-bottom:10px; }
.panel p { color:var(--muted); line-height:1.55; }
.panel .category-row { margin-block:13px 0; }
.text-page { max-width:820px; }
.prose h2:not(:first-child) { margin-top:21px; }
.help-list { color:var(--muted); padding-left:20px; line-height:1.55; }
.help-list li + li { margin-top:5px; }
.play-page { padding:20px 0 55px; max-width:1130px; }
.breadcrumbs { display:flex; gap:9px; align-items:center; font-size:14px; color:var(--muted); margin-bottom:12px; }
.breadcrumbs a,.subtle-link { display:inline-flex; align-items:center; gap:5px; color:var(--accent); font-weight:650; font-size:14px; }
.subtle-link:hover,.breadcrumbs a:hover { text-decoration:underline; }
.play-title { display:flex; justify-content:space-between; align-items:end; gap:12px; margin-bottom:13px; }
.play-title h1 { font-size:clamp(29px,4.25vw,53px); }
.play-title p:not(.eyebrow) { color:var(--muted); font-size:14px; margin-top:6px; }
.play-title p span { margin-inline:4px; }
.play-actions { display:flex; gap:7px; align-items:center; }
.game-shell { border:1px solid #e3d9eb; border-radius:14px; overflow:hidden; background:#fff; }
.game-shell:fullscreen { display:flex; flex-direction:column; border:0; border-radius:0; padding:0; width:100%; }
.game-shell:fullscreen .board { flex:1; aspect-ratio:auto; }
.game-top,.game-tools { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:5px 12px; min-height:45px; }
.game-top { border-bottom:1px solid #e3d9eb; font-size:14px; color:#554966; }
.game-top svg { color:var(--accent); }
.game-top b { color:var(--ink); }
.game-top progress { border-radius:20px; width:min(150px,24vw); height:6px; border:none; accent-color:var(--accent); margin-right:auto; }
.game-top progress::-webkit-progress-bar { background:#eee6f3; border-radius:20px; }
.game-top progress::-webkit-progress-value { background:var(--accent); border-radius:20px; }
.timer,.tool-group { display:flex; align-items:center; gap:4px; white-space:nowrap; }
.timer { margin-left:auto; gap:7px; font-variant-numeric:tabular-nums; }
.tool { display:grid; place-items:center; width:37px; height:36px; border:1px solid transparent; border-radius:7px; background:transparent; color:#544668; padding:0; }
.tool:hover,.tool[aria-pressed="true"] { background:var(--accent-light); border-color:#e5d7f1; color:var(--accent); }
.timer .tool { border:1px solid #eae1ed; width:31px; height:31px; }
.board { position:relative; aspect-ratio:1100/645; min-height:340px; background:#eee7f2; background-image:radial-gradient(#735a892d .7px,transparent .9px); background-size:13px 13px; }
.board-sage { background-color:#e1eade; }
.board-dark { background-color:#31283d; background-image:radial-gradient(#d3b9ef48 .7px,transparent .9px); }
canvas { display:block; width:100%; height:100%; position:absolute; inset:0; touch-action:none; cursor:grab; }
canvas:active { cursor:grabbing; }
canvas:focus-visible { outline-offset:-3px; z-index:1; }
.board-mask { z-index:2; position:absolute; inset:0; display:flex; flex-direction:column; gap:9px; align-items:center; justify-content:center; background:#f5f0f9ee; font-weight:670; color:#5d4376; text-align:center; padding:10px; }
.game-tools { border-top:1px solid #e3d9eb; }
.play-info { display:grid; gap:18px; margin-top:20px; }
.play-info > div { background:#fff; border:1px solid var(--line); border-radius:13px; padding:17px; }
.play-info h2 { font:500 25px/1.14 var(--display); margin-bottom:7px; }
.play-info p { color:var(--muted); line-height:1.5; font-size:15px; }
.play-info .inline-actions { margin-top:8px; }
.embedded .play-page { width:100%; padding:9px; }
.embedded .play-title { margin:0 0 8px; }
.embedded .play-title h1 { font-size:25px; }
.create-page { max-width:1030px; }
.create-layout { display:grid; grid-template-columns:1.08fr .92fr; gap:15px; align-items:start; }
.form { display:grid; gap:14px; align-items:start; }
.form.compact { gap:10px; }
.form .button { justify-self:start; }
.form-pair { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.field { display:grid; gap:6px; color:#4d405e; font-size:14px; font-weight:660; min-width:0; }
input:not([type=checkbox],[type=file],[type=search]),select,textarea { padding:9px 10px; border:1px solid #dfd5e6; border-radius:7px; background:#fbf9fc; color:var(--ink); width:100%; font-size:16px; min-height:39px; }
textarea { resize:vertical; }
select { font-size:14px; }
.form select { appearance:none; padding-right:28px; background:#fbf9fc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' stroke='%2357466d' stroke-width='1.7' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 9px center; }
.toggle-label { display:flex; gap:8px; align-items:center; color:#4c3e5c; font-size:15px; }
.toggle-label input { accent-color:var(--accent); width:17px; height:17px; }
.form-error { color:#9b2342 !important; font-size:14px; font-weight:670; }
.field-note { color:var(--muted); font-size:14px; }
.drop { display:grid; place-items:center; position:relative; min-height:258px; border:1px dashed #b397ce; border-radius:12px; padding:15px; text-align:center; background:#f9f4fc; cursor:pointer; color:var(--accent); overflow:hidden; }
.drop:hover,.drop.over { background:#f0e5f9; }
.drop:focus-within { outline:3px solid #8754dc; }
.drop input { opacity:0; position:absolute; inset:0; width:100%; height:100%; cursor:pointer; }
.drop strong,.drop small { display:block; margin-top:7px; }
.drop small { color:var(--muted); font-size:13px; }
.drop img { width:100%; height:250px; object-fit:contain; }
#photo-status { font-size:14px; margin-top:7px; }
.reference { max-width:100%; max-height:65vh; margin:auto; object-fit:contain; border-radius:9px; }
.collection-section { margin-top:25px; }
.collection-section h2 { font-size:30px; margin-bottom:12px; }
.text-button { background:none; border:0; color:var(--accent); font-weight:650; padding:4px; font-size:14px; text-decoration:underline; }
.danger { color:#971c39; }
.manage-footer { border-top:1px solid var(--line); padding-top:12px; margin-top:16px; }
dialog { width:min(calc(100% - 28px),480px); max-height:90vh; border:1px solid #d8c7e5; border-radius:15px; padding:18px; color:var(--ink); background:#fff; box-shadow:0 8px 50px #281d3d5c; }
dialog::backdrop { background:#28203488; }
.dialog-top { display:flex; justify-content:space-between; gap:10px; align-items:center; margin-bottom:10px; }
.dialog-top h2 { font:500 30px/1.1 var(--display); letter-spacing:-.03em; }
dialog p { color:var(--muted); line-height:1.5; margin-block:4px 8px; }
dialog p:last-child { margin-bottom:0; }
.completed { text-align:center; }
.completed .inline-actions { justify-content:center; }
.toast { position:fixed; bottom:20px; left:50%; transform:translateX(-50%); max-width:calc(100% - 30px); background:#37264e; color:#fff; font-size:14px; border-radius:9px; padding:10px 13px; z-index:4; box-shadow:0 4px 10px #25163842; }
@media(max-width:1050px) {
  .wrap,.header-inner,.footer-inner { width:calc(100% - 56px); }
  .header-inner { gap:15px; }
  .account-nav { margin-left:0; }
}
@media(max-width:820px) {
  .header-inner { gap:9px; }
  .nav-link { padding-inline:7px; }
  .main-nav { gap:1px; }
  .header-inner .search { width:135px; }
  .hero { gap:13px; padding:10px; min-height:300px; }
  .hero-art { min-height:287px; }
  .hero-actions { gap:6px; }
  .hero-actions .button { padding-inline:9px; }
  .grid { gap:10px; }
}
@media(max-width:700px) {
  .header-inner > .main-nav,.header-inner > .search,.header-inner > .account-nav { display:none; }
  .mobile-menu { display:grid !important; margin-left:auto; }
  .mobile-panel:not([hidden]) { display:grid !important; padding:0 16px 13px; gap:8px; }
  .mobile-panel nav { display:flex; flex-wrap:wrap; gap:4px; }
  .mobile-panel .search { width:100%; }
  .header-inner { height:56px; }
  .wrap,.header-inner,.footer-inner { width:calc(100% - 32px); }
  .home { padding-top:15px; padding-bottom:31px; }
  .hero { grid-template-columns:1fr; border-radius:17px; gap:7px; }
  .hero-copy { padding:17px 8px 15px; }
  .hero h1 { font-size:clamp(46px,9vw,65px); }
  .hero-copy > p:not(.resume) { font-size:15px; }
  .hero-art { min-height:0; aspect-ratio:1.55; border-radius:11px; }
  .hero-caption { padding:12px; }
  .hero-caption strong { font-size:19px; }
  .home-featured { margin-top:26px; }
  .category-row { gap:6px; }
  .chip { font-size:13px; padding:7px 9px; }
  .grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .section-top { gap:8px; align-items:start; }
  .section-top p { font-size:14px; }
  .section-top > .button { padding:7px 8px; min-height:35px; font-size:12px; }
  .section-top > .button svg { display:none; }
  .inner { padding:25px 0 37px; }
  .create-layout,.play-info { grid-template-columns:1fr; }
  .create-banner { grid-template-columns:auto 1fr; gap:9px; margin-top:25px; padding:13px; }
  .create-banner .button { grid-column:2; justify-self:start; }
  .create-banner .banner-icon { width:39px; height:39px; }
  .footer-inner { flex-wrap:wrap; gap:10px 13px; padding-block:13px; }
  .footer-inner nav { margin-left:0; gap:10px; }
}
@media(max-width:650px) {
  .play-page { width:calc(100% - 18px); padding-top:13px; }
  .play-title h1 { font-size:31px; }
  .play-title { padding-inline:3px; }
  .board { aspect-ratio:520/670; min-height:0; }
  .tool { width:33px; }
  .game-tools { padding-inline:4px; gap:4px; }
  .tool-group { gap:1px; }
  .game-top{padding-inline:7px;}
}
@media(max-width:370px) {
  .wrap:not(.play-page),.header-inner,.footer-inner { width:calc(100% - 24px); }
  .hero-actions .button { font-size:13px; min-height:39px; }
  .tool { width:27px; }
  .board { aspect-ratio:520/725; }
  .play-actions .button svg { display:none; }
}
@media(prefers-reduced-motion:reduce){ *,*::before,*::after { transition:none !important; } }
.weekly-link { margin-top:13px; }

/* Phone board: pinch zoom, focus mode, floating reference */
.board { overscroll-behavior:contain; -webkit-user-select:none; user-select:none; }
.game-shell.focus { position:fixed; inset:0; z-index:50; display:flex; flex-direction:column; border:0; border-radius:0; height:100dvh; }
.game-shell.focus .board { flex:1; aspect-ratio:auto; min-height:0; }
html.focus-lock, html.focus-lock body { overflow:hidden; }
.ref-float { position:absolute; z-index:1; top:8px; right:8px; width:min(38%,230px); border:2px solid #fff; border-radius:9px; box-shadow:0 4px 18px #281d3d55; background:#fff; touch-action:none; cursor:move; }
.ref-float[hidden] { display:none; }
.ref-float img { display:block; width:100%; border-radius:7px; pointer-events:none; }
.ref-float .tool { position:absolute; top:-12px; right:-12px; width:44px; height:44px; border-radius:50%; background:transparent; }
.ref-float .tool::before { content:''; position:absolute; inset:10px; border-radius:50%; background:#fff; box-shadow:0 1px 5px #281d3d55; z-index:-1; }
@media (max-width:650px) {
  .game-tools { flex-wrap:wrap; justify-content:center; padding:4px; gap:2px 8px; }
  .game-tools .tool, .game-tools .tool-group .tool { width:44px; height:44px; }
  .timer .tool { width:44px; height:44px; }
  .game-shell.focus .game-top { padding-top:max(5px,env(safe-area-inset-top)); }
  .game-shell.focus .game-tools { padding-bottom:max(4px,env(safe-area-inset-bottom)); }
}

/* ---------- Apple style, easy to read (Nov 2026 refresh) ---------- */
:root {
  --bg: #f7f6f3;
  --ink: #1d1d1f;
  --muted: #4c4a52;
  --line: #e4e1dc;
  --display: ui-serif, 'New York', Georgia, 'Times New Roman', serif;
  --body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --glass: rgba(255,255,255,.78);
  --shadow-soft: 0 1px 2px rgba(0,0,0,.05), 0 6px 20px rgba(0,0,0,.06);
}
body { font-size:17px; line-height:1.45; }
.site-header { position:sticky; top:0; z-index:20; background:var(--glass); -webkit-backdrop-filter:saturate(180%) blur(20px); backdrop-filter:saturate(180%) blur(20px); border-bottom:1px solid rgba(0,0,0,.08); }
.nav-link, .account-nav, .search input { font-size:15px; }
.search { border-radius:12px; height:42px; }
.button { border-radius:999px; min-height:48px; padding:11px 20px; font-size:16px; font-weight:600; }
.button.small { min-height:44px; padding:8px 16px; font-size:15px; }
.chip { border-radius:999px; font-size:15px; padding:10px 15px; min-height:44px; }
.hero { border:1px solid rgba(99,60,172,.12); box-shadow:inset 0 1px 0 rgba(255,255,255,.7), var(--shadow-soft); border-radius:28px; }
.hero-copy > p:not(.resume) { font-size:18px; color:#3f3a48; }
.daily-label { font-size:14px; }
.card { border-radius:18px; border:1px solid rgba(0,0,0,.06); box-shadow:var(--shadow-soft); transition:transform .2s ease, box-shadow .2s ease; }
.card:hover { transform:translateY(-3px); box-shadow:0 2px 4px rgba(0,0,0,.05), 0 14px 32px rgba(0,0,0,.12); }
.card-art:hover img { transform:none; }
.card h3 { font-size:17px; }
.card-meta { font-size:15px; }
.pieces-badge { background:rgba(15,15,20,.72); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); font-size:13px; padding:5px 9px; }
.card-play { opacity:1; transform:none; width:38px; height:38px; }
.breadcrumbs, .breadcrumbs a, .subtle-link, .play-title p:not(.eyebrow) { font-size:16px; }
.footer-inner nav { font-size:15px; }
.panel, .create-banner { border-radius:20px; }
.form-select, select, input[type=text], input[type=search] { font-size:17px; }

/* Game board: warm tabletop, labeled dock */
.game-shell { border-radius:22px; border:1px solid rgba(0,0,0,.07); box-shadow:var(--shadow-soft); }
.board, .board-cream { background-color:#efece5; background-image:radial-gradient(rgba(90,75,50,.10) .7px,transparent .9px); background-size:12px 12px; }
.board-sage { background-color:#e1e8dd; }
.board-dark { background-color:#232226; background-image:radial-gradient(rgba(255,255,255,.07) .7px,transparent .9px); }
.board-mask { background:rgba(247,246,243,.94); color:#3f3a48; font-size:18px; }
.game-top { font-size:16px; }
.game-tools { border-top:1px solid rgba(0,0,0,.06); padding:10px; justify-content:center; background:#fbfaf8; }
.dock { display:flex; flex-wrap:wrap; justify-content:center; gap:4px; padding:5px; border-radius:22px; background:var(--glass); -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); border:1px solid rgba(0,0,0,.07); box-shadow:0 2px 10px rgba(0,0,0,.06); }
.dock-btn { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; min-width:68px; min-height:58px; padding:6px 8px; border:0; border-radius:16px; background:transparent; color:#3a3542; font-size:13px; font-weight:600; line-height:1.1; }
.dock-btn:hover { background:rgba(0,0,0,.05); }
.dock-btn[aria-pressed="true"] { background:var(--accent); color:#fff; }
.game-links { display:flex; justify-content:center; gap:22px; padding:12px 0 2px; }
.game-links .text-button { display:inline-flex; align-items:center; gap:6px; font-size:16px; min-height:44px; text-decoration:none; color:#4c4a52; }
.game-links .text-button:hover { color:var(--accent); }
.game-shell.focus .game-links { display:none; }
@media (max-width:650px) {
  .dock { display:grid; grid-template-columns:repeat(5,1fr); width:100%; border-radius:18px; gap:2px; }
  .dock-btn { min-width:0; min-height:56px; padding:5px 2px; font-size:12px; }
  .game-tools { padding:6px; }
  .game-shell { border-radius:16px; }
}
@media (prefers-reduced-motion:reduce) { .card:hover { transform:none; } }
.timer .tool { width:44px; height:44px; border-radius:12px; }
.toast { top:86px; bottom:auto; border-radius:14px; font-size:16px; padding:12px 16px; background:rgba(29,29,31,.88); -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); }
