.tile:disabled{opacity:1}.tile.blocked{filter:brightness(.82) saturate(.72)}
.metrics.three .metric{min-width:104px;padding-left:34px;padding-right:8px}.metrics.three .metric-icon{left:10px}.metrics.three .metric strong{font-size:15px}.version{text-align:center;font-size:10px;letter-spacing:.08em;margin:28px 0 0}.veil .panel[role=dialog]{max-width:390px;background:#f7f6f1;border-radius:20px;padding:24px}.dark .veil .panel[role=dialog]{background:#2b6460}
@media(max-width:380px){.metrics.three{gap:4px}.metrics.three .metric{min-width:92px;padding-left:28px}.metrics.three .metric-icon{left:7px}}
h1,h2,h3,.serif{font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;font-weight:500}.home h1,.result h1{font-family:Georgia,"Times New Roman",serif;font-weight:400}

/* MVP 3: layered Zen landscape based on the approved mockup. */
svg.landscape-art{position:fixed;inset:0;width:100%;height:100%;max-width:none;transform:none;clip-path:none;opacity:1;background:none;z-index:0;pointer-events:none}.landscape-art .landscape-sun{opacity:.7}.landscape-art .mountain-far{fill:#dbe7e4}.landscape-art .mountain-mid{fill:#c4d8d4;opacity:.78}.landscape-art .mountain-near{fill:url(#near-hill);opacity:.6}.landscape-art .river{fill:url(#river-mist);opacity:.82}.landscape-art .river-light{fill:#f6faf8;opacity:.75}.landscape-art .shore{fill:#aac4c0;opacity:.53}.landscape-art .shore path+path{stroke:#4f817a;stroke-width:7;stroke-linecap:round;opacity:.48}#app{position:relative;z-index:1}body[data-screen="game"] .landscape-art .mountain-far{transform:translateY(65px)}body[data-screen="game"] .landscape-art .mountain-mid{transform:translateY(45px)}body[data-screen="game"] .landscape-art .river{opacity:.68}body[data-screen="game"] .landscape-sun{display:none}body[data-screen="select"] .landscape-art,body[data-screen="settings"] .landscape-art,body[data-screen="stats"] .landscape-art,body[data-screen="guide"] .landscape-art{opacity:.56}.home:after,.home>.sun{display:none}

/* Distinct classic-inspired tile families. */
.tile,.family-tile{font-size:var(--tile-size)}.tile{overflow:hidden}.tile-motif{width:78%;height:79%;display:grid;place-items:center;line-height:1}
.honor{font-family:Georgia,"Songti SC","Noto Serif CJK SC",serif;font-size:.52em;font-weight:700}.honor-4{color:#b94b3f}.honor-5{color:#24715f}.honor-6{color:#4d7b8d;font-size:.42em;border:1px solid currentColor;width:52%;height:54%;display:grid;place-items:center}
.pip-grid,.bamboo-grid{position:relative;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);width:100%;height:100%;place-items:center}.pip-grid i,.bamboo-grid i{grid-row:var(--row);grid-column:var(--col);display:block}.pip-grid i{width:.13em;height:.13em;min-width:3px;min-height:3px;border-radius:50%;background:radial-gradient(circle,#f4e7c8 0 18%,#28756b 20% 42%,#b84b42 44% 58%,#2d756b 60% 100%);box-shadow:inset 0 0 0 1px #204f4940}.pip-grid i:nth-child(3n){filter:hue-rotate(120deg)}.pip-grid i:nth-child(4n){filter:hue-rotate(235deg)}
.bamboo-grid i{position:relative;width:.09em;height:.22em;min-width:2px;min-height:6px;border-radius:45%;background:linear-gradient(90deg,#2b6f63,#75a192 48%,#28685e);box-shadow:inset 0 0 0 1px #245d5540}.bamboo-grid i:after{content:"";position:absolute;left:-35%;right:-35%;top:43%;height:2px;background:#b64e43;border-radius:50%}.bamboo-bird{font-size:.65em;color:#32766a;transform:rotate(-16deg)}
.character-mark{display:flex;flex-direction:column;align-items:center;line-height:.82}.character-mark b{font-family:Georgia,"Songti SC","Noto Serif CJK SC",serif;font-size:.47em;color:#245f57}.character-mark i{font-family:Georgia,"Songti SC","Noto Serif CJK SC",serif;font-size:.27em;font-style:normal;color:#b64d43;font-weight:700}.flower-mark{font-size:.45em;color:#b64d43;display:flex;flex-direction:column;align-items:center}.flower-mark small{font-size:.4em;color:#2e7569;margin:0}.tile.blocked .tile-motif{opacity:.88}
.stone-families{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:12px 0}.stone-families>div{text-align:center}.family-tile{--tile-size:48px;width:48px;height:62px;margin:auto;display:grid;place-items:center;border:1px solid #bab9aa;border-radius:6px;background:linear-gradient(130deg,#fffef7,#e8e4d7);box-shadow:0 3px 0 #9ca397}.family-tile>span{width:78%;height:78%;display:grid;place-items:center}.stone-families small{display:block;margin-top:7px}

@media(orientation:landscape) and (max-height:600px){svg.landscape-art{height:130%;top:-15%}body[data-screen="game"] .landscape-art .mountain-far,body[data-screen="game"] .landscape-art .mountain-mid{transform:translateY(110px)}}

/* More visible, still quiet site signature. */
footer{padding-top:12px}footer a{display:inline-flex;align-items:center;justify-content:center;color:#245c58;font-size:13px;font-weight:650;letter-spacing:.14em;line-height:1;text-decoration:none;background:#ffffffe0;border:1px solid #aac1bf99;border-radius:999px;padding:9px 17px;box-shadow:0 4px 14px #285b541b;backdrop-filter:blur(8px)}footer a:hover{background:#fff;color:#174d49}.dark footer a{background:#2b6460e8;color:#eef5f3;border-color:#80a2a088}

/* The game header gear is an actual touch target while retaining the quiet mark styling. */
.header-settings{justify-self:end;width:42px;min-height:42px;padding:0;border:0;background:transparent;box-shadow:none;border-radius:50%;font-size:20px}.header-settings:hover{background:#ffffff99}.dark .header-settings{background:transparent}.dark .header-settings:hover{background:#ffffff18}

/* Keep the mobile home screen within the installed app viewport. */
@media(max-width:500px){body[data-screen="home"]{height:100%;min-height:0;overflow:hidden}body[data-screen="home"] #app{position:fixed;inset:0;width:100%;height:auto;min-height:0;overflow:hidden}body[data-screen="home"] .home{flex:1;min-height:0;padding-top:clamp(52px,10dvh,88px);padding-bottom:4px}body[data-screen="home"] .hero-copy{margin-bottom:clamp(28px,7dvh,64px)}body[data-screen="home"] footer{flex:none;padding-top:8px}}

/* MVP 4: flat frame-free presentation and a dedicated desktop workspace. */
.icon-gear{display:block;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linejoin:round}.btn-icon .icon-gear{width:19px;height:19px}.header-settings{color:var(--jade);display:grid;place-items:center}
@media(min-width:700px){body:not([data-screen="game"]):before{display:none!important}body:not([data-screen="game"]) #app{min-height:100svh;margin:0 auto;border-radius:0}}

/* The mobile menu sits closer to the title while retaining the fixed viewport. */
.home .stack{margin-top:clamp(24px,5dvh,46px)}.home .hero-copy{margin-bottom:0}
@media(max-width:500px){body[data-screen="home"] .hero-copy{margin-bottom:0}.home .stack{margin-top:clamp(22px,4.5dvh,38px)}}

@media(min-width:900px){
  body{height:100svh;overflow:hidden}
  #app{max-width:none;width:100%;height:100svh;min-height:0;margin:0;padding:0;overflow:hidden}
  .desktop-shell{position:relative;z-index:2;display:grid;grid-template-columns:minmax(300px,30%) minmax(0,70%);width:100%;height:100%;backdrop-filter:blur(1px)}
  .desktop-sidebar{height:100%;min-width:0;background:linear-gradient(145deg,#f8f8f3ed,#eef4f1e3);border-right:1px solid #aac1bf80;box-shadow:12px 0 38px #285b5414;overflow:hidden;display:flex;flex-direction:column}
  .desktop-sidebar-scroll{min-height:0;flex:1;overflow:auto;padding:clamp(26px,4vh,48px) clamp(24px,3vw,46px)}
  .desktop-home{min-height:100%;display:flex;flex-direction:column}
  .desktop-brand{text-align:left;margin-bottom:clamp(28px,5vh,54px)}
  .desktop-brand .leaf{font-size:30px}.desktop-brand h1{font-size:clamp(38px,4vw,56px);line-height:1.02;margin:5px 0 7px}.desktop-brand p{margin:0;font-size:15px}
  .desktop-home .stack{margin:0;gap:10px}.desktop-home .stack button{position:relative;text-align:left;padding-left:56px}.desktop-home .stack .primary{text-align:center;padding-left:18px}.desktop-home .btn-icon{position:absolute;left:20px;top:50%;transform:translateY(-50%);display:grid;place-items:center;color:var(--jade)}.desktop-home .primary .btn-icon{position:static;display:inline-grid;transform:none;margin-right:10px;color:white}
  .desktop-signature{margin-top:auto;padding-top:26px}.desktop-signature footer{padding:0;text-align:left}
  .desktop-subhead{height:68px;flex:none;display:grid;grid-template-columns:48px 1fr 48px;align-items:center;border-bottom:1px solid #aac1bf66;padding:0 18px;font-size:16px;font-weight:600;text-align:center}.desktop-subhead .back{font-size:30px}
  .desktop-sidebar .panel{width:100%;max-width:none;margin:0;padding:0;background:transparent}.desktop-sidebar .panel h2{font-size:25px}.desktop-sidebar .select .choices{margin:16px 0 20px}.desktop-sidebar .select .choice{min-height:110px}.desktop-sidebar .select .modes{margin-bottom:18px}.desktop-sidebar .select .modes .choice{min-height:104px}.desktop-sidebar .stat-hero{gap:14px;padding:12px;margin:0 0 18px}.desktop-sidebar .ring{width:92px;height:92px}.desktop-sidebar .examples{grid-template-columns:1fr}.desktop-sidebar .result h1{font-size:38px}
  .desktop-stage{height:100%;min-width:0;padding:22px clamp(24px,4vw,64px) 18px;display:flex;flex-direction:column;overflow:hidden}
  .desktop-stage>header{flex:none;grid-template-columns:52px 1fr 52px;padding:0 0 4px}.desktop-stage>header .back{visibility:hidden}.desktop-stage>header .serif{font-size:21px}.desktop-stage .game{flex:1;min-height:0}.desktop-stage .metrics{margin:4px 0}.desktop-stage .board-wrap{min-height:0;padding:8px 4px 10px;overflow:visible}.desktop-stage .tools{margin-top:2px}.desktop-stage .tools button{max-width:120px}.desktop-stage .notice{margin-top:5px}
  .desktop-empty{margin:auto;text-align:center;max-width:430px;background:#ffffff8f;border:1px solid #d5e0dfb3;border-radius:24px;padding:42px;box-shadow:0 18px 48px #285b5414}.desktop-empty h2{font-size:30px}.desktop-empty p{margin:8px 0 25px}
  body[data-screen="select"] .landscape-art,body[data-screen="settings"] .landscape-art,body[data-screen="stats"] .landscape-art,body[data-screen="guide"] .landscape-art{opacity:1}
}

@media(min-width:900px) and (max-height:720px){.desktop-sidebar-scroll{padding-top:22px;padding-bottom:18px}.desktop-brand{margin-bottom:24px}.desktop-brand h1{font-size:40px}.desktop-home .stack{gap:7px}.desktop-home .stack button{min-height:43px;padding-top:9px;padding-bottom:9px}.desktop-stage{padding-top:10px;padding-bottom:8px}.desktop-stage .tools button{min-height:52px}.desktop-stage .notice{display:none}}

/* Interactive rules / tile-catalog guide. */
.guide-tabs button{min-height:40px;padding:8px;border:0;border-radius:8px;background:transparent;box-shadow:none;font-size:12px;color:var(--jade)}.guide-tabs button:hover{background:#ffffff80}.guide-tabs button.active{background:var(--jade);color:#fff}.catalog-intro{margin:2px 0 20px;text-align:center}.tile-catalog h3{font-size:19px;margin:24px 0 10px}.catalog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.catalog-card{display:flex;flex-direction:column;align-items:center;gap:9px;background:#ffffff85;border:1px solid #d8e4e1;border-radius:13px;padding:13px 5px;text-align:center}.catalog-card strong,.catalog-card small{display:block}.catalog-card small{font-size:10px;margin-top:2px}.catalog-note{background:#d8e4e178;border-radius:11px;padding:10px 12px;margin:13px 0;font-size:11px;text-align:center}.catalog-section{background:#ffffff72;border-radius:13px;padding:13px;margin:9px 0;text-align:center}.catalog-section>strong{display:block;margin-bottom:10px}.catalog-section>small{display:block;margin-top:9px}.catalog-row{display:flex;justify-content:center;gap:7px}.catalog-row .family-tile{--tile-size:36px;width:36px;height:47px;margin:0}.catalog-row .family-tile>span{width:78%;height:78%;display:grid;place-items:center}.tile-catalog .catalog-card .family-tile{--tile-size:46px}
@media(max-width:380px){.catalog-grid{gap:5px}.catalog-card{padding:10px 3px}.catalog-row{gap:5px}}
@media(min-width:900px){.desktop-sidebar .catalog-grid{grid-template-columns:1fr}.desktop-sidebar .catalog-card{flex-direction:row;text-align:left;padding:10px 12px}.desktop-sidebar .catalog-card .family-tile{margin:0}.desktop-sidebar .tile-catalog h3{margin-top:18px}.desktop-sidebar .catalog-section{padding:10px}.desktop-sidebar .catalog-note{margin:10px 0}}

/* German / English language control. */
.language-switch{display:inline-grid;grid-template-columns:1fr 1fr;background:#e5eeebd9;border:1px solid #aac1bf70;border-radius:999px;padding:3px;gap:2px}.language-switch button{min-height:30px;min-width:42px;padding:4px 9px;border:0;border-radius:999px;background:transparent;box-shadow:none;font-size:11px;font-weight:700;letter-spacing:.08em;color:var(--jade)}.language-switch button.active{background:var(--jade);color:#fff}.home>.language-switch,.desktop-home>.language-switch{position:absolute;right:0;top:0;z-index:5}.settings-language{display:flex;justify-content:flex-start;margin:0 0 18px}.settings-language .language-switch{position:static}.settings-language .language-switch button{min-width:62px}

/* Center the mobile action group and strengthen the site signature. */
footer a{font-size:14px;padding:10px 19px}
@media(max-width:500px) and (orientation:portrait){body[data-screen="home"] .home .stack{position:absolute;left:0;right:0;top:52%;transform:translateY(-50%);margin:0}body[data-screen="home"] .home>.language-switch{right:0;top:4px}}
@media(min-width:900px){.desktop-home{position:relative}.desktop-home>.language-switch{right:0;top:0}.desktop-brand{padding-top:34px}}
