html[data-ludik-theme="comic"] #content[data-game="hilo"] {
  width: min(100%, 1820px);
  max-width: none;
  padding: 0 0 20px;
  background: #ff1746 radial-gradient(#1a090d66 .75px, transparent 1.25px) 0 0 / 5px 5px;
}

html[data-ludik-theme="comic"]:has(#content[data-game="hilo"]) { overflow-anchor: none; }

.hilo-comic,
dialog[data-variant^="hilo-"] {
  --hilo-ink: #100d09;
  --hilo-cream: #fff1d9;
  --hilo-lemon: #ffed07;
  --hilo-pink: #ff0070;
  --hilo-mint: #81ffb1;
  --hilo-fiber: url("/redesign-art/hilo-paper.webp");
  --hilo-display: Impact, "Arial Narrow", "Roboto Condensed", var(--font-interface, system-ui), sans-serif;
  --hilo-edge: polygon(
    0% 8%, 1.2% 5.8%, 2.2% 2.4%, 4.2% 1.7%, 6% 2.4%, 8.3% .4%, 10.6% 1.6%,
    12.9% 1.8%, 14.6% 0%, 16.8% .8%, 19.2% 2%, 21.3% 1.5%, 23.5% 2.8%, 26% 2.3%,
    28% 1.6%, 30.4% 1.6%, 32.7% .1%, 34.6% 1.2%, 37.2% 2.4%, 39.2% 1.4%, 42.6% .4%,
    44.5% 1.6%, 47.3% 1.2%, 49.7% 2.1%, 51.8% .5%, 54% 1.3%, 57% 3%, 59.9% 1.7%,
    62.2% 2.2%, 65% .9%, 67.6% 1.2%, 70.4% 0%, 73% 1.4%, 76% 2.4%, 78.5% 1.6%,
    81% 1.7%, 83.3% 3%, 86.5% 1.3%, 88.6% .8%, 91% 1.9%, 93.5% .4%, 95.2% 1.3%,
    97.7% 4.5%, 98.2% 7.3%, 99.7% 10%, 98.9% 13.4%, 100% 17%, 98.6% 20.7%, 99.6% 23.2%,
    98.9% 26.4%, 100% 30%, 98.8% 33.7%, 99.5% 37.3%, 99% 41.2%, 100% 44.9%, 99% 48.7%,
    99.6% 51.9%, 98.7% 55.1%, 99.6% 59.6%, 98.6% 63.1%, 100% 66.7%, 99.1% 70.8%, 99.3% 75%,
    98.5% 78%, 99.8% 81.5%, 99.6% 84.5%, 98.3% 88.3%, 99.1% 91.4%, 97% 94.4%, 96.2% 97.7%,
    93.9% 98.8%, 91.6% 98.4%, 89% 100%, 86.4% 98.6%, 84.6% 99.1%, 82.2% 97.7%, 79.2% 98.4%,
    77.4% 97.3%, 74.2% 98.5%, 71.7% 99%, 69.7% 98.2%, 67.6% 99.6%, 65.4% 97.8%, 62.9% 98.1%,
    61.3% 97.4%, 58.5% 98.6%, 56.4% 97.9%, 53.4% 99.5%, 51% 98.4%, 48.3% 99.2%, 45.8% 97.6%,
    42.9% 97.8%, 40.3% 99.1%, 38.5% 98.7%, 36.2% 100%, 34% 98.4%, 31.5% 98.7%, 29% 97.3%,
    27% 98.1%, 24.3% 99.1%, 21.6% 98.1%, 19.4% 98.4%, 17% 97.2%, 14.5% 98.3%, 12.2% 97.5%,
    9.6% 99%, 7.2% 98.1%, 4.7% 98.5%, 2.7% 97.1%, 2.2% 93.4%, .8% 90.7%, 1.4% 87.1%,
    0% 83.9%, .8% 80.6%, .3% 77.7%, 1.6% 73.1%, .4% 70%, 1.1% 66.5%, 0% 63.5%,
    .6% 60.4%, 0% 57.1%, 1.3% 53.3%, .4% 49%, 1.2% 46%, .3% 42.4%, 1.3% 38.6%,
    0% 35.1%, .8% 31.3%, .2% 28.6%, 1.4% 25.4%, .4% 22.1%, 1.1% 18.1%, .2% 14.8%,
    1.5% 11.1%
  );
  color: var(--hilo-ink);
  color-scheme: light;
  font-synthesis: style;
}

.hilo-comic { container-type: inline-size; }
.hilo-comic [hidden] { display: none !important; }
.hilo-comic .hilo-paper {
  isolation: isolate;
  --paper-border: clamp(2px, .25cqw, 5px);
}
.hilo-comic .hilo-paper::before,
.hilo-comic .hilo-paper::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  clip-path: var(--hilo-edge);
  background: var(--hilo-ink);
  pointer-events: none;
  content: "";
}
.hilo-comic .hilo-paper::after {
  inset: var(--paper-border);
  background: var(--hilo-cream) var(--hilo-fiber) center / clamp(225px, 22cqw, 380px) auto repeat;
}
.hilo-comic :is(button,summary,input):focus-visible {
  outline: 3px solid #7c0038;
  outline-offset: 3px;
}
.hilo-comic button { touch-action: manipulation; }
.hilo-comic button:disabled { cursor: default; opacity: 1; }
.hilo-comic h2 { margin: 0; }
.hilo-comic img { display: block; }
.hilo-scene {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1672 / 864;
  overflow: clip;
  background: #ff1746;
  --hilo-caption-size: clamp(.82rem, 2.2cqw, 2.65rem);
  --hilo-caption-gap: .78cqw;
}
.hilo-scene::before {
  --dot: clamp(6.4px, .52cqw, 9px);
  --offset: calc(var(--dot) / 2);
  position: absolute;
  inset: -35%;
  z-index: -1;
  background:
    radial-gradient(circle, #170c08 0 19%, transparent 29%) 0 0 / var(--dot) var(--dot),
    radial-gradient(circle, #170c08 0 19%, transparent 29%) var(--offset) var(--offset) / var(--dot) var(--dot),
    repeating-linear-gradient(0deg, #7d091119 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at 58% 47%, #ff375c 0%, #ff1346 61%, #fb143d 100%);
  transform: rotate(-17deg);
  pointer-events: none;
  content: "";
}
.hilo-scene > section + section { margin-top: 0; }

.hilo-hero { position: absolute; inset: 0 auto auto 0; width: 27.6%; height: 57.2%; z-index: 2; }
.hilo-title { position: absolute; inset: .1% 0 auto; margin: 0; }
.hilo-title img { width: 100%; height: auto; }
.hilo-mascot {
  position: absolute;
  width: 89.15%;
  top: 44.6%;
  left: 5.42%;
  aspect-ratio: 411 / 273;
  font-size: 9cqw;
  perspective: 600px;
}
.hilo-mascot-art { position: relative; width: 100%; height: auto; pointer-events: none; }
.hilo-coin { position: absolute; top: 29.67%; left: 72.263%; width: 17.518%; height: auto; pointer-events: none; }
.hilo-mascot-tap {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  clip-path: polygon(
    1% 93%, 10.5% 76.2%, 16.1% 71.4%, 17% 64.1%, 21.9% 56.4%, 28.7% 53.5%, 22.9% 48%,
    23.1% 43.6%, 33.6% 31.5%, 34.5% 21.2%, 39.2% 13.2%, 47.9% 4.4%, 56.9% 1.5%, 64.7% 4.4%,
    69.3% 12.5%, 71.5% 19.4%, 75.9% 25.6%, 74% 33%, 71.5% 34.4%, 71.3% 49.5%, 69.1% 55.3%,
    65.2% 60.1%, 65.2% 64.1%, 71.8% 67.8%, 74.9% 72.2%, 76.6% 60.1%, 74.5% 56%, 78.1% 51.6%,
    72.5% 48.7%, 72.7% 39.2%, 76.2% 32.2%, 81.3% 30.4%, 86.9% 34.1%, 89.1% 41.8%, 87.8% 49.1%,
    94.9% 58.6%, 93.9% 71.1%, 92.2% 79.9%, 96.8% 86.1%, 99.5% 98.9%, 73.2% 98.5%, 56% 96.3%,
    53.8% 92.3%, 34.8% 93.4%, 17% 94.1%
  );
}
.hilo-mascot:has(:focus-visible) { filter: drop-shadow(0 0 4px white) drop-shadow(0 0 3px black); }
.hilo-table {
  position: absolute;
  inset: 3.25% 25.65% auto 25.2%;
  z-index: 1;
  height: 67.35%;
  padding: 1.96% 3.1% 1% 4.4%;
  --paper-border: clamp(2px, .32cqw, 6px);
}
@media (min-width: 901px) {
  .hilo-table .hilo-card-slot:first-child .hilo-card-art { translate: 1.06cqw 0; }
  .hilo-table .hilo-card-slot:nth-child(2) .hilo-card-art { translate: -.95cqw 0; }
}
.hilo-table-rays {
  position: absolute;
  inset: 32% 3.9% auto 3.2%;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.hilo-table-rays svg { display: block; width: 8.5%; fill: var(--hilo-ink); }
.hilo-table-rays svg:nth-child(2) { transform: scaleX(-1) rotate(-5deg); }
.hilo-side-bolt {
  position: absolute;
  inset: 61.5% auto auto 21.1%;
  width: 5.8%;
  transform: rotate(-19deg);
}
.hilo-side-bolt svg { fill: var(--hilo-lemon); stroke: var(--hilo-ink); stroke-width: 3; }
.hilo-bottom-rays {
  position: absolute;
  z-index: -1;
  inset: auto 7.1% 1% 16%;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.hilo-bottom-rays svg { width: clamp(35px, 4.7cqw, 84px); fill: var(--hilo-cream); stroke: var(--hilo-ink); stroke-width: 4; transform: rotate(9deg); }
.hilo-bottom-rays svg:nth-child(2) { transform: scaleX(-1) rotate(-4deg); }

html[data-ludik-theme="comic"] #content[data-game="hilo"] .hilo-controls#game-sidebar {
  position: absolute;
  inset: 6.15% 1.05% auto 74.55%;
  height: 66.15%;
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: .64cqw;
  padding: 3.05cqw 1.85cqw 1.25cqw;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--hilo-ink);
  overflow: visible;
}
.hilo-wager { min-width: 0; }
.hilo-wager h2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 .22em .21em;
  font: italic 900 clamp(22px, 3.4cqw, 65px)/1 var(--hilo-display);
  letter-spacing: -.035em;
}
.hilo-wager h2 :is(label,span) {
  position: relative;
  font: inherit;
  letter-spacing: inherit;
  transform: rotate(-2deg);
}
.hilo-wager h2 :is(label,span)::after {
  position: absolute;
  inset: auto .03em -.1em -.03em;
  height: .13em;
  background: var(--hilo-pink);
  clip-path: polygon(0 72%, 25% 30%, 64% 6%, 100% 3%, 92% 42%, 40% 66%, 2% 100%);
  pointer-events: none;
  content: "";
}
.hilo-wager h2 svg { width: 36%; max-height: 1.05em; fill: currentColor; transform: translateY(-.12em); }
.hilo-stake {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(44px, 19%) minmax(0, 1fr) minmax(44px, 19%);
  min-height: clamp(48px, 4.75cqw, 92px);
  color: var(--hilo-ink);
  background: var(--hilo-mint);
  border: clamp(2px, .32cqw, 5px) solid var(--hilo-ink);
  border-radius: .95cqw;
  overflow: hidden;
  box-shadow: 0 clamp(2px, .24cqw, 4px) var(--hilo-ink);
  font: 900 clamp(16px, 2.15cqw, 44px)/1.1 var(--font-interface, system-ui);
  font-variant-numeric: tabular-nums;
}
.hilo-stake [data-hilo-stake-step] {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  color: var(--hilo-ink);
  background: #6bf5a4 radial-gradient(#14583837 .6px, transparent 1px) 0 0 / 4px 4px;
  box-shadow: inset 0 2px #e0ffe0a0, inset 0 -3px #176f422e;
  cursor: pointer;
  font: italic 900 max(17px, 1.1em)/.95 var(--hilo-display);
  letter-spacing: -.035em;
  text-shadow: 0 1px #fff8;
  --hilo-step-border: clamp(1.5px, .16cqw, 3px);
  --hilo-step-ink: var(--hilo-ink);
  --hilo-step-lift: 0px;
  --hilo-step-motion: 1;
}
.hilo-stake [data-hilo-stake-step="half"] {
  --hilo-step-paper: #fff1d7;
  --hilo-step-fold: #92d9a8;
  --hilo-step-dots: #63331c34;
  --hilo-step-tilt: -5deg;
  --hilo-step-shape: polygon(7% 9%, 92% 3%, 100% 20%, 90% 93%, 15% 100%, 17% 89%, 0 94%, 8% 70%, 2% 62%);
}
.hilo-stake [data-hilo-stake-step="double"] {
  --hilo-step-paper: #ffee19;
  --hilo-step-fold: #fca64b;
  --hilo-step-dots: #61290042;
  --hilo-step-tilt: 4deg;
  --hilo-step-shape: polygon(11% 6%, 43% 12%, 56% 0, 62% 11%, 99% 9%, 95% 46%, 100% 66%, 88% 68%, 79% 100%, 54% 92%, 9% 99%, 13% 81%, 0 73%);
}
.hilo-stake [data-hilo-stake-step]::before,
.hilo-stake [data-hilo-stake-step]::after {
  position: absolute;
  clip-path: var(--hilo-step-shape);
  transform: translateY(calc(var(--hilo-step-lift) * var(--hilo-step-motion))) rotate(var(--hilo-step-tilt));
  transition: transform .14s ease-out, filter .14s ease-out;
  pointer-events: none;
  content: "";
}
.hilo-stake [data-hilo-stake-step]::before {
  z-index: -2;
  inset: 12% 6% 8%;
  background: var(--hilo-step-ink);
}
.hilo-stake [data-hilo-stake-step]::after {
  z-index: -1;
  inset: calc(12% + var(--hilo-step-border)) calc(6% + var(--hilo-step-border)) calc(8% + var(--hilo-step-border) + 1px);
  background:
    radial-gradient(circle, var(--hilo-step-dots) .65px, transparent 1px) 0 0 / 4px 4px,
    linear-gradient(145deg, #fff9 0 16%, transparent 17% 72%, var(--hilo-step-fold) 73%),
    var(--hilo-step-paper);
}
.hilo-stake [data-hilo-stake-step]:disabled {
  color: #374e3b;
  background-color: #bcf2cc;
  --hilo-step-ink: #526a55;
}
.hilo-stake [data-hilo-stake-step]:disabled::after { filter: saturate(.38); }
.hilo-stake [data-hilo-stake-step]:focus-visible {
  outline-offset: -3px;
  --hilo-step-lift: -2px;
}
@media (hover: hover) and (pointer: fine) {
  .hilo-stake [data-hilo-stake-step]:hover:enabled {
    background-color: #a6ffc9;
    --hilo-step-lift: -2px;
  }
}
.hilo-stake [data-hilo-stake-step]:active:enabled {
  padding-block-start: 2px;
  box-shadow: inset 0 3px #176f4273;
  --hilo-step-lift: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .hilo-stake [data-hilo-stake-step] { --hilo-step-motion: 0; }
  .hilo-stake [data-hilo-stake-step]::before,
  .hilo-stake [data-hilo-stake-step]::after { transition: none; }
  .hilo-stake [data-hilo-stake-step]:active:enabled { padding-block-start: 0; }
}
.hilo-stake-value {
  position: relative;
  min-width: 0;
  display: grid;
  place-items: center;
  container-type: inline-size;
  border-inline: clamp(2px, .21cqw, 4px) solid var(--hilo-ink);
  background: linear-gradient(#edffe26e, transparent 45%, #4cbd6f34);
  font: italic 900 1.38em/.95 var(--hilo-display);
  font-variant-numeric: tabular-nums;
  letter-spacing: .035em;
  --hilo-amount-length: 8;
}
.hilo-stake-value [data-hilo-stake-display] {
  padding: .08em .15em;
  font-size: min(1em, calc(155cqi / var(--hilo-amount-length)));
  text-align: center;
  text-shadow: .025em .032em #37694759;
  white-space: nowrap;
  pointer-events: none;
}
.hilo-stake-value:focus-within span { visibility: hidden; }
.hilo-controls .hilo-stake-value input[name="stake"] {
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: 0;
  padding: 0 .18em;
  appearance: textfield;
  border: 0;
  border-radius: 0;
  color: inherit;
  background: #c5ffda;
  font: inherit;
  font-size: min(1em, calc(160cqi / var(--hilo-amount-length)));
  font-variant-numeric: inherit;
  letter-spacing: inherit;
  text-align: center;
  opacity: 0;
}
.hilo-controls .hilo-stake-value input[name="stake"]:focus { opacity: 1; outline-offset: -3px; }
.hilo-stake-value input::-webkit-inner-spin-button, .hilo-stake-value input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.hilo-controls-actions { min-width: 0; display: grid; gap: 1.8cqw; margin-inline: .4cqw; }
.hilo-controls-status {
  min-width: 0;
  min-height: 1.4em;
  display: flex;
  align-items: center;
  gap: .32em .5em;
  flex-wrap: wrap;
  color: var(--hilo-ink);
  font: 730 clamp(.72rem, .94cqw, 1.08rem)/1.18 var(--font-interface, system-ui);
}
.hilo-controls-status p { margin: 0; }
.hilo-control-note { max-width: 100%; padding-inline-start: .42em; border-inline-start: .24em solid var(--hilo-pink); }

.hilo-button {
  position: relative;
  z-index: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  width: 100%;
  min-width: 0;
  padding: .19em .26em .25em;
  color: var(--hilo-ink);
  background: transparent;
  border: 0;
  font: italic 900 clamp(22px, 3.65cqw, 68px)/1.02 var(--hilo-display);
  letter-spacing: -.057em;
  text-align: center;
  cursor: pointer;
  isolation: isolate;
  transition: transform .14s ease;
  --button-edge: polygon(5% 8%, 100% 0, 96% 91%, 0 100%);
  clip-path: var(--button-hit, none);
}
.hilo-button::before, .hilo-button::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  clip-path: var(--button-edge);
  content: "";
  pointer-events: none;
}
.hilo-button::before { background: var(--hilo-ink); }
.hilo-button::after {
  inset: clamp(2px, .27cqw, 5px) clamp(5px, .64cqw, 11px) clamp(5px, .62cqw, 11px) clamp(4px, .49cqw, 9px);
  background: var(--hilo-button-fill, var(--hilo-lemon));
}
.hilo-button:focus-visible { filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 3px #78123d); }
.hilo-button:focus-visible::after { box-shadow: inset 0 0 0 .07em #b40050; }
.hilo-button:active:enabled:not([aria-disabled="true"]) { transform: translateY(3px) scale(.982); }
.hilo-button[aria-disabled="true"] { cursor: progress; }
@media (hover: hover) and (pointer: fine) {
  .hilo-button:hover:enabled:not([aria-disabled="true"]) { transform: translateY(-2px) rotate(-.6deg); }
  .hilo-button:hover:enabled:not([aria-disabled="true"])::after { filter: brightness(1.08); }
}
.hilo-skip {
  --hilo-button-fill: var(--hilo-cream) var(--hilo-fiber) center / 360px auto;
  --button-edge: polygon(7% 9%, 99% 0, 93% 86%, 0 100%);
  --button-hit: polygon(7% 9%, 99% 0, 93% 86%, 0 100%);
  min-height: 6.65cqw;
  font-size: clamp(22px, 3.55cqw, 67px);
  transform: rotate(-1deg);
}
.hilo-skip[data-action="hilo-skip-opening"] {
  font-size: clamp(18px, 2.72cqw, 48px);
}
.hilo-main-button {
  min-height: 7.65cqw;
  transform: rotate(-2.3deg);
  font-size: clamp(24px, 4.12cqw, 75px);
  --button-edge: polygon(7% 12%, 100% 0, 96% 87%, 0 100%);
  --button-hit: polygon(7% 12%, 100% 0, 96% 87%, 0 100%);
}
.hilo-main-button[data-action="hilo-next-round"] { font-size: clamp(23px, 3.2cqw, 62px); }
.hilo-main-button:has(.hilo-cashout-amount) {
  container-type: inline-size;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2px, .26cqw, 5px);
  padding: .1em .26em .19em;
}
.hilo-main-button:has(.hilo-cashout-amount) .hilo-cashout-label {
  position: relative;
  isolation: isolate;
  padding: .13em .39em .18em;
  font: italic 900 clamp(.72rem, 5.85cqi, 1.42rem)/1 var(--hilo-display);
  letter-spacing: .01em;
}
.hilo-main-button:has(.hilo-cashout-amount) .hilo-cashout-label::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  transform: skewX(-12deg);
  background: var(--hilo-mint) radial-gradient(#18573328 .6px, transparent 1px) 0 0 / 4px 4px;
  border: 1.5px solid var(--hilo-ink);
  box-shadow: 1.5px 1.5px var(--hilo-ink);
  content: "";
}
.hilo-cashout-amount {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  max-width: 100%;
  color: var(--hilo-ink);
  font: italic 900 min(22cqi, calc(151cqi / var(--hilo-cashout-length, 8)), 4.4rem)/.88 var(--hilo-display);
  font-variant-numeric: tabular-nums;
  letter-spacing: .005em;
  white-space: nowrap;
}
.hilo-cashout-amount strong { font-weight: inherit; text-shadow: .025em .028em #98682455; }
.hilo-cashout-amount small { color: inherit; font-size: .43em; }
.hilo-button:disabled { --hilo-button-fill: #f6dc78; color: #413722; }
.hilo-skip:is(:disabled,[aria-disabled="true"]) {
  --hilo-button-fill: var(--hilo-cream) var(--hilo-fiber) center / 360px auto;
  color: #766951;
}

.hilo-history, .hilo-streak {
  position: absolute;
  z-index: 3;
  transform: rotate(-1.1deg);
}
.hilo-history {
  inset: 54% auto auto 1.26%;
  width: 20%;
  height: 20.3%;
  padding: .95cqw 1.65cqw .7cqw;
  display: grid;
  align-content: start;
  gap: .65cqw;
}
.hilo-history h2, .hilo-streak h2 {
  width: fit-content;
  position: relative;
  font: italic 900 clamp(.95rem, 3.05cqw, 3.5rem)/1 var(--hilo-display);
  letter-spacing: -.06em;
  transform: rotate(-2.2deg);
}
.hilo-history h2::after, .hilo-streak h2::after {
  position: absolute;
  inset: 100% 0 -.18em 0;
  background: var(--hilo-pink);
  clip-path: polygon(0 45%, 28% 14%, 63% 0, 100% 11%, 93% 41%, 43% 64%, 3% 95%, 10% 64%);
  content: "";
}
.hilo-history h2 button {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}
.hilo-history h2 button:hover { color: #a80049; }
.hilo-history ol, .hilo-proof-cards ol { gap: .35em; list-style: none; padding: 0; }
.hilo-history ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, clamp(1.95rem, 4.65cqw, 5.6rem)));
  margin: 0;
}
.hilo-proof-cards ol { display: flex; }
.hilo-history li, .hilo-proof-cards li {
  min-width: 0;
  min-height: 1.5em;
  min-inline-size: 1.35em;
  display: grid;
  place-content: center;
  color: var(--hilo-ink);
  border: .08em solid var(--hilo-ink);
  border-radius: .22em;
  box-shadow: 1px 2px #97714444;
  background: #fff5e5;
  font: italic 900 clamp(17px, 2.83cqw, 54px)/1 var(--hilo-display);
  transform: rotate(1.1deg);
}
.hilo-history li { min-height: 0; min-inline-size: 0; aspect-ratio: 1 / 1; }
.hilo-history li.hilo-history-back {
  background: repeating-linear-gradient(139deg, var(--hilo-ink) 0 11%, transparent 11% 22%), var(--hilo-lemon);
  box-shadow: inset 0 0 0 .09em #fff5e5, 1px 2px #97714444;
}
.hilo-history li small, .hilo-proof-cards li small { font: 800 .42em/1 sans-serif; margin-inline-start: .08em; }
:is(.hilo-history,.hilo-proof-cards) li[data-suit="red"] small { color: #b80053; }
.hilo-streak {
  inset: 75.2% auto auto 1.25%;
  width: 19.3%;
  height: 15%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .3em;
  padding: .76cqw 1.8cqw 1.23cqw;
}
.hilo-streak strong {
  display: grid;
  place-content: center;
  border: .07em solid var(--hilo-ink);
  border-radius: .08em;
  padding: .06em .17em .08em;
  min-width: 1.4em;
  background: var(--hilo-mint);
  box-shadow: .06em .07em var(--hilo-ink);
  font: italic 900 clamp(1.2rem, 3.7cqw, 4.25rem)/1.05 var(--hilo-display);
  transform: skewX(-12deg) rotate(-3deg);
}

.hilo-forecasts {
  position: absolute;
  z-index: 1;
  inset: 73.2% 10.05% auto 21.55%;
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 1.7cqw;
}
.hilo-forecast {
  min-height: 8.35cqw;
  margin-bottom: 3.6cqw;
  justify-content: stretch;
  --button-edge: inset(0 round .42em);
  border-radius: .42em;
  transform: skewX(-15deg) rotate(.45deg);
  font-size: clamp(22px, 4.28cqw, 78px);
  letter-spacing: -.038em;
  word-spacing: .04em;
  padding: .19em .13em .32em;
}
.hilo-forecast:first-child { transform: skewX(-16deg) rotate(.6deg); }
.hilo-forecast:last-child { transform: skewX(-15deg) rotate(-.48deg); }
.hilo-forecast:hover:enabled { transform: translateY(-2px) skewX(-15deg); }
.hilo-forecast:active:enabled { transform: translateY(3px) skewX(-15deg); }
.hilo-forecast-label { display: block; white-space: nowrap; transform: skewX(7deg) scaleX(.93); }
.hilo-forecast:disabled { --hilo-button-fill: var(--hilo-lemon); }
[data-step-phase="active"] ~ .hilo-forecasts .hilo-forecast:disabled { --hilo-button-fill: #ead486; }
.hilo-odds {
  position: absolute;
  inset: auto 24% -.98em;
  display: grid;
  place-items: center;
  min-height: 1.61em;
  padding: .06em .14em .28em;
  color: var(--hilo-ink);
  background: var(--hilo-ink);
  clip-path: var(--hilo-edge);
  transform: skewX(6deg) rotate(-1.5deg);
  font: italic 900 .8em/.95 var(--hilo-display);
}
.hilo-odds::before, .hilo-odds::after {
  position: absolute;
  z-index: -1;
  inset: 2.5px;
  clip-path: var(--hilo-edge);
  background: var(--hilo-cream) var(--hilo-fiber) center / 360px auto;
  content: "";
}
.hilo-odds::after {
  inset: 3px 9% .29em;
  background: var(--hilo-mint);
  filter: drop-shadow(1px 0 var(--hilo-ink));
}

.hilo-comic .hilo-result {
  position: relative;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(8px, 1.55cqw, 26px);
  min-height: clamp(110px, 10.5cqw, 195px);
  margin: 0 !important;
  padding: clamp(11px, 1.4cqw, 25px) clamp(12px, 2.65cqw, 45px);
  border: 0 !important;
  background: transparent !important;
  color: var(--hilo-ink);
  --hilo-result-ink: var(--hilo-mint);
  font: 760 clamp(.85rem, 1.3cqw, 1.55rem)/1.14 var(--font-interface);
}
html[data-ludik-theme="comic"] #content[data-game="hilo"] .hilo-forecasts > .hilo-result { grid-column: 1 / -1 !important; }
.hilo-result[data-result="loss"] { --hilo-result-ink: #ffc3db; }
.hilo-result[data-result="push"] { --hilo-result-ink: #fff096; }
.hilo-result-body {
  min-width: 0;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: clamp(9px, 2cqw, 37px);
}
.hilo-result-title {
  position: relative;
  isolation: isolate;
  width: fit-content;
  padding: .18em .35em .26em;
  color: var(--hilo-ink);
  font: italic 900 clamp(1.26rem, 3.15cqw, 3.8rem)/1 var(--hilo-display);
  transform: rotate(-3deg);
}
.hilo-result-title::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  border: clamp(2px, .18cqw, 3px) solid var(--hilo-ink);
  border-radius: .09em;
  background: var(--hilo-result-ink) radial-gradient(#35190837 .6px, transparent 1px) 0 0 / 4px 4px;
  box-shadow: .07em .075em var(--hilo-ink);
  transform: skewX(-10deg);
  content: "";
}
.hilo-result-totals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
  margin: 0;
}
.hilo-result-totals > div {
  min-width: 0;
  padding: .15em .58em;
  border-inline-start: 2px dashed #5c423a85;
}
.hilo-result-totals dt { font-size: .69em; }
.hilo-result-totals dd {
  margin: .15em 0 0;
  font: 900 clamp(.91rem, 2.1cqw, 2.35rem)/1.05 var(--font-interface);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
}
.hilo-result-totals [data-hilo-paid] { color: #14512b; }
.hilo-result[data-result="loss"] .hilo-result-totals div:last-child dd { color: #87143b; }
html[data-ludik-theme="comic"] #content[data-game="hilo"] .hilo-result-link.button.secondary {
  display: inline-flex;
  gap: .42em;
  align-items: center;
  justify-content: center;
  min-height: clamp(44px, 3.35cqw, 60px);
  padding: .35em .66em;
  color: var(--hilo-ink);
  background: var(--hilo-lemon) radial-gradient(#25130337 .6px, transparent .95px) 0 0 / 4px 4px;
  border-radius: 2px;
  box-shadow: 3px 3px var(--hilo-ink);
  font: italic 900 clamp(1rem, 1.61cqw, 1.8rem)/1.04 var(--hilo-display);
  letter-spacing: .01em;
  text-align: center;
}
.hilo-result-link svg { flex: none; width: .96em; height: .96em; }
html[data-ludik-theme="comic"] #content[data-game="hilo"] .hilo-result-link.button.secondary:is(:hover, :focus-visible) {
  background-color: var(--hilo-mint);
}

.hilo-paperwork {
  position: relative;
  margin: 8px auto 0;
  width: min(calc(100% - 20px), 840px);
  padding: clamp(10px, 1.1cqw, 16px) clamp(12px, 1.45cqw, 24px);
  font: 720 .95rem/1.24 var(--font-interface);
}
.hilo-paperwork > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .55em;
  min-height: 46px;
  padding: .36em .63em;
  border: 2px solid var(--hilo-ink);
  border-inline-start: .38em solid var(--hilo-pink);
  border-radius: 3px;
  box-shadow: 2px 3px var(--hilo-ink);
  color: #fff5df;
  background: var(--hilo-ink);
  cursor: pointer;
  list-style: none;
  font: italic 850 clamp(1.13rem, 3.6cqw, 1.85rem)/1.06 var(--hilo-display);
  letter-spacing: .003em;
}
.hilo-paperwork > summary::-webkit-details-marker { display: none; }
.hilo-paperwork > summary i {
  position: relative;
  display: block;
  flex: 0 0 1.18em;
  aspect-ratio: 1;
  border: 2px solid var(--hilo-ink);
  border-radius: .12em;
  background: var(--hilo-lemon);
  transform: rotate(-4deg);
}
.hilo-paperwork > summary i::after {
  position: absolute;
  inset: 34% 30% auto;
  height: 40%;
  border: solid var(--hilo-ink);
  border-width: 0 2px 2px 0;
  transform: translateY(-18%) rotate(45deg);
  content: "";
}
.hilo-paperwork[open] > summary i::after { transform: translateY(16%) rotate(225deg); }
.hilo-paperwork > summary:hover { background: #382619; }
.hilo-paperwork-inner { display: grid; gap: clamp(10px, 2cqw, 18px); min-inline-size: 0; margin-top: 13px; }
.hilo-paperwork-tools { display: flex; align-items: center; flex-wrap: wrap; gap: .45em .65em; }
html[data-ludik-theme="comic"] #content[data-game="hilo"] .hilo-paperwork-tools .button.secondary {
  min-height: 44px;
  padding-inline: .9em;
  color: var(--hilo-ink);
  background: var(--hilo-lemon);
  transform: rotate(-1.5deg);
}
html[data-ludik-theme="comic"] #content[data-game="hilo"] .hilo-paperwork-tools .button.secondary:is(:hover, :focus-visible) { background: var(--hilo-mint); }
.hilo-paperwork-tools .tag {
  color: var(--hilo-ink);
  background: #fff9e7;
  border: 2px solid var(--hilo-ink);
}
.hilo-terms, .hilo-proof-fields, .hilo-round-terms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 1.6cqw, 15px);
  min-width: 0;
  margin: 0;
}
.hilo-terms-card {
  --hilo-ticket: #ffe939;
  min-width: 0;
  color: var(--hilo-ink);
  border: 2px solid var(--hilo-ink);
  border-radius: 4px;
  background: #fff9e8;
  box-shadow: 2px 3px var(--hilo-ink);
}
.hilo-terms-card:nth-child(2) { --hilo-ticket: var(--hilo-mint); }
.hilo-terms-card > dt {
  padding: .28em .55em .36em;
  border-block-end: 2px solid var(--hilo-ink);
  background: var(--hilo-ticket) radial-gradient(#3e24253b .65px, transparent 1px) 0 0 / 4px 4px;
  font: italic 900 clamp(1.08rem, 3.2cqw, 1.8rem)/1.05 var(--hilo-display);
  letter-spacing: .005em;
}
.hilo-terms-card > dd { display: grid; gap: .44em; margin: 0; padding: .58em .72em .67em; }
.hilo-terms-card small { color: #503625; }
.hilo-terms-factor { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15em .45em; }
.hilo-terms-factor strong {
  font: italic 900 clamp(1.7rem, 5cqw, 3.15rem)/.94 var(--hilo-display);
  letter-spacing: -.022em;
}
.hilo-terms-chances { margin: 0; color: #4f3829; font-size: .85em; }
.hilo-terms-chances > div, .hilo-terms-payout {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  column-gap: .32em;
  flex-wrap: wrap;
}
.hilo-terms-chances dd { margin: 0; color: var(--hilo-ink); font-weight: 850; }
.hilo-terms-payout { padding-block-start: .4em; border-block-start: 1.5px dashed #715037; }
.hilo-terms-payout span { font-size: .87em; }
.hilo-terms-payout strong { color: #14512b; font-size: 1.18em; overflow-wrap: anywhere; }
.hilo-terms-card [data-hilo-choice-blocked] { color: #991b4a; }
.hilo-round-terms {
  border-inline-start: 4px solid var(--hilo-pink);
  padding: .55em .75em;
  background: #ffedc6;
}
.hilo-round-terms dt { font-size: .84em; }
.hilo-round-terms dd { margin: 0; font-weight: 900; }
.hilo-proof-fields {
  min-inline-size: 0;
  padding: .66em .72em .78em;
  border: 2px solid var(--hilo-ink);
  border-radius: 4px;
  background: #ffedcd;
  box-shadow: 2px 3px var(--hilo-ink);
}
.hilo-proof-fields legend {
  padding: .22em .53em .26em;
  border: 2px solid var(--hilo-ink);
  border-radius: 2px;
  color: #fff5df;
  background: var(--hilo-ink);
  font: italic 900 clamp(1.05rem, 3.2cqw, 1.53rem)/1 var(--hilo-display);
  transform: rotate(-1deg);
}
.hilo-proof-fields label { display: grid; align-content: end; gap: .3em; min-width: 0; font-size: .82em; }
.hilo-proof-fields input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: .48em .63em;
  color: var(--hilo-ink);
  background: #fffbec;
  border: 2px solid var(--hilo-ink);
  border-radius: 4px;
}
.hilo-proof-fields input[readonly] {
  color: #292a20;
  background: #f2e4c5;
  font: 700 .94em/1.2 var(--mono);
}
.hilo-proof-hash {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
}
.hilo-proof-hash input { border-radius: 4px 0 0 4px; }
.hilo-proof-hash button {
  display: grid;
  align-self: end;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid var(--hilo-ink);
  border-inline-start: 0;
  border-radius: 0 4px 4px 0;
  background: var(--hilo-mint);
  color: var(--hilo-ink);
}
.hilo-proof-hash button svg { width: 18px; height: 18px; }
.hilo-proof-hash button:is(:hover, :focus-visible) { background: var(--hilo-lemon); }
.hilo-proof-hash button:focus-visible { z-index: 1; }
.hilo-comic :is(.hilo-paperwork, .hilo-controls-status, .hilo-result) .button,
dialog[data-variant^="hilo-"] .button {
  min-height: 38px;
  color: var(--hilo-ink);
  background: var(--hilo-mint);
  border: 2px solid var(--hilo-ink);
  border-radius: 4px;
  box-shadow: 2px 2px var(--hilo-ink);
  font-weight: 850;
  white-space: normal;
}
.hilo-comic :is(.hilo-paperwork, .hilo-controls-status, .hilo-result) .button:hover,
dialog[data-variant^="hilo-"] .button:hover { background: var(--hilo-lemon); }
html[data-ludik-theme="comic"] #content[data-game="hilo"] > [data-manual-round-recovery] {
  width: min(100% - 20px, 800px);
  margin-inline: auto;
}

@keyframes hilo-table-ink {
  32% { transform: scale(1.08); opacity: 1; }
  100% { transform: none; opacity: 1; }
}
@keyframes hilo-paper-flash {
  24% { opacity: .65; }
  100% { opacity: 0; }
}
.hilo-table[data-hilo-pulse] .hilo-table-rays { animation: hilo-table-ink .52s cubic-bezier(.17,.86,.32,1); }
.hilo-table[data-hilo-pulse="hit"] .hilo-table-rays svg { fill: #bc0053; }
.hilo-table[data-hilo-pulse="loss"] .hilo-table-rays { animation: hilo-table-ink .36s ease-out; }
.hilo-table[data-hilo-pulse="cashout"] .hilo-table-rays::before {
  position: absolute;
  inset: -4cqw -1cqw;
  background: radial-gradient(ellipse, transparent 45%, #ffc928 100%);
  opacity: 0;
  animation: hilo-paper-flash .57s ease-out;
  content: "";
}

@media (max-width: 900px) {
  .hilo-scene {
    display: grid;
    grid-template-columns: minmax(0,1.23fr) minmax(0,.77fr);
    grid-template-areas: "hero hero" "table table" "controls controls" "forecasts forecasts" "history streak";
    aspect-ratio: auto;
    gap: clamp(8px, 2.1cqw, 20px) clamp(8px, 2.6cqw, 24px);
    padding: 0 clamp(7px, 2cqw, 20px) 13px;
    --hilo-caption-size: clamp(.7rem, 3.65cqw, 2.3rem);
    --hilo-caption-gap: 1.8cqw;
  }
  .hilo-hero { grid-area: hero; position: relative; width: min(100%, 655px); height: auto; margin-inline: auto; aspect-ratio: 2.65; }
  .hilo-title { inset: 2% auto auto 0; width: 49%; }
  .hilo-mascot { inset: auto 1% -6% auto; width: 52%; font-size: clamp(49px, 15cqw, 110px); }
  .hilo-table { grid-area: table; position: relative; inset: auto; height: auto; padding: 4.8% 9.3% 4.3%; }
  .hilo-table-rays { inset: 33.5% 2.45% auto; }
  .hilo-table-rays svg { width: 6%; }
  html[data-ludik-theme="comic"] #content[data-game="hilo"] .hilo-controls#game-sidebar {
    grid-area: controls;
    position: relative;
    inset: auto;
    height: auto;
    grid-template: auto auto / minmax(0, 1fr) minmax(0,1fr);
    align-items: end;
    gap: 1px clamp(8px,2.7cqw,22px);
    padding: 10px clamp(10px,2.7cqw,22px) 6px;
  }
  .hilo-wager h2 { font-size: clamp(21px, 5.5cqw, 48px); }
  .hilo-stake {
    font-size: clamp(15px, 3.65cqw, 30px);
    border-radius: 8px;
  }
  .hilo-controls-actions { margin: 0; gap: 2px; grid-template-columns: minmax(0,1fr); }
  .hilo-controls-status { grid-column: 1 / -1; min-height: 0; padding-block: 3px; font-size: clamp(.7rem, 2.4cqw, 1rem); }
  .hilo-skip, .hilo-main-button {
    min-height: clamp(44px, 8.9cqw, 79px);
    font-size: clamp(20px, 5cqw, 43px);
  }
  .hilo-skip[data-action="hilo-skip-opening"] { font-size: clamp(16px, 4.1cqw, 36px); }
  .hilo-main-button { min-height: clamp(56px, 11.6cqw, 94px); }
  .hilo-main-button[data-action="hilo-next-round"] { font-size: clamp(17px, 4.35cqw, 39px); }
  .hilo-forecasts { grid-area: forecasts; position: relative; inset: auto; gap: clamp(8px, 3cqw, 25px); margin-inline: 6px; }
  .hilo-forecast {
    font-size: clamp(16px, 5.3cqw, 47px);
    min-height: clamp(54px, 11.4cqw, 104px);
    margin-bottom: clamp(26px, 5.8cqw, 49px);
    transform: skewX(-9deg) !important;
  }
  .hilo-forecast-label { transform: scaleX(.94); }
  .hilo-odds { inset-inline: 20%; }
  .hilo-comic .hilo-result { font-size: clamp(.79rem, 2.6cqw, 1.4rem); }
  .hilo-result-totals dd { font-size: clamp(.95rem, 3.2cqw, 1.6rem); }
  .hilo-history, .hilo-streak {
    position: relative;
    inset: auto;
    width: auto;
    height: auto;
    min-height: clamp(64px, 15cqw, 128px);
    padding: 9px clamp(8px, 2.5cqw, 21px);
  }
  .hilo-history { grid-area: history; gap: 6px; }
  .hilo-streak { grid-area: streak; }
  .hilo-history h2, .hilo-streak h2 { font-size: clamp(17px, 4.8cqw, 43px); }
  .hilo-history li { font-size: clamp(15px, 4.15cqw, 36px); }
  .hilo-streak strong { font-size: clamp(22px, 6.5cqw, 56px); }
  .hilo-side-bolt, .hilo-bottom-rays { display: none; }
}

@media (421px <= width <= 768px) {
  .hilo-hero { width: 92%; aspect-ratio: 2.95; }
  .hilo-table { width: 94%; justify-self: center; }
}

@media (max-width: 570px) {
  .hilo-result-body { grid-template-columns: minmax(0, 1fr); gap: .52em; }
  .hilo-result-totals > div { padding-inline: .48em; }
}

@media (max-width: 390px) {
  .hilo-table { padding-inline: 7.8%; }
  html[data-ludik-theme="comic"] #content[data-game="hilo"] .hilo-controls#game-sidebar {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 10px 13px 8px;
  }
  .hilo-controls-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .hilo-forecasts { margin-inline: 2px; }
  .hilo-forecast-label { transform: scaleX(.91); }
  .hilo-terms, .hilo-proof-fields { grid-template-columns: 1fr; }
  .hilo-comic .hilo-result { grid-template-columns: minmax(0, 1fr); }
  .hilo-result > .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hilo-comic .hilo-button { transition: none; }
  .hilo-comic [data-hilo-pulse] .hilo-table-rays { animation: none; }
  .hilo-comic [data-hilo-pulse] .hilo-table-rays::before { animation: none; }
}

html[data-ludik-theme="comic"] dialog[data-variant^="hilo-"] {
  --text: var(--hilo-ink);
  --muted: #61422e;
  --panel: #fff8e8;
  --well: #ffeccc;
  --accent: #075627;
  --lime: #713904;
  --line: #af885e;
  --type-muted: #61422e;
  color: var(--hilo-ink);
  background: var(--hilo-cream) var(--hilo-fiber) center / 360px auto;
  border: 3px solid var(--hilo-ink);
  border-radius: 6px;
  box-shadow: 6px 6px var(--hilo-ink);
}
dialog[data-variant^="hilo-"] .dialog-head {
  padding: 8px;
  color: var(--hilo-cream);
  background: var(--hilo-ink);
  border-inline-start: 10px solid var(--hilo-pink);
}
dialog[data-variant^="hilo-"] .dialog-head h2 {
  font: italic 900 clamp(1.28rem, 4vw, 2.4rem)/1 var(--hilo-display);
  letter-spacing: -.02em;
  color: inherit;
}
dialog[data-variant^="hilo-"] .dialog-head .icon-button { color: var(--hilo-cream); }
.hilo-history-rounds { display: grid; gap: .55rem; padding: 0; list-style: none; }
.hilo-history-rounds button {
  display: grid;
  grid-template-columns: minmax(0,1.35fr) repeat(2,minmax(0,1fr));
  gap: .25em .65em;
  width: 100%;
  min-height: 48px;
  padding: .45em .55em;
  color: var(--hilo-ink);
  background: #fff8e8;
  border: 2px solid var(--hilo-ink);
  border-inline-start: 6px solid var(--hilo-mint);
  box-shadow: 2px 2px var(--hilo-ink);
  text-align: start;
  cursor: pointer;
  font-size: clamp(.76rem, 2.7vw, 1rem);
}
.hilo-history-rounds button:hover { background: #fff391; }
.hilo-history-rounds button span { display: grid; }
.hilo-history-rounds button strong { overflow-wrap: anywhere; }
.hilo-history-rounds button small { font-size: .82em; }
html[data-ludik-theme="comic"] dialog[data-variant^="hilo-"] :is(.button.secondary,.icon-button) { color: var(--hilo-ink); background: var(--hilo-mint); }
html[data-ludik-theme="comic"] dialog[data-variant^="hilo-"] :is(.button.secondary,.icon-button):hover { color: var(--hilo-ink); background: var(--hilo-lemon); }
