/* ArkVerge Playground: the games page and Bring Spark Home. Palette C, one curve. */

/* ---------- the Playground page ---------- */
.pg-head .display { max-width: 9em; }
.pg-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); row-gap: 72px; padding-bottom: clamp(96px, 10vw, 160px); }
.pg-card { grid-column: span 6; display: block; }
.pg-card:nth-child(2) { margin-top: clamp(0px, 9vw, 160px); }
.pg-card:only-child { grid-column: span 8; }
.pg-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: color-mix(in srgb, var(--mist) 20%, var(--paper)); }
.pg-media svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pg-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--hero) var(--ease); }
.pg-card:hover .pg-media img { transform: scale(1.03); }
.pg-spark { transform-box: fill-box; transform-origin: 50% 50%; animation: pg-float 3.2s var(--ease) infinite alternate; }
.pg-ark { transform-box: fill-box; transform-origin: 50% 100%; animation: pg-tip 3.2s var(--ease) infinite alternate; }
@keyframes pg-float { to { transform: translate(-14px, -12px); } }
@keyframes pg-tip { from { transform: rotate(-2deg); } to { transform: rotate(-11deg); } }
.pg-card.soon .pg-media { background: var(--dreef); }
.pg-crew { position: absolute; left: 6%; right: 6%; bottom: 0; display: flex; justify-content: space-between; align-items: flex-end; }
.pg-crew img { width: 23%; height: auto; }
.pg-pill { position: absolute; left: 24px; top: 24px; background: var(--paper); color: var(--carbon); padding: 6px 12px; }
.pg-meta { margin-top: 24px; }
.pg-meta p.label { color: var(--ash); }
.pg-meta .h1 { margin-top: 10px; }
.pg-meta p:not(.label) { margin-top: 14px; max-width: 30em; }
.pg-meta .btn { margin-top: 28px; }
.pg-card:hover .pg-spark { animation-duration: 1.4s; }
@media (prefers-reduced-motion: reduce) { .pg-spark, .pg-ark { animation: none; } }
@media (max-width: 900px) { .pg-card { grid-column: 1 / -1; } .pg-card:nth-child(2) { margin-top: 0; } }

/* ---------- Bring Spark Home ---------- */
.sh-page main { padding-top: var(--head); }
.sh-stage { position: relative; height: calc(100svh - var(--head)); min-height: 440px; overflow: hidden; background: var(--paper);
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; overscroll-behavior: contain; }
body.has-tabbar .sh-stage { height: calc(100svh - var(--head) - 66px - env(safe-area-inset-bottom)); min-height: 400px; }
.sh-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: none; }
.sh-hud { position: absolute; z-index: 2; top: 14px; left: var(--m); right: var(--m); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  pointer-events: none; opacity: 0; transition: opacity var(--ui) var(--ease); }
.sh-stage.live .sh-hud { opacity: 1; }
.sh-hud .sh-round { color: var(--ash); }
.sh-clock { grid-column: 2; }
.sh-hud .r { grid-column: 3; justify-self: end; display: flex; gap: 20px; align-items: center; }
.sh-clock { font: 400 clamp(28px, 3vw, 40px)/1 "Clash Grotesk", sans-serif; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; transition: color var(--ui) var(--ease); }
.sh-clock.hot { color: var(--coral); }
.sh-score { font: 400 22px/1 "Clash Grotesk", sans-serif; font-variant-numeric: tabular-nums; }
.sh-pause { pointer-events: auto; border-bottom: 1px solid currentColor; padding: 8px 0 2px; }
.sh-screen { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; padding: 72px var(--m) 32px; overflow-y: auto;
  background: color-mix(in srgb, var(--paper) 78%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity var(--move) var(--ease), visibility 0s linear var(--move); }
.sh-screen.on { opacity: 1; visibility: visible; transition: opacity var(--move) var(--ease); }
.sh-screen[data-s=card] { background: color-mix(in srgb, var(--paper) 55%, transparent); -webkit-backdrop-filter: none; backdrop-filter: none; cursor: pointer; }
.sh-card { max-width: 640px; text-align: center; display: flex; flex-direction: column; align-items: center; margin: auto; }
.sh-card > .label { color: var(--ash); }
.sh-title { font: 300 clamp(48px, 6.2vw, 92px)/0.96 "Clash Grotesk", sans-serif; letter-spacing: -0.02em; margin: 14px 0 0; }
.sh-lede { margin-top: 20px; font-size: 20px; line-height: 30px; max-width: 30em; }
.sh-how { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 8px; color: var(--ash); }
.sh-row { display: flex; gap: 16px 28px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.sh-row > span.label { color: var(--ash); }
.sh-stats { display: grid; grid-template-columns: auto auto; gap: 10px 48px; margin: 28px 0 0; text-align: left; align-items: baseline; }
.sh-stats dt { color: var(--ash); }
.sh-stats dd { margin: 0; text-align: right; font: 400 24px/1.2 "Clash Grotesk", sans-serif; font-variant-numeric: tabular-nums; }
.sh-stats dd { text-transform: none; letter-spacing: -0.005em; }
.sh-stats .tot dt, .sh-stats .tot dd { padding-top: 12px; }
.sh-stats .tot dd { font-size: 34px; }
.sh-stats div { display: contents; }
.sh-tap { margin-top: 26px; color: var(--ash); }
.sh-screen [hidden] { display: none !important; }
.sh-stage.dark .sh-hud { color: var(--paper); } .sh-stage.dark .sh-hud .sh-round { color: var(--mist); }
.sh-ph { display: none; }
@media (hover: none) { .sh-dk { display: none; } .sh-ph { display: list-item; } span.sh-ph { display: inline; } }
html.cur-off .cur { opacity: 0; }
.sh-about { padding-block: clamp(80px, 9vw, 144px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); row-gap: 48px; }
.sh-about > h2 { grid-column: 1 / span 4; }
.sh-about .cols { grid-column: 5 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 48px var(--g); }
.sh-about h3 { font: 400 var(--t-h4, 24px)/1.2 "Clash Grotesk", sans-serif; margin: 0 0 12px; }
.sh-about p, .sh-about li { font-size: 18px; line-height: 28px; }
.sh-about ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sh-about li strong { font-weight: 500; }
.sh-about .back { grid-column: 5 / -1; }
@media (max-width: 900px) { .sh-about > h2, .sh-about .cols, .sh-about .back { grid-column: 1 / -1; } .sh-about .cols { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  .sh-hud { top: 10px; } .sh-score { font-size: 18px; } .sh-hud .sh-round { display: none; }
  .sh-title { font-size: 46px; } .sh-lede { font-size: 17px; line-height: 26px; margin-top: 14px; } .sh-how { margin-top: 20px; } .sh-row { margin-top: 26px; }
  .sh-screen { padding-top: 56px; }
}

/* ---------- Join the Crew: the character creator ---------- */
.jc { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; padding-top: calc(var(--head) + 24px); padding-bottom: 112px; align-items: start; }
.jc [hidden] { display: none !important; }
.jc-stage { position: sticky; top: calc(var(--head) + 16px); height: calc(100svh - var(--head) - 48px); min-height: 460px; overflow: hidden; background: color-mix(in srgb, var(--mist) 18%, var(--paper)); }
.jc-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.jc-name { position: absolute; left: 24px; top: 22px; color: var(--ash); }
.jc-done { position: absolute; left: 0; right: 0; top: 0; padding: 28px; background: linear-gradient(var(--paper) 62%, transparent); }
.jc-done p { margin-top: 10px; }
.jc.flash .jc-stage::after { content: ""; position: absolute; inset: 0; background: var(--paper); animation: jc-flash 650ms var(--ease) forwards; pointer-events: none; }
@keyframes jc-flash { from { opacity: 0.92; } to { opacity: 0; } }
.jc-title { font: 300 clamp(40px, 4.4vw, 64px)/1 "Clash Grotesk", sans-serif; letter-spacing: -0.02em; margin: 12px 0 36px; }
.jc fieldset { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
.jc legend { padding: 0; color: var(--ash); }
.jc-opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.jc-opt { height: 44px; padding: 0 16px; border: 1px solid var(--mist); border-radius: 22px; display: inline-flex; align-items: center; gap: 8px; font: 400 16px/1 "Satoshi", sans-serif;
  transition: background var(--ui) var(--ease), border-color var(--ui) var(--ease), color var(--ui) var(--ease); }
.jc-opt:hover { border-color: var(--carbon); }
.jc-opt[aria-pressed=true] { background: var(--carbon); color: var(--paper); border-color: var(--carbon); }
.jc-opt svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.jc-opt.colour { width: 44px; padding: 0; justify-content: center; }
.jc-opt.colour .sw { width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 2px #0B2A2C; }
.jc-opt.colour[aria-pressed=true] { background: transparent; border: 2px solid var(--carbon); }
.jc-note { margin-top: 10px; color: var(--ash); font-size: 16px; line-height: 24px; }
.jc-namef { display: block; margin-top: 4px; }
.jc-namef .label { color: var(--ash); }
.jc-input { display: block; width: 100%; max-width: 360px; height: 52px; border: 0; border-bottom: 1px solid var(--carbon); background: transparent; font: 400 24px "Clash Grotesk", sans-serif; color: var(--carbon); margin-top: 6px; border-radius: 0; }
.jc-input:focus { outline: none; border-bottom-width: 2px; }
.jc-row { display: flex; gap: 18px 28px; align-items: center; flex-wrap: wrap; margin-top: 30px; }
.jc-panel { transition: opacity var(--move) var(--ease); }
.jc.joined .jc-panel { opacity: 0.35; pointer-events: none; }
@media (max-width: 900px) { .jc { grid-template-columns: 1fr; gap: 28px; } .jc-stage { position: sticky; top: 8px; z-index: 5; height: 40svh; min-height: 260px; box-shadow: 0 10px 24px -18px rgba(20,19,18,0.5); } }   /* phones: your character stays in view while you choose */

/* ---------- Expeditions: the Lost Temple ---------- */
.ex-stage { background: var(--dreef); color: var(--paper); }
.ex-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ex-hud { position: absolute; z-index: 2; top: 14px; left: var(--m); right: var(--m); display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; opacity: 0; pointer-events: none; transition: opacity var(--ui) var(--ease); }
.ex-stage.live .ex-hud { opacity: 1; pointer-events: auto; }
.ex-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.ex-chip { background: rgba(11,42,44,0.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); position: relative; overflow: hidden; display: grid; grid-template-columns: auto auto; column-gap: 8px; align-items: baseline; padding: 8px 14px 10px; border: 1px solid rgba(250,248,243,0.35); border-radius: 12px; color: var(--paper); text-align: left; }
.ex-chip .n { grid-row: span 2; color: var(--mist); }
.ex-chip .nm { font: 400 18px/1.1 "Clash Grotesk", sans-serif; }
.ex-chip .sk { color: var(--mist); }
.ex-chip.on { background: var(--paper); color: var(--carbon); border-color: var(--paper); }
.ex-chip.on .sk, .ex-chip.on .n { color: var(--ash); }
.ex-chip .cd { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--coral); transform-origin: left; transform: scaleX(0); }
.ex-right { display: flex; gap: 18px; align-items: center; color: var(--mist); background: rgba(11,42,44,0.55); padding: 8px 14px; border-radius: 12px; }
.ex-right .link { color: var(--paper); }
.ex-toast { position: absolute; z-index: 2; left: 50%; top: 84px; transform: translate(-50%, -8px); width: min(560px, calc(100% - 2 * var(--m))); text-align: center; opacity: 0; transition: opacity var(--move) var(--ease), transform var(--move) var(--ease); pointer-events: none; }
.ex-toast.on { opacity: 1; transform: translate(-50%, 0); }
.ex-toast strong { display: block; font: 400 clamp(24px, 2.6vw, 34px)/1.15 "Clash Grotesk", sans-serif; }
.ex-toast span { display: block; margin-top: 6px; font-size: 16px; line-height: 24px; color: var(--mist); }
.ex-pad { display: none; }
@media (hover: none) {
  .ex-stage.live .ex-pad { position: absolute; z-index: 2; left: 12px; right: 12px; bottom: 12px; display: grid; grid-template-columns: 64px 64px 1fr 84px 84px; gap: 10px; }
  .ex-pad button { height: 64px; border-radius: 32px; background: rgba(250,248,243,0.14); color: var(--paper); font: 400 15px/1 "JetBrains Mono", monospace; letter-spacing: 0.08em; text-transform: uppercase; touch-action: none; -webkit-user-select: none; user-select: none; }
  .ex-pad button:active { background: rgba(250,248,243,0.3); }
}
.ex-stage .sh-screen { background: color-mix(in srgb, var(--dreef) 82%, transparent); color: var(--paper); }
.ex-stage .sh-card > .label, .ex-stage .sh-lede span, .ex-stage .sh-stats dt { color: var(--mist); }
.ex-stage .btn { background: var(--paper); color: var(--carbon); }
.ex-stage .btn::before { background: var(--mist); }
.ex-pick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 28px; width: min(640px, 100%); }
.ex-pc { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px 12px; border: 1px solid rgba(250,248,243,0.3); border-radius: 16px; color: var(--paper); }
.ex-pc img { width: 72%; height: auto; }
.ex-pc .nm { font: 400 20px/1 "Clash Grotesk", sans-serif; }
.ex-pc .label { color: var(--mist); font-size: 10px; letter-spacing: 0.1em; }
.ex-pc.on { background: var(--paper); color: var(--carbon); border-color: var(--paper); }
.ex-pc.on .label { color: var(--ash); }
.ex-stage .sh-go:disabled { opacity: 0.4; }
@media (max-width: 700px) { .ex-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ex-chip .sk { display: none; } .ex-toast { top: 70px; } }

/* ---------- full screen on phones: the game takes over once you press Play ---------- */
html.play-full, html.play-full body { overflow: hidden !important; overscroll-behavior: none; }
html.play-full .site-head, html.play-full .tabbar, html.play-full .ark-dock, html.play-full .cur { display: none !important; }
.sh-stage.full { position: fixed !important; inset: 0; z-index: 500; width: 100vw; height: 100dvh !important; min-height: 0 !important; margin: 0; }
.sh-exit { display: none; position: absolute; z-index: 6; top: calc(8px + env(safe-area-inset-top)); right: calc(8px + env(safe-area-inset-right)); width: 40px; height: 40px; border-radius: 20px;
  align-items: center; justify-content: center; background: rgba(20,19,18,0.08); color: inherit; font: 400 20px/1 "Satoshi", sans-serif; }
.sh-stage.full .sh-exit { display: flex; }
.sh-stage.dark .sh-exit, .ex-stage .sh-exit { background: rgba(250,248,243,0.14); color: var(--paper); }
.sh-stage.full .sh-hud { top: calc(10px + env(safe-area-inset-top)); left: calc(14px + env(safe-area-inset-left)); right: calc(56px + env(safe-area-inset-right)); }
.sh-stage.full .ex-hud { top: calc(10px + env(safe-area-inset-top)); left: calc(12px + env(safe-area-inset-left)); right: calc(56px + env(safe-area-inset-right)); }
.sh-stage.full .ex-pad { bottom: calc(12px + env(safe-area-inset-bottom)) !important; }
.sh-stage.full .sh-screen { padding-top: calc(56px + env(safe-area-inset-top)); padding-bottom: calc(24px + env(safe-area-inset-bottom)); }

/* you lead as the scout: your chip names the role and isn't a skill to pick */
.ex-chip.scout { cursor: default; opacity: 0.85; }
.ex-chip.scout .sk { color: var(--reef); }

/* ================= the Playground hub: an expedition map ================= */
.pg-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px 56px; flex-wrap: wrap; }
.pg-intro .lede { margin-top: 20px; max-width: 34em; }
.pg-me { display: grid; gap: 6px; padding: 16px 22px; border: 1px solid rgba(20,19,18,0.16); border-radius: 18px; transition: border-color var(--ui) var(--ease), background var(--ui) var(--ease); }
.pg-me:hover, .pg-me:focus-visible { border-color: var(--carbon); background: rgba(20,19,18,0.03); }
.pg-me .nm { font: 400 24px/1 "Clash Grotesk", sans-serif; }
.pg-me .label { color: var(--ash); }
.pg-map { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) min(400px, 30%); align-items: center; gap: 0 clamp(16px, 2vw, 32px); padding: clamp(16px, 2vw, 32px) var(--m) clamp(16px, 2vw, 32px) 0; background: #0B2A2C; color: var(--paper); overflow: hidden; }
.pg-chart svg { display: block; width: 100%; height: auto; }
.pg-map .m-sea { fill: #0B2A2C; }
.pg-map .m-wave { fill: none; stroke: #8CDCD2; stroke-opacity: 0.16; stroke-width: 2; stroke-linecap: round; }
.pg-map .m-shoal { fill: #0F9A96; opacity: 0.26; }
.pg-map .m-land { fill: #F0CD96; stroke: #0B2A2C; stroke-width: 3; }
.pg-map .m-sun { fill: #F8E2B6; opacity: 0.7; }
.pg-map .m-isle.soon .m-land { fill: #BDB6AC; }
.pg-map .m-isle.soon .m-sun { fill: #d4cec6; }
.pg-map .m-route { fill: none; stroke: #EE7B63; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 0.1 14; }
.pg-map .m-rmask { fill: none; stroke: #fff; stroke-width: 16; stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.pg-map.drawing .m-rmask { animation: pg-draw 1.6s var(--ease) 0.2s both; }
@keyframes pg-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.pg-map .m-tower { fill: #BDB6AC; stroke: #0B2A2C; stroke-width: 2; }
.pg-map .m-cable { fill: none; stroke: #6E6A64; stroke-width: 1.5; }
.pg-map .m-ark, .pg-map .m-spark polygon { fill: #0F9A96; }
.pg-map .m-ark { stroke: #0B2A2C; stroke-width: 2; stroke-linejoin: round; }
.pg-map .m-trail { fill: none; stroke: #0F9A96; stroke-width: 2; stroke-dasharray: 2 6; stroke-linecap: round; }
.pg-map .m-tree { fill: #0F9A96; stroke: #0B2A2C; stroke-width: 2; }
.pg-map .m-tree.b { fill: #0B6F6C; }
.pg-map .m-step { fill: #F8E2B6; stroke: #0B2A2C; stroke-width: 2; }
.pg-map .m-glyph { fill: none; stroke: #0B2A2C; stroke-width: 2.5; stroke-linecap: round; }
.pg-map .m-glow { fill: url(#pg-glow); }
.pg-map .m-lure { fill: #FAF8F3; }
.pg-map .m-ring { fill: none; stroke: #8CDCD2; stroke-width: 2; }
.pg-map .m-hull { fill: #7a5a3e; stroke: #0B2A2C; stroke-width: 2; stroke-linejoin: round; }
.pg-map .m-mast { fill: none; stroke: #4a3726; stroke-width: 4; stroke-linecap: round; }
.pg-map .m-flag { fill: #EE7B63; }
.pg-map .m-peak { fill: #8CDCD2; stroke: #0B2A2C; stroke-width: 2.5; stroke-linejoin: round; }
.pg-map .m-snow { fill: #FAF8F3; }
.pg-map .m-cave { fill: #0B2A2C; }
.pg-map .m-cone { fill: #6E6A64; stroke: #0B2A2C; stroke-width: 2.5; stroke-linejoin: round; }
.pg-map .m-lava { fill: #EE7B63; }
.pg-map .m-smoke { fill: #BDB6AC; opacity: 0.7; }
.pg-map .m-v.soon { opacity: 0.6; }
.pg-map .m-pin { cursor: pointer; outline: none; }
.pg-map .m-hit { fill: transparent; }
.pg-map .m-name { font: 400 34px "Clash Grotesk", sans-serif; letter-spacing: -0.01em; fill: #FAF8F3; text-anchor: middle; }
.pg-map .m-sub { font: 400 13px "JetBrains Mono", monospace; letter-spacing: 0.12em; text-transform: uppercase; fill: #BDB6AC; text-anchor: middle; }
.pg-map .m-num { fill: #EE7B63; }
.pg-map .m-numt { font: 500 15px "JetBrains Mono", monospace; fill: #141312; text-anchor: middle; }
.pg-map .m-pin.done .m-num { fill: #0F9A96; }
.pg-map .m-pin.done .m-numt { fill: #FAF8F3; }
.pg-map .m-pin.soon .m-num { fill: #6E6A64; }
.pg-map .m-pin.soon .m-name { fill: #BDB6AC; }
.pg-map .m-pin:hover .m-name, .pg-map .m-pin:focus-visible .m-name { text-decoration: underline; text-underline-offset: 6px; }
.pg-map .m-pin.on .m-sub { fill: #EE7B63; }
.pg-map .m-pin:focus-visible .m-hit { stroke: #FAF8F3; stroke-width: 2; stroke-dasharray: 6 6; }
.pg-you { position: absolute; left: 0; top: 0; width: clamp(64px, 6vw, 104px); height: clamp(80px, 7.5vw, 130px); transform: translate(-50%, -100%); pointer-events: none; transition: left 0.7s var(--ease), top 0.7s var(--ease); }
.pg-panel { position: relative; background: var(--paper); color: var(--carbon); border-radius: 20px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(2,12,13,0.7); }
.pg-panel .pp-img { aspect-ratio: 10 / 7; overflow: hidden; background: #0B2A2C; }
.pg-panel .pp-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pg-panel .pp-img.soon { background: radial-gradient(circle at 50% 78%, #EE7B63 0, #6E6A64 34%, #141312 100%); }
.pg-panel .pp-body { padding: 22px 26px 26px; }
.pg-panel .pp-body > .label { color: var(--ash); }
.pg-panel .pp-name { font: 300 36px/1 "Clash Grotesk", sans-serif; letter-spacing: -0.02em; margin: 10px 0 0; }
.pg-panel .pp-line { margin: 12px 0 0; font-size: 15px; line-height: 1.5; color: #3d3a36; }
.pg-panel .pp-shine { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 16px; }
.pg-panel .pp-shine .label { width: 100%; color: var(--ash); }
.pg-panel .pp-crew { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; }
.pg-panel .pp-crew img { width: 34px; height: 34px; object-fit: contain; }
.pg-panel .pp-best { margin-top: 14px; color: var(--reef); }
.pg-panel .pp-row { margin-top: 20px; }
.pg-panel .btn.is-off { opacity: 0.45; pointer-events: none; }
.pg-list { padding-block: clamp(72px, 9vw, 136px); }
.pg-list ul { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid rgba(20,19,18,0.14); }
.pg-row > a, .pg-row > div { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr) 11em; gap: 8px 40px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid rgba(20,19,18,0.14); }
.pg-row > a:hover .pg-rn, .pg-row > a:focus-visible .pg-rn { text-decoration: underline; text-underline-offset: 6px; }
.pg-rn { font: 300 28px/1.1 "Clash Grotesk", sans-serif; letter-spacing: -0.01em; }
.pg-rd { color: var(--ash); max-width: 46em; }
.pg-best { color: var(--dreef); text-align: right; }   /* update 72: small labels on Paper are Deep Reef */
.pg-row.soon .pg-rn, .pg-row.soon .pg-best { color: var(--ash); }
@media (max-width: 699px) {
  .pg-map { grid-template-columns: 1fr; padding: 0; }
  .pg-panel { border-radius: 0; box-shadow: none; }
  .pg-map .m-name { font-size: 34px; }
  .pg-map .m-sub { font-size: 15px; }
  .pg-row > a, .pg-row > div { grid-template-columns: 1fr; }
  .pg-best { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .pg-map.drawing .m-rmask { animation: none; } .pg-you { transition: none; } }

/* ================= game screens: one system for every game =================
   Left-aligned over the game, which fades in on the right. Bring Spark Home is light; the expeditions are Deep Reef. */
.sh-screen { justify-content: flex-start; padding: 88px var(--m) 40px; background: linear-gradient(90deg, rgba(250,248,243,0.97) 0%, rgba(250,248,243,0.9) 38%, rgba(250,248,243,0.4) 74%, rgba(250,248,243,0.12) 100%); -webkit-backdrop-filter: none; backdrop-filter: none; }
.sh-screen[data-s=card] { background: linear-gradient(90deg, rgba(250,248,243,0.9) 0%, rgba(250,248,243,0.6) 40%, rgba(250,248,243,0) 80%); }
.sh-card { text-align: left; align-items: flex-start; margin: 0; max-width: 620px; }
.sh-row { justify-content: flex-start; }
.sh-how { justify-items: start; }
.sh-stats { display: flex; flex-wrap: wrap; gap: 18px 48px; margin-top: 32px; text-align: left; }
.sh-stats div { display: grid; gap: 8px; align-content: start; }
.sh-stats dd { text-align: left; font-size: 44px; line-height: 1; }
.sh-stats .tot dt, .sh-stats .tot dd { padding-top: 0; }
.sh-stats .tot dd { font-size: 60px; }
.ex-stage .sh-screen { background: linear-gradient(90deg, rgba(11,42,44,0.97) 0%, rgba(11,42,44,0.9) 40%, rgba(11,42,44,0.45) 76%, rgba(11,42,44,0.2) 100%); }
.ex-stage .sh-screen[data-s=pick] { background: #0B2A2C; }
.eb-still { position: absolute; inset: 0; background: center / cover no-repeat; pointer-events: none; }
.eb-still::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,42,44,0.98) 0%, rgba(11,42,44,0.92) 46%, rgba(11,42,44,0.55) 100%); }
.ex-brief { position: relative; z-index: 1; }
.ex-stage .sh-screen.new-best .bst dd { color: #8CDCD2; }
.ex-stage .sh-stats dd { color: var(--paper); }
/* the party pick: the place on the left, the party on the right */
.ex-brief { max-width: 1200px; width: 100%; display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 40px clamp(32px, 5vw, 88px); align-items: center; }
.ex-brief .eb-l .sh-lede { max-width: 24em; }
.ex-brief .eb-best { margin-top: 20px; color: #8CDCD2; }
.ex-brief .eb-h { font: 400 28px/1.1 "Clash Grotesk", sans-serif; letter-spacing: -0.01em; margin: 0; }
.ex-brief .eb-sub { margin: 6px 0 0; color: var(--mist); font-size: 16px; }
.ex-brief .sh-row { margin-top: 24px; }
.ex-brief .eb-party { color: var(--mist); }
.ex-stage .ex-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; width: 100%; }
.ex-you { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 14px 18px; border-radius: 16px; background: rgba(15,154,150,0.16); border: 1px solid rgba(140,220,210,0.35); }
.ex-you .nm { font: 400 20px/1.1 "Clash Grotesk", sans-serif; }
.ex-you .sk { color: #8CDCD2; }
.ex-you .does { width: 100%; color: var(--mist); font-size: 14px; line-height: 1.45; }
.ex-stage .ex-pc { display: grid; grid-template-columns: 54px minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 14px; row-gap: 3px; align-items: start; justify-items: start; text-align: left; padding: 12px 16px 14px 12px; border-radius: 16px; border: 1px solid rgba(250,248,243,0.22); background: rgba(250,248,243,0.04); transition: background var(--ui) var(--ease), border-color var(--ui) var(--ease), color var(--ui) var(--ease); }
.ex-stage .ex-pc img { grid-row: 1 / span 3; width: 54px; height: 64px; object-fit: contain; }
.ex-stage .ex-pc .nm { font: 400 20px/1.1 "Clash Grotesk", sans-serif; }
.ex-stage .ex-pc .sk { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: var(--mist); font-size: 11px; }
.ex-stage .ex-pc .sk i { font-style: normal; color: #0B2A2C; background: #8CDCD2; padding: 3px 7px 2px; border-radius: 6px; }
.ex-stage .ex-pc .does { margin-top: 4px; font-size: 14px; line-height: 1.4; color: rgba(250,248,243,0.78); }
.ex-stage .ex-pc:hover, .ex-stage .ex-pc:focus-visible { border-color: rgba(250,248,243,0.65); }
.ex-stage .ex-pc.on { background: var(--paper); color: var(--carbon); border-color: var(--paper); }
.ex-stage .ex-pc.on .sk { color: var(--ash); }
.ex-stage .ex-pc.on .does { color: var(--carbon); }
@media (max-width: 960px) { .ex-brief { grid-template-columns: 1fr; gap: 24px; } .ex-brief .eb-l .sh-title { font-size: 48px; } }
@media (max-width: 700px) { .ex-stage .ex-pc { grid-template-columns: 40px minmax(0, 1fr); } .ex-stage .ex-pc img { width: 40px; height: 48px; } .ex-stage .ex-pc .does, .ex-you .does { display: none; } .ex-brief .eb-l .sh-lede { display: none; } }
/* progress through the expedition: Scout, Encounter, Escape */
.ex-prog { flex: 0 1 460px; margin-top: 4px; display: grid; grid-template-columns: calc(var(--a, 0.4) * 100%) calc((var(--b, 0.6) - var(--a, 0.4)) * 100%) minmax(0, 1fr); row-gap: 7px; pointer-events: none; }
.ep-track { grid-column: 1 / -1; position: relative; height: 4px; border-radius: 2px; background: rgba(250,248,243,0.22); }
.ep-track i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p, 0) * 100%); border-radius: 2px; background: #8CDCD2; }
.ep-track b { position: absolute; top: -3px; width: 2px; height: 10px; background: rgba(250,248,243,0.55); }
.ep-track .ta { left: calc(var(--a, 0.4) * 100%); } .ep-track .tb { left: calc(var(--b, 0.6) * 100%); }
.ep-track em { position: absolute; top: 50%; left: calc(var(--p, 0) * 100%); width: 12px; height: 12px; border-radius: 50%; background: var(--paper); transform: translate(-50%, -50%); box-shadow: 0 0 0 3px rgba(11,42,44,0.65); }
.ep-l { font: 400 9px/1 "JetBrains Mono", monospace; letter-spacing: 0.1em; white-space: nowrap; overflow: hidden; text-transform: uppercase; color: var(--mist); }
@media (max-width: 760px) { .ex-prog { display: none; } }
.sh-stage.dark .sh-screen { background: linear-gradient(90deg, rgba(20,19,18,0.95) 0%, rgba(20,19,18,0.86) 40%, rgba(20,19,18,0.36) 76%, rgba(20,19,18,0.1) 100%); color: var(--paper); }   /* after dark, the screens fade from Carbon */
.sh-stage.dark .sh-screen .sh-card > .label, .sh-stage.dark .sh-stats dt, .sh-stage.dark .sh-row > span.label { color: var(--mist); }
.sh-stats dd[data-f=landing] { font-size: 28px; line-height: 1.15; align-self: end; }

/* Join the Crew holds the expeditions: they sit inside its row, not beside it */
.pg-row { border-bottom: 1px solid rgba(20,19,18,0.14); }
.pg-row > a, .pg-row > div { border-bottom: 0; }
.pg-row.crew { padding-bottom: 24px; }
.pg-exps { list-style: none; margin: 0; padding: 0 0 0 calc((100% - 11em - 80px) * 1.1 / 3.1 + 40px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pg-exps a, .pg-exps li > span { display: grid; gap: 6px; height: 100%; padding: 14px 16px 16px; border: 1px solid rgba(20,19,18,0.14); border-radius: 14px; transition: border-color var(--ui) var(--ease), background var(--ui) var(--ease); }
.pg-exps a:hover, .pg-exps a:focus-visible { border-color: var(--carbon); background: rgba(20,19,18,0.03); }
.pg-exps .label { color: var(--ash); }
.pg-exps .nm { font: 400 21px/1.1 "Clash Grotesk", sans-serif; letter-spacing: -0.01em; }
.pg-exps .pg-best { text-align: left; color: var(--dreef); min-height: 1em; }
.pg-exps .soon .nm, .pg-exps .soon .pg-best { color: var(--ash); }
@media (max-width: 900px) { .pg-exps { padding-left: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pg-list .pg-row { display: block; }   /* the site's list styles lay items out in a row; these rows stack */
.pg-exps > li { display: block; }


/* the expedition cards: as they were, with the still across the top */
.pg-exps a, .pg-exps li > span { padding: 0 0 16px; overflow: hidden; }
.pg-exps img, .pg-exps .ph { display: block; width: 100%; aspect-ratio: 16 / 10; height: auto; object-fit: cover; margin-bottom: 8px; background: #0B2A2C; }
.pg-exps .ph { background: radial-gradient(110% 80% at 50% 100%, #EE7B63 0%, #8a5a4c 30%, #3a2f2b 62%, #141312 100%); }   /* the Volcano: lava light until it has a still */
.pg-exps .label, .pg-exps .nm, .pg-exps .pg-best { padding: 0 16px; }

/* souvenirs in the creator: earned ones carry a Reef dot; locked ones wait for their expedition */
.jc-opt.souv { gap: 8px; }
.jc-opt .sv-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--reef); }
.jc-opt.locked { color: var(--ash); cursor: not-allowed; border-style: dashed; }   /* update 72: Ash (5.1:1) instead of half-faded Carbon */
.jc-opt .lk { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.jc-souv { transition: color var(--ui) var(--ease); }
.jc-souv.on { color: var(--carbon); }
.ex-souv { margin-top: 18px; color: var(--mist); font-size: 16px; }
.ex-souv b { color: #8CDCD2; font-weight: 500; }
.ex-souv a { color: var(--paper); text-decoration: underline; text-underline-offset: 4px; margin-left: 4px; }

/* the sticker pack, under the creator */
.jc-pack { padding-block: clamp(56px, 7vw, 104px); border-top: 1px solid rgba(20,19,18,0.12); }
.jc-pack .pk-copy .h2 { margin-top: 10px; }
.jc-pack .jc-note { margin-top: 10px; max-width: 34em; }
.pk-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; min-height: 104px; }
.pk-row img { width: 104px; height: 104px; border-radius: 18px; background: #EEEBE5; padding: 4px; }
.jc-pack .jc-row { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.jc-pack .pk-n { color: var(--ash); }
.pk-how { margin-top: 22px; max-width: 40em; }
.pk-how summary { cursor: pointer; color: var(--carbon); }
.pk-how ol { margin: 12px 0 0 1.2em; padding: 0; display: grid; gap: 6px; color: #3d3a36; }

