/* Ten Days, the exchange game (game.html). The game sits on the brand blue; the cards are white tickets
   with real cut-out notches, so their colours are fixed and look the same in light and dark mode. */
.gm-stage { background: var(--blue); color: #fff; padding: 96px 0 64px; min-height: 100vh; min-height: 100svh;
  background-image: radial-gradient(rgba(255,255,255,0.13) 1.5px, transparent 1.6px); background-size: 22px 22px; }
.gm-wrap { max-width: 600px; margin: 0 auto; padding-inline: 16px; }
.gm-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.gm-top .eyebrow { color: var(--green); order: 2; }
.gm-top .gm-all:hover { color: #fff; }
.gm-top h1 { font-size: clamp(2rem, 7vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.gm-top .hl { color: var(--green); }
.gm { scroll-margin-top: 84px; }

/* Route: ten stops with the bird on today */
.gm-hud { margin-bottom: 18px; }
.gm-route { position: relative; padding: 18px 6px 0; }
.gm-route ol { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; position: relative; }
.gm-route ol::before { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; border-top: 2px dashed rgba(255,255,255,0.45); }
.gm-route li { position: relative; width: 14px; height: 14px; border-radius: 50%; background: var(--blue); box-shadow: inset 0 0 0 2px rgba(255,255,255,0.6); }
.gm-route li span { position: absolute; top: 18px; left: 50%; translate: -50% 0; font-size: 0.68rem; font-weight: 700; color: rgba(255,255,255,0.6); }
.gm-route li.past { background: var(--green); box-shadow: none; }
.gm-route li.now { background: #fff; box-shadow: 0 0 0 4px rgba(42,236,113,0.5); }
.gm-route li.now span { color: #fff; }
.gm-bird { position: absolute; top: -4px; width: 34px; margin-left: -11px; color: #fff; transition: left .6s cubic-bezier(.4,1.4,.5,1); }
.gm-bird svg { display: block; width: 100%; height: auto; }
.gm-meters { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 10px 14px; margin-top: 30px; align-items: end; }
.gm-ml { display: flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #dfe5ff; margin-bottom: 5px; white-space: nowrap; }
.gm-pips { display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px; }
.gm-pips i { height: 10px; border-radius: 2px; background: rgba(255,255,255,0.18); transition: background .3s; }
.gm-pips i.on { background: var(--green); }
.m-group .gm-pips i.on { background: #fff; }
.m-nerve .gm-pips i.on { background: #ffd23f; }
.gm-meter.low .gm-pips i.on { background: #ff6b5e; }
.gm-meter.low .gm-ml { color: #ffb3ab; }
.gm-d { font-size: 0.72rem; padding: 0 5px; border-radius: 99px; letter-spacing: 0; animation: gm-pop .5s cubic-bezier(.3,1.8,.5,1); }
.gm-d.up { background: var(--green); color: var(--navy); }
.gm-d.down { background: #ff6b5e; color: var(--navy); }
.gm-skillcount { text-align: center; }
.gm-skillcount b { display: grid; place-items: center; width: 34px; height: 34px; margin: 0 auto; border-radius: 50%; background: var(--green); color: var(--navy); font-size: 1.05rem; }
@keyframes gm-pop { from { transform: scale(.4); opacity: 0; } }

/* The ticket card */
.gm-cardwrap { position: relative; filter: drop-shadow(0 18px 30px rgba(10,15,46,0.35)); animation: gm-in .45s cubic-bezier(.2,1.2,.4,1); }
@keyframes gm-in { from { opacity: 0; transform: translateY(18px) rotate(-1.2deg); } }
.gm-hud + .gm-cardwrap { margin-top: 28px; }
.gm-tape { position: absolute; z-index: 2; top: -13px; left: 50%; width: 110px; height: 28px; margin-left: -55px; background: rgba(42,236,113,0.75); transform: rotate(-3deg); }
.gm-card { --cut: 58px; background: #fff; color: #0a0f2e; border-radius: 16px; overflow: hidden;
  -webkit-mask: radial-gradient(circle 11px at 0 var(--cut), #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% var(--cut), #0000 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 11px at 0 var(--cut), #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% var(--cut), #0000 98%, #000) right / 51% 100% no-repeat; }
.gm-card-head { height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 24px; background: #f4f6fe; border-bottom: 2px dashed #c9d0f2; }
.gm-day { font-size: 1.7rem; color: #1a3eec; line-height: 1; }
.gm-where { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #4a5170; text-align: right; }
.gm-card-body { padding: 24px 24px 26px; }
.gm-card h2 { font-size: clamp(1.5rem, 5vw, 1.9rem); color: #0a0f2e; }
.gm-card p { color: #2c3354; }
.gm-card-body > * + * { margin-top: 16px; }
.gm-q { font-size: 1.15rem; font-weight: 600; line-height: 1.5; color: #0a0f2e !important; }
.gm-how { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; font-size: 0.95rem; color: #2c3354; }
.gm-how li { padding-left: 22px; position: relative; }
.gm-how li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 12px; height: 8px; border-radius: 2px; background: #2aec71; }
.gm-how li:nth-child(2)::before { background: #1a3eec; }
.gm-how li:nth-child(3)::before { background: #ffd23f; }
.gm-best { font-size: 0.85rem; color: #4a5170 !important; }
.gm-best.new { color: #0b6b33 !important; font-weight: 800; }

/* Choices */
.gm-choices { display: grid; gap: 10px; margin-top: 22px !important; }
.gm-choice { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.35; color: #0a0f2e; background: #fff; border: 2px solid #d5dbf5; border-radius: 14px; padding: 14px 16px; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.gm-choice:hover { border-color: #1a3eec; background: #f4f6fe; transform: translateX(3px); }
.gm-choice:active { transform: scale(.98); }
.gm-key { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #1a3eec; color: #fff; font-size: 0.85rem; font-weight: 800; }
.gm-choice + .gm-choice .gm-key { background: #0a0f2e; }

/* Result */
.gm-picked { font-size: 0.82rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #1a3eec !important; }
.gm-picked::before { content: "You chose: "; color: #4a5170; }
.gm-r { font-size: 1.08rem; line-height: 1.5; }
.gm-skill { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: #d9fbe6; color: #0a0f2e !important; font-size: 0.95rem; animation: gm-pop .5s cubic-bezier(.3,1.8,.5,1); }
.gm-skill span { padding: 2px 10px; border-radius: 99px; background: #0a0f2e; color: #2aec71; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.gm-skill.again { background: #f4f6fe; padding: 6px 14px; }
.gm-fact { position: relative; padding: 16px 18px 16px; border-radius: 12px; background: #fff8d6; border: 1px solid #f1e3a0; transform: rotate(-0.6deg); }
.gm-fact .hand { display: block; font-size: 1.35rem; line-height: 1; color: #1a3eec; margin-bottom: 4px; }
.gm-fact p { font-size: 0.95rem; color: #3a3420 !important; }
.gm-crash { display: inline-block; padding: 4px 12px; border-radius: 6px; background: #ff6b5e; color: #0a0f2e !important; font-weight: 800; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; transform: rotate(-2deg); }

/* Buttons */
.gm-btn { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px !important; padding: 14px 24px; border: 0; border-radius: 999px; background: #1a3eec; color: #fff; font: inherit; font-weight: 800; font-size: 1rem; cursor: pointer; text-decoration: none; transition: transform .2s cubic-bezier(.3,1.6,.5,1), background .2s; }
.gm-btn:hover { color: #fff; background: #0a0f2e; transform: translateY(-2px); }
.gm-btn.gm-go { background: #2aec71; color: #0a0f2e; box-shadow: 0 10px 22px rgba(10,15,46,0.18); }
.gm-btn.gm-go:hover { background: #0a0f2e; color: #fff; }
.gm-ghost { font: inherit; font-weight: 700; font-size: 0.95rem; padding: 10px 18px; border-radius: 999px; border: 2px solid #d5dbf5; background: #fff; color: #0a0f2e; cursor: pointer; }
.gm-ghost:hover { border-color: #1a3eec; }

/* Ending */
.gm-end .gm-card-body { position: relative; }
.gm-stamp { position: absolute; top: 18px; right: 18px; margin: 0 !important; padding: 8px 10px; border: 3px solid #1a3eec; border-radius: 8px; color: #1a3eec !important; font-weight: 800; font-size: 0.7rem; line-height: 1.15; letter-spacing: 0.1em; text-transform: uppercase; text-align: center; transform: rotate(9deg); opacity: 0.85; animation: gm-stamp .5s .2s both cubic-bezier(.3,1.8,.5,1); }
@keyframes gm-stamp { from { transform: rotate(9deg) scale(2.2); opacity: 0; } }
.gm-eyebrow { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #1a3eec !important; }
.gm-title { margin-top: 4px !important; font-size: clamp(2rem, 8vw, 2.8rem) !important; letter-spacing: -0.03em; padding-right: 90px; }
.gm-final { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gm-final div { padding: 10px 6px; border-radius: 12px; background: #f4f6fe; text-align: center; }
.gm-final small { display: block; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #4a5170; }
.gm-final b { font-size: 1.4rem; color: #0a0f2e; }
.gm-final b i { font-style: normal; font-size: 0.8rem; color: #4a5170; }
.gm-final div:last-child { background: #0a0f2e; }
.gm-final div:last-child small { color: #a9b1d6; } .gm-final div:last-child b { color: #2aec71; }
.gm-end h3 { color: #0a0f2e; margin-top: 26px !important; font-size: 1.1rem; }
.gm-skills { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-top: 10px !important; }
.gm-sg { padding: 10px 14px; border-radius: 12px; border: 1px solid #e1e5f6; }
.gm-sg small { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #1a3eec; }
.gm-sg ul { margin: 4px 0 0; padding-left: 18px; font-size: 0.93rem; color: #2c3354; }
.gm-refund { padding: 14px 16px; border-radius: 12px; }
.gm-refund b { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.gm-refund p { font-size: 0.95rem; margin-top: 2px; }
.gm-refund.ok { background: #d9fbe6; } .gm-refund.ok b { color: #0b6b33; }
.gm-refund.no { background: #ffe6e3; } .gm-refund.no b { color: #b3261e; }
.gm-real { margin-top: 24px !important; padding: 20px; border-radius: 14px; background: #1a3eec; }
.gm-real p { color: #dfe5ff !important; }
.gm-real b { color: #fff; }
.gm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.gm-actions .gm-btn { margin-top: 14px !important; }
.gm-actions .gm-btn.gm-go:hover { background: #fff; color: #0a0f2e; }
.gm-link { margin-top: 14px; color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.gm-link:hover { color: #2aec71; }
.gm-again { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 520px) {
  .gm-stage { padding-top: 84px; }
  .gm-card { --cut: 52px; }
  .gm-card-head { height: 52px; padding: 0 18px; }
  .gm-card-body { padding: 20px 18px 22px; }
  .gm-day { font-size: 1.5rem; }
  .gm-where { font-size: 0.7rem; }
  .gm-meters { gap: 8px 10px; }
  .gm-ml { font-size: 0.64rem; letter-spacing: 0.04em; }
  .gm-route li span { font-size: 0.62rem; }
  .gm-final { grid-template-columns: repeat(2, 1fr); }
  .gm-title { padding-right: 70px; }
  .gm-stamp { font-size: 0.6rem; top: 14px; right: 12px; }
}
@media (prefers-reduced-motion: reduce) { .gm-cardwrap, .gm-d, .gm-skill, .gm-stamp { animation: none; } .gm-bird { transition: none; } }
