/* CBO Games：暖色遊戲館；立體展示採按需動態，不設持續繪圖迴圈。 */
.home-page {
  --paper: #fcf6eb; --ink: #343735; --muted: #6d7168; --accent: #b94c39;
  margin: 0; color: var(--ink); background: var(--paper);
  font-family: "Trebuchet MS", "Microsoft JhengHei", sans-serif;
}
.home-page *, .home-page *::before, .home-page *::after { box-sizing: border-box; }
.home-page main { max-width: none; padding: 0; }
.home-page a { color: inherit; }
.home-page button { font: inherit; cursor: pointer; }
.home-page [hidden] { display: none !important; }
.home-page :focus-visible { outline: 3px solid #a54333; outline-offset: 5px; }
.site-header, .home-intro, .games-section, .stepmanager-banner, .home-updates, .home-footer {
  width: min(1280px, calc(100% - 96px)); margin-inline: auto;
}
.home-page .site-header {
  min-height: 100px; padding: 20px 0; display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid #dcd9cf; background: transparent; box-shadow: none; position: relative; backdrop-filter: none;
}
.home-page .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.home-page .brand-mark { display: none; }
.brand-logo { width: 68px; height: 68px; object-fit: contain; }
.studio-signature { display: grid; justify-items: center; grid-column: 2; grid-row: 1; align-self: center; transform: rotate(3deg); }
.studio-signature img { width: 190px; height: 190px; object-fit: contain; }
.studio-signature span { margin-top: 7px; font: 11px "Trebuchet MS", sans-serif; color: #806459; }
.brand-copy { display: grid; gap: 4px; }
.brand-copy strong { font: 900 31px/1 "Trebuchet MS", sans-serif; letter-spacing: -1.5px; }
.brand-copy small { font-size: 11px; letter-spacing: 2px; color: var(--muted); }
.home-page .site-nav { display: flex; align-items: center; gap: 27px; font-size: 13px; }
.nav-player { display: flex; align-items: center; gap: 12px; }
.nav-welcome { font-size: 12px; font-weight: 400; color: var(--muted); white-space: nowrap; }
.nav-welcome .player-display-name { display: inline; font-size: inherit; color: var(--ink); font-weight: 700; }
.site-nav a { text-decoration: none; }
.site-nav a:hover { color: var(--accent); }
.home-page .site-nav .menu-link { border: 1px solid #aaa99e; border-radius: 5px; padding: 11px 15px; background: transparent; }
.home-page .site-nav .menu-link { box-shadow: none; }
.nav-share { background: none; border: 0; padding: 10px 0; color: var(--muted); }
.home-intro { padding: 30px 0 20px; display: grid; grid-template-columns: 1fr 240px; align-items: center; column-gap: 30px; row-gap: 18px; }
.home-kicker, .section-kicker { font-size: 11px; letter-spacing: 2px; font-weight: 700; margin: 0 0 17px; color: var(--accent); }
.home-kicker { font-size: 18px; font-weight: 800; letter-spacing: 1.5px; margin-bottom: 20px; }
.home-intro h1 { font-size: clamp(32px, 3.55vw, 51px); font-weight: 800; line-height: 1.33; margin: 0; letter-spacing: -1.5px; }
.home-intro h1 br { display: block; }
.home-intro em { font-style: normal; color: var(--accent); }
.home-page .player-summary { grid-column: 1; display: flex; gap: 26px; align-items: center; justify-content: flex-start; width: auto; border: 0; background: transparent; padding: 0; box-shadow: none; border-radius: 0; }
.player-summary-copy { display: grid; gap: 4px; }
.summary-label { font-size: 10px; color: var(--muted); margin: 0; }
.player-display-name { font-size: 16px; }
.account-display-status { font-size: 10px; color: var(--muted); }
.home-page .summary-menu-button { font-size: 11px; text-decoration: underline; text-underline-offset: 5px; background: none; padding: 10px 0; color: #4a6353; box-shadow: none; border: 0; }
.home-page .nav-share, .home-page .card-share { box-shadow: none; }
.games-section { padding: 0; margin-bottom: 44px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; padding: 22px 0; gap: 24px; }
.section-heading .section-kicker { margin-bottom: 7px; font-size: 9px; }
.section-heading h2 { margin: 0; font-size: 25px; letter-spacing: -1px; }
.section-heading > p { margin: 0; font-size: 12px; color: var(--muted); text-align: right; }
.keyboard-hint { margin-left: 18px; font-size: 10px; }
.arcade-room { position: relative; overflow: hidden; border-radius: 18px 18px 5px 5px; background: #e7e8d8; isolation: isolate; border: 1px solid #d5d8c5; }
.room-sign { display: none; }
.room-floor { display: none; }
.home-page .game-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; padding: 32px; margin: 0; }
.home-page .game-card { padding: 0; background: transparent; border: 0; box-shadow: none; border-radius: 0; overflow: visible; display: block; }
.home-page .game-card:hover { box-shadow: none; }
.game-card { --shell: #df977c; --edge: #a3503f; --label: #fbe6d1; }
.straight-card { --shell: #8fbab2; --edge: #44796f; --label: #ebf4e6; }
.curved-card { --shell: #8a9cad; --edge: #4a607a; --label: #e3e8ed; }
.picture-card { --shell: #bba4b8; --edge: #82647e; --label: #f3e8ef; }
.sudoku-card { --shell: #d4bd85; --edge: #957b44; --label: #faf0d2; }
.cabinet { position: relative; width: 100%; padding: 12px 15px 0; background: var(--shell); border: 3px solid var(--edge); border-radius: 18px 18px 7px 7px; box-shadow: inset 5px 0 #ffffff30, inset -7px 0 #00000012, 9px 10px 0 var(--edge), 18px 25px 25px #363d3926; }
.cabinet::after { content: ""; position: absolute; bottom: -13px; left: 6%; width: 90%; height: 9px; background: #353e3a; border-radius: 0 0 4px 4px; }
.cabinet-marquee { display: flex; align-items: center; justify-content: space-between; gap: 5px; height: 54px; border: 3px solid var(--edge); padding: 8px 12px; background: var(--label); border-radius: 10px 10px 4px 4px; box-shadow: inset 0 3px 0 #fff9; color: #303c37; font-size: 17px; font-weight: 900; letter-spacing: 1px; }
.cabinet-marquee i { font-style: normal; color: var(--edge); }
.cabinet-screen { padding: 13px 9px 19px; margin-top: 10px; background: #303d3b; border: 2px solid #22332e; border-radius: 8px 8px 18px 18px; box-shadow: inset 0 5px 0 #0004; }
.home-page .game-preview { display: block; position: relative; width: 100%; height: auto; min-height: 0; aspect-ratio: 4 / 3; margin: 0; padding: 0; overflow: hidden; background: #f8efdf; border: 2px solid #172f27; border-radius: 6px; }
.home-page .game-preview::before, .home-page .game-preview::after { display: none; }
.home-page .game-preview img { display: block; position: static; width: 100%; height: 100%; padding: 4px; max-width: none; object-fit: contain; transform: none; transition: transform 250ms ease; border-radius: 0; filter: none; }
.home-page .straight-preview img { object-fit: cover; padding: 0; }
.home-page .curved-preview img { object-fit: cover; padding: 0; }
.home-page .game-preview:hover img { transform: none; }
.home-page .preview-badge { position: absolute; right: 8px; bottom: 7px; left: auto; top: auto; background: #243b34e8; color: #fff9ed; border: 1px solid #ffffff80; padding: 4px 8px; font-size: 10px; border-radius: 4px; }
.cabinet-deck { height: 57px; position: relative; margin: 0 -20px; border: 3px solid var(--edge); border-top: 6px solid var(--label); background: var(--shell); transform: perspective(330px) rotateX(20deg); transform-origin: top; border-radius: 4px 4px 8px 8px; box-shadow: 0 7px 0 var(--edge); }
.joystick { position: absolute; left: 20%; top: 16px; width: 32px; height: 15px; border-radius: 50%; background: #3b4b46; box-shadow: 0 2px 1px #182b25; }
.joystick::before { content: ""; position: absolute; height: 25px; width: 8px; background: #c9d2c6; left: 12px; bottom: 7px; border: 1px solid #6e847a; }
.joystick::after { content: ""; position: absolute; height: 24px; width: 24px; border-radius: 50%; background: #ad493c; left: 4px; bottom: 22px; box-shadow: inset -5px -5px #6e302c45, inset 4px 3px #ffbda762; }
.arcade-buttons { position: absolute; right: 13%; top: 10px; display: flex; gap: 9px; transform: rotate(-12deg); }
.arcade-buttons i { width: 24px; height: 17px; background: #edbd55; border: 2px solid #705c35; border-radius: 50%; box-shadow: 0 4px #88734c; }
.arcade-buttons i + i { background: #d46653; border-color: #814a39; box-shadow: 0 4px #8f4b38; }
.cabinet-deck small { position: absolute; left: 42%; bottom: 7px; color: #513a30; font: 700 6px monospace; letter-spacing: 1px; }
.cabinet-base { height: 63px; display: flex; align-items: center; justify-content: space-between; padding: 12px 25px 8px; font: 700 8px monospace; letter-spacing: 2px; color: #4a4338; }
.cabinet-base i { width: 27px; height: 32px; border: 2px solid var(--edge); border-radius: 3px; background: #00000014; position: relative; }
.cabinet-base i::before { content: ""; position: absolute; width: 3px; height: 14px; background: #3c453d; top: 5px; left: 10px; }
.home-page .game-content { padding: 28px 0 0; }
.game-content h3 { font-size: 26px; margin: 8px 0 10px; line-height: 1.3; }
.game-description { margin: 0; font-size: 14px; line-height: 1.8; color: var(--muted); }
.game-version { display: flex; gap: 14px; align-items: center; font-size: 10px; color: var(--muted); }
.game-version span { font-weight: 700; text-transform: uppercase; color: var(--accent); }
.game-version a { text-underline-offset: 3px; }
.release-notes { margin-top: 16px; }
.release-notes p { font-size: 12px; line-height: 1.8; margin: 5px 0; color: var(--muted); }
.release-notes strong { color: var(--ink); margin-right: 10px; }
.card-actions { margin: 10px 0 0; display: flex; }
.card-share { background: none; border: 0; color: var(--muted); padding: 10px 0; font-size: 12px; text-decoration: underline; text-underline-offset: 5px; }
/* 互動啟用後才收斂為景深機台；JavaScript 不可用時仍能直接進遊戲。 */
.arcade-ready .arcade-room { height: 555px; background: radial-gradient(ellipse at 50% 38%, #fffced 0, #e7e8d8 62%); }
.arcade-ready .room-sign { display: flex; position: absolute; left: 30px; top: 26px; align-items: baseline; gap: 10px; font: 900 18px "Trebuchet MS", sans-serif; color: #567163; letter-spacing: -1px; }
.room-sign span { font: 9px monospace; letter-spacing: 2px; }
.room-sign i { font: 8px monospace; border: 1px solid #8b9e8a; padding: 3px 5px; border-radius: 3px; margin-left: 8px; letter-spacing: 1px; }
.arcade-ready .room-floor { display: block; position: absolute; inset: 63% -40% -60%; background: repeating-linear-gradient(0deg, transparent 0 49px, #718b7230 50px 51px), repeating-linear-gradient(90deg, transparent 0 99px, #718b7230 100px 101px), #d3dbc8; transform: perspective(340px) rotateX(50deg); transform-origin: center top; border-top: 1px solid #9bad9045; }
.arcade-ready .game-grid { position: absolute; inset: 65px 0 60px; display: block; padding: 0; touch-action: pinch-zoom; overscroll-behavior: contain; }
.arcade-ready .game-card { position: absolute; top: 0; left: 50%; width: 300px; margin-left: -150px; transform: translateX(var(--x, 0px)) scale(var(--scale, 1)); transform-origin: center center; z-index: var(--layer, 1); opacity: var(--opacity, 1); transition: none; backface-visibility: hidden; }
.arcade-ready .game-card.is-distant { visibility: hidden; pointer-events: none; }
.arcade-ready .game-card { cursor: pointer; user-select: none; -webkit-user-select: none; }
.arcade-ready .game-card.is-active { cursor: grab; }
.arcade-ready.is-dragging .game-grid, .arcade-ready.is-dragging .game-card, .arcade-ready.is-dragging a { cursor: grabbing; }
.arcade-ready.is-dragging .game-preview-link { -webkit-touch-callout: none; }
.arcade-ready .game-card.is-active .cabinet { box-shadow: inset 5px 0 #ffffff30, inset -7px 0 #00000012, 9px 10px 0 var(--edge), 18px 25px 25px #363d3926, 0 0 0 1px #fff6; }
.arcade-status { position: absolute; bottom: 20px; left: 0; width: 100%; margin: 0; text-align: center; font-size: 11px; font-weight: 700; color: #34523e; pointer-events: none; }
.arcade-picker { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; padding: 20px 0; }
.arcade-picker button { min-height: 44px; border: 1px solid transparent; border-radius: 6px; background: transparent; padding: 7px 15px; font-size: 12px; color: var(--muted); transition: background 180ms; }
.arcade-picker button[aria-pressed="true"] { background: #343e37; color: #fffaef; border-color: #343e37; }
.arcade-picker button:hover { border-color: #a9b3a1; }
.arcade-ready .arcade-picker { position: relative; display: block; width: 100%; max-width: 860px; height: 92px; margin-inline: auto; padding: 0; overflow: hidden; }
.arcade-ready .arcade-picker button { position: absolute; left: 50%; top: 16px; width: calc(20% - 8px); height: 60px; padding: 7px 5px; white-space: normal; overflow-wrap: anywhere; transform: translateX(-50%) translateX(var(--tag-x, 0px)); transition: background 100ms, color 100ms; }
.arcade-ready .arcade-picker button.is-centered { font-size: 16px; font-weight: 800; }
.arcade-information { border-block: 1px solid #dcd9cf; min-height: 184px; padding: 25px 0 22px; }
.arcade-information .game-content { position: relative; padding: 0 90px 0 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 60px; align-items: start; }
.arcade-information .game-version { grid-column: 1; grid-row: 1; }
.arcade-information h3 { grid-column: 1; grid-row: 2; font-size: 27px; }
.arcade-information .game-description { grid-column: 1; grid-row: 3; }
.arcade-information .release-notes { grid-column: 2; grid-row: 1 / 4; margin: 0; padding-left: 25px; border-left: 1px solid #dcd9cf; }
.arcade-information .release-notes p { margin: 0 0 12px; }
.arcade-information .release-notes strong { display: block; margin-bottom: 3px; }
.arcade-information .card-actions { position: absolute; right: 0; top: 0; margin: 0; }
.game-guide { display: flex; align-items: center; gap: 18px; margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.game-guide a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border: 1px solid #c4c5b7; border-radius: 6px; color: #405e4e; font-weight: 700; text-decoration: none; }
.game-guide a:hover { background: #eeeddf; }
.arcade-information .game-guide { grid-column: 1; grid-row: 4; }
.guide-page .guide-back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 24px; color: var(--muted); font-size: 13px; text-underline-offset: 4px; }
.guide-hero { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(220px, .8fr); gap: 60px; align-items: center; padding: 12px 0 42px; }
.guide-page .section-kicker { color: var(--guide-accent); }
.guide-hero h1 { font-size: clamp(32px, 3.8vw, 48px); line-height: 1.3; margin: 0 0 18px; }
.guide-tagline { font-size: 20px; color: var(--guide-accent); font-weight: 700; line-height: 1.7; }
.guide-intro, .guide-section p { font-size: 16px; line-height: 1.95; color: var(--muted); }
.guide-art { display: block; padding: 20px; border: 1px solid #ddd6c8; border-radius: 22px; background: #fffaf0; transform: rotate(2deg); }
.guide-art img { display: block; width: 100%; height: auto; object-fit: contain; border-radius: 12px; }
.guide-page .guide-play { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 24px; border-radius: 8px; background: #405e4e; color: #fffbed; text-decoration: none; font-weight: 700; margin-top: 14px; }
.guide-play:hover { filter: brightness(1.1); }
.guide-section { padding: 34px 0; border-top: 1px solid #dcd9cf; }
.guide-section h2 { font-size: 28px; margin: 0 0 25px; line-height: 1.5; }
.guide-section h3 { font-size: 19px; margin: 0 0 10px; line-height: 1.6; }
.guide-steps { list-style: none; counter-reset: steps; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.guide-steps li { counter-increment: steps; }
.guide-steps li::before { content: "0" counter(steps); display: block; margin-bottom: 16px; font: 700 32px "Trebuchet MS", sans-serif; color: var(--guide-accent); }
.guide-features { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.guide-tip { margin-top: 28px; padding: 22px 26px; background: #f3ebda; border-radius: 10px; }
.guide-tip strong { color: var(--guide-accent); }
.guide-tip p { margin: 8px 0 0; }
.guide-faq details { padding: 18px 0; border-top: 1px solid #e4ded2; }
.guide-faq summary { cursor: pointer; font-size: 17px; font-weight: 700; min-height: 44px; line-height: 1.8; padding: 7px 0; }
.guide-faq details p { margin: 5px 0 10px; }
.guide-end { padding: 25px 0; text-align: center; }
.guide-end p { font-size: 20px; }
.guide-screenshot { margin: 0; padding: 25px; border-radius: 12px; background: #efebdf; text-align: center; }
.guide-screenshot img { display: block; width: min(100%, 320px); height: auto; margin: auto; border-radius: 10px; }
.guide-screenshot figcaption { margin-top: 14px; font-size: 13px; color: var(--muted); }
.guide-howto { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 50px; align-items: start; }
.guide-howto .guide-steps { grid-template-columns: 1fr; margin: 0; }
.guide-howto .guide-screenshot { padding: 18px; }
@media (max-width: 640px) {
  .guide-hero { grid-template-columns: 1fr; gap: 30px; padding-bottom: 30px; }
  .guide-art { width: 180px; justify-self: center; padding: 12px; }
  .guide-tagline { font-size: 18px; }
  .guide-steps, .guide-features { grid-template-columns: 1fr; gap: 25px; }
  .guide-howto { grid-template-columns: 1fr; gap: 30px; }
  .guide-howto .guide-screenshot img { max-width: 240px; }
  .guide-section { padding: 28px 0; }
  .guide-section h2 { font-size: 24px; }
}
.stepmanager-banner { display: flex; gap: 19px; align-items: center; padding: 15px 24px; min-height: 94px; text-decoration: none; border: 1px solid #d5ded4; border-radius: 10px; background: #eff2e9; transition: border-color 200ms; }
.stepmanager-banner:hover { border-color: #1e896e; }
.stepmanager-art { width: 62px; height: 62px; object-fit: contain; border-radius: 13px; }
.stepmanager-scene { width: 190px; height: 76px; object-fit: cover; object-position: center 48%; border-radius: 5px; }
.stepmanager-copy { display: grid; grid-template-columns: auto 1fr; column-gap: 24px; row-gap: 3px; align-items: center; flex: 1; }
.stepmanager-copy small { grid-column: 1; font-size: 10px; color: #5f7168; }
.stepmanager-copy strong { grid-column: 1; grid-row: 2; font: 700 23px "Trebuchet MS", sans-serif; color: #284b3e; }
.stepmanager-copy > span { grid-column: 2; grid-row: 2; font-size: 13px; color: #446353; }
.stepmanager-copy .stepmanager-url { grid-row: 1; font: 10px "Trebuchet MS", sans-serif; color: #5f7168; }
.app-store-button { padding: 8px 15px; border-radius: 5px; background: #274c3e; color: #fff !important; display: grid; gap: 3px; }
.app-store-button small { font-size: 9px; }
.app-store-button strong { font: 700 16px "Trebuchet MS", sans-serif; }
.home-page .home-updates { display: grid; grid-template-columns: 1.3fr 1fr; gap: 110px; margin-block: 78px 68px; padding: 0; border: 0; background: none; box-shadow: none; }
.home-updates h2 { font-size: 33px; line-height: 1.45; margin: 0 0 20px; }
.home-updates p:not(.section-kicker) { font-size: 14px; line-height: 2; color: var(--muted); max-width: 550px; }
.devlog-link { display: inline-block; font-size: 13px; text-underline-offset: 5px; margin-top: 8px; }
.update-note { align-self: center; padding: 20px 30px; background: #f4e8d2; border: 1px solid #e4d6bd; box-shadow: 4px 5px 0 #e9dfcc; transform: rotate(2deg); }
.update-note > span { font-size: 25px; color: var(--accent); }
.home-footer { padding: 28px 0 35px; border-top: 1px solid #dcd9cf; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.home-footer p { display: flex; gap: 20px; align-items: center; margin: 0; }
.home-footer strong { font: 700 19px "Trebuchet MS", sans-serif; }
.home-footer span, .home-footer nav { color: var(--muted); font-size: 11px; }
.home-footer nav { display: flex; gap: 24px; }
.home-footer a { text-decoration: none; }
@media (max-width: 1100px) {
  .site-header, .home-intro, .games-section, .stepmanager-banner, .home-updates, .home-footer { width: calc(100% - 48px); }
  .home-intro h1 br { display: block; }
  .home-intro { padding-top: 35px; gap: 20px; }
  .keyboard-hint { display: none; }
  .home-page .home-updates { gap: 50px; }
  .arcade-information .game-content { column-gap: 25px; padding-right: 50px; }
}
@media (max-width: 640px) {
  .site-header, .home-intro, .games-section, .stepmanager-banner, .home-updates, .home-footer { width: calc(100% - 32px); }
  .home-page .site-header { min-height: 79px; padding: 16px 0; }
  .brand-copy strong { font-size: 25px; }
  .brand-logo { width: 49px; height: 49px; }
  .brand-copy small { font-size: 8px; letter-spacing: 1px; }
  .home-page .site-nav { gap: 16px; font-size: 11px; }
  .site-nav a[href="/contact.html"], .site-nav a[href="#games"], .nav-share { display: none; }
  .home-page .site-nav .menu-link { padding: 9px; }
  .home-intro { padding: 24px 0 16px; display: grid; grid-template-columns: 1fr 92px; column-gap: 5px; row-gap: 0; }
  .home-intro-copy { grid-column: 1 / 3; grid-row: 1; }
  .studio-signature { grid-column: 2; grid-row: 1; align-self: start; margin-top: 29px; }
  .studio-signature img { width: 87px; height: 87px; }
  .studio-signature span { display: none; }
  .home-kicker { font-size: 14px; line-height: 1.7; letter-spacing: .5px; margin-bottom: 13px; }
  .home-intro h1 { font-size: 27px; letter-spacing: -1px; padding-right: 85px; }
  .home-page .player-summary { grid-column: 1 / 3; margin-top: 18px; padding-block: 10px; border-block: 1px solid #e3dfd5; justify-content: space-between; gap: 8px; min-width: 0; }
  .player-summary-copy { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; min-width: 0; }
  .summary-label { font-size: 9px; }
  .player-display-name { font-size: 11px; }
  .account-display-status { font-size: 8px; }
  .home-page .summary-menu-button { font-size: 10px; flex: 0 0 auto; width: auto; min-width: 0; }
  .section-heading { padding: 18px 0 14px; gap: 10px; align-items: center; }
  .section-heading h2 { font-size: 21px; }
  .section-heading .section-kicker { font-size: 8px; }
  .section-heading > p { max-width: 125px; font-size: 10px; line-height: 1.7; }
  .arcade-ready .arcade-room { height: 480px; margin-inline: -16px; border-radius: 0; border-inline: 0; }
  .arcade-ready .room-sign { top: 18px; left: 18px; font-size: 13px; }
  .room-sign span { font-size: 7px; }
  .room-sign i { display: none; }
  .arcade-ready .game-grid { top: 56px; bottom: 58px; }
  .arcade-ready .game-card { width: 252px; margin-left: -126px; }
  .cabinet { padding: 9px 12px 0; border-radius: 13px 13px 5px 5px; }
  .cabinet-marquee { font-size: 14px; height: 43px; padding-inline: 8px; }
  .cabinet-screen { margin-top: 8px; padding: 10px 7px 14px; }
  .cabinet-deck { margin-inline: -16px; height: 49px; }
  .cabinet-base { height: 48px; padding: 9px 15px 5px; font-size: 6px; }
  .cabinet-base i { width: 24px; height: 28px; }
  .arcade-picker { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; padding-block: 13px; }
  .arcade-picker button { white-space: normal; word-break: normal; overflow-wrap: anywhere; font-size: 10px; line-height: 1.6; padding: 7px 3px; min-width: 0; }
  .arcade-ready .arcade-picker button.is-centered { font-size: 13px; line-height: 1.45; }
  .arcade-ready .arcade-picker button { top: 10px; height: 72px; padding-inline: 3px; }
  .arcade-information { padding-block: 21px; min-height: 260px; }
  .arcade-information .game-content { display: block; padding: 0; }
  .arcade-information h3 { font-size: 24px; margin-top: 13px; }
  .arcade-information .game-description { font-size: 12px; }
  .arcade-information .release-notes { border-left: 0; border-top: 1px solid #e1ddd3; margin-top: 15px; padding: 13px 0 0; }
  .arcade-information .release-notes p { font-size: 11px; margin: 0 0 5px; }
  .arcade-information .release-notes strong { display: inline; }
  .arcade-information .card-actions { top: -9px; }
  .games-section { margin-bottom: 26px; }
  .stepmanager-banner { gap: 10px; padding: 12px; min-height: 82px; }
  .stepmanager-art { width: 49px; height: 49px; border-radius: 10px; }
  .stepmanager-scene { display: none; }
  .stepmanager-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
  .stepmanager-copy strong { font-size: 19px; }
  .stepmanager-copy small, .stepmanager-copy > span:not(.stepmanager-url) { display: none; }
  .stepmanager-copy .stepmanager-url { font-size: 8px; }
  .app-store-button { padding: 8px 10px; }
  .app-store-button strong { font-size: 12px; }
  .app-store-button small { font-size: 8px; }
  .home-page .home-updates { display: block; margin-block: 48px; }
  .home-updates h2 { font-size: 27px; }
  .home-updates p:not(.section-kicker) { font-size: 12px; }
  .update-note { margin: 28px 6px 0; padding: 16px 22px; }
  .home-footer { display: block; padding: 24px 0; }
  .home-footer p { display: grid; gap: 8px; }
  .home-footer nav { gap: 22px; margin-top: 23px; }
}
/* 內容頁共用暖紙色與手繪品牌，讓導覽與閱讀保持一致。 */
.story-page .info-page { width: min(1100px, calc(100% - 96px)); margin: 0 auto; padding: 44px 0 70px; }
.story-page .info-hero { max-width: 790px; padding: 0 0 28px; background: none; }
.story-page .info-hero h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.35; margin: 8px 0 20px; }
.story-page .info-hero p:not(.section-kicker):not(.eyebrow) { font-size: 16px; line-height: 1.95; font-weight: 400; color: var(--muted); }
.story-page .eyebrow, .story-page .contact-label { color: var(--accent); font-size: 12px; letter-spacing: 1px; }
.story-page .devlog-project { margin-top: 36px; border: 1px solid #ddd6c8; border-radius: 12px; background: #fffcf5; box-shadow: 0 3px 0 #e7dfd0; overflow: hidden; }
.story-page .devlog-project-header { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 20px; padding: 28px; background: none; align-items: start; }
.story-cover { display: block; grid-row: 1 / 3; }
.story-page .devlog-project-header img { width: 100px; height: 100px; object-fit: contain; border-radius: 12px; box-shadow: none; }
.story-page .devlog-project-header h2 { font-size: 28px; line-height: 1.4; }
.story-page .devlog-project-header p:not(.section-kicker) { font-size: 15px; font-weight: 400; line-height: 1.9; }
.story-page .project-play-link { grid-column: 2; justify-self: start; padding: 12px 0; min-height: 44px; border: 0; border-radius: 0; box-shadow: none; background: none; color: var(--accent); font-size: 14px; text-underline-offset: 5px; }
.story-page .devlog-timeline { padding: 0 28px 8px; border-top: 1px solid #e7dfd0; }
.story-page .devlog-timeline li { grid-template-columns: 100px minmax(0, 1fr); gap: 20px; padding: 24px 0; }
.story-page .devlog-timeline time { color: var(--accent); font-size: 12px; }
.story-page .devlog-timeline h3 { font-size: 21px; line-height: 1.5; }
.story-page .devlog-timeline p { font-size: 15px; line-height: 1.9; font-weight: 400; }
.story-page .devlog-signoff { border-top: 1px solid #dcd9cf; margin-top: 50px; padding-top: 32px; }
.story-page .devlog-signoff h2 { font-size: 28px; line-height: 1.5; }
.story-page .devlog-signoff p { font-size: 15px; font-weight: 400; }
.story-page .contact-card { min-height: 0; padding: 25px; background: #fffcf5; border: 1px solid #ddd6c8; border-radius: 12px; box-shadow: 0 3px 0 #e7dfd0; backdrop-filter: none; }
.story-page .contact-card h2 { font-size: 22px; }
.story-page .contact-card p:not(.contact-label) { font-size: 15px; font-weight: 400; }
.story-page .mail-button { background: #405e4e; color: #fffbed; font-size: 14px; box-shadow: none; }
@media (max-width: 900px) {
  .home-page .site-header { flex-wrap: wrap; gap: 16px; }
  .home-page .site-nav { gap: 16px; flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .story-page .info-page { width: calc(100% - 32px); padding: 28px 0 40px; }
  .story-page .site-nav { justify-content: space-between; }
  .story-page .site-nav a:not(.menu-link) { display: inline-flex; align-items: center; min-height: 44px; }
  .story-page .devlog-project-header { padding: 20px; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; }
  .story-page .devlog-project-header img { width: 64px; height: 64px; }
  .story-page .devlog-project-header h2 { font-size: 23px; }
  .story-page .devlog-project-header > div { display: contents; }
  .story-page .devlog-project-header h2, .story-page .devlog-project-header .section-kicker { grid-column: 2; }
  .story-page .devlog-project-header > div > p:not(.section-kicker) { grid-column: 1 / -1; margin: 0; }
  .story-page .project-play-link { grid-column: 1 / -1; }
  .story-page .devlog-project-header .section-kicker { font-size: 10px; letter-spacing: 0; line-height: 1.8; margin-bottom: 8px; }
  .story-page .devlog-timeline { padding: 0 20px 4px; }
  .story-page .devlog-timeline li { grid-template-columns: 1fr; gap: 10px; }
  .story-page .devlog-signoff h2 { font-size: 24px; }
}
/* 玩家設定保留既有表單行為，只套用同一品牌樣式。 */
.settings-page .menu-page { width: min(1050px, calc(100% - 96px)); margin: 0 auto; padding: 44px 0 70px; }
.settings-page .menu-hero { max-width: none; padding: 0 0 28px; border-bottom: 1px solid #dcd9cf; background: none; }
.settings-page .menu-hero h1 { font-size: 42px; line-height: 1.3; margin: 8px 0 15px; color: var(--ink); }
.settings-page .menu-hero > p:not(.section-kicker) { font-size: 14px; color: var(--muted); line-height: 1.8; }
.settings-back { display: inline-block; padding: 12px 0; color: var(--accent) !important; font-size: 13px; text-decoration: underline !important; text-underline-offset: 5px; }
.settings-page .menu-grid { margin-top: 30px; gap: 28px; align-items: stretch; }
.settings-page .settings-card { min-height: 0; padding: 28px; border: 1px solid #ddd6c8; border-radius: 12px; background: #fffcf5; box-shadow: 0 3px 0 #e7dfd0; backdrop-filter: none; }
.settings-page .settings-card.account-panel { margin: 0; }
.settings-page .settings-card h2 { font-size: 25px; font-weight: 800; }
.settings-page .contact-label { color: var(--accent); font-size: 11px; letter-spacing: 1.5px; margin: 0 0 14px; }
.settings-page .account-heading { display: block; }
.settings-page .account-display-status { font-size: 12px; margin-bottom: 15px; color: #526954; }
.settings-page input, .settings-page select { min-width: 0; width: 100%; border: 1px solid #bcbcad; background: #fffefa; color: var(--ink); border-radius: 6px; min-height: 46px; font-size: 16px; box-shadow: none; }
.settings-page .player-name-row, .settings-page .transfer-claim { display: flex; gap: 10px; }
.settings-page .settings-card button { border: 0; border-radius: 6px; padding: 12px 17px; background: #405e4e; color: #fffbed; font-size: 13px; white-space: nowrap; box-shadow: none; min-height: 44px; }
.settings-page .transfer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-block: 20px; }
.settings-page .transfer-code { background: #f4efdf; color: var(--ink); border: 1px dashed #b9baa5; border-radius: 5px; padding: 12px; font-size: 14px; }
.settings-page .account-status, .settings-page .player-sync-status, .settings-page .locale-status { font-size: 12px; line-height: 1.8; color: var(--muted); font-weight: 400; }
@media (max-width: 640px) {
  .home-page .site-header { flex-wrap: wrap; gap: 12px; }
  .home-page .site-nav { width: 100%; justify-content: flex-end; }
  .nav-player { width: 100%; justify-content: space-between; gap: 8px; }
  .nav-welcome { font-size: 11px; white-space: normal; overflow-wrap: anywhere; }
  .nav-player .menu-link { flex: 0 0 auto; }
  .settings-page .menu-page { width: calc(100% - 32px); padding: 28px 0 40px; }
  .settings-page .menu-hero h1 { font-size: 32px; }
  .settings-page .menu-grid { grid-template-columns: 1fr; gap: 20px; margin-top: 20px; }
  .settings-page .settings-card { padding: 21px; }
  .settings-page .transfer-claim { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .home-page *, .home-page *::before, .home-page *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .home-page .game-preview:hover img { transform: none; }
}
