/* StorkyVerse core styles. System fonts only: no external requests. */
:root {
  --sk-ink: #1a1a1a;
  --sk-paper: #fff8ec;
  --sk-orange: #f57c14;
  --sk-font: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --sk-safe-t: env(safe-area-inset-top, 0px);
  --sk-safe-r: env(safe-area-inset-right, 0px);
  --sk-safe-b: env(safe-area-inset-bottom, 0px);
  --sk-safe-l: env(safe-area-inset-left, 0px);
}
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden;
  background: #10131c; color: var(--sk-ink); font-family: var(--sk-font);
  overscroll-behavior: none; touch-action: none;
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
}
/* No double-tap zoom on anything; scrolling panels opt back in to pan-y below. */
body * { touch-action: manipulation; }
.sk-canvas { position: fixed; left: 0; top: 0; display: block; touch-action: none; }
button { font-family: inherit; }

/* Buttons */
.sk-btn {
  appearance: none; border: 3px solid var(--sk-ink); border-radius: 14px;
  background: #fff; color: var(--sk-ink); font-weight: 800; font-size: 16px;
  padding: 10px 18px; cursor: pointer; box-shadow: 0 4px 0 var(--sk-ink);
  transition: transform .06s, box-shadow .06s;
}
.sk-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--sk-ink); }
.sk-btn:disabled { opacity: .5; cursor: default; }
.sk-btn:focus-visible { outline: 3px solid #3aa0ff; outline-offset: 2px; }
.sk-btn-primary { background: var(--sk-orange); color: #fff; font-size: 20px; padding: 12px 34px; }
.sk-btn-ad { background: #ffe15a; font-size: 12px; padding: 6px 8px; border-width: 2px; box-shadow: 0 3px 0 var(--sk-ink); }

/* Mute */
.sk-mute {
  position: fixed; z-index: 30; top: calc(10px + var(--sk-safe-t)); right: calc(10px + var(--sk-safe-r));
  width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--sk-ink);
  background: #fff; color: var(--sk-ink); display: grid; place-items: center; cursor: pointer; padding: 0;
  box-shadow: 0 3px 0 var(--sk-ink);
}
.sk-mute.is-off { background: #d9d4cb; }
.sk-music { right: calc(62px + var(--sk-safe-r)); }
.sk-mute:focus-visible { outline: 3px solid #3aa0ff; outline-offset: 2px; }

/* Touch buttons */
.sk-touch { position: fixed; inset: 0; z-index: 20; pointer-events: none; }
.sk-tbtn {
  --sk-offset: 18px;
  position: absolute; pointer-events: auto; touch-action: none;
  width: 104px; height: 104px; border-radius: 50%;
  border: 4px solid var(--sk-ink); background: rgba(255, 255, 255, .82); color: var(--sk-ink);
  font-weight: 900; font-size: 17px; letter-spacing: .04em;
  display: grid; place-items: center; padding: 0;
  box-shadow: 0 5px 0 rgba(0, 0, 0, .55);
}
.sk-tbtn.is-down { transform: translateY(4px) scale(.96); box-shadow: 0 1px 0 rgba(0, 0, 0, .55); background: #ffe15a; }
.sk-tbtn-bl { left: calc(var(--sk-offset) + var(--sk-safe-l)); bottom: calc(var(--sk-offset) + var(--sk-safe-b)); }
.sk-tbtn-br { right: calc(var(--sk-offset) + var(--sk-safe-r)); bottom: calc(var(--sk-offset) + var(--sk-safe-b)); }
.sk-tbtn-tl { left: calc(var(--sk-offset) + var(--sk-safe-l)); top: calc(var(--sk-offset) + var(--sk-safe-t)); }
.sk-tbtn-tr { right: calc(var(--sk-offset) + var(--sk-safe-r)); top: calc(var(--sk-offset) + var(--sk-safe-t)); }

/* Toast */
.sk-toast {
  position: fixed; z-index: 60; left: 50%; top: calc(18px + var(--sk-safe-t)); transform: translateX(-50%);
  background: var(--sk-ink); color: #fff; font-weight: 800; padding: 10px 18px; border-radius: 999px;
  transition: opacity .35s, transform .35s; max-width: 90vw; text-align: center;
}
.sk-toast.is-out { opacity: 0; transform: translate(-50%, -12px); }

/* Dev ad placeholder */
.sk-ad {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px;
  background: repeating-linear-gradient(45deg, #23262f 0 22px, #2c303b 22px 44px);
}
.sk-ad-box {
  background: #fff; border: 4px dashed var(--sk-ink); border-radius: 18px; padding: 24px 26px;
  text-align: center; max-width: 420px; width: 100%;
}
.sk-ad-tag { display: inline-block; background: #ffe15a; border: 2px solid var(--sk-ink); border-radius: 6px; padding: 2px 8px; font-weight: 900; font-size: 12px; letter-spacing: .1em; }
.sk-ad-title { font-size: 22px; font-weight: 900; margin: 10px 0 6px; }
.sk-ad-note { font-size: 14px; color: #555; }
.sk-ad-count { font-size: 18px; font-weight: 800; margin: 14px 0 4px; min-height: 24px; }
.sk-ad-skip { margin-top: 8px; font-size: 14px; }

/* Character select */
.sk-select {
  position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center;
  background: rgba(16, 19, 28, .78);
  padding: calc(10px + var(--sk-safe-t)) calc(10px + var(--sk-safe-r)) calc(10px + var(--sk-safe-b)) calc(10px + var(--sk-safe-l));
}
.sk-select-panel {
  background: var(--sk-paper); border: 4px solid var(--sk-ink); border-radius: 22px;
  width: min(920px, 100%); max-height: 100%; display: flex; flex-direction: column;
  padding: 12px 14px 14px; box-shadow: 0 8px 0 rgba(0, 0, 0, .45);
}
.sk-select-title { margin: 0 0 8px; text-align: center; font-size: clamp(20px, 3.4vw, 30px); font-weight: 900; }
.sk-select-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  overflow-y: auto; touch-action: pan-y; padding: 4px; min-height: 0;
}
@media (min-aspect-ratio: 3/2) and (max-height: 520px) { .sk-select-grid { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 520px) { .sk-select-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }
.sk-card {
  position: relative; background: #fff; border: 3px solid var(--sk-ink); border-radius: 16px;
  padding: 6px 6px 8px; text-align: center; cursor: pointer; min-width: 0;
  display: flex; flex-direction: column; align-items: center;
}
.sk-card:focus-visible { outline: 3px solid #3aa0ff; outline-offset: 2px; }
.sk-card.is-selected { background: #fff1d6; box-shadow: 0 0 0 4px var(--sk-orange); }
.sk-card-art {
  position: relative; width: min(100%, 104px); aspect-ratio: 1; border-radius: 12px; overflow: hidden;
  background: color-mix(in srgb, var(--sk-c) 28%, #fff); border: 2px solid var(--sk-ink);
}
.sk-card-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Full-body art: a taller frame, the whole Storky standing in it. */
.sk-card-art.is-body { width: 100%; aspect-ratio: auto; height: clamp(110px, 20vh, 190px); padding: 6px 4px 0; }
.sk-card-art.is-body img { object-fit: contain; object-position: center bottom; }
/* Intro clip: fills the frame top to bottom; its own backdrop colour fills the sides. */
.sk-card-art.is-video { padding: 0; height: clamp(150px, 27vh, 300px); }
.sk-card-video { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; }
.sk-card.is-locked .sk-card-video { filter: grayscale(1) brightness(.75); }
/* Phones: the clip fills the whole card frame, edge to edge, nothing cropped. */
@media (max-width: 520px) {
  .sk-card-art.is-video { height: auto; aspect-ratio: 9 / 16; }
  .sk-card-video { object-fit: cover; }
}
.sk-card-lock { display: none; position: absolute; inset: 0; place-items: center; color: #fff; background: rgba(20, 22, 30, .55); }
.sk-card-name { font-weight: 900; font-size: 15px; margin-top: 5px; line-height: 1.15; }
.sk-card-arch { font-size: 12px; font-weight: 700; color: #6a5f52; }
.sk-card-stat { font-size: 12px; font-weight: 700; color: #1d6b46; min-height: 15px; margin-top: 2px; }
.sk-card-locked { display: none; flex-direction: column; align-items: center; gap: 5px; margin-top: 3px; }
.sk-card-hint { font-size: 12px; font-weight: 800; color: #8a2d1c; }
.sk-card.is-locked { background: #ece6da; }
.sk-card.is-locked .sk-card-art img { filter: grayscale(1) brightness(.75); }
.sk-card.is-locked .sk-card-lock { display: grid; }
.sk-card.is-locked .sk-card-locked { display: flex; }
.sk-card.is-locked .sk-card-stat { display: none; }
.sk-select-footer { display: flex; gap: 12px; justify-content: center; padding-top: 12px; }

@media (prefers-reduced-motion: reduce) { .sk-btn, .sk-tbtn, .sk-toast { transition: none; } }

/* Splash: logo on a plain backdrop */
.sk-splash {
  position: fixed; inset: 0; z-index: 200; background: var(--sk-paper);
  display: grid; place-items: center; transition: opacity .38s;
  padding: calc(16px + var(--sk-safe-t)) 16px calc(16px + var(--sk-safe-b));
}
.sk-splash.is-out { opacity: 0; pointer-events: none; }
.sk-splash-in { display: grid; justify-items: center; gap: 14px; animation: sk-pop .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.sk-splash-logo { width: min(440px, 78vw); height: auto; display: block; }
.sk-splash-game { width: min(380px, 66vw); max-height: 34vh; object-fit: contain; display: block; }
.sk-splash-name { font-size: 44px; font-weight: 900; }
.sk-splash-title { font-size: clamp(18px, 4.6vw, 26px); font-weight: 900; color: var(--sk-ink); letter-spacing: .01em; }
.sk-splash-dots { display: flex; gap: 8px; margin-top: 4px; }
.sk-splash-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--sk-orange); animation: sk-dot 1s infinite ease-in-out; }
.sk-splash-dots i:nth-child(2) { animation-delay: .15s; }
.sk-splash-dots i:nth-child(3) { animation-delay: .3s; }
.sk-splash-credit { position: absolute; left: 0; right: 0; bottom: calc(18px + var(--sk-safe-b)); text-align: center; font-size: 12px; font-weight: 700; color: #6a5f52; }
/* Timed splash: studio logo alone, then the game logo + dots, small studio mark at the foot */
.sk-splash.is-timed { grid-template-areas: "c"; }
.sk-splash.is-timed > .sk-splash-in { grid-area: c; transition: opacity .45s; animation: none; }
.sk-splash.is-timed.is-studio .sk-splash-beat2, .sk-splash.is-timed:not(.is-studio) .sk-splash-beat1 { opacity: 0; pointer-events: none; }
.sk-splash.is-timed.is-studio .sk-splash-foot { opacity: 0; }
.sk-splash-foot {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(14px + var(--sk-safe-b));
  display: grid; justify-items: center; gap: 6px; width: max-content; transition: opacity .45s;
}
.sk-splash-foot img { width: 0; min-width: 100%; height: auto; display: block; }
.sk-splash-foot .sk-splash-credit { position: static; }
@keyframes sk-pop { from { opacity: 0; transform: scale(.86); } to { opacity: 1; transform: none; } }
@keyframes sk-dot { 0%, 100% { transform: translateY(0); opacity: .45; } 50% { transform: translateY(-7px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sk-splash-in, .sk-splash-dots i { animation: none; } }

/* Rewarded ads are off (Basic Launch build, ad blocker, portal says no): no ad button may sit there doing nothing. */
.sk-no-rewarded .sk-needs-ad { display: none !important; }

/* Storky Neck Rush  */
.hc-pedal { width: 112px; height: 112px; font-size: 16px; }
.hc-pedal.sk-tbtn-br { background: rgba(255, 225, 90, .9); }

.hc-coin {
  display: inline-block; width: .95em; height: .95em; border-radius: 50%; vertical-align: -0.12em; margin-right: .3em;
  background: #ffd23b; border: 2px solid var(--sk-ink); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5);
}

.hc-screen {
  position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center;
  background: rgba(16, 19, 28, .55);
  padding: calc(12px + var(--sk-safe-t)) calc(12px + var(--sk-safe-r)) calc(12px + var(--sk-safe-b)) calc(12px + var(--sk-safe-l));
}
.hc-panel {
  background: var(--sk-paper); border: 4px solid var(--sk-ink); border-radius: 22px; box-shadow: 0 8px 0 rgba(0, 0, 0, .45);
  width: min(430px, 100%); max-height: 100%; overflow-y: auto; touch-action: pan-y; padding: 16px 18px 18px; text-align: center;
}
.hc-kicker { font-weight: 900; font-size: 20px; color: #b5362b; letter-spacing: .02em; }
.hc-dist { font-weight: 900; font-size: clamp(44px, 12vw, 64px); line-height: 1.05; font-variant-numeric: tabular-nums; }
.hc-best { font-weight: 800; color: #6a5f52; margin-bottom: 10px; }
.hc-best.is-new { display: inline-block; color: #fff; background: #1d8a52; border: 3px solid var(--sk-ink); border-radius: 999px; padding: 2px 14px; }
.hc-rows { border-top: 3px solid var(--sk-ink); margin-top: 6px; }
.hc-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 2px; font-weight: 700; border-bottom: 2px dashed #d9cdb8; font-variant-numeric: tabular-nums; }
.hc-row b { font-weight: 900; }
.hc-row-total { border-bottom: 0; font-size: 18px; }
.hc-actions { display: flex; gap: 12px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }

.hc-garage { width: min(520px, 100%); text-align: left; }
.hc-garage-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.hc-garage-head h2 { margin: 0; font-size: 26px; font-weight: 900; }
.hc-wallet { font-weight: 900; font-size: 20px; background: #fff; border: 3px solid var(--sk-ink); border-radius: 999px; padding: 3px 14px; font-variant-numeric: tabular-nums; }
.hc-upgrades { display: grid; gap: 8px; }
.hc-up { display: flex; align-items: center; gap: 10px; background: #fff; border: 3px solid var(--sk-ink); border-radius: 14px; padding: 8px 10px; }
.hc-up-info { flex: 1; min-width: 0; }
.hc-up-name { font-weight: 900; font-size: 17px; }
.hc-up-blurb { font-size: 13px; font-weight: 600; color: #6a5f52; }
.hc-pips { display: flex; gap: 4px; margin-top: 5px; }
.hc-pips i { width: 22px; height: 9px; border-radius: 4px; border: 2px solid var(--sk-ink); background: #e8dfcf; }
.hc-pips i.is-on { background: var(--sk-orange); }
.hc-buy { min-width: 92px; font-size: 16px; padding: 9px 10px; background: #ffe15a; font-variant-numeric: tabular-nums; }
.hc-buy:disabled { background: #e8dfcf; }

@media (max-height: 460px) {
  .hc-panel { padding: 10px 14px 12px; }
  .hc-dist { font-size: 40px; }
  .hc-row { padding: 4px 2px; }
  .hc-upgrades { grid-template-columns: 1fr 1fr; }
  .hc-up-blurb { display: none; }
}

/* Milestone 3: jump pedal, home screen, ad offers */
.hc-jump { width: 88px; height: 88px; background: rgba(160, 225, 255, .9);
  left: calc(30px + var(--sk-safe-l)); bottom: calc(146px + var(--sk-safe-b)); right: auto; top: auto; }
.hc-pedal-in { display: grid; justify-items: center; gap: 0; line-height: 1; pointer-events: none; }
.hc-pedal-in b { font-size: 12px; font-weight: 900; letter-spacing: .06em; }
.hc-jump .hc-pedal-in svg { width: 30px; height: 30px; }
.hc-jump .hc-pedal-in b { font-size: 11px; }
.hc-adtag { display: inline-block; font-size: 10px; font-weight: 900; letter-spacing: .08em; background: var(--sk-ink); color: #ffe15a; border-radius: 4px; padding: 1px 5px; vertical-align: 2px; margin-left: 4px; }
.hc-offers { margin-top: 10px; }
.hc-offer { background: #ffe15a; font-size: 15px; padding: 9px 14px; }
.hc-small { font-size: 13px; padding: 6px 10px; border-width: 2px; box-shadow: 0 3px 0 var(--sk-ink); }
.hc-title { margin: 0 0 10px; font-size: clamp(26px, 7vw, 38px); font-weight: 900; line-height: 1; }
.hc-logo { display: block; margin: 0 auto; height: clamp(52px, 11vh, 92px); width: auto; }
.hc-pass-top .hc-logo { height: 38px; }
.hc-title span { color: var(--sk-orange); }
.hc-driver { display: flex; align-items: center; gap: 10px; text-align: left; background: #fff; border: 3px solid var(--sk-ink); border-radius: 14px; padding: 7px 9px; }
.hc-driver img { width: 58px; height: 58px; border-radius: 10px; border: 2px solid var(--sk-ink); background: color-mix(in srgb, var(--sk-c) 28%, #fff); object-fit: cover; flex: none; }
.hc-driver-info { flex: 1; min-width: 0; }
.hc-driver-name { font-weight: 900; font-size: 17px; }
.hc-driver-car { font-size: 12.5px; font-weight: 700; color: #6a5f52; }
.hc-worlds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.hc-world { font-family: inherit; cursor: pointer; background: #fff; border: 3px solid var(--sk-ink); border-radius: 12px; padding: 7px 4px; color: var(--sk-ink); display: flex; flex-direction: column; gap: 2px; align-items: center; min-width: 0; }
.hc-world b { font-size: 13.5px; font-weight: 900; }
.hc-world span { font-size: 11px; font-weight: 700; color: #6a5f52; line-height: 1.2; }
.hc-world.is-on { background: #fff1d6; box-shadow: 0 0 0 3px var(--sk-orange); }
.hc-world.is-locked { background: #e8dfcf; }
.hc-world.is-locked span { color: #8a2d1c; }
.hc-world svg { vertical-align: -3px; }
.hc-world:focus-visible { outline: 3px solid #3aa0ff; outline-offset: 2px; }
.hc-home-stats { display: flex; justify-content: space-between; font-weight: 700; margin-top: 10px; padding: 0 2px; font-variant-numeric: tabular-nums; }
.hc-garage-note { font-size: 12.5px; font-weight: 700; color: #6a5f52; margin: -4px 0 8px; }
@media (max-height: 460px) {
  .hc-title { font-size: 24px; margin-bottom: 6px; }
  .hc-garage-note { display: none; }
  .hc-jump { bottom: calc(138px + var(--sk-safe-b)); }
}

/* Locked worlds: ad unlock button inside the tile */
div.hc-world { cursor: default; }
.hc-world-ad { margin-top: 4px; font-size: 11px; padding: 4px 6px; white-space: nowrap; }

/* Six worlds: two rows of three, a little tighter */
.hc-worlds { grid-auto-rows: 1fr; }
.hc-world { padding: 6px 3px; }

/* Results: the driver's bonked head */
.hc-hurt { display: block; height: clamp(84px, 17vh, 150px); width: auto; margin: -2px auto 2px; }
@media (max-height: 460px) { .hc-hurt { height: 62px; float: left; margin: 0 8px 0 0; } }

/* Pause button and menu */
.hc-pause {
  position: fixed; z-index: 30; top: calc(10px + var(--sk-safe-t)); right: calc(10px + var(--sk-safe-r));
  width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--sk-ink); background: #fff; color: var(--sk-ink);
  display: grid; place-items: center; cursor: pointer; padding: 0; box-shadow: 0 3px 0 var(--sk-ink);
}
.hc-pause:focus-visible { outline: 3px solid #3aa0ff; outline-offset: 2px; }
.hc-pause-panel { width: min(340px, 100%); }
.hc-pause-title { margin: 0 0 12px; font-size: 28px; font-weight: 900; }
.hc-pause-actions { display: grid; gap: 10px; }
.hc-pause-actions .sk-btn { width: 100%; font-size: 18px; padding: 12px 18px; }
.hc-audio { display: grid; gap: 8px; padding: 8px; border: 3px solid var(--sk-ink); border-radius: 18px; background: #fbeed6; }
.hc-volume { display: flex; align-items: center; gap: 10px; padding: 0 4px; font-weight: 800; font-size: 16px; }
.hc-volume b { min-width: 46px; text-align: right; font-variant-numeric: tabular-nums; }
.hc-volume input {
  flex: 1; min-width: 0; height: 30px; margin: 0; background: transparent; cursor: pointer;
  -webkit-appearance: none; appearance: none; touch-action: none;
}
.hc-volume input::-webkit-slider-runnable-track {
  height: 12px; border-radius: 8px; border: 3px solid var(--sk-ink);
  background: linear-gradient(to right, var(--sk-orange) var(--hc-vol, 100%), #fff var(--hc-vol, 100%));
}
.hc-volume input::-moz-range-track { height: 6px; border-radius: 8px; border: 3px solid var(--sk-ink); background: #fff; }
.hc-volume input::-moz-range-progress { height: 6px; border-radius: 8px; background: var(--sk-orange); }
.hc-volume input::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%;
  border: 3px solid var(--sk-ink); background: #fff; box-shadow: 0 2px 0 var(--sk-ink);
}
.hc-volume input::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--sk-ink); background: #fff; }
.hc-volume input:focus-visible { outline: 3px solid #3aa0ff; outline-offset: 2px; }
.hc-credit { margin-top: 16px; padding-top: 12px; border-top: 3px solid var(--sk-ink); display: grid; justify-items: center; gap: 4px; }
.hc-credit img { width: min(190px, 60%); height: auto; display: block; }
.hc-credit span { font-size: 12px; font-weight: 700; color: #6a5f52; }
@media (max-height: 460px) {
  .hc-pause-title { font-size: 22px; margin-bottom: 6px; }
  .hc-pause-actions { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .hc-pause-actions .sk-btn { font-size: 14px; padding: 9px 6px; }
  .hc-audio { order: 1; gap: 4px; padding: 6px; border-radius: 14px; }   /* Resume and Home on top, the two boxes under them */
  .hc-settings-actions .hc-audio { order: 0; }                       /* settings: the two boxes side by side, Done under them */
  .hc-settings-actions .sk-btn-primary { grid-column: 1 / -1; order: 1; }
  .hc-volume { font-size: 14px; }
  .hc-credit { margin-top: 8px; padding-top: 6px; }
  .hc-credit img { width: 120px; }
}

/* World tiles: a picture of the world on top */
.hc-world { padding: 4px 4px 6px; }
.hc-world-pic { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 7px; overflow: hidden; border: 2px solid var(--sk-ink); background: #cfd8e3; margin-bottom: 3px; }
.hc-world-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Locked worlds keep their colours, so the player can see what they are playing for. */
.hc-world.is-locked .hc-world-pic img { filter: brightness(.82) saturate(.9); }
.hc-world-pic i { position: absolute; right: 4px; top: 4px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(20, 22, 30, .78); border: 2px solid #fff; }
.hc-world-pic i svg { width: 13px; height: 13px; }
.hc-panel { width: min(460px, 100%); }
@media (max-height: 460px) { .hc-world-pic { aspect-ratio: 16 / 6; } }

/* Eleven worlds: the picker scrolls inside the home panel */
.hc-worlds { max-height: 44vh; overflow-y: auto; touch-action: pan-y; padding: 4px; margin-left: -4px; margin-right: -4px; }
.hc-worlds * { touch-action: pan-y; }

/* Main screen: the Storky stands in the world (drawn on the canvas);
   this layer is just a title and four buttons. */
.hc-home { background: none; display: block; pointer-events: none; padding: 0; }
.hc-home > * { pointer-events: auto; }
.hc-home-top {
  position: absolute; left: 50%; transform: translateX(-50%); top: calc(64px + var(--sk-safe-t));
  background: var(--sk-paper); border: 4px solid var(--sk-ink); border-radius: 18px; box-shadow: 0 5px 0 rgba(0, 0, 0, .4);
  padding: 8px 18px 8px; text-align: center; width: max-content; max-width: calc(100% - 24px);
}
.hc-home-top .hc-title { margin: 0; font-size: clamp(22px, 6vw, 34px); white-space: nowrap; }
.hc-home-top .hc-home-stats { margin-top: 4px; gap: 18px; justify-content: center; font-size: 14px; }
.hc-home-bar {
  position: absolute; left: 0; right: 0; bottom: calc(14px + var(--sk-safe-b));
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  padding: 0 calc(12px + var(--sk-safe-r)) 0 calc(12px + var(--sk-safe-l)); max-width: 620px; margin: 0 auto;
}
.hc-nav { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 6px; min-width: 0; text-align: left; }
.hc-nav svg { flex: none; }
.hc-nav span { display: grid; min-width: 0; line-height: 1.15; }
.hc-nav b { font-size: 15px; font-weight: 900; }
.hc-nav i { font-style: normal; font-size: 11px; font-weight: 700; color: #6a5f52; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-play { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 24px; padding: 13px 20px; }
@media (min-aspect-ratio: 1/1) {
  .hc-home-bar { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 860px; }
  .hc-play { grid-column: auto; font-size: 20px; padding: 9px 12px; }
}
@media (max-width: 380px) { .hc-nav { flex-direction: column; gap: 2px; text-align: center; } }
.hc-page-title { margin: 0 0 8px; font-size: 24px; font-weight: 900; }
.hc-worlds-panel { width: min(560px, 100%); }
.hc-worlds-panel .hc-worlds { max-height: none; }

/* Shield pedal: above GAS, mirror of JUMP */
.hc-shield { left: auto; right: calc(30px + var(--sk-safe-r)); background: rgba(170, 215, 255, .92); }
.hc-shield.is-on { background: #7bd3ff; box-shadow: 0 0 0 5px rgba(123, 211, 255, .6), 0 5px 0 rgba(0, 0, 0, .55); }
.hc-shield.is-empty { background: rgba(210, 212, 218, .8); color: #6b6f78; }
.hc-badge { position: absolute; right: -4px; top: -4px; min-width: 24px; height: 24px; padding: 0 5px; border-radius: 12px; background: var(--sk-ink); color: #fff; font-style: normal; font-size: 13px; font-weight: 900; display: grid; place-items: center; border: 2px solid #fff; }

/* Wide screens have room for the title beside the sound buttons */
@media (min-aspect-ratio: 1/1) { .hc-home-top { top: calc(12px + var(--sk-safe-t)); max-width: calc(100% - 260px); } }

/* Garage: extra shields, bought with rewarded ads */
.hc-up-shield { background: #eaf6ff; }
.hc-shield-count { font-size: 13px; font-weight: 800; color: #1d5f9a; margin-top: 4px; }
@media (max-height: 460px) { .hc-up-shield { grid-column: 1 / -1; } }

/* Gift button on the main screen, and the gift pop-up */
.hc-gift {
  position: absolute; left: calc(10px + var(--sk-safe-l)); top: calc(10px + var(--sk-safe-t));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 0;
  width: 92px; height: 92px; font-size: 11px; line-height: 1.1; text-align: center;
  border-width: 3px; border-radius: 50%; box-shadow: 0 4px 0 var(--sk-ink); background: #e8dfcf; color: #6a5f52;
}
.hc-gift span { display: grid; justify-items: center; gap: 2px; font-weight: 800; }
.hc-gift b { font-size: 16px; font-weight: 900; color: var(--sk-ink); font-variant-numeric: tabular-nums; }
.hc-gift.is-ready { background: #ffe15a; color: var(--sk-ink); font-size: 17px; animation: hc-nudge 1.6s ease-in-out infinite; }
.hc-gift.is-ready span { width: min-content; gap: 0; line-height: 1; font-weight: 900; text-transform: uppercase; letter-spacing: .3px; }
.hc-gift.is-ready .hc-adtag { margin-top: 3px; }
@keyframes hc-nudge { 0%, 70%, 100% { transform: none; } 80% { transform: rotate(-4deg) scale(1.05); } 90% { transform: rotate(4deg) scale(1.05); } }
@media (prefers-reduced-motion: reduce) { .hc-gift.is-ready { animation: none; } }
/* Phones: the gift button sits on the left edge, 25% down the screen */
@media (max-width: 768px), (max-height: 500px) { .hc-gift { top: 25%; } }
.hc-notice { width: min(320px, 100%); }
.hc-notice-icon { color: var(--sk-orange); }
.hc-notice-icon svg { width: 54px; height: 54px; }
.hc-notice-title { font-size: 32px; font-weight: 900; line-height: 1.1; margin: 2px 0 4px; }
.hc-notice-body { font-weight: 700; color: #6a5f52; }

/* Nitro pedal: in the middle, between the two pairs of pedals */
.hc-nitro { left: 50%; margin-left: -44px; bottom: calc(88px + var(--sk-safe-b)); background: rgba(255, 170, 90, .94); }
.hc-nitro.is-on { background: #ff7a1a; color: #fff; box-shadow: 0 0 0 5px rgba(255, 150, 60, .6), 0 5px 0 rgba(0, 0, 0, .55); }
.hc-nitro.is-empty { background: rgba(210, 212, 218, .8); color: #6b6f78; }
@media (max-width: 380px) { .hc-nitro { width: 74px; height: 74px; margin-left: -37px; } }
@media (max-height: 460px) { .hc-nitro { bottom: calc(84px + var(--sk-safe-b)); } }

/* Garage: nitro, bought with coins */
.hc-up-nitro { background: #fff1e2; }
.hc-nitro-count { font-size: 13px; font-weight: 800; color: #b3500f; margin-top: 4px; }
@media (max-height: 460px) { .hc-up-nitro { grid-column: 1 / -1; } }

/* Garage: two ways to pay for one thing, coins or a rewarded ad */
.hc-pay { display: grid; gap: 6px; }

/* Royal Pass: the button on the main screen */
.hc-rank {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; flex: none;
  background: #fff; border: 4px solid var(--sk-ink); font-weight: 900; font-size: 19px; font-style: normal; font-variant-numeric: tabular-nums;
}
.hc-frame-bronze { background: #f3d2b0; border-color: #a8632c; box-shadow: 0 0 0 2px var(--sk-ink); }
.hc-frame-silver { background: #f1f4f7; border-color: #9aa6b2; box-shadow: 0 0 0 2px var(--sk-ink); }
.hc-frame-gold { background: #fff3b0; border-color: #e0a310; box-shadow: 0 0 0 2px var(--sk-ink); }
.hc-frame-royal { background: #fff3b0; border-color: #8a4fd6; box-shadow: 0 0 0 2px var(--sk-ink), 0 0 0 5px #ffd23b; animation: hc-royal 2.4s linear infinite; }
@keyframes hc-royal { 0%, 100% { border-color: #8a4fd6; } 33% { border-color: #e0468a; } 66% { border-color: #2f8cff; } }
.hc-rp {
  position: absolute; right: calc(10px + var(--sk-safe-r)); top: calc(64px + var(--sk-safe-t));
  display: grid; justify-items: center; gap: 3px; width: 92px; padding: 6px 6px 8px; border-radius: 18px; background: #e9dcff; line-height: 1.05;
}
.hc-rp > i { font-style: normal; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .3px; }
.hc-rp-bar, .hc-ms-bar { display: block; width: 100%; height: 9px; border-radius: 5px; border: 2px solid var(--sk-ink); background: #fff; overflow: hidden; }
.hc-rp-bar u, .hc-ms-bar u { display: block; height: 100%; background: #8a4fd6; }
.hc-rp .hc-badge { background: #d6322a; right: -8px; top: -8px; }
@media (max-width: 768px), (max-height: 500px) { .hc-rp { top: 25%; } }
@media (prefers-reduced-motion: reduce) { .hc-frame-royal { animation: none; } }
.hc-home-rank { font-size: 12px; font-weight: 900; color: #6a3fb0; text-transform: uppercase; letter-spacing: .5px; margin-top: 2px; }

/* Results: RP earned this run */
.hc-rp-won { margin-top: 8px; padding: 7px 10px; border: 3px solid var(--sk-ink); border-radius: 12px; background: #e9dcff; display: grid; gap: 2px; text-align: left; }
.hc-rp-won b { font-weight: 900; }
.hc-rp-won span { font-size: 13px; font-weight: 700; }
.hc-rp-won svg { vertical-align: -3px; margin-right: 4px; color: #1d8a52; }

/* The Royal Pass page: head and tabs stay put, the list scrolls */
.hc-pass { width: min(520px, 100%); height: min(680px, 100%); display: flex; flex-direction: column; overflow: hidden; text-align: left; }
.hc-pass-head { display: flex; align-items: center; gap: 12px; }
.hc-pass-head .hc-rank { width: 62px; height: 62px; font-size: 26px; }
.hc-pass-info { flex: 1; min-width: 0; display: grid; gap: 3px; font-size: 13px; font-weight: 700; color: #6a5f52; }
.hc-pass-info h2 { margin: 0; font-size: 24px; font-weight: 900; line-height: 1; color: var(--sk-ink); }
.hc-pass-info b { color: var(--sk-ink); }
.hc-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 10px 0 8px; }
.hc-tabs .sk-btn { position: relative; }
.hc-small.is-on { background: #8a4fd6; color: #fff; }
.hc-pass-body { flex: 1; min-height: 0; overflow-y: auto; touch-action: pan-y; padding: 3px 5px 0 3px; position: relative; }
.hc-pass-body > * { margin-bottom: 6px; }
.hc-pass-body * { touch-action: pan-y; }
.hc-pass .hc-actions { margin-top: 10px; flex-wrap: nowrap; }
.hc-pass .hc-actions .sk-btn { white-space: nowrap; }
.hc-pass .hc-actions .sk-btn-primary { font-size: 17px; padding: 10px 20px; }
/* The title and wallet from the main screen sit above the page; claimed coins fly into the wallet */
.hc-pass-screen { flex-direction: column; gap: 10px; }
.hc-pass-screen .hc-pass { height: auto; flex: 0 1 680px; min-height: 0; }
.hc-pass-top { position: static; transform: none; flex: none; }
.hc-pass-wallet { display: inline-block; }
.hc-fly { position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none; font-size: 22px; will-change: transform; }
.hc-fly .hc-coin { display: block; width: 1em; height: 1em; margin: -.5em 0 0 -.5em; will-change: transform, opacity; }
@media (max-height: 460px) {
  .hc-pass-screen { gap: 6px; }
  .hc-pass-top { display: flex; align-items: center; gap: 16px; padding: 3px 14px; }
  .hc-pass-top .hc-title { font-size: 18px; }
  .hc-pass-top .hc-home-stats { margin-top: 0; }
}
.hc-pass-note { margin: 20px 8px; text-align: center; font-weight: 700; color: #6a5f52; }
.hc-rk { display: flex; align-items: center; gap: 10px; background: #fff; border: 3px solid var(--sk-ink); border-radius: 14px; padding: 6px 10px; min-height: 52px; }
.hc-rk.is-big { background: #fff1d6; }
.hc-rk.is-ready { box-shadow: 0 0 0 3px #8a4fd6; }
.hc-rk.is-locked { background: #efe8da; }
.hc-rk.is-locked.is-big { background: #efe2c4; }
.hc-rk-n { width: 34px; text-align: center; font-size: 19px; font-weight: 900; font-variant-numeric: tabular-nums; flex: none; }
.hc-rk-what { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.hc-rk-what i { font-style: normal; font-size: 12px; font-weight: 700; color: #6a5f52; }
.hc-rk-state { width: 30px; display: grid; place-items: center; color: #6a5f52; flex: none; }
.hc-rk.is-claimed .hc-rk-state { color: #1d8a52; }
.hc-rk.is-claimed .hc-rk-what { opacity: .55; }
.hc-rw { font-size: 13.5px; font-weight: 800; border: 2px solid var(--sk-ink); border-radius: 999px; padding: 2px 9px; background: #fff; white-space: nowrap; }
.hc-rw-look { background: #e9dcff; }
.hc-rw-nitro { background: #ffe3c8; }
.hc-rw-shield { background: #dcefff; }
.hc-rw-fuel { background: #ffd9d4; }
.hc-rw .hc-coin { margin-right: .25em; }
.hc-claim { min-width: 76px; font-size: 15px; padding: 7px 10px; background: #8a4fd6; color: #fff; }
.hc-ms-head { margin: 6px 2px 0; font-size: 17px; font-weight: 900; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.hc-ms-head i { font-style: normal; font-size: 12px; font-weight: 700; color: #6a5f52; }
.hc-ms-head svg { vertical-align: -3px; }
.hc-ms { display: flex; align-items: center; gap: 10px; background: #fff; border: 3px solid var(--sk-ink); border-radius: 14px; padding: 7px 10px; }
.hc-ms.is-done { background: #dff3e6; }
.hc-ms-info { flex: 1; min-width: 0; display: grid; gap: 5px; }
.hc-ms-info b { font-size: 14.5px; font-weight: 800; }
.hc-ms-rp { display: grid; justify-items: end; font-weight: 900; font-size: 14px; font-variant-numeric: tabular-nums; flex: none; }
.hc-ms-rp i { font-style: normal; font-size: 12px; color: #6a3fb0; }
.hc-ms-rp svg { color: #1d8a52; }
.hc-look { background: #fff; border: 3px solid var(--sk-ink); border-radius: 14px; padding: 7px 10px 9px; }
.hc-look b { font-weight: 900; }
.hc-look-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
@media (max-height: 460px) {
  .hc-pass-head .hc-rank { width: 44px; height: 44px; font-size: 19px; }
  .hc-pass-info h2 { font-size: 18px; }
  .hc-tabs { margin: 6px 0; }
  .hc-pass .hc-actions { margin-top: 6px; }
}
.hc-tabs .hc-badge { right: -6px; top: -10px; }

/* First-run controls hint */
.hc-tut { position: fixed; left: 50%; top: calc(122px + var(--sk-safe-t)); transform: translateX(-50%); z-index: 20; pointer-events: none; display: grid; justify-items: center; gap: 8px; }
.hc-tut-row { display: flex; gap: 10px; }
.hc-tut-key, .hc-tut-cap { display: grid; justify-items: center; gap: 3px; background: rgba(255, 255, 255, .92); border: 3px solid var(--sk-ink); border-radius: 12px; padding: 6px 12px; font-size: 12px; font-weight: 900; letter-spacing: .06em; box-shadow: 0 3px 0 var(--sk-ink); }
.hc-tut-key b { font-size: 20px; line-height: 1; }
.hc-tut-wide { font-size: 15px; }
.hc-tut-goal { font-size: 15px; font-weight: 900; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .6), 0 0 6px rgba(0, 0, 0, .5); }
.hc-tut-skip { pointer-events: auto; font-family: inherit; font-size: 12px; font-weight: 800; background: rgba(0, 0, 0, .45); color: #fff; border: 0; border-radius: 999px; padding: 4px 12px; cursor: pointer; }
@media (max-height: 460px) { .hc-tut { top: 96px; } .hc-tut-key { padding: 4px 9px; } }

/* Keyboard focus: a clear ring on every menu control (arrows / WASD move it) */
.hc-screen button:focus-visible, .hc-screen [tabindex]:focus-visible, .sk-select button:focus-visible, .sk-ad button:focus-visible,
body > button:focus-visible { outline: 4px solid #3aa0ff; outline-offset: 3px; }

/* Crates: some pass ranks come in a box that is tapped open in the middle of the screen */
.hc-tier-wood { --c1: #d39a5c; --c2: #9a6532; --c3: #ffd23b; --glow: 255, 210, 90; }
.hc-tier-blue { --c1: #58aaff; --c2: #2572d6; --c3: #ffe15a; --glow: 120, 200, 255; }
.hc-tier-gold { --c1: #ffd23b; --c2: #e09a10; --c3: #fff; --glow: 255, 225, 90; }
.hc-tier-royal { --c1: #9a5ee6; --c2: #5f2fb0; --c3: #ffd23b; --glow: 200, 140, 255; }
.hc-crate-ico { position: relative; width: 26px; height: 22px; flex: none; border: 2.5px solid var(--sk-ink); border-radius: 5px; background: linear-gradient(var(--c1) 0 38%, var(--sk-ink) 38% 48%, var(--c1) 48%); box-shadow: inset 0 -4px 0 var(--c2); }
.hc-rk-n .hc-crate-ico { display: block; margin: 3px auto 0; }
.hc-crate-ico i { position: absolute; left: 50%; top: 30%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--c3); border: 2px solid var(--sk-ink); }
.hc-crate-screen {
  --heat: 0; position: fixed; inset: 0; z-index: 55; overflow: hidden; cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: manipulation;
  display: grid; grid-template-rows: 1fr auto 1fr; justify-items: center; align-items: center;
  background: radial-gradient(circle at 50% 50%, rgba(var(--glow), calc(.3 + var(--heat) * .5)) 0, rgba(var(--glow), 0) 62%), rgba(16, 19, 28, .95);
  padding: calc(14px + var(--sk-safe-t)) 14px calc(14px + var(--sk-safe-b));
}
.hc-crate-rays {
  position: absolute; left: 50%; top: 50%; width: 170vmax; height: 170vmax; margin: -85vmax 0 0 -85vmax; pointer-events: none;
  background: repeating-conic-gradient(rgba(var(--glow), .22) 0 10deg, transparent 10deg 20deg);
  opacity: calc(.25 + var(--heat) * .75); animation: hc-spin 14s linear infinite;
  -webkit-mask-image: radial-gradient(circle, #000 0, transparent 60%); mask-image: radial-gradient(circle, #000 0, transparent 60%);
}
@keyframes hc-spin { to { transform: rotate(360deg); } }
.hc-crate-title { position: relative; align-self: end; margin-bottom: 26px; display: grid; justify-items: center; color: #fff; text-align: center; text-shadow: 0 3px 0 rgba(0, 0, 0, .5); }
.hc-crate-title i { font-style: normal; font-weight: 800; font-size: 16px; opacity: .85; text-transform: uppercase; letter-spacing: 1px; }
.hc-crate-title b { font-weight: 900; font-size: clamp(30px, 8vw, 44px); line-height: 1.05; }
.hc-crate-stage { position: relative; }
.hc-crate-glow { position: absolute; inset: -55%; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(var(--glow), .95) 0, rgba(var(--glow), 0) 65%); opacity: calc(.2 + var(--heat) * .8); animation: hc-pulse 1.1s ease-in-out infinite; }
@keyframes hc-pulse { 50% { transform: scale(1.12); } }
.hc-crate { position: relative; display: block; width: min(210px, 52vw, 40vh); aspect-ratio: 10 / 9; padding: 0; border: 0; background: none; cursor: pointer; animation: hc-bob 1.4s ease-in-out infinite; -webkit-tap-highlight-color: transparent; }
.hc-crate:focus { outline: none; }
@keyframes hc-bob { 50% { translate: 0 -8px; } }
.hc-crate-box { position: absolute; left: 4%; right: 4%; bottom: 0; height: 62%; border: 5px solid var(--sk-ink); border-radius: 8px 8px 18px 18px; background: linear-gradient(90deg, var(--c1) 0 38%, var(--c3) 38% 62%, var(--c1) 62%); box-shadow: inset 0 -16px 0 rgba(0, 0, 0, .18), 0 10px 0 rgba(0, 0, 0, .4); }
.hc-crate-box::before { content: ""; position: absolute; left: -5px; right: -5px; top: -12px; height: 14px; border-radius: 6px; background: rgba(var(--glow), 1); box-shadow: 0 0 calc(10px + var(--heat) * 40px) calc(var(--heat) * 14px) rgba(var(--glow), 1); opacity: var(--heat); }
.hc-crate-lid { position: absolute; left: 0; right: 0; top: 6%; height: 36%; border: 5px solid var(--sk-ink); border-radius: 20px 20px 8px 8px; background: linear-gradient(90deg, var(--c1) 0 38%, var(--c3) 38% 62%, var(--c1) 62%); box-shadow: inset 0 -9px 0 rgba(0, 0, 0, .2); transform-origin: 8% 100%; transform: translateY(calc(var(--heat) * -9px)) rotate(calc(var(--heat) * -5deg)); }
.hc-crate-lid::after { content: ""; position: absolute; left: 50%; bottom: -17px; width: 30px; height: 30px; margin-left: -15px; border-radius: 50%; background: var(--c2); border: 5px solid var(--sk-ink); }
.hc-crate-hint { position: relative; align-self: start; margin-top: 34px; display: grid; justify-items: center; gap: 10px; color: #fff; }
.hc-crate-hint b { font-weight: 900; font-size: 30px; text-transform: uppercase; letter-spacing: 2px; text-shadow: 0 3px 0 rgba(0, 0, 0, .5); animation: hc-tap .5s ease-in-out infinite alternate; }
@keyframes hc-tap { to { transform: scale(1.18); } }
.hc-crate-pips { display: flex; gap: 7px; }
.hc-crate-pips i { width: 30px; height: 12px; border-radius: 6px; border: 3px solid #fff; background: rgba(255, 255, 255, .15); }
.hc-crate-pips i.is-on { background: var(--c3); box-shadow: 0 0 10px rgba(var(--glow), 1); }
.hc-crate-fx, .hc-crate-flash, .hc-zaps { position: fixed; inset: 0; pointer-events: none; }
.hc-crate-flash { background: #fff; opacity: 0; }
.hc-spark { position: fixed; border-radius: 50%; border: 2px solid var(--sk-ink); will-change: transform, opacity; }
.hc-spark.is-star { border: 0; border-radius: 0; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.hc-crate-loot { display: none; position: relative; grid-row: 3; align-self: start; margin-top: 22px; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 420px; cursor: default; }
.hc-crate-loot > b { flex-basis: 100%; text-align: center; color: #fff; font-weight: 900; font-size: 26px; text-shadow: 0 3px 0 rgba(0, 0, 0, .5); }
.hc-crate-loot .hc-rw { font-size: 19px; padding: 6px 16px; border-width: 3px; box-shadow: 0 4px 0 rgba(0, 0, 0, .45); }
.hc-crate-loot .sk-btn { flex-basis: 100%; max-width: 200px; margin-top: 12px; }
.hc-crate-screen.is-open { cursor: default; }
.hc-crate-screen.is-open .hc-crate-loot { display: flex; }
.hc-crate-screen.is-open .hc-crate { animation: none; }
.hc-rk.is-crate .hc-claim { background: var(--sk-orange); }
@media (max-height: 460px) {
  .hc-crate-title { margin-bottom: 8px; }
  .hc-crate-title b { font-size: 24px; }
  .hc-crate { width: min(150px, 34vh); }
  .hc-crate-hint { margin-top: 12px; gap: 4px; }
  .hc-crate-hint b { font-size: 20px; }
  .hc-crate-loot { margin-top: 8px; }
  .hc-crate-loot > b { font-size: 18px; }
  .hc-crate-loot .hc-rw { font-size: 15px; padding: 3px 12px; }
  .hc-crate-loot .sk-btn { margin-top: 4px; font-size: 16px; padding: 7px 20px; }
}
@media (prefers-reduced-motion: reduce) { .hc-crate-rays, .hc-crate-glow, .hc-crate, .hc-crate-hint b { animation: none; } }
.hc-zaps svg { filter: drop-shadow(0 0 5px #6cc4ff); }
.hc-pop { position: absolute; pointer-events: none; }
.hc-pop svg { display: block; width: 100%; height: 100%; overflow: visible; }
.hc-crate-fx .hc-pop { position: fixed; }

/* Royal Pass pictures: a reward is a small tile, the drawing on top and a short caption under it */
.hc-rw { display: inline-grid; justify-items: center; gap: 1px; border-radius: 12px; padding: 4px 7px 3px; min-width: 56px; }
.hc-rw small { font-size: 11.5px; font-weight: 800; line-height: 1.15; }
.hc-art { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: none; }
.hc-art svg { width: 100%; height: 100%; display: block; overflow: visible; }
.hc-art .hc-coin { font-size: 25px; margin: 0; flex: none; }
.hc-art .hc-coin + .hc-coin { margin-left: -.62em; }
.hc-art .hc-rank { width: 32px; height: 32px; font-size: 14px; border-width: 3px; color: var(--sk-ink); }
.hc-art .hc-crate-ico { width: 32px; height: 27px; }
.hc-art b { font-size: 30px; font-weight: 900; line-height: 1; color: #8a4fd6; }
.hc-rw-crate { background: #fff1d6; }
.hc-rw-what { background: #e9dcff; border-style: dashed; }
.hc-rk { min-height: 70px; }
/* My looks: every choice shows what it looks like */
.hc-opt { display: grid; justify-items: center; gap: 2px; padding: 6px 8px 5px; min-width: 76px; }
.hc-opt .hc-art { width: 44px; height: 44px; }
.hc-opt .hc-art .hc-rank { width: 40px; height: 40px; font-size: 17px; }
.hc-opt small { font-size: 12px; font-weight: 800; }
.hc-opt.is-on .hc-art { filter: drop-shadow(0 0 0 #fff); background: #fff; border-radius: 10px; }
/* Out of a crate the tiles are bigger */
.hc-crate-loot .hc-rw { padding: 8px 12px 6px; min-width: 92px; border-radius: 16px; }
.hc-crate-loot .hc-rw .hc-art { width: 60px; height: 60px; }
.hc-crate-loot .hc-rw .hc-coin { font-size: 40px; }
.hc-crate-loot .hc-rw .hc-rank { width: 52px; height: 52px; font-size: 22px; border-width: 4px; }
.hc-crate-loot .hc-rw small { font-size: 15px; }
@media (max-height: 460px) {
  .hc-rk { min-height: 0; }
  .hc-crate-loot .hc-rw { padding: 4px 9px; min-width: 70px; }
  .hc-crate-loot .hc-rw .hc-art { width: 38px; height: 38px; }
  .hc-crate-loot .hc-rw .hc-coin { font-size: 26px; }
  .hc-crate-loot .hc-rw .hc-rank { width: 34px; height: 34px; font-size: 15px; border-width: 3px; }
  .hc-crate-loot .hc-rw small { font-size: 12px; }
}

