/* the draw */
.pick-body { display: grid; gap: 16px; }
@media (min-width: 600px) {
  .pick-body { grid-template-columns: 232px minmax(0, 1fr); }
  .pick .ticker { grid-template-columns: repeat(5, 1fr); }
}
.reel { position: relative; display: grid; justify-items: center; align-content: start; gap: 10px; padding: 12px; }
.reel .window { position: relative; display: grid; place-items: center; width: 192px; height: 192px; overflow: hidden; cursor: pointer;
  background: radial-gradient(ellipse 70% 16% at 50% 86%, rgba(20, 32, 80, .25), transparent), linear-gradient(#5aa8ff, var(--sky-bottom) 70%, #9be07a 70.5%, #6cc45a);
  border: 4px solid var(--win, var(--navy)); border-radius: 14px; box-shadow: 0 0 0 3px var(--navy), inset 0 3px 0 rgba(255, 255, 255, .4); }
.reel .window img { width: 192px; height: 192px; image-rendering: pixelated; }
.reel .flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.reel-name { min-height: 1.3em; font-size: 19px; font-weight: 900; text-align: center; color: var(--navy); }
.reel .spark { position: absolute; left: 50%; top: 38%; border: 2px solid var(--navy); border-radius: 2px; pointer-events: none; }
.ticker { display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; width: 100%; }
.ticker img { width: 100%; height: auto; aspect-ratio: 1; opacity: .4; background: var(--well); border-radius: 8px; image-rendering: pixelated; }
.ticker img[aria-current="true"] { opacity: 1; background: var(--yellow); box-shadow: 0 0 0 2px var(--navy); }
.swatches.spin { display: flex; gap: 4px; width: 100%; }
.swatches.spin span { flex: 1; height: 16px; opacity: .45; border: 2px solid var(--navy); border-radius: 999px; }
.swatches.spin span.on { opacity: 1; transform: translateY(-4px); box-shadow: 0 4px 0 var(--navy); }
.pick .side { display: grid; gap: 12px; align-content: start; }
.info { display: grid; gap: 2px; padding: 10px 14px 12px; opacity: .6; transition: opacity .2s; }
.info.shown { opacity: 1; }
.info .kicker { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.info .name { font-size: 19px; font-weight: 900; }
.info .desc { min-height: 2.8em; font-size: 13px; font-weight: 600; color: var(--card-soft); }
.info .dot { width: 14px; height: 14px; background: var(--perk, var(--well)); border: 2px solid var(--navy); border-radius: 50%; }
.info.skill.shown { background: linear-gradient(#fffbe3, #fff1b8); }
.info.power.shown { box-shadow: inset 8px 0 0 var(--perk), 0 4px 0 rgba(12, 22, 56, .4); padding-left: 20px; }
.skill-icon { width: 18px; height: 18px; image-rendering: pixelated; }
.pick .go { min-height: 60px; font-size: 19px; }
.pick .go.ready { @media (prefers-reduced-motion: no-preference) { animation: breathe 1.2s ease-in-out infinite; } }
@media (max-width: 520px) {
  .reel .window, .reel .window img { width: 144px; height: 144px; }
  .info .desc { min-height: 0; }
}

/* settings and map tabs: chunky switches */
.rows { display: grid; gap: 10px; }
.setting { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; }
.setting > .label { font-weight: 900; font-size: 15px; }
.setting .seg { min-width: 230px; }
@media (max-width: 420px) { .setting { grid-template-columns: 1fr; gap: 8px; } .setting .seg { min-width: 0; } }
.seg, .tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: var(--well); border: 3px solid var(--navy); border-radius: 999px; }
.tabs { display: flex; overflow-x: auto; scrollbar-width: none; background: #fff; box-shadow: 0 4px 0 rgba(12, 22, 56, .4); }
.seg button, .tabs [role="tab"] { min-height: 38px; padding: 6px 14px; font-size: 13px; font-weight: 800; color: var(--card-soft); background: transparent; border: 0; box-shadow: none; }
.seg button:active, .tabs [role="tab"]:active { transform: none; box-shadow: none; }
.tabs [role="tab"] { flex: 1 0 auto; }
@media (hover: hover) { .seg button:hover, .tabs [role="tab"]:hover { color: var(--navy); } }
.seg [aria-pressed="true"], .tabs [aria-selected="true"] { font-weight: 900; color: var(--navy); background: linear-gradient(var(--yellow-hi) 0 40%, var(--yellow) 55%, #ffbf1f); box-shadow: 0 0 0 2px var(--navy), inset 0 -3px 0 var(--yellow-lo); }
.seg [aria-pressed="true"]:active, .tabs [aria-selected="true"]:active { box-shadow: 0 0 0 2px var(--navy), inset 0 -3px 0 var(--yellow-lo); }
/* touch screens get 44px targets */
@media (pointer: coarse) { .seg button, .tabs [role="tab"] { min-height: 44px; } }
.tabpanel { display: grid; gap: 12px; }

/* field guide */
.codex .swatches { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.swatch { width: 40px; min-width: 40px; height: 40px; min-height: 40px; padding: 0; background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .6) 0 18%, transparent 22%), var(--c); border-radius: 50%; box-shadow: 0 4px 0 var(--navy); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px #fff, 0 4px 0 3px var(--navy); translate: 0 -4px; }
.entries { display: grid; gap: 12px; }
.entry { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 14px; align-items: start; padding: 12px; }
.plate { display: grid; place-items: center; aspect-ratio: 1; background: linear-gradient(#5aa8ff, var(--sky-bottom) 70%, #9be07a 70.5%, #6cc45a); border: 3px solid var(--navy); border-radius: 12px; }
.plate .dino { width: 128px; height: 128px; image-rendering: pixelated; }
.entry h3 { margin: 0 0 4px; font-size: 19px; font-weight: 900; color: var(--blue-lo); }
.entry .fact { font-size: 13px; font-weight: 600; }
.stats { display: grid; margin-top: 8px; font-size: 12px; }
.stat { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 4px 0; border-bottom: 2px dotted #b9cdf0; }
.stat .label { color: var(--card-soft); }
.entry .habit { margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--card-soft); }
.stamps { display: flex; gap: 3px; }
.stamps i { width: 12px; height: 12px; background: var(--well); border: 2px solid #b9cdf0; border-radius: 50%; }
.stamps i.on { border-color: var(--navy); }
.growth { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); align-items: end; gap: 8px; margin: 0; padding-top: 10px; border-top: 2px dotted #b9cdf0; }
.growth figure { display: grid; justify-items: center; margin: 0; padding: 4px 0 2px; background: var(--well); border-radius: 10px; }
.growth .art { width: 100%; max-width: 112px; aspect-ratio: 4 / 3; height: auto; }
.growth figcaption { font-size: 11px; font-weight: 900; color: var(--blue-lo); }
.art { image-rendering: pixelated; object-fit: contain; }
@media (pointer: coarse) { .swatch { width: 44px; min-width: 44px; height: 44px; min-height: 44px; } }
@media (max-width: 520px) {
  .entry { grid-template-columns: 1fr; }
  .plate { width: min(100%, 180px); justify-self: center; }
}

/* map guide */
.mapshot { width: 100%; height: auto; image-rendering: pixelated; border: 3px solid var(--navy); border-radius: 14px; box-shadow: 0 4px 0 rgba(12, 22, 56, .4); }
.effects { display: grid; gap: 10px; margin: 0; }
.effects dt { font-weight: 900; font-size: 13px; color: var(--navy); }
.effects dd { margin: 2px 0 0; font-size: 13px; font-weight: 600; color: var(--card-soft); }

/* pause, game over, report */
.panel.pause h1, .panel.over h1, .panel.report h1 { text-align: center; }
.panel.pause .buttons button, .panel.over .buttons button, .panel.report .buttons button { padding-left: 40px; padding-right: 40px; }
.buttons.pair button { padding-left: 34px; padding-right: 14px; white-space: nowrap; }
.panel.over h1 { font-size: 34px; color: var(--red); }
.panel.over h1 { @media (prefers-reduced-motion: no-preference) { animation: slam .5s var(--bounce); } }
@keyframes slam { from { scale: 2.2; opacity: 0; } }
.panel.over .lead { text-align: center; text-shadow: 0 2px 0 rgba(20, 32, 80, .5); }
.scores { display: grid; gap: 6px; margin: 0; padding: 10px 14px; list-style: none; }
.scores li { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; }
.scores .ico { color: var(--blue); }
.scores .ico svg { width: 14px; height: 14px; }
.scores .record { margin-left: auto; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.facts .fact { position: relative; display: grid; gap: 2px; padding: 10px 14px; }
.facts .label { font-size: 11px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; color: var(--blue); }
.facts .value { font-size: 16px; font-weight: 900; }
.facts .record { position: absolute; top: -10px; right: 10px; }
.facts .fact:last-child:nth-child(odd) { grid-column: 1 / -1; }
.path { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 0; padding: 0; list-style: none; }
.path li { display: grid; justify-items: center; padding: 4px 0 6px; font-size: 11px; background: var(--well); border-radius: 10px; }
.path .art { width: 100%; max-width: 112px; height: auto; aspect-ratio: 4 / 3; }
.path .lv { font-weight: 900; color: var(--blue-lo); }
.path .time { color: var(--card-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.credit { display: grid; place-content: center; min-height: 44px; padding: 6px 14px; font-size: 12px; line-height: 1.4; text-align: center; text-decoration: none; color: #fff; text-shadow: 0 2px 0 rgba(20, 32, 80, .6); border: 2px dashed rgba(255, 255, 255, .6); border-radius: 14px; }
@media (hover: hover) { .credit:hover { border-color: #fff; } }
