/* Play Journal — soft, tactile modules inspired by Seán Halpin's software canvas. */
.games-page { --paper: #f0f0e9; --wash: #e9ece3; --ink: #283f35; --muted: #707c70; --line: #d2d9cc; --ember: #677e55; --moss: #365e47; --game-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif; background: var(--paper); }
.games-page .atmosphere { background: radial-gradient(ellipse at 10% 20%, #dfe8d997, transparent 45%), radial-gradient(ellipse at 90% 85%, #e5def08c, transparent 50%); }
.games-page .grain { opacity: .028; }
.games-page .cursor { display: none; }
.games-page .site-head::after { opacity: .3; }
.game-room { width: min(100% - 64px, 1280px); margin: 0 auto; padding: 27px 0 0; font-family: var(--game-sans); }
.game-room-bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 25px; font: 10px/1.5 ui-monospace, "PingFang SC", sans-serif; letter-spacing: .1em; color: var(--muted); }
.game-room-bar > a { font-family: var(--game-sans); letter-spacing: 0; font-size: 12px; }
.game-board { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.game-tile { position: relative; min-width: 0; border-radius: 32px; min-height: 462px; overflow: hidden; isolation: isolate; }
.game-intro { grid-column: span 4; display: flex; flex-direction: column; padding: 34px 32px 27px; background: #d6e6ce; color: #2b503b; }
.game-kicker { display: flex; gap: 8px; align-items: center; font: 10px/1.5 ui-monospace, "PingFang SC", sans-serif; letter-spacing: .05em; }
.game-kicker > i { display: block; flex: 0 0 6px; width: 6px; height: 6px; border-radius: 50%; background: #668a54; box-shadow: 0 0 0 4px #76975f18; }
.game-intro h1 { font: 500 clamp(29px, 3.1vw, 43px)/1.25 Fraunces, "Songti SC", serif; letter-spacing: -.035em; margin-top: 29px; position: relative; z-index: 2; }
html[lang="zh-CN"] .game-intro h1 { line-height: 1.55; font-size: clamp(26px, 2.7vw, 36px); letter-spacing: .015em; }
.game-intro-copy { margin-top: 15px; font-size: 13px; line-height: 1.9; color: #5d765e; position: relative; z-index: 2; }
.gamepad-holder { width: min(100%, 300px); margin: auto auto -11px; position: relative; min-height: 140px; }
.gamepad { width: 100%; height: auto; display: block; rotate: -11deg; }
.pad-eyes { transition: transform .2s ease-out; }
.game-intro-link { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 12px; font-size: 11px; position: relative; z-index: 2; }
.game-intro-link > span { font-size: 20px; }
.game-world { grid-column: span 8; background: #394a44; color: #fff8e7; perspective: 1000px; transform: perspective(1100px) rotateX(var(--tilt-y,0deg)) rotateY(var(--tilt-x,0deg)); transition: transform .6s cubic-bezier(.2,.8,.2,1), box-shadow .6s; }
.game-world--jade { background: #17392f; }
.game-world-image { position: absolute; inset: -2%; width: 104%; height: 104%; object-fit: cover; transform: translate(var(--art-x,0px),var(--art-y,0px)) scale(1.015); transition: transform 1.1s cubic-bezier(.2,.8,.2,1); }
.game-world-shade { position: absolute; inset: 0; background: linear-gradient(180deg, #1e282127, transparent 22%, #19231c40 45%, #16251ab3 82%, #142017b3); }
.game-world--jade .game-world-shade { background: linear-gradient(180deg, #07281f2e, transparent 25%, #122d2240 45%, #102b25c2 80%, #0e251fdd); }
.game-world-gloss { position: absolute; inset: 0; opacity: 0; background: radial-gradient(circle at var(--shine-x,50%) var(--shine-y,40%), #ffffeb36, transparent 55%); transition: opacity .7s; pointer-events: none; z-index: 2; }
.game-world-top { position: absolute; inset: 24px 28px auto; display: flex; justify-content: space-between; align-items: center; font-size: 10px; z-index: 2; }
.game-played { background: #e9f4deee; color: #365238; border: 1px solid #fff3; border-radius: 20px; padding: 5px 12px; font-weight: 500; }
.game-played::before { content: ""; display: inline-block; width: 4px; height: 4px; margin-right: 6px; vertical-align: 2px; border-radius: 50%; background: currentColor; }
.game-world-number { font: 12px/1 ui-monospace, monospace; letter-spacing: .1em; text-shadow: 0 1px 4px #132821; }
.game-world-heading { position: absolute; left: 32px; right: 32px; bottom: 124px; z-index: 2; }
.game-world-heading > p { font: 10px/1.4 ui-monospace, "PingFang SC", sans-serif; letter-spacing: .18em; opacity: .78; margin-bottom: 9px; }
.game-world-heading h2 { font: 500 clamp(32px, 4vw, 58px)/1.13 Fraunces, "Songti SC", serif; letter-spacing: -.04em; text-wrap: balance; text-shadow: 0 2px 16px #15241755; }
html[lang="zh-CN"] .game-world-heading h2 { font-size: clamp(32px, 3.8vw, 48px); letter-spacing: .06em; line-height: 1.3; }
.game-world-heading > span { display: block; font-size: 10px; letter-spacing: .04em; opacity: .78; margin-top: 12px; }
.game-glass-note { position: absolute; bottom: 18px; left: 18px; right: 18px; display: flex; align-items: center; gap: 20px; padding: 17px 22px; border-radius: 22px; background: #f9f8ebed; color: #314839; box-shadow: 0 2px 12px #1427180d; z-index: 2; transition: translate .55s cubic-bezier(.22,1,.36,1), background .5s; backdrop-filter: blur(16px); }
.game-score { display: inline-flex; flex-shrink: 0; align-items: baseline; gap: 5px; }
.game-score > strong { font: 500 28px/1.25 Fraunces, serif; }
.game-score > span { font-size: 10px; color: #758070; }
.game-glass-note > p { font-size: 12px; line-height: 1.7; color: #6a7566; flex: 1; max-height: 3.4em; overflow: hidden; }
.game-open-arrow { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; background: #fff9; font: 22px/1 Newsreader, serif; transition: transform .4s; }
.game-open { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; border: 0; border-radius: inherit; background: transparent; }
.game-open:focus-visible { outline-offset: -7px; outline: 2px solid #efffd3; }
.game-notebook { grid-column: span 4; background: #e1dded; color: #4b4264; padding: 30px 28px 22px; display: flex; flex-direction: column; scroll-margin-top: 30px; }
.game-notebook-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.notebook-icon { display: block; font: 38px/1 Fraunces, serif; color: #9a8caf; }
.game-notebook h2 { font: 500 clamp(26px, 2.5vw, 34px)/1.2 Fraunces, "Songti SC", serif; letter-spacing: -.03em; }
.game-notebook-caption { font-size: 12px; line-height: 1.7; margin-top: 12px; color: #7a718c; }
.game-note-list { margin: 27px 0 24px; display: flex; flex-direction: column; }
.game-note-row { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 12px; align-items: center; text-align: left; background: transparent; border: 0; border-bottom: 1px solid #9585b027; padding: 17px 0; font: 12px/1.5 var(--game-sans); color: inherit; }
.game-note-row > span:first-child { min-width: 0; }
.game-note-row > span:nth-child(2) { color: #8a809c; font-size: 10px; white-space: nowrap; }
.game-note-row > span:last-child { color: #8a809c; font-size: 18px; }
.game-note-row:hover { color: #6d4c98; }
.game-notebook-stats { display: flex; gap: 22px; margin-top: auto; padding-top: 8px; font-size: 10px; color: #7a718c; }
.game-notebook-stats strong { font: 500 26px/1.2 Fraunces, serif; color: #615575; margin-right: 4px; }
.game-export { align-self: flex-start; display: inline-flex; align-items: center; gap: 16px; border: 1px solid #8d7eaa38; border-radius: 30px; background: #f7f4fd80; color: #625574; padding: 8px 15px; font: 11px/1.5 var(--game-sans); margin-top: 23px; }
.game-export:hover { background: #f7f4fd; }
.game-local-note { margin-top: 12px; font-size: 9px; line-height: 1.6; color: #81768e; }
.game-export-status { font-size: 10px; line-height: 1.5; }
.game-export-status:not(:empty) { margin-top: 6px; }
.game-colophon { display: flex; justify-content: space-between; align-items: baseline; gap: 28px; padding: 30px 3px 20px; font: 10px/1.7 var(--game-sans); color: var(--muted); }
.game-colophon details { text-align: right; }
.game-colophon summary { cursor: pointer; }
.game-colophon p { max-width: 440px; font-size: 10px; margin-top: 8px; }
.game-colophon a { text-decoration: underline; text-underline-offset: 3px; }
.games-page .daily-panel { position: relative; inset: auto; width: min(100% - 64px, 1280px); margin: 10px auto 0; padding: 15px 3px 28px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.games-page .daily-panel::before { display: none; }
.games-page .daily-panel .footer-meta { flex-direction: row; text-align: left; gap: 5px 15px; font-size: 10px; }
.games-page .daily-panel .daily-verse { margin: 0; }
.games-page .daily-panel .daily-verse blockquote { font-size: 12px; }
.games-page .daily-panel .daily-verse figcaption { font-size: 10px; }

.game-dialog { width: min(100% - 64px, 1000px); max-width: none; max-height: calc(100svh - 64px); padding: 0; border: 1px solid #ffffff5c; border-radius: 29px; background: #f3f2e9; color: #344435; box-shadow: 0 35px 120px #182b393f; overflow: auto; font-family: var(--game-sans); }
.game-dialog::backdrop { background: #23383370; backdrop-filter: blur(12px); }
.game-dialog-panel { display: grid; grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr); min-height: 580px; }
.game-detail-art { position: relative; overflow: hidden; min-height: 300px; color: #f6f2e3; background: #35463b; }
.game-detail-art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.game-detail-art > div[aria-hidden] { position: absolute; inset: 0; background: linear-gradient(180deg,#1e2a212b,transparent 30%,#172b21c4 100%); }
.game-detail-label { position: absolute; left: 28px; top: 29px; font: 10px/1.5 ui-monospace, monospace; letter-spacing: .18em; }
.game-dialog-close { position: absolute; right: 16px; top: 16px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; background: #fffff0e3; border: 0; color: #394b3c; font: 27px/1 Newsreader, serif; }
.game-detail-heading { position: absolute; bottom: 35px; left: 28px; right: 28px; }
.game-detail-heading > p { font: 10px/1.6 ui-monospace,"PingFang SC",sans-serif; letter-spacing: .1em; opacity: .7; }
.game-detail-heading h2 { font: 500 38px/1.25 Fraunces,"Songti SC",serif; margin-block: 10px 16px; letter-spacing: -.03em; }
.game-detail-heading > span { font-size: 11px; opacity: .75; }
.game-detail-content { padding: 32px; min-width: 0; }
.game-detail-top { display: flex; justify-content: space-between; gap: 15px; align-items: center; font: 11px/1.6 var(--game-sans); margin-bottom: 35px; }
.game-detail-top > a { color: #7e8777; font-size: 10px; }
.game-review-fields { display: grid; grid-template-columns: 1fr 1.3fr; gap: 25px; margin-bottom: 28px; }
.game-review-form label { display: flex; flex-direction: column; gap: 11px; font-size: 11px; color: #78806e; }
.game-rating-input { display: flex; align-items: baseline; gap: 10px; }
.game-rating-input > input { width: 85px; padding: 4px 0; min-width: 0; border: 0; border-bottom: 1px solid #b8c1ac; border-radius: 0; background: transparent; font: 500 37px/1.2 Fraunces,serif; color: #3f553e; }
.game-rating-input > span { white-space: nowrap; font-size: 11px; }
.game-review-form select { appearance: auto; margin-top: 4px; width: 100%; padding: 10px 8px; border: 0; border-bottom: 1px solid #b8c1ac; border-radius: 0; background: transparent; color: #3f553e; font: 13px/1.5 var(--game-sans); }
.game-review-form textarea { width: 100%; resize: vertical; min-height: 185px; border: 1px solid #ccd2bf; border-radius: 15px; padding: 17px; color: #3f503d; background: #fffef578; font: 14px/1.9 var(--game-sans); }
.game-review-form textarea::placeholder { color: #a2a795; }
.game-review-form :is(input,textarea,select):focus-visible { outline: 2px solid #778e65; outline-offset: 3px; }
.game-review-actions { margin-top: 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.game-review-actions > p { color: #939986; font-size: 9px; line-height: 1.8; }
.game-review-actions > button { align-self: flex-end; background: #4a6747; color: #f8ffed; border: 0; border-radius: 30px; padding: 11px 22px; display: flex; align-items: center; gap: 25px; font: 12px/1.5 var(--game-sans); }
.game-save-status { min-height: 1.6em; font-size: 11px; line-height: 1.6; color: #5d7750; text-align: right; margin-top: 10px; }
.game-dialog-open { overflow: hidden; }
@media (hover:hover) and (pointer:fine) {
  .game-world:hover { box-shadow: 0 20px 40px #283e2e20; }
  .game-world:hover .game-world-image { transform: translate(var(--art-x,0px),var(--art-y,0px)) scale(1.055); }
  .game-world:hover .game-world-gloss { opacity: 1; }
  .game-world:hover .game-glass-note { translate: 0 -5px; background: #fffff4f5; }
  .game-world:hover .game-open-arrow { transform: rotate(45deg); }
}
@media (prefers-reduced-motion:no-preference) {
  .gamepad { animation: gamepad-float 7s ease-in-out infinite; }
  .notebook-icon { animation: notebook-turn 24s linear infinite; }
  .games-ready [data-arrive].game-waiting { opacity: 0; translate: 0 22px; }
  .games-ready [data-arrive] { transition: opacity .75s ease, translate .9s cubic-bezier(.22,1,.36,1), transform .6s ease, box-shadow .6s; }
  .game-dialog[open] .game-dialog-panel { animation: journal-open .45s cubic-bezier(.22,1,.36,1) both; }
}
@keyframes gamepad-float { 0%,100% { translate: 0 0; rotate: -11deg; } 50% { translate: 0 -7px; rotate: -6deg; } }
@keyframes notebook-turn { to { rotate: 360deg; } }
@keyframes journal-open { from { opacity: .4; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.page-hidden .gamepad, .page-hidden .notebook-icon, .game-dialog-open .gamepad, .game-dialog-open .notebook-icon { animation-play-state: paused; }
:root[data-theme=dark] .games-page { --paper: #1f2722; --wash: #273029; --ink: #e3e8d9; --muted: #a1ad9a; --line: #3b493d; --ember: #b6c59a; }
:root[data-theme=dark] .games-page .atmosphere { opacity: .1; }
:root[data-theme=dark] .game-intro { background: #354f3b; color: #e6eed9; }
:root[data-theme=dark] .game-intro-copy { color: #adbf9d; }
:root[data-theme=dark] .game-intro .game-kicker > i { background: #b4ce8d; }
:root[data-theme=dark] .game-notebook { background: #3f3b50; color: #e3daee; }
:root[data-theme=dark] .game-notebook-caption, :root[data-theme=dark] .game-note-row > span:nth-child(2), :root[data-theme=dark] .game-local-note { color: #aea2bd; }
:root[data-theme=dark] .game-notebook-stats, :root[data-theme=dark] .game-notebook-stats strong { color: #c6b8d8; }
:root[data-theme=dark] .game-export { background: #5f5269; color: #e5d6f3; }
:root[data-theme=dark] .game-dialog { background: #29342b; color: #e0e8d9; }
:root[data-theme=dark] .game-review-form :is(input,select,textarea) { color: #dae6ce; background: #2f3a30; border-color: #54614b; }
:root[data-theme=dark] .game-review-form label, :root[data-theme=dark] .game-save-status { color: #b4c5a2; }
@media (max-width:1080px) {
  .game-room { width: calc(100% - 48px); }
  .game-board { gap: 16px; }
  .game-intro { grid-column: span 5; padding-inline: 25px; }
  .game-world { grid-column: span 7; }
  .game-world--jade { grid-column: span 7; }
  .game-notebook { grid-column: span 5; padding-inline: 25px; }
  .game-glass-note { gap: 12px; padding: 16px; }
  .game-world-heading { left: 26px; right: 26px; }
  .game-dialog-panel { grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); }
}
@media (max-width:700px) {
  .game-room { width: calc(100% - 32px); padding-top: 20px; }
  .game-room-bar { font-size: 8px; gap: 8px; }
  .game-board { grid-template-columns: 1fr; }
  .game-tile { grid-column: 1; min-height: 400px; border-radius: 26px; }
  .game-intro { min-height: 330px; padding: 28px; }
  .game-intro h1 { font-size: 38px; max-width: 70%; }
  html[lang="zh-CN"] .game-intro h1 { font-size: 29px; max-width: 70%; }
  .gamepad-holder { position: absolute; width: 45%; right: 5px; bottom: 30px; min-height: auto; }
  .game-intro-copy { font-size: 12px; }
  .game-intro-link { margin-top: auto; width: 50%; }
  .game-world-heading h2 { font-size: 39px; }
  .game-world-heading { bottom: 120px; }
  .game-notebook { min-height: 400px; }
  .game-colophon { padding-inline: 3px; font-size: 9px; }
  .games-page .daily-panel { width: calc(100% - 38px); flex-direction: column; align-items: flex-start; }
  .games-page .daily-panel .daily-verse { text-align: left; }
  .game-dialog { width: calc(100% - 24px); max-height: calc(100svh - 24px); border-radius: 24px; }
  .game-dialog-panel { display: block; min-height: 0; }
  .game-detail-art { height: 250px; min-height: 0; }
  .game-detail-heading { bottom: 24px; }
  .game-detail-heading h2 { font-size: 31px; }
  .game-detail-content { padding: 25px; }
  .game-review-fields { grid-template-columns: 1fr 1.3fr; }
}
@media (prefers-reduced-motion:reduce) {
  .game-world, .game-world-image { transform: none !important; }
  .game-glass-note { translate: none !important; }
}
/* Initial card grid, with the retained Joy-Con-inspired controller. */
.game-intro h1,html[lang="zh-CN"] .game-intro h1 { font-size:clamp(44px,5.3vw,72px); margin-top:22px; line-height:1.15; }
.gamepad-holder { display:block; width:min(100%,300px); margin:auto auto 0; padding:0; border:0; border-radius:35%; background:transparent; cursor:pointer; }
.gamepad-holder:focus-visible { outline:2px solid var(--moss); outline-offset:3px; }
.gamepad-holder .gamepad { rotate:0deg; overflow:visible; animation:none; }
.pad-rig { transform-origin:200px 137px; transform:rotate(-8deg) rotate(var(--pad-roll,0deg)); transition:transform .5s cubic-bezier(.2,.8,.2,1); }
.joy { transform-box:fill-box; transform-origin:center; transition:transform .65s cubic-bezier(.22,1.45,.42,1); }
.pad-stick { transform:translate(var(--stick-x,0px),var(--stick-y,0px)); transition:transform .18s ease-out; }
.gamepad-holder.is-snapping .pad-button-a { fill:#e1e8d1; }
.game-dialog { position:relative; inset:auto; grid-column:1/-1; width:100%; max-width:none; max-height:none; margin:6px 0; border:1px solid var(--line); border-radius:28px; box-shadow:0 12px 36px #28402b0b; scroll-margin-top:28px; overflow:hidden; }
.game-dialog[hidden] { display:none; }
.game-dialog:not([hidden]) { display:block; }
.game-dialog-panel { min-height:460px; }
.game-dialog-close { display:grid; place-items:center; }
.game-open[aria-expanded=true] { outline:2px solid #efffd3; outline-offset:-7px; }
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  .gamepad-holder:hover .joy-left { transform:translate(-13px,-4px) rotate(-6deg); }
  .gamepad-holder:hover .joy-right { transform:translate(13px,2px) rotate(7deg); }
}
@media(prefers-reduced-motion:no-preference) {
  .joy-left { animation:joy-left-float 6s ease-in-out infinite; }
  .joy-right { animation:joy-right-float 6.7s ease-in-out infinite; }
  .gamepad-holder.is-snapping .joy-left { animation:joy-left-snap .8s both; }
  .gamepad-holder.is-snapping .joy-right { animation:joy-right-snap .8s both; }
  .game-dialog:not([hidden]) .game-dialog-panel { animation:journal-open .5s cubic-bezier(.22,1,.36,1) both; }
}
@keyframes joy-left-float { 0%,100% { translate:0 0; rotate:-1deg; } 50% { translate:-2px -5px; rotate:-3deg; } }
@keyframes joy-right-float { 0%,100% { translate:0 -3px; rotate:1deg; } 50% { translate:2px 3px; rotate:3deg; } }
@keyframes joy-left-snap { 0% { transform:translate(-13px,-4px) rotate(-6deg); } 30% { transform:translate(-28px,-12px) rotate(-12deg); } 58% { transform:translate(3px,0) rotate(2deg); } 77% { transform:translate(-4px,1px) rotate(-2deg); } 100% { transform:none; } }
@keyframes joy-right-snap { 0% { transform:translate(13px,2px) rotate(7deg); } 30% { transform:translate(28px,10px) rotate(12deg); } 58% { transform:translate(-3px,0) rotate(-2deg); } 77% { transform:translate(4px,-1px) rotate(2deg); } 100% { transform:none; } }
.page-hidden .joy { animation-play-state:paused; }
@media(prefers-reduced-motion:reduce) { .joy,.pad-rig,.pad-stick { animation:none!important; transition:none!important; } }

/* A single paper collection: one controller, two covers, one shared notebook. */
:root .games-page { --game-paper:#f5f1e7; --game-surface:#fcf9f1; --game-recess:#e7e9dd; --game-border:#7c827b2c; --game-ink:#36463f; --game-muted:#738078; --game-accent:#637967; }
:root[data-theme=dark] .games-page { --game-paper:#303a38; --game-surface:#36413e; --game-recess:#293632; --game-border:#c1c9b928; --game-ink:#e6e9dc; --game-muted:#b6c0b6; --game-accent:#c2cfaf; }
:root .games-page .atmosphere { background:radial-gradient(ellipse at 12% 25%,#bac6aa24,transparent 55%),radial-gradient(ellipse at 85% 65%,#d5bea418,transparent 60%); }
:root .games-page .game-room { padding-top:32px; }
:root .games-page .game-room-bar { margin-bottom:24px; color:var(--game-muted); }
:root .games-page .game-room-bar > span:not(.game-room-total) { display:none; }
:root .games-page .game-board {
  grid-template-columns:minmax(220px,.78fr) repeat(2,minmax(0,1fr)); gap:16px; padding:16px;
  border:1px solid var(--game-border); border-radius:32px;
  background:linear-gradient(135deg,var(--game-paper),color-mix(in srgb,var(--game-recess) 45%,var(--game-paper)));
  box-shadow:inset 0 1px 0 #ffffff44,0 18px 60px #3b473b06;
}
:root .games-page .game-tile { grid-column:auto; border-radius:23px; min-height:460px; }
:root .games-page .game-intro { padding:30px 21px 23px; background:transparent; color:var(--game-ink); }
:root .games-page .game-intro h1 { font-size:clamp(44px,4.4vw,62px); margin-top:28px; }
:root .games-page .game-kicker { color:var(--game-muted); letter-spacing:.08em; }
:root .games-page .gamepad-holder { width:min(100% + 28px,300px); max-width:none; margin:auto -14px 12px; filter:saturate(.78); }
:root .games-page .game-intro-link { border-top:1px solid var(--game-border); padding-top:19px; color:var(--game-muted); }
:root .games-page .game-world { background:var(--game-surface); border:1px solid var(--game-border); box-shadow:0 3px 12px #32433705; }
:root .games-page .game-world-image { inset:9px 9px auto; width:calc(100% - 18px); height:calc(100% - 93px); border-radius:16px; transform:none; }
:root .games-page .game-world-shade { inset:9px 9px 84px; border-radius:16px; background:linear-gradient(180deg,#13221c12,transparent 30%,#18281d7a 66%,#13221dc9); }
:root .games-page .game-world-gloss { inset:9px 9px 84px; border-radius:16px; }
:root .games-page .game-world-top { inset:25px 26px auto; }
:root .games-page .game-played { color:#f3f2e5; background:#243a3175; border-color:#ffffff38; backdrop-filter:blur(8px); font-size:9px; padding:5px 10px; }
:root .games-page .game-world-heading { left:27px; right:27px; bottom:111px; }
:root .games-page .game-world-heading h2 { font-size:clamp(29px,2.9vw,42px); line-height:1.16; letter-spacing:-.025em; }
:root[lang=zh-CN] .games-page .game-world-heading h2 { font-size:clamp(27px,2.7vw,38px); letter-spacing:.04em; line-height:1.35; }
:root .games-page .game-world-heading > p { font-size:9px; letter-spacing:.11em; }
:root .games-page .game-world-heading > span { font-size:10px; opacity:.82; }
:root .games-page .game-glass-note { inset:auto 20px 12px; min-height:60px; gap:14px; padding:10px 0; border-radius:0; box-shadow:none; background:transparent; color:var(--game-ink); backdrop-filter:none; }
:root .games-page .game-glass-note > p { color:var(--game-muted); font-size:11px; }
:root .games-page .game-score > strong { font-size:27px; }
:root .games-page .game-score > span { color:var(--game-muted); }
:root .games-page .game-open-arrow { width:30px; height:30px; background:var(--game-recess); color:var(--game-ink); border:1px solid var(--game-border); font-size:19px; }
:root .games-page .game-open:focus-visible,:root .games-page .game-open[aria-expanded=true] { outline:2px solid var(--game-accent); outline-offset:-3px; }
:root .games-page .game-notebook {
  grid-column:1/-1; display:grid; grid-template-columns:minmax(150px,.8fr) minmax(250px,1.8fr) minmax(140px,.7fr);
  column-gap:34px; row-gap:12px; min-height:0; margin:4px 8px 0; padding:26px 12px 12px; border-radius:0; border-top:1px solid var(--game-border); background:transparent; color:var(--game-ink);
}
:root .games-page .game-notebook-top { display:none; }
:root .games-page .game-notebook h2 { grid-column:1; grid-row:1; font-size:23px; align-self:end; }
:root .games-page .game-note-list { grid-column:2; grid-row:1/4; margin:0; align-self:center; }
:root .games-page .game-note-row { padding:13px 0; border-color:var(--game-border); font-size:12px; }
:root .games-page .game-note-row:last-child { border-bottom:0; }
:root .games-page .game-note-row > span:nth-child(n+2) { color:var(--game-muted); }
:root .games-page .game-note-row:hover { color:var(--game-accent); }
:root .games-page .game-notebook-stats { grid-column:1; grid-row:2/4; margin:0; padding:0; align-self:start; gap:15px; color:var(--game-muted); }
:root .games-page .game-notebook-stats strong { color:var(--game-ink); font-size:23px; }
:root .games-page .game-export { grid-column:3; grid-row:1/3; margin:0; align-self:center; justify-self:end; background:var(--game-surface); border-color:var(--game-border); color:var(--game-ink); }
:root .games-page .game-local-note { grid-column:3; grid-row:3; margin:0; color:var(--game-muted); text-align:right; }
:root .games-page .game-export-status { grid-column:1/-1; color:var(--game-muted); }
:root .games-page .game-export-status:empty { display:none; }
:root .games-page .game-dialog { grid-column:1/-1; border-radius:23px; border-color:var(--game-border); background:var(--game-surface); color:var(--game-ink); box-shadow:none; margin:0; }
:root .games-page .game-detail-content { padding:34px; }
:root .games-page .game-detail-top,:root .games-page .game-detail-top > a,:root .games-page .game-review-form label,:root .games-page .game-save-status,:root .games-page .game-review-actions > p { color:var(--game-muted); }
:root .games-page .game-review-form :is(input,select,textarea) { color:var(--game-ink); background:var(--game-paper); border-color:var(--game-border); }
:root .games-page .game-review-form :is(input,select) { background:transparent; }
:root .games-page .game-review-form textarea { border-radius:14px; }
:root .games-page .game-review-actions > button { background:var(--game-accent); color:var(--game-surface); }
:root .games-page .game-review-form :is(input,select,textarea):focus-visible { outline-color:var(--game-accent); }
@media(hover:hover) and (pointer:fine){
  :root .games-page .game-world:hover { box-shadow:0 10px 26px #263c2c12; }
  :root .games-page .game-world:hover .game-world-image { transform:scale(1.015); }
  :root .games-page .game-world:hover .game-glass-note { translate:0 0; background:transparent; }
  :root .games-page .game-world:hover .game-open-arrow { transform:translate(2px,-2px); }
}
@media(max-width:1000px){
  :root .games-page .game-board { grid-template-columns:repeat(2,minmax(0,1fr)); }
  :root .games-page .game-intro { grid-column:1/-1; min-height:190px; padding:24px 26px; }
  :root .games-page .game-intro h1 { margin-top:16px; }
  :root .games-page .gamepad-holder { position:absolute; width:230px; right:25px; top:2px; margin:0; }
  :root .games-page .game-intro-link { width:45%; margin-top:20px; padding-top:12px; }
  :root .games-page .game-notebook { grid-template-columns:minmax(140px,.8fr) minmax(220px,1.5fr); gap:16px 25px; }
  :root .games-page .game-export { grid-column:1; grid-row:4; justify-self:start; }
  :root .games-page .game-local-note { grid-column:2; grid-row:4; align-self:center; }
}
@media(max-width:620px){
  :root .games-page .game-room { width:calc(100% - 28px); padding-top:22px; }
  :root .games-page .game-board { grid-template-columns:1fr; padding:10px; border-radius:26px; gap:12px; }
  :root .games-page .game-intro { min-height:210px; padding:24px 15px; }
  :root .games-page .gamepad-holder { width:46%; right:5px; top:40px; }
  :root .games-page .game-world { min-height:420px; }
  :root .games-page .game-notebook { display:flex; gap:16px; padding:24px 5px 10px; }
  :root .games-page .game-note-list { width:100%; }
  :root .games-page .game-notebook-stats { margin-top:0; }
  :root .games-page .game-local-note { text-align:left; }
  :root .games-page .game-detail-content { padding:24px; }
}
