/* Shared tabletop edition. Extends NVC's paper, plum ink and spectrum.
   Card artwork is local vector geometry; gameplay and copy remain game-owned. */
:is(.gdy,.gtm,.gcr) {
  --table-accent: #226b73;
  --table-tint: #dceee8;
  --table-surface: #d1e4df;
  --table-back: url('/assets/games/seeing-back.svg');
  --ink-faint: #6b6273;
  --card-elevation: 0 18px 35px -16px rgb(42 34 51 / 40%), 0 3px 6px rgb(42 34 51 / 8%);
  background: var(--paper);
  padding: 112px 28px 80px;
}
.gtm { --table-accent: #73465a; --table-tint: #f0e0dd; --table-surface: #e5d3cf; --table-back: url('/assets/games/stories-back.svg'); }
.gcr { --table-accent: #4a487a; --table-tint: #e6e2f3; --table-surface: #d9d5ea; --table-back: url('/assets/games/circle-back.svg'); }
:is(.gdy-inner,.gtm-inner,.gcr-inner) { max-width: 1120px; }
.gcr-wash { display: none; }
:is(.gdy-head,.gtm-head,.gcr-head) { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 48px; margin-bottom: 48px; }
:is(.gdy-title,.gtm-title,.gcr-title) { font-size: clamp(48px,6vw,80px); max-width: 620px; }
:is(.gdy-title,.gtm-title,.gcr-title) em { background: none; color: var(--table-accent); }
:is(.gdy-meta,.gtm-meta,.gcr-meta) { color: var(--table-accent); letter-spacing: .06em; margin: 24px 0 0; font-family: var(--font-body); font-size: 12px; font-weight: 500; text-transform: none; }
:is(.gdy-howto,.gtm-howto,.gcr-howto) { font-size: 14px; }
:is(.gdy-lede,.gtm-lede,.gcr-lede) { font-size: 19px; line-height: 1.55; }
/* A fan of physical cards, with a separate motif for each edition. */
.game-deck-art { height: 350px; position: relative; isolation: isolate; perspective: 1000px; }
.game-art-orbit { position: absolute; width: 310px; height: 310px; border: 1px solid color-mix(in srgb,var(--table-accent) 22%, transparent); border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%,-50%); }
.game-art-orbit::after { content: ''; position: absolute; inset: -24px; border: inherit; border-radius: inherit; }
.game-art-card { position: absolute; width: 175px; height: 276px; top: 34px; left: calc(50% - 87px); border-radius: 12px; box-shadow: var(--card-elevation); overflow: hidden; }
.game-art-card > img:not(.game-art-symbol) { display: block; width: 100%; height: 100%; }
.game-art-back { transform: translate(-100px,20px) rotate(-21deg); }
.game-art-middle { transform: translate(100px,15px) rotate(20deg); }
.game-art-front { transform: rotate(-4deg); background: var(--paper); padding: 23px 19px 17px; display: flex; flex-direction: column; align-items: center; text-align: center; outline: 1px solid color-mix(in srgb,var(--table-accent) 35%, transparent); outline-offset: -9px; }
.game-art-name { font: 400 28px/1 var(--font-display); color: var(--table-accent); }
.game-art-name em { font-weight: 400; }
.game-art-symbol { width: 80px; height: 108px; object-fit: cover; object-position: center; margin: auto; border-radius: 60px; }
.game-art-labels { font: 500 9px/1.5 var(--font-body); color: var(--table-accent); }
/* Setup is the edge of the table. The cards, not enclosing boxes, carry depth. */
:is(.gdy-card-setup,.gcr-stage:not(.gcr-play),.gtm-modes) { padding: 28px 0; border: 0; border-top: 1px solid var(--line-strong); background: none; box-shadow: none; border-radius: 0; }
:is(.gdy-eyebrow-soft,.gcr-eyebrow-soft) { display: none; }
:is(.gdy-modes,.gtm-mode-row,.gcr-modes) { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
:is(.gdy-mode,.gtm-mode,.gcr-mode) { border-radius: 12px; box-shadow: none; background: transparent; border: 1px solid var(--line-strong); padding: 20px; min-width: 0; }
:is(.gdy-mode,.gtm-mode,.gcr-mode):hover { background: var(--table-tint); border-color: var(--table-accent); transform: none; }
:is(.gdy-mode,.gtm-mode,.gcr-mode)[aria-pressed="true"] { background: var(--table-tint); border-color: var(--table-accent); box-shadow: inset 0 0 0 1px var(--table-accent); }
.gtm-mode::before { display: none; }
.gdy-mode-swatch { background: var(--table-accent); }
:is(.gdy-btn,.gtm-btn,.gcr-btn) { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 500; border-radius: 8px; min-height: 44px; }
:is(.gdy-btn-primary,.gtm-btn-primary,.gcr-btn-primary) { background: var(--table-accent); border-color: var(--table-accent); color: var(--white); box-shadow: 0 5px 12px -5px rgb(42 34 51 / 35%); }
:is(.gdy-btn-primary,.gtm-btn-primary,.gcr-btn-primary):hover { background: var(--ink); border-color: var(--ink); transform: none; }
.gdy-btn-big { width: auto; min-width: 220px; }
:is(.gdy,.gtm,.gcr) :is(button,a,input,textarea):focus-visible { outline: 3px solid var(--table-accent); outline-offset: 4px; }
:is(.gdy-board,.gtm-table,.gcr-play) { background: var(--table-surface); border: 0; border-radius: 24px; padding: 32px; box-shadow: inset 0 0 0 1px rgb(42 34 51 / 8%); scroll-margin-top: 96px; }
/* Seeing: the question is the centre of the table. */
.gdy-board { max-width: 900px; margin-inline: auto; }
.gdy-track { margin-bottom: 24px; }
.gdy-level { background: transparent; border-color: color-mix(in srgb,var(--table-accent) 25%,transparent); }
.gdy-level.is-current { background: var(--paper); box-shadow: none; border-color: var(--table-accent); }
.gdy-level.is-locked { opacity: .72; }
.gdy-stack { max-width: 650px; margin: 28px auto 36px; perspective: 1100px; }
.gdy-shadowcard { background: var(--table-accent) var(--table-back) center/cover; border: 0; border-radius: 14px; }
.gdy-card-face { min-height: 350px; border: 0; border-radius: 14px; background: var(--paper); box-shadow: var(--card-elevation); padding: 32px 40px; outline: 1px solid color-mix(in srgb,var(--dy) 48%, transparent); outline-offset: -12px; }
.gdy-face-level { color: var(--table-accent); }
.gdy-prompt { font-size: clamp(28px,3.4vw,40px); line-height: 1.24; max-width: 540px; margin-inline: auto; }
.gdy-face-head { border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.gdy-dig { background: var(--table-tint); border-radius: 8px; }
.gdy-levelnote { background: transparent; padding: 0; max-width: 620px; margin-inline: auto; }
.gdy-progress { color: var(--table-accent); }
/* Storytelling: four actual card decks and two different card roles. */
.gtm-shelf-row { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; padding-top: 8px; }
.gtm-spine { --deck-color: #73465a; background: var(--deck-color); border: 0; border-radius: 12px; padding: 24px 20px 20px; min-height: 255px; color: var(--paper); box-shadow: var(--card-elevation); outline: 1px solid rgb(255 255 255 / 35%); outline-offset: -8px; }
.gtm-spine:nth-child(2) { --deck-color: #226b73; }
.gtm-spine:nth-child(3) { --deck-color: #56643e; }
.gtm-spine:nth-child(4) { --deck-color: #514b7b; }
.gtm-spine-rail { position: static; height: 54px; width: 54px; margin-bottom: 12px; border: 1px solid currentColor; border-radius: 50% 50% 0 0; background: none !important; opacity: .8; }
.gtm-spine-rail::after { content: ''; display: block; height: 40px; margin: 6px; border: 1px solid currentColor; border-radius: inherit; }
.gtm-spine :is(.gtm-spine-name,.gtm-spine-title,.gtm-spine-line,.gtm-spine-count) { color: inherit; }
.gtm-spine-title { font-size: 27px; }
.gtm-spine-name { letter-spacing: .12em; font-size: 10px; }
.gtm-spine-line { font-size: 13px; }
.gtm-spine-count { margin-top: auto; padding-top: 12px; letter-spacing: .08em; }
.gtm-spine.is-active { background: var(--deck-color); transform: translateY(-7px); outline: 2px solid var(--paper); box-shadow: var(--card-elevation), 0 0 0 3px var(--deck-color); }
.gtm-setup { background: none; border: 0; padding: 0; }
.gtm-table { padding: 32px; }
.gtm-empty { text-align: center; padding: 210px 20px 16px; position: relative; color: var(--ink-soft); }
.gtm-empty::before,.gtm-empty::after { content: ''; position: absolute; width: 110px; height: 174px; top: 8px; left: calc(50% - 100px); background: var(--table-back) center/cover; border-radius: 8px; transform: rotate(-12deg); box-shadow: var(--card-elevation); }
.gtm-empty::after { left: calc(50% - 8px); background-image: url('/assets/games/circle-back.svg'); transform: rotate(12deg); }
.gtm-cards { gap: 24px; padding: 10px 6px; }
.gtm-card { padding: 30px; border: 0; border-radius: 14px; min-height: 365px; box-shadow: var(--card-elevation); outline: 1px solid color-mix(in srgb,var(--table-accent) 30%,transparent); outline-offset: -10px; }
.gtm-card-story { background: #fcf1e4; }
.gtm-card-lens { background: #f0edf9; }
.gtm-card::after { display: none; }
.gtm-card-story .gtm-card-tag { color: #804021; }
.gtm-card-lens .gtm-card-tag { color: #514b7b; }
.gtm-card-tag { padding-bottom: 16px; border-bottom: 1px solid var(--line-strong); }
.gtm-card-text { font-size: clamp(26px,3vw,36px); line-height: 1.25; }
.gtm-card-text-lens { font-size: clamp(25px,2.7vw,32px); }
.gtm-card-redraw { min-height: 44px; color: var(--table-accent); }
.gtm-actions { justify-content: center; }
/* Circle: a lilac playing mat, a proper circular seat map, an engraved deck. */
.gcr-play { position: relative; }
.gcr-ringwrap { width: min(350px,76vw); margin: 32px auto 20px; }
.gcr-ring { border: 1px solid #9991b6; background: transparent; box-shadow: inset 0 0 0 20px var(--table-surface), inset 0 0 0 21px #b4accc; }
.gcr-chip-name { background: var(--paper); border: none; box-shadow: 0 4px 10px -5px rgb(42 34 51 / 30%); padding: 10px 16px; }
.gcr-chip-name.is-picked { background: var(--table-accent); box-shadow: 0 5px 14px -5px rgb(42 34 51 / 35%); }
.gcr-chip-name.is-reader { color: var(--table-accent); box-shadow: 0 0 0 2px var(--table-accent); }
.gcr-deck { min-height: 240px; max-width: 430px; }
.gcr-deck-card { border: 0; border-radius: 14px; }
.gcr-deck-card-1 { background: var(--table-accent) var(--table-back) center/240px 380px; box-shadow: var(--card-elevation); }
.gcr-deck-mark { display: none; }
.gcr-deck-hint { color: var(--paper); padding: 12px 20px; background: var(--table-accent); border-radius: 8px; font-family: var(--font-body); font-size: 14px; text-transform: none; letter-spacing: 0; }
.gcr-card { border: 0; background: var(--paper); padding: 36px; min-height: 265px; border-radius: 14px; box-shadow: var(--card-elevation); outline: 1px solid color-mix(in srgb,var(--cr-ink) 40%,transparent); outline-offset: -12px; }
.gcr-card-text { font-size: clamp(28px,3.3vw,38px); }
.gcr-card-eyebrow { color: var(--cr-ink); padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.gcr-depth { background: transparent; border-color: #aaa2c1; }
.gcr-depth[aria-pressed="true"] { background: var(--paper); border-color: var(--table-accent); }
.gcr-depth-num { color: var(--ink); }
.gcr-echo { border: 0; background: var(--paper); }
.gcr-timer { border: 0; border-radius: 12px; }
.gcr[data-mode="call"] .gcr-play :is(.gcr-controls,.gcr-bar,.gcr-depths .gcr-depthrow,.gcr-echo-hint,[data-cr-sharenote]) { opacity: 1; }
/* During a game, make room for the play surface without losing the title. */
.gdy:has(.gdy-board:not([hidden])) .gdy-head,
.gcr:has(.gcr-play:not([hidden])) .gcr-head { display: block; margin-bottom: 28px; }
.gdy:has(.gdy-board:not([hidden])) .gdy-head :is(.game-deck-art,.gdy-lede,.gdy-howto,.gdy-meta),
.gcr:has(.gcr-play:not([hidden])) .gcr-head :is(.game-deck-art,.gcr-lede,.gcr-howto,.gcr-meta) { display: none; }
.gdy:has(.gdy-board:not([hidden])) .gdy-title,
.gcr:has(.gcr-play:not([hidden])) .gcr-title { font-size: 42px; text-align: center; max-width: none; }
@media (min-width: 1000px) {
  .gtm-inner { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); column-gap: 40px; }
  .gtm-head,.gtm-decks,.gtm-table,.gtm-share,.gtm-solo,.gtm-closing,.gtm-inventory { grid-column: 1/-1; }
  .gtm-modes { grid-column: 1; }
  .gtm-setup { grid-column: 2; grid-row: 2; padding-top: 28px; border-top: 1px solid var(--line-strong); align-content: start; grid-template-columns: 1fr; gap: 18px; }
  .gtm-mode-row { grid-template-columns: 1fr; gap: 8px; }
  .gtm-mode { padding: 12px 16px; display: grid; grid-template-columns: 100px 1fr; gap: 3px 12px; }
  .gtm-mode-label { grid-row: span 2; align-self: center; }
  .gtm-mode-hint { grid-column: 2; }
  .gcr-play { display: grid; grid-template-columns: 1fr 1.25fr; column-gap: 40px; align-items: start; }
  .gcr-play > * { grid-column: 1/-1; }
  .gcr-ringwrap { grid-column: 1; grid-row: 3; width: 310px; }
  .gcr-play > .gcr-row-center { grid-column: 1; grid-row: 4; }
  .gcr-deckwrap { grid-column: 2; grid-row: 3 / span 2; align-self: center; min-width: 0; }
  .gcr-deck { min-height: 300px; }
}
@media (max-width: 700px) {
  :is(.gdy,.gtm,.gcr) { padding: 96px 18px 48px; }
  :is(.gdy-head,.gtm-head,.gcr-head) { grid-template-columns: 1fr; gap: 8px; margin-bottom: 24px; }
  :is(.gdy-title,.gtm-title,.gcr-title) { font-size: 52px; }
  .game-deck-art { height: 260px; width: 100%; margin: 10px auto 0; }
  .game-art-card { width: 135px; height: 213px; top: 18px; left: calc(50% - 67px); }
  .game-art-back { transform: translate(-70px,12px) rotate(-20deg); }
  .game-art-middle { transform: translate(70px,12px) rotate(20deg); }
  .game-art-front { padding: 18px 15px; }
  .game-art-name { font-size: 23px; }
  .game-art-symbol { width: 52px; height: 72px; }
  .game-art-labels { font-size: 8px; }
  .game-art-orbit { width: 215px; height: 215px; }
  :is(.gdy-modes,.gtm-mode-row,.gcr-modes) { grid-template-columns: 1fr; gap: 10px; }
  :is(.gdy-mode,.gtm-mode,.gcr-mode) { padding: 16px; }
  .gdy-btn-big { width: 100%; }
  :is(.gdy-board,.gtm-table,.gcr-play) { padding: 22px 16px; border-radius: 16px; }
  .gdy-track { gap: 6px; }
  .gdy-level { padding: 8px 5px; flex-direction: column; text-align: center; gap: 5px; }
  .gdy-level-name { font-size: 17px; }
  .gdy-level-state { font-size: 8px; letter-spacing: 0; }
  .gdy-card-face { padding: 26px; min-height: 340px; }
  .gdy-face-head { gap: 10px; }
  .gdy-face-count { font-size: 9px; }
  .gtm-shelf-row { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 14px; }
  .gtm-spine { padding: 20px 16px; min-height: 255px; }
  .gtm-spine-title { font-size: 24px; }
  .gtm-spine-name { letter-spacing: .04em; }
  .gtm-setup { grid-template-columns: 1fr; }
  .gtm-cards { grid-template-columns: 1fr; gap: 20px; padding: 0; }
  .gtm-card { min-height: 310px; padding: 28px; }
  .gcr-card { padding: 28px; }
  .gcr-ringwrap { width: min(280px,70vw); }
  .gcr-chip-name { max-width: 90px; font-size: 11px; padding: 8px 10px; }
  .gcr[data-mode="call"] .gcr-card { padding: 28px; }
  .gcr[data-mode="call"] .gcr-card-text { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  :is(.gdy,.gtm,.gcr) *, :is(.gdy,.gtm,.gcr) *::before, :is(.gdy,.gtm,.gcr) *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
/* Compact level rail and readable secondary printing on the card stock. */
.gdy-face-count,.gdy-face-count-label,.gdy-face-level,.gtm-card-deck { color: var(--ink-soft); }
.gdy-level.is-locked { opacity: 1; }
.gdy-level.is-locked .gdy-level-ring { opacity: .65; }
.gtm-pill.is-active { background: var(--table-accent); border-color: var(--table-accent); }
.gtm-setup { border-radius: 0; }
.gtm-reminder { border-left: 0; }
@media (max-width: 700px) {
  .gdy-track { flex-wrap: nowrap; }
  .gdy-level { flex: 1 1 0; min-width: 0; }
  .gdy-face-level { font-size: 10px; letter-spacing: .08em; }
}

/* First-play teaching: numbered actions, named colors, and replayable rules. */
.game-guide { margin: 0 0 36px; grid-column: 1 / -1; }
.game-guide h2 { font-size: clamp(28px,3vw,38px); margin-bottom: 10px; }
.game-guide-lead { font-size: 15px; color: var(--ink-soft); max-width: 760px; margin-bottom: 22px; }
.game-guide-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; list-style: none; padding: 0; margin: 0 0 22px; }
.game-guide-steps li { position: relative; display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; align-content: start; }
.game-guide-number { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--table-accent); color: white; font: 500 13px/1 var(--font-body); }
.game-guide-icon { grid-column: 2; width: 64px; height: 48px; color: var(--table-accent); margin-bottom: 12px; }
.game-guide-steps li > div { grid-column: 2; }
.game-guide-role { display: block; color: var(--table-accent); font-size: 12px; font-weight: 500; margin-bottom: 8px; }
.game-guide h3 { font-size: 25px; font-weight: 400; margin-bottom: 8px; }
.game-guide-steps p { font-size: 14px; line-height: 1.6; color: var(--ink-soft); margin: 0; }
.game-guide-more { border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.game-guide summary { padding: 14px 4px; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--table-accent); }
.game-guide summary:focus-visible { outline: 3px solid var(--table-accent); outline-offset: 3px; }
.game-guide-rules { list-style: none; padding: 8px 0 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; }
.game-guide-rules strong { font-size: 14px; }
.game-guide-rules p { color: var(--ink-soft); font-size: 14px; line-height: 1.6; margin: 4px 0 16px; }
.game-guide-example { padding: 20px 24px; background: var(--table-tint); margin-bottom: 20px; border-radius: 8px; }
.game-guide-example strong { font-size: 13px; color: var(--table-accent); }
.game-guide-example p { font: 400 24px/1.4 var(--font-display); margin: 8px 0 0; max-width: 760px; }
.game-guide--compact { margin-bottom: 20px; }
.game-guide-replay { border-bottom: 1px solid color-mix(in srgb,var(--table-accent) 25%,transparent); }
.game-guide-replay summary { padding-top: 0; }
.game-guide-content { background: var(--paper); border-radius: 12px; padding: 24px; margin-bottom: 20px; }
.game-guide--compact .game-guide-role { margin: 5px 0; }
.game-guide--compact .game-guide-steps { gap: 18px; }
.game-guide--compact .game-guide-steps li > div { grid-row: 1; }
.game-guide--compact .game-guide-steps strong { font-size: 15px; }
.game-guide-solo { display: none; padding: 18px 20px; border-radius: 8px; background: var(--table-tint); color: var(--table-accent); font-size: 15px; }
.gdy[data-mode="solo"] .game-guide-solo,.gtm.is-solo .game-guide-solo { display: block; }
.gdy[data-mode="solo"] .game-guide-duo,.gtm.is-solo .game-guide-duo { display: none; }
.gtm .game-guide:not(.game-guide--compact) li[data-step="1"] .game-guide-role { display: inline-block; background: #f9e2c8; color: #804021; padding: 5px 8px; border-radius: 4px; }
.gtm .game-guide:not(.game-guide--compact) li[data-step="2"] .game-guide-role { display: inline-block; background: #e6dff4; color: #514b7b; padding: 5px 8px; border-radius: 4px; }
.game-card-instruction { font: 500 13px/1.5 var(--font-body); color: var(--table-accent); margin: 0 0 8px; }
.game-card-instruction--solo { display: none; }
.gtm.is-solo .game-card-instruction--solo { display: block; }
.gtm.is-solo .game-card-instruction--duo { display: none; }
.game-next { padding: 16px 18px; background: var(--paper); border-radius: 10px; font-size: 14px; line-height: 1.6; color: var(--table-accent); margin: 0 auto 22px; max-width: 560px; }
.game-next strong { display: block; margin-bottom: 4px; }
.gcr-depth-heading { font: 500 15px/1.5 var(--font-body); margin-bottom: 6px; }
.gcr-depth-note { font-size: 13px; color: var(--ink-soft); margin-bottom: 14px; }
.gdy:has(.gdy-board:not([hidden])) .gdy-inner > .game-guide,
.gcr:has(.gcr-play:not([hidden])) .gcr-inner > .game-guide { display: none; }
@media (min-width: 1000px) {
  .gtm-inner > .game-guide { grid-row: 2; }
  .gtm-modes,.gtm-setup { grid-row: 3; }
  .gcr-play > .game-guide { grid-row: 1; }
  .gcr-play > .gcr-bar { grid-row: 2; }
  .gcr-play > .gcr-depths { grid-row: 3; }
  .gcr-ringwrap { grid-row: 4; }
  .gcr-play > .gcr-row-center { grid-row: 5; }
  .gcr-deckwrap { grid-row: 4 / span 2; }
}
@media (max-width: 700px) {
  .game-guide-steps { grid-template-columns: 1fr; gap: 20px; }
  .game-guide-steps li { grid-template-columns: 28px 42px 1fr; gap: 10px; }
  .game-guide-icon { width: 42px; height: 34px; }
  .game-guide-steps li > div { grid-column: 3; }
  .game-guide-role { margin-bottom: 5px; }
  .game-guide h3 { font-size: 23px; }
  .game-guide-rules { grid-template-columns: 1fr; gap: 0; }
  .game-guide-content { padding: 18px; }
  .game-guide--compact .game-guide-steps li { grid-template-columns: 28px 1fr; }
  .game-guide--compact .game-guide-steps li > div { grid-column: 2; }
}

/* Phone play: generous touch targets, readable fields, and cards that fit. */
:is(.gdy,.gtm,.gcr) :is(button,summary,input,textarea,[role="button"]) {
  min-height: 44px;
  min-width: 44px;
  touch-action: manipulation;
}
:is(.gdy,.gtm,.gcr) :is(input,textarea) { font-size: 16px; }
:is(.gdy,.gtm,.gcr) :is(button,input,textarea) { max-width: 100%; }
:is(.gdy,.gtm,.gcr) :is(button,summary) { scroll-margin-block: 100px 24px; }
:is(.gdy-stack,.gtm-cards,.gtm-closing,.gcr-card,.gcr-ringwrap) { scroll-margin-top: 100px; }
.gcr-namechip { max-width: 100%; }
.gcr-namechip > span { min-width: 0; overflow-wrap: anywhere; }
.gcr-namechip-x { flex-shrink: 0; }
.gcr-nameinput { min-width: 0; }
.gtm-shelf-body { overflow-wrap: anywhere; }
@media (max-width: 700px) {
  :is(.gdy,.gtm,.gcr) {
    padding-left: max(18px,env(safe-area-inset-left));
    padding-right: max(18px,env(safe-area-inset-right));
    padding-bottom: max(48px,env(safe-area-inset-bottom));
  }
  :is(.gdy-card-face,.gtm-card,.gcr-card) { min-width: 0; overflow-wrap: anywhere; }
  .gdy-face-head { flex-wrap: wrap; }
  .gcr-ringwrap { width: min(280px,calc(100% - 56px)); }
  .gcr-ringcore-reader { overflow-wrap: anywhere; letter-spacing: .04em; }
  .gtm-share-input { width: 100%; }
  .game-guide-replay summary { padding-top: 10px; }
}
@media (max-width: 360px) {
  .game-art-back { transform: translate(-54px,12px) rotate(-16deg); }
  .game-art-middle { transform: translate(54px,12px) rotate(16deg); }
  :is(.gdy-title,.gtm-title,.gcr-title) { font-size: 44px; }
  :is(.gdy-card-face,.gtm-card,.gcr-card),.gcr[data-mode="call"] .gcr-card { padding: 24px 20px; }
  .gtm-spine { padding: 20px 12px; }
}
/* The full-size fan needs more room than a split tablet header provides. */
@media (min-width: 701px) and (max-width: 999px) {
  :is(.gdy-head,.gtm-head,.gcr-head) { grid-template-columns: 1fr; gap: 8px; }
  .game-deck-art { max-width: 460px; width: 100%; margin-inline: auto; }
}
