:root {
  color-scheme: light;
  --ink: #613547;
  --muted: #8c6979;
  --paper: #fff7f4;
  --accent: #bd617d;
  --pink: #c76383;
  --blue: #8d78a8;
  --line: #e9cdd6;
  font-family: 'DM Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse at 75% 20%, #f2b5c430, transparent 55%), radial-gradient(ellipse at 5% 75%, #edc1d330, transparent 50%), var(--paper); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: default; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #b45f7e; outline-offset: 4px; }
a { color: inherit; }
.app-shell { max-width: 1130px; margin: 0 auto; padding: 0 48px; }
.header { height: 100px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 21px; font-weight: 600; letter-spacing: 1px; }
.brand-mark { background: linear-gradient(140deg, #f3b3c5, #d187a3); color: #321827; width: 43px; height: 43px; border-radius: 13px; display: grid; place-items: center; font-size: 35px; font-weight: 400; }
.brand small { display: block; font-size: 9px; letter-spacing: 2.6px; font-weight: 500; margin-top: 4px; color: #936c7e; }
.header-actions, .stage-actions { display: flex; align-items: center; gap: 12px; }
.local-label { font-size: 12px; color: #8c6377; margin-right: 17px; }
.local-label i { display: inline-block; width: 6px; height: 6px; background: #e99db3; border-radius: 50%; margin-right: 8px; }
.icon-button { border: 1px solid var(--line); background: transparent; border-radius: 50%; width: 37px; height: 37px; font-size: 21px; display: inline-grid; place-items: center; }
.icon-button[aria-pressed=true] { background: #f1b0c2; color: #301220; }
.quiet-button { border: 1px solid var(--line); background: transparent; padding: 10px 14px; border-radius: 9px; font-size: 12px; }
.quiet-button:hover, .icon-button:hover { border-color: var(--ink); }
.game-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 65px; padding: 40px 0 22px; }
.sidebar { padding-top: 3px; }
.eyebrow { margin: 0 0 16px; font-size: 11px; letter-spacing: 2.5px; color: #996b7f; font-weight: 500; }
h1 { font-size: 42px; line-height: 1.4; letter-spacing: -2px; font-weight: 500; margin: 0; }
.intro-text { color: #8b6779; font-size: 12px; line-height: 1.9; margin: 19px 0 33px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.section-heading h2 { font-size: 13px; font-weight: 600; margin: 0; }
.section-heading > span { font-size: 10px; color: var(--muted); }
.mode-list { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.mode-button { border: 1px solid var(--line); border-radius: 12px; background: #fffaf8; text-align: left; padding: 15px 12px 13px; position: relative; min-width: 0; transition: background .2s, border-color .2s, transform .2s; }
.mode-button:hover { transform: translateY(-2px); border-color: var(--mode-color); }
.mode-button[aria-pressed=true] { border-color: var(--mode-color); background: color-mix(in srgb, var(--mode-color) 18%, #fffaf8); box-shadow: inset 0 0 0 .5px var(--mode-color); }
.mode-button[aria-pressed=true]::after { content: '✓'; position: absolute; right: 10px; top: 10px; font-size: 10px; color: var(--mode-color); }
.mode-symbol { display: block; font-size: 23px; line-height: 1; color: var(--mode-color); margin-bottom: 12px; }
.mode-name { display: block; font-size: 12px; font-weight: 600; }
.mode-caption { display: block; font-size: 10px; color: var(--muted); margin-top: 5px; }
.sidebar-bottom { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 18px; }
.tiny-heart { color: var(--pink); font-size: 22px; }
.sidebar-bottom p { font-size: 10px; color: var(--muted); line-height: 1.6; margin: 5px 0 13px; }
.text-button { border: none; padding: 0; background: transparent; font-size: 11px; color: #965b75; }
.text-button:hover { color: var(--ink); text-decoration: underline; }
.sidebar-bottom .text-button { display: flex; width: 100%; justify-content: space-between; }
.stage-heading { height: 55px; display: flex; justify-content: space-between; align-items: flex-start; }
.mode-heading { display: flex; gap: 11px; align-items: center; }
#mode-icon { font-size: 32px; color: var(--accent); line-height: 1; }
.mode-heading h2 { font-size: 19px; margin: 0; font-weight: 600; }
.mode-heading p { font-size: 10px; color: var(--muted); margin: 5px 0 0; }
.board-wrap { padding: 17px; border: 1px solid #e5bfcf; border-radius: 23px; background: radial-gradient(ellipse at 50% 65%, #f4bdcb35, transparent 55%), #fae8ed; box-shadow: 0 6px 0 #e9c8d3, 0 16px 35px #b7647e1a; }
.board { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: repeat(9, minmax(0, 1fr)); gap: 7px; aspect-ratio: 7 / 9; isolation: isolate; }
.board-route { position: absolute; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.board-route path { fill: none; stroke: #c899ad; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 3 7; }
#route-travel { stroke: var(--accent); stroke-width: 4; stroke-dasharray: none; opacity: .55; }
.tile { position: relative; padding: 0; border: 1px solid #ffffffb0; background: #fff6f4; border-radius: 11px; box-shadow: 0 2px 0 #e3c6d2; display: flex; align-items: center; justify-content: center; flex-direction: column; min-width: 0; color: #8c657a; transition: background .2s, box-shadow .2s; }
.tile:nth-of-type(4n+1) { background: #f8e2da; color: #9c655e; }
.tile:nth-of-type(4n+2) { background: #f6dce5; color: #9e5d76; }
.tile:nth-of-type(4n+3) { background: #ece1f1; color: #8d6a9b; }
.tile:nth-of-type(4n) { background: #f3e1ea; color: #93667f; }
.tile:hover { box-shadow: 0 0 0 2px var(--accent); z-index: 1; }
.tile-index { position: absolute; top: 7px; left: 8px; font-size: 10px; opacity: .85; }
.tile-symbol { font-size: clamp(16px, 2vw, 25px); line-height: 1; margin-top: 7px; }
.tile-caption { font-size: 9px; margin-top: 7px; opacity: .75; letter-spacing: .5px; }
.tile-direction { position: absolute; bottom: 6px; right: 7px; font-size: 9px; opacity: .6; }
.tile.start { background: #bd6f89; color: #fff8fb; border-color: #bd6f89; }
.tile.finish { background: #e7b39f; color: #6c3b48; border-color: #e2ac99; }
.tile.start .tile-caption, .tile.finish .tile-caption { opacity: 1; letter-spacing: 2px; font-weight: 600; }
.tile.occupied { box-shadow: inset 0 0 0 2px var(--pawn-color); }
.board-center { grid-area: 5 / 2 / 9 / 7; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; text-align: center; overflow: hidden; }
.corner-arrow { display: grid; place-items: center; color: #b9829b; font-size: 27px; }
.center-orbit { box-shadow: 0 0 65px #dc709120, inset 0 0 55px #dc709118; position: absolute; width: 90%; height: 90%; border: 1px dashed #d7a6bb; border-radius: 50%; z-index: -1; opacity: .7; }
.center-orbit::after { content: '♡'; color: #c9819d; position: absolute; bottom: -8px; left: calc(50% - 14px); width: 28px; background: #fae8ed; font-size: 19px; }
.center-kicker { color: #96657c; font-size: 10px; letter-spacing: 2px; }
.turn-label { font-size: 16px; font-weight: 600; margin: 8px 0 16px; }
.dice-button { width: 76px; height: 76px; border: 1px solid #fff; border-radius: 19px; background: linear-gradient(135deg, #fff2e9, #efc8d1); box-shadow: 0 5px 0 #d9a8bb, 0 10px 20px #bd6d8625; transform: rotate(-9deg); display: grid; place-items: center; transition: transform .2s; }
.dice-button:hover:enabled { transform: rotate(0deg) translateY(-4px); }
.dice-button:active:enabled { transform: rotate(0deg) translateY(2px); box-shadow: 0 2px 0 #d9a8bb; }
.dice-button:disabled { opacity: .75; }
.dice-face { width: 48px; height: 48px; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 3px; }
.pip { background: #793d56; border-radius: 50%; width: 10px; height: 10px; place-self: center; }
.dice-face[data-value='1'] .pip { background: var(--pink); width: 13px; height: 13px; }
#dice-hint { margin-top: 19px; font-size: 12px; font-weight: 500; }
.center-caption { margin-top: 5px; font-size: 9px; color: #946c80; }
.rolling { animation: dice-shake .16s linear infinite; }
@keyframes dice-shake { 0%,100% { transform: rotate(-10deg) translateY(0); } 50% { transform: rotate(13deg) translateY(-7px); } }
.pawn { --pawn-x: 10px; --pawn-y: -5px; --toy-scale: 1; position: relative; place-self: center; width: 44px; height: 58px; z-index: 5; pointer-events: none; transform: translate(var(--pawn-x), var(--pawn-y)); transform-origin: center bottom; }
.pawn-blue { --toy-light: #eee2ff; --toy-mid: #bfa5dc; --toy-dark: #86639f; --toy-inner: #a77cba; --toy-ink: #634b77; }
.pawn-pink { --toy-light: #fff0ef; --toy-mid: #f3b1c4; --toy-dark: #c87598; --toy-inner: #e997b3; --toy-ink: #9b5375; }
.pawn.stacked { --pawn-x: -12px; --pawn-y: 9px; z-index: 6; }
.toy { display: block; position: absolute; width: 44px; height: 58px; bottom: 0; left: 50%; margin-left: -22px; transform: scale(var(--toy-scale)); transform-origin: center bottom; filter: drop-shadow(0 2px 1px #6b3d5b22); }
.toy i, .toy b { position: absolute; display: block; font-style: normal; }
.toy-shadow { width: 36px; height: 9px; bottom: 1px; left: 4px; background: radial-gradient(ellipse, #60345050, #60345000 72%); transform: rotate(-5deg); }
.toy-ear { z-index: 1; top: 5px; width: 16px; height: 17px; border-radius: 50%; background: radial-gradient(circle at 30% 22%, #fff8ff, var(--toy-light) 20%, var(--toy-mid) 55%, var(--toy-dark)); box-shadow: inset -1px -2px 2px #734e7828, 0 1px 1px #8b61732b; }
.toy-ear::after { content: ''; position: absolute; inset: 4px; border-radius: inherit; background: linear-gradient(140deg, var(--toy-inner), var(--toy-mid)); box-shadow: inset 1px 1px 2px #78466740; }
.ear-left { left: 2px; transform: rotate(-17deg); }
.ear-right { right: 2px; transform: rotate(17deg); }
.pawn-bunny .toy-ear { top: 0; width: 12px; height: 26px; border-radius: 60% 60% 45% 45%; }
.pawn-bunny .ear-left { left: 9px; transform: rotate(-13deg); }
.pawn-bunny .ear-right { right: 7px; transform: rotate(16deg); }
.pawn-bunny .toy-ear::after { inset: 5px 3px 4px; }
.toy-head { z-index: 4; width: 39px; height: 32px; left: 2.5px; top: 13px; border-radius: 48% 48% 44% 44%; background: radial-gradient(ellipse at 22% 68%, #eb91b670, transparent 22%), radial-gradient(ellipse at 80% 68%, #eb91b670, transparent 22%), radial-gradient(ellipse at 30% 16%, #ffffff, var(--toy-light) 22%, var(--toy-mid) 64%, var(--toy-dark) 100%); box-shadow: inset 1px 1px 1px #ffffffd9, inset -2px -3px 4px #73446528, 0 3px 3px #70456135; }
.toy-eye { z-index: 2; top: 13px; width: 4px; height: 6px; border-radius: 50%; background: #4f3748; box-shadow: 0 .5px .5px #ffffff; }
.eye-left { left: 10px; transform: rotate(-6deg); }
.eye-right { right: 10px; transform: rotate(6deg); }
.toy-eye::after { content: ''; position: absolute; width: 1.5px; height: 2px; border-radius: 50%; background: #fff8ff; top: 1px; left: .7px; }
.toy-muzzle { left: 14px; top: 19px; width: 11px; height: 9px; border-radius: 50%; background: #fff3ecb3; box-shadow: inset 0 -1px 1px #dfb5c144; }
.toy-muzzle::before { content: ''; position: absolute; width: 4px; height: 3px; left: 3.5px; top: 1px; border-radius: 50% 50% 60% 60%; background: var(--toy-ink); }
.toy-muzzle::after { content: ''; position: absolute; left: 3px; top: 4px; width: 5px; height: 3px; border-bottom: 1px solid var(--toy-ink); border-radius: 50%; }
.pawn-bunny .toy-muzzle { background: transparent; box-shadow: none; }
.toy-body { top: 35px; left: 10px; width: 25px; height: 19px; z-index: 2; border-radius: 44% 44% 45% 45%; background: radial-gradient(ellipse at 30% 20%, var(--toy-light), var(--toy-mid) 60%, var(--toy-dark)); box-shadow: inset -2px -2px 3px #75486b28; }
.toy-body::before, .toy-body::after { content: ''; position: absolute; top: 3px; width: 8px; height: 12px; border-radius: 50%; background: linear-gradient(120deg, var(--toy-light), var(--toy-mid) 65%, var(--toy-dark)); }
.toy-body::before { left: -4px; transform: rotate(24deg); }
.toy-body::after { right: -4px; transform: rotate(-24deg); }
.toy-body b { position: absolute; inset: 4px 7px 2px; border-radius: 50%; background: #fff5f27a; color: var(--toy-ink); font-size: 11px; line-height: 13px; text-align: center; font-weight: 600; }
.toy-foot { bottom: 3px; width: 13px; height: 8px; z-index: 3; border-radius: 60% 60% 40% 40%; background: radial-gradient(ellipse at 35% 15%, var(--toy-light), var(--toy-mid) 65%, var(--toy-dark)); box-shadow: 0 1px 1px #71466335; }
.foot-left { left: 7px; transform: rotate(-8deg); }
.foot-right { right: 6px; transform: rotate(8deg); }
.toy-label { position: absolute; bottom: -5px; left: 16px; z-index: 7; font-size: 8px; line-height: 12px; font-weight: 600; color: var(--toy-ink); background: #fff9f5e8; padding: 0 3px; border-radius: 5px; box-shadow: 0 1px 3px #784a6822; }
.pawn.moving { animation: pawn-hop .2s ease-out; }
@keyframes pawn-hop { 45% { transform: translate(var(--pawn-x), calc(var(--pawn-y) - 12px)) rotate(-6deg) scale(1.04); } 80% { transform: translate(var(--pawn-x), var(--pawn-y)) scale(1.06, .94); } }
.players { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 25px; }
.player-card { border: 1px solid var(--line); background: #fffaf8; border-radius: 13px; display: flex; align-items: center; padding: 15px; gap: 11px; text-align: left; min-width: 0; }
.player-card.active { border-color: var(--player-color); background: color-mix(in srgb, var(--player-color) 12%, #fffaf8); }
#player-0 { --player-color: var(--blue); }
#player-1 { --player-color: var(--pink); }
.avatar { display: grid; place-items: center; border-radius: 50%; width: 37px; height: 37px; font-size: 23px; flex-shrink: 0; }
.blue { background: #eee4f4; color: var(--blue); }
.pink { background: #f9e0e8; color: var(--pink); }
.player-info { min-width: 0; flex: 1; }
.player-name { font-size: 13px; font-weight: 600; display: block; white-space: nowrap; }
.turn-badge { visibility: hidden; color: var(--player-color); font-size: 9px; font-weight: 400; margin-left: 5px; }
.active .turn-badge { visibility: visible; }
.player-position { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.progress-track { display: block; height: 3px; background: #edd7e1; margin-top: 8px; border-radius: 3px; overflow: hidden; }
.progress-track > span { display: block; height: 100%; background: var(--player-color); transition: width .2s; }
.player-card > strong { font-size: 22px; font-weight: 500; text-align: right; color: var(--player-color); }
.player-card > strong small { display: block; font-size: 8px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.stage-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; font-size: 10px; color: #896478; }
.stage-footer p { margin: 0; }
.stage-footer > span { white-space: nowrap; font-size: 9px; }
.footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); color: #997689; font-size: 10px; padding: 20px 0 26px; }
.footer .text-button { color: #8c637b; font-size: 10px; }
.mobile-mode, .mobile-library { display: none; }

dialog { border: 1px solid #e6c2d2; padding: 0; border-radius: 23px; color: var(--ink); background: #fff9f6; box-shadow: 0 30px 100px #7b3d5b30; max-height: 88dvh; max-width: calc(100% - 32px); }
dialog::backdrop { background: #71435355; backdrop-filter: blur(6px); }
.dialog-body { padding: 36px; text-align: center; }
.task-dialog { width: 450px; }
.task-ornament { font-size: 48px; color: var(--accent); margin: 0 0 20px; }
.dialog-body h2 { font-size: 24px; font-weight: 500; margin: 0 0 23px; }
.task-text { font-size: 21px; line-height: 1.8; overflow-wrap: anywhere; margin: 0 0 24px; }
.task-source { color: #936d83; font-size: 10px; margin: 0 0 28px; }
.dialog-actions { display: flex; gap: 10px; justify-content: center; }
.primary-button, .secondary-button { border-radius: 10px; padding: 13px 20px; font-size: 13px; border: 1px solid var(--ink); min-height: 44px; }
.primary-button { background: linear-gradient(135deg, #f5bccb, #e89aae); color: #331322; }
.primary-button:hover { background: #edb4c5; }
.secondary-button { background: transparent; border-color: var(--line); }
.secondary-button:hover { background: #f7e6ed; }
.dialog-actions > button { flex: 1; }
.panel-dialog { width: 580px; }
.panel-header { display: flex; justify-content: space-between; align-items: center; padding: 22px 26px; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 2; background: #fff9f6; }
.panel-header h2 { font-size: 19px; margin: 0; font-weight: 500; }
.panel-content { padding: 25px 26px; }
.panel-content p { font-size: 13px; line-height: 1.8; color: #886477; }
.panel-content .mode-list { grid-template-columns: repeat(2, 1fr); }
.rule-list { padding-left: 22px; margin: 0; }
.rule-list li { padding: 8px 0 8px 7px; font-size: 13px; line-height: 1.8; }
.library-toolbar { display: flex; gap: 9px; margin-bottom: 14px; }
.library-toolbar select, .library-toolbar input { border: 1px solid var(--line); background: #fffaf8; padding: 11px 10px; border-radius: 8px; font-size: 12px; min-width: 0; }
.library-toolbar input { flex: 1; width: 80px; }
.library-count { font-size: 11px!important; margin: 0 0 15px; }
.task-list { padding: 0; margin: 0; list-style: none; }
.task-list li { display: flex; gap: 15px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.7; }
.source-index { color: #947085; font-size: 11px; width: 31px; flex-shrink: 0; padding-top: 2px; }
.confirm-dialog { width: 400px; }
.confirm-dialog p:not(.eyebrow) { color: var(--muted); font-size: 13px; line-height: 1.8; margin-bottom: 26px; }
.task-dialog .eyebrow { letter-spacing: 1px; }
.mode-button:disabled, .player-card:disabled { cursor: default; }
.board-center .center-orbit { width: 75%; }

.home-view { max-width: 880px; margin: 0 auto; padding: 48px 0 36px; min-height: calc(100dvh - 170px); }
.home-intro { text-align: center; margin-bottom: 36px; }
.home-heart { display: inline-grid; place-items: center; width: 72px; height: 72px; border: 1px solid #eed0d9; border-radius: 50%; background: radial-gradient(circle, #ffe9ef, #fffaf8); color: #bd617d; font-size: 48px; box-shadow: 0 8px 36px #d690a322; margin-bottom: 18px; }
.home-intro h1 { font-size: 36px; letter-spacing: -1px; }
.home-intro p { font-size: 13px; color: var(--muted); line-height: 1.8; margin: 13px 0 0; }
.home-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.home-modes .mode-button { padding: 27px 25px; border-radius: 20px; min-height: 164px; background: linear-gradient(135deg, #fffdfb, color-mix(in srgb, var(--mode-color) 8%, #fffaf8)); box-shadow: 0 7px 22px #ae71830a; }
.home-modes .mode-button[aria-pressed=true] { border-color: var(--line); box-shadow: 0 7px 22px #ae71830a; }
.home-modes .mode-button[aria-pressed=true]::after { content: none; }
.home-modes .mode-button:hover { border-color: var(--mode-color); box-shadow: 0 10px 25px #ae71831a; }
.home-modes .mode-symbol { font-size: 34px; margin-bottom: 20px; }
.home-modes .mode-name { font-size: 17px; }
.home-modes .mode-caption { font-size: 11px; margin-top: 9px; }
.mode-enter { position: absolute; right: 23px; bottom: 29px; color: var(--mode-color); font-size: 22px; }
.home-resume { text-align: center; margin-top: 27px; }

@media (min-width: 1250px) { .game-layout { gap: 90px; grid-template-columns: 275px minmax(0, 1fr); } }
@media (max-width: 1000px) {
  .app-shell { padding: 0 28px; }
  .game-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 30px; }
  h1 { font-size: 35px; }
  .board-wrap { padding: 12px; }
  .board { gap: 5px; }
  .tile { border-radius: 8px; }
  .tile-index { top: 5px; left: 6px; font-size: 8px; }
  .tile-caption { font-size: 7px; margin-top: 4px; }
  .tile-direction { font-size: 7px; bottom: 3px; right: 4px; }
  .dice-button { width: 61px; height: 61px; border-radius: 15px; }
  .dice-face { width: 39px; height: 39px; }
  .pip { width: 8px; height: 8px; }
  .turn-label { font-size: 13px; margin: 5px 0 12px; }
  #dice-hint { margin-top: 14px; font-size: 10px; }
  .center-caption { display: none; }
  .player-card { padding: 12px 9px; gap: 8px; }
  .avatar { width: 29px; height: 29px; font-size: 19px; }
  .turn-badge { font-size: 8px; margin-left: 2px; }
  .player-card > strong { font-size: 18px; }
}
@media (max-width: 760px) {
  .home-view { padding: 28px 0 25px; }
  .home-intro { margin-bottom: 25px; }
  .home-heart { width: 58px; height: 58px; font-size: 39px; margin-bottom: 14px; }
  .home-intro h1 { font-size: 28px; }
  .home-intro p { font-size: 11px; }
  .home-modes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .home-modes .mode-button { min-height: 137px; padding: 20px 17px; border-radius: 16px; }
  .home-modes .mode-symbol { font-size: 28px; margin-bottom: 15px; }
  .home-modes .mode-name { font-size: 14px; }
  .home-modes .mode-caption { font-size: 10px; }
  .mode-enter { right: 16px; bottom: 22px; font-size: 18px; }
  .app-shell { padding: 0 18px; max-width: 600px; }
  .header { height: 78px; }
  .brand { font-size: 17px; gap: 9px; }
  .brand-mark { width: 35px; height: 35px; font-size: 29px; border-radius: 10px; }
  .brand small { font-size: 7px; letter-spacing: 1.9px; }
  .header-actions { gap: 8px; }
  .local-label { display: none; }
  .header .quiet-button { padding: 8px 10px; font-size: 10px; }
  .icon-button { width: 32px; height: 32px; font-size: 19px; }
  .game-layout { display: block; padding: 25px 0 24px; }
  .sidebar { display: none; }
  .stage-heading { height: 63px; align-items: flex-start; }
  .mode-heading h2 { font-size: 18px; }
  .mode-heading p { font-size: 9px; }
  #mode-icon { font-size: 28px; }
  .stage-actions { gap: 6px; padding-top: 4px; }
  .stage-actions .quiet-button { padding: 8px 9px; font-size: 10px; }
  .mobile-mode, .mobile-library { display: inline-block; }
  .board-wrap { padding: 10px; border-radius: 16px; }
  .board { gap: 4px; }
  .tile { border-radius: 7px; }
  .tile-index { font-size: 7px; top: 4px; left: 4px; }
  .tile-symbol { font-size: 16px; margin-top: 4px; }
  .tile-caption { display: none; }
  .tile.start .tile-caption, .tile.finish .tile-caption { display: block; font-size: 7px; letter-spacing: 1px; margin-top: 2px; }
  .tile-direction { font-size: 6px; }
  .center-kicker { font-size: 8px; letter-spacing: 1px; }
  .turn-label { font-size: 12px; margin: 5px 0 11px; }
  .dice-button { width: 53px; height: 53px; border-radius: 13px; }
  .dice-face { width: 35px; height: 35px; gap: 1px; }
  .dice-face[data-value='1'] .pip { width: 11px; height: 11px; }
  #dice-hint { font-size: 9px; margin-top: 12px; }
  .center-orbit { width: 95%; height: 95%; }
  .center-orbit::after { font-size: 15px; bottom: -6px; }
  .pawn { --toy-scale: .68; --pawn-x: 7px; --pawn-y: -4px; width: 30px; height: 40px; }
  .pawn.stacked { --pawn-x: -8px; --pawn-y: 7px; }
  .players { margin-top: 22px; gap: 9px; }
  .player-name { font-size: 11px; }
  .player-card { padding: 12px 9px; }
  .turn-badge { display: block; margin: 2px 0 0; height: 10px; }
  .player-position { display: none; }
  .player-card > strong small { font-size: 7px; }
  .stage-footer { flex-wrap: wrap; font-size: 9px; margin-top: 17px; }
  #last-action { flex: 1; min-width: 190px; }
  #save-status { width: 100%; margin-top: 3px; font-size: 8px; }
  .footer { font-size: 9px; padding-top: 18px; }
  .footer .text-button { font-size: 9px; }
  .dialog-body { padding: 29px 23px; }
  .task-text { font-size: 19px; }
  .panel-header { padding: 18px 20px; }
  .panel-content { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms!important; transition-duration: .01ms!important; scroll-behavior: auto!important; }
}
