/* Comic Limbo. The plate, paper cuts, and controls are independent layers. */
html[data-ludik-theme="comic"] #content[data-game="limbo"]:has(.limbo-comic-layout),
html[data-ludik-theme="comic"] #dialog:is([data-variant="limbo-history"], [data-variant="limbo-proof"], [data-variant="limbo-rules"], :has(.minigame-rules[data-rules-game="limbo"])) {
  --limbo-ink: #0e0a09;
  --limbo-yellow: #ffeb16;
  --limbo-mint: #7cf7a6;
  --limbo-pink: #ff087b;
  --limbo-paper: #fff5db;
  --limbo-display: Impact, "Arial Narrow", var(--font-interface);
  --limbo-grain: radial-gradient(#a04b3128 .38px, transparent .85px) 0 0 / 7px 8px,
    radial-gradient(#95503325 .45px, transparent .92px) 2px 2px / 11px 13px;
  --limbo-paper-fill: linear-gradient(#fff9e1a9, #fff9e1a9),
    url("/redesign-art/paper.webp") center / 350px auto, var(--limbo-paper);
  --limbo-paper-edge: polygon(
    0 5%, 1.4% 3.8%, 3.1% 2.8%, 4.2% 1.4%, 6% 1.9%, 7.1% 1.6%, 8.6% 1.8%,
    10.1% 1.2%, 11.8% 1.6%, 13.5% 1.1%, 14.2% 1.5%, 16.9% .4%, 20.1% .5%,
    21.8% 1%, 23.4% .6%, 24.6% 1.2%, 27.1% .4%, 29.6% 1.7%, 31.5% 1.6%,
    33.2% 2.3%, 35.4% 2.1%, 37.6% 2.8%, 39.8% 2.9%, 42% 2.2%, 44.7% 2.5%,
    47.1% 2.2%, 48.8% 2.8%, 51.7% 2.4%, 53% 1.9%, 55.8% 2.1%, 58% 1.2%,
    60.1% 1.3%, 62.6% .4%, 64.2% 1.1%, 66.3% .6%, 68.6% 1.3%, 71.4% 1%,
    72.4% 1.5%, 75.7% .8%, 78.1% 1.2%, 81% .4%, 83.7% 1%, 86% 1.1%, 87.4% 1.8%,
    89.4% 1.4%, 92.5% 2.1%, 95% 2%, 96.8% 2.7%, 98.7% 2.4%, 99.3% 3.5%,
    98.9% 4.9%, 99.8% 6%, 99.3% 8.4%, 100% 10%, 99% 12%, 99.6% 13.7%, 98.9% 16%,
    99.7% 17.5%, 99.1% 19%, 99.6% 20.3%, 98.9% 22%, 99.7% 24.5%, 99.2% 26.1%,
    100% 28.3%, 99.2% 30%, 99.6% 32.5%, 98.8% 34.6%, 99.6% 37%, 99% 39.3%,
    99.8% 41.7%, 99.2% 43.6%, 99.8% 45.3%, 98.8% 47.3%, 99.5% 49%, 99% 51.2%,
    99.8% 53.5%, 99.1% 55.4%, 99.8% 57%, 99.4% 59.4%, 100% 61.4%, 99% 63.5%,
    99.6% 65.8%, 99% 68%, 99.8% 70%, 99.4% 72.6%, 100% 74%, 99% 76.3%,
    99.7% 78%, 99% 80.7%, 99.8% 83%, 99.2% 85.3%, 99.7% 87%, 98.7% 89%,
    99.3% 91.3%, 98.5% 93.2%, 98.8% 95.4%, 97.9% 97.9%, 96.4% 98.3%,
    94.8% 98%, 92.9% 99%, 91.2% 98.8%, 88.2% 99.7%, 86.5% 99%, 84.2% 99.5%,
    82% 98.8%, 80.5% 99.4%, 78.4% 99.1%, 77% 99.6%, 74.6% 99%, 72.4% 99.7%,
    70.3% 99.3%, 67.7% 99.9%, 65.4% 99.1%, 64% 99.4%, 62.5% 98.7%, 60.3% 99.3%,
    58.2% 98.9%, 56% 99.6%, 53.8% 99.2%, 52.3% 99.8%, 50.8% 99.3%, 48.2% 99.9%,
    46.4% 99.4%, 43.7% 99.8%, 41.9% 99.2%, 39.2% 99.7%, 37.7% 98.9%, 34.8% 99.2%,
    32.9% 98.6%, 31.1% 99.2%, 29.3% 98.9%, 27.3% 99.6%, 25.7% 99.1%, 24% 99.7%,
    21.6% 99.3%, 18.9% 99.8%, 16.7% 98.9%, 14.8% 99.3%, 13.1% 98.6%, 10.7% 98.9%,
    8.8% 99.5%, 6.9% 99.1%, 4.7% 99.7%, 3.1% 99.3%, 1.9% 99.6%, 1.7% 97%,
    .8% 95%, 1.2% 93.7%, .4% 91.8%, 1.3% 90%, .4% 88.2%, 1% 86.1%, .3% 83.8%,
    1.2% 81.6%, .6% 80%, 1.2% 77.6%, .2% 76.1%, 1% 74.2%, .4% 72.1%, 1.4% 70%,
    .5% 67.8%, 1% 66%, 0 64.5%, .8% 62%, .2% 60.3%, 1.1% 57.5%, .3% 55.6%,
    1% 53.5%, .4% 52.2%, 1.4% 50.4%, .5% 48.5%, 1.2% 46.9%, .3% 44.7%,
    1.1% 42.3%, .4% 40%, 1.2% 38.5%, .5% 36.3%, 1.4% 34.5%, .6% 32%, 1.1% 30.2%,
    .4% 27.8%, 1.4% 25.7%, .4% 23.9%, 1% 22%, .4% 20%, 1.2% 18.2%, .5% 16.2%,
    1.2% 14.8%, .4% 12.5%, 1.3% 10.8%, .1% 8.7%, .7% 7%);
}

html[data-ludik-theme="comic"] #content[data-game="limbo"]:has(.limbo-comic-layout) {
  --limbo-dot: clamp(1.15px, .13cqw, 2.15px);
  --limbo-screen-step: clamp(6px, .63cqw, 10.5px);
  --limbo-space: clamp(8px, .87cqw, 15px);
  --limbo-keyline: clamp(2px, .3cqw, 5px);
  --limbo-control-height: clamp(44px, 4.4cqw, 75px);
  --lg-paper: var(--limbo-paper);
  --lg-text: var(--limbo-ink);
  --lg-border: var(--limbo-ink);
  --lg-panel: var(--limbo-paper);
  --lg-input: var(--limbo-mint);
  --lg-yellow: var(--limbo-yellow);
  --lg-accent: var(--limbo-pink);
  --lg-mint: var(--limbo-mint);
  container: limbo-screen / inline-size;
  position: relative;
  isolation: isolate;
  overflow: clip;
  width: 100%;
  max-width: none;
  padding: 0 0 clamp(20px, 2cqw, 34px);
  background: #ff2344;

  &::before {
    position: absolute;
    z-index: -1;
    inset: -60% -70%;
    content: "";
    pointer-events: none;
    transform: rotate(23deg);
    background-image:
      radial-gradient(ellipse at center, #12080a 0 calc(var(--limbo-dot) - .36px), transparent var(--limbo-dot)),
      radial-gradient(ellipse at center, #5410196b 0 .42px, transparent 1px);
    background-size: var(--limbo-screen-step) calc(var(--limbo-screen-step) * 1.06), 5px 7px;
    background-position: 0 0, 1px 2px;
  }
  & .limbo-comic-layout {
    position: relative;
    grid-template-columns: minmax(0, 1fr) minmax(290px, 35%);
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas: "playfield wager" "tools wager";
    gap: 0;
    align-items: start;
    padding: 1.35cqw .9cqw 0 0;
  }
  & .limbo-comic-layout > .stage-column { grid-area: playfield; }
  & .stage.stage-limbo {
    overflow: visible;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  & .limbo-comic-arena.instant-limbo {
    display: block;
    position: relative;
    aspect-ratio: 1060 / 850;
    min-height: 0;
    padding: 0;
    background: transparent;
    isolation: isolate;
  }
  & .limbo-comic-arena.instant-limbo::before { content: none; }
  & .limbo-comic-dial {
    position: absolute;
    inset: 11.4% auto auto 23.7%;
    width: 69%;
    z-index: 1;
  }
  & .limbo-comic-title {
    --title-edge: polygon(
      0 16%, 5% 13%, 5.7% 10%, 13.4% 11%, 13.1% 7%, 19.1% 8%, 24.9% 2%,
      25.9% 7%, 33.2% 4%, 36% 6%, 39.2% 2%, 42.9% 5%, 48.5% 1%, 47.5% 5%,
      54% 4.4%, 57.2% 7.4%, 64.8% 3.2%, 65.1% 0, 70% .7%, 69.1% 7%, 72.5% 6.5%,
      72.2% 10%, 77.8% 7.8%, 77% 11.3%, 84% 8.6%, 85.7% 12.6%, 90.5% 9%,
      89.9% 13.8%, 96.7% 14.1%, 95.7% 18.3%, 100% 17.7%, 95.3% 26.7%,
      96.4% 30%, 92.1% 35.3%, 96.2% 36.7%, 92.4% 42%, 94.7% 43.1%, 91.5% 48.1%,
      92.4% 53%, 88.4% 56.2%, 89.9% 57.3%, 86.6% 61.8%, 88% 65.8%, 82.8% 71.4%,
      83.6% 74.3%, 78.1% 76.7%, 79.1% 79.9%, 75.5% 80.5%, 74.2% 84.3%,
      69% 83.6%, 67.7% 87.9%, 64.1% 85.1%, 57.4% 89.7%, 57.9% 84.8%, 53.3% 89.3%,
      51.8% 86.3%, 45.7% 91.7%, 46.1% 87.3%, 42% 89.7%, 41.1% 93.1%, 35.2% 92.5%,
      31.6% 95.2%, 32.3% 90.6%, 27.3% 94.5%, 27.8% 91.8%, 20.1% 94.6%,
      17.9% 91.8%, 11.2% 96.5%, 10.8% 93.1%, 2.2% 100%, 3.3% 94.4%,
      .1% 97%, 3.2% 90.5%, .7% 90.2%, 4.6% 82%, 3.6% 79.5%, 7.8% 71.2%,
      2% 72.3%, 3.1% 67.7%, 0 67.7%, 3.5% 61.4%, .6% 60.1%, 5.3% 53.2%,
      1.4% 52.7%, 5.9% 44.6%, 2.7% 42.6%, 7.4% 35.3%, 1% 35.5%, 4.7% 28%,
      2.5% 26.3%, 7.2% 19%);
    position: absolute;
    z-index: 2;
    inset: 3.4% auto auto 1.1%;
    display: grid;
    align-items: center;
    justify-items: center;
    width: 45.6%;
    height: 34%;
    margin: 0;
    padding: 0 .1em .15em 0;
    color: var(--limbo-ink);
    font: italic 1000 clamp(40px, 9.3cqw, 170px)/1 "Arial Black", Impact, var(--font-interface);
    font-synthesis: style weight;
    letter-spacing: -.074em;
    text-shadow: .018em .013em var(--limbo-ink);
    transform: rotate(-13deg) skewX(-6deg);
    filter: drop-shadow(-2px 2px 0 var(--limbo-ink)) drop-shadow(2px -2px 0 var(--limbo-ink));
    pointer-events: none;
  }
  & .limbo-comic-title::before,
  & .limbo-comic-title::after {
    position: absolute;
    z-index: -1;
    content: "";
  }
  & .limbo-comic-title::before {
    inset: 0;
    clip-path: var(--title-edge);
    background: var(--limbo-grain), var(--limbo-yellow);
  }
  & .limbo-comic-title::after {
    inset: auto 24% 20.5% 14%;
    block-size: 8.5%;
    clip-path: polygon(5% 33%, 100% 0, 98% 12%, 53% 66%, 56% 40%, 0 100%);
    background: var(--limbo-pink);
  }
  & .limbo-comic-bolt {
    --bolt-cut: polygon(86% 0, 53% 40%, 100% 32%, 0 100%, 39% 51%, 3% 59%);
    position: absolute;
    z-index: 0;
    width: 14%;
    aspect-ratio: 1.09;
    pointer-events: none;
  }
  & .limbo-comic-bolt::before,
  & .limbo-comic-bolt::after {
    position: absolute;
    inset: 0;
    clip-path: var(--bolt-cut);
    content: "";
    background: var(--limbo-ink);
  }
  & .limbo-comic-bolt::after { inset: 8% 10%; background: var(--limbo-yellow); }
  & .limbo-comic-bolt-left { inset: 43.2% auto auto 8.4%; transform: rotate(-9deg); }
  & .limbo-comic-bolt-right { inset: 11.2% 1.2% auto auto; width: 12.5%; transform: rotate(-13deg); }
  & .limbo-comic-arena::after {
    position: absolute;
    z-index: 0;
    inset: 80% auto auto 20%;
    width: 12%;
    aspect-ratio: 1.12;
    content: "";
    background: var(--limbo-ink);
    clip-path: polygon(evenodd, 0 25%, 51% 0, 5% 35%, 0 25%,
      3% 67%, 68% 20%, 10% 78%, 3% 67%, 0 25%,
      35% 92%, 81% 40%, 43% 98%, 35% 92%, 0 25%,
      68% 96%, 94% 54%, 77% 100%, 68% 96%, 0 25%);
    pointer-events: none;
  }
  & .limbo-comic-status {
    position: absolute;
    z-index: 2;
    inset: auto auto 2% 1.4%;
    max-width: 27%;
    padding: .38em .61em .46em;
    border: 2px solid var(--limbo-ink);
    background: var(--limbo-paper);
    box-shadow: 2px 3px var(--limbo-ink);
    color: var(--limbo-ink);
    font: italic 850 clamp(.7rem, 1cqw, 1.05rem)/1.1 var(--font-interface);
    transform: rotate(-4deg);
  }
  & .limbo-comic-arena[data-instant-phase="ready"] .limbo-comic-status {
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  & .limbo-comic-layout #game-sidebar,
  & .limbo-comic-layout .limbo-comic-form {
    display: contents;
  }
  & :is(.limbo-comic-primary-controls, .limbo-comic-proof-settings) {
    position: relative;
    isolation: isolate;
    display: grid;
    min-width: 0;
    align-content: start;
    gap: var(--limbo-space);
  }
  & .limbo-comic-primary-controls {
    grid-area: wager;
    margin-block-start: 1.8cqw;
    min-height: 48.65cqw;
    padding: 2.7cqw 2.45cqw 1.35cqw 2.95cqw;
  }
  & .limbo-comic-proof-settings {
    --limbo-paper-edge: polygon(0 5%, 2.4% 1.1%, 8% 2.2%, 17% 0, 25% 1.5%, 35% .25%,
      45% 1.55%, 56% .2%, 65% 1.65%, 75% .35%, 85% 1.7%, 94% 0, 99% 1.9%, 100% 6%,
      99.4% 39%, 97.7% 42%, 97.8% 47%, 99.8% 50%, 100% 94%, 97.6% 98.8%, 91% 100%,
      80% 98.65%, 68% 100%, 59% 98.7%, 49% 99.8%, 37% 98.7%, 26% 100%, 15% 98.6%,
      8% 100%, 2.2% 98.5%, 0 94%, .2% 50%, 2.2% 47%, 2.3% 42%, .5% 39%);
    container: limbo-ticket / inline-size;
    gap: .82rem;
    margin-block-start: .58rem;
    padding: clamp(14px, 1.45cqw, 23px) clamp(13px, 1.45cqw, 23px);
  }
  & :is(.limbo-comic-primary-controls, .limbo-comic-proof-settings)::before,
  & :is(.limbo-comic-primary-controls, .limbo-comic-proof-settings)::after {
    position: absolute;
    inset: 0;
    z-index: -2;
    content: "";
    pointer-events: none;
    clip-path: var(--limbo-paper-edge);
    background: var(--limbo-ink);
  }
  & :is(.limbo-comic-primary-controls, .limbo-comic-proof-settings)::after {
    inset: var(--limbo-keyline);
    z-index: -1;
    background: var(--limbo-grain), var(--limbo-paper-fill);
  }
  & #game-sidebar .auto-mode {
    position: relative;
    isolation: isolate;
    grid-template-columns: 1.18fr .85fr;
    gap: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    margin-block-end: clamp(3px, .36cqw, 6px);
    transform: skewX(-16deg);
  }
  & #game-sidebar .auto-mode button {
    z-index: 0;
    border: var(--limbo-keyline) solid var(--limbo-ink);
    border-radius: 0;
    margin: 2% 0;
    padding: .2em .15em .26em;
    min-height: max(44px, 5.25cqw);
    color: var(--limbo-ink);
    background: var(--limbo-grain), var(--limbo-paper-fill);
    font: normal 900 clamp(20px, 3cqw, 51px)/1 var(--limbo-display);
    text-shadow: .017em 0 var(--limbo-ink);
    opacity: 1;
    transition: background-color .12s ease, box-shadow .12s ease;
  }
  & #game-sidebar .auto-mode button + button { margin-inline-start: calc(-1 * var(--limbo-keyline)); }
  & #game-sidebar .auto-mode button[aria-pressed="true"] {
    z-index: 1;
    margin-block: 0;
    background: var(--limbo-grain), var(--limbo-mint);
    box-shadow: var(--limbo-keyline) calc(var(--limbo-keyline) * .8) var(--limbo-ink);
  }
  & #game-sidebar .auto-mode button:not(:disabled):hover { background: var(--limbo-grain), #c3ffb3; }
  & #game-sidebar .auto-mode button:focus-visible { outline: 3px solid #ac0047; outline-offset: 2px; }
  & #game-sidebar .limbo-comic-form,
  & #game-sidebar .limbo-comic-primary-controls > :is(.guest-fields, [data-auto-wager-fields]),
  & #game-sidebar .limbo-comic-form [data-auto-wager-fields] > .guest-fields {
    gap: var(--limbo-space);
    margin: 0;
    min-width: 0;
  }
  & #game-sidebar .limbo-comic-primary-controls > .guest-fields,
  & #game-sidebar .limbo-comic-form [data-auto-wager-fields] > .guest-fields {
    padding: 0;
    border: 0;
  }
  & #game-sidebar .limbo-comic-form label {
    display: grid;
    gap: .16em;
    color: var(--limbo-ink);
  }
  & #game-sidebar .limbo-comic-form .limbo-comic-primary-controls > :is(.actions, .auto-series-actions):has(+ .limbo-comic-toggles) {
    margin-block-end: 0;
  }
  & #game-sidebar .limbo-comic-toggles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(7px, .75cqw, 13px);
    margin-block-start: max(0px, calc(13px - var(--limbo-space)));
  }
  & #game-sidebar .limbo-comic-form .limbo-comic-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .3em;
    min-height: 44px;
    padding: .18em clamp(.42rem, .85cqw, .85rem);
    border: 2px solid var(--limbo-ink);
    border-radius: 3px;
    background: var(--limbo-grain), var(--limbo-yellow);
    box-shadow: 2px 3px var(--limbo-ink);
    color: var(--limbo-ink);
    font: italic 850 clamp(.83rem, 1.08cqw, 1.13rem)/1.15 var(--font-interface);
    font-synthesis: style weight;
    white-space: nowrap;
    cursor: pointer;
  }
  & #game-sidebar .limbo-comic-toggle:hover:not(:has(input:disabled)) { background-color: #fff065; }
  & #game-sidebar .limbo-comic-toggle:has(input:focus-visible) {
    outline: 3px solid #9f034b;
    outline-offset: 2px;
  }
  & #game-sidebar .limbo-comic-toggle:has(input:disabled) { cursor: default; }
  & #game-sidebar .limbo-comic-toggle > span {
    display: flex;
    align-items: center;
    gap: .28em;
  }
  & #game-sidebar .limbo-comic-toggle > span::before {
    display: block;
    flex: none;
    width: 1em;
    height: 1em;
    background: currentColor;
    content: "";
  }
  & #game-sidebar .limbo-comic-sound-label::before {
    clip-path: polygon(evenodd, 0 35%, 23% 35%, 52% 5%, 52% 95%, 23% 65%, 0 65%, 0 35%,
      62% 29%, 72% 30%, 83% 50%, 72% 70%, 62% 72%, 72% 50%, 62% 29%, 0 35%,
      80% 10%, 90% 15%, 100% 50%, 90% 85%, 80% 90%, 89% 50%, 80% 10%, 0 35%);
  }
  & #game-sidebar .limbo-comic-turbo-label::before {
    clip-path: polygon(57% 0, 98% 0, 65% 42%, 94% 42%, 19% 100%, 36% 55%, 4% 55%);
  }
  & #game-sidebar .limbo-comic-settings-label::before {
    background: radial-gradient(circle, transparent 21%, currentColor 24%);
    clip-path: polygon(37% 0, 63% 0, 66% 17%, 77% 22%, 93% 16%, 100% 38%, 86% 49%, 87% 55%,
      100% 66%, 90% 87%, 74% 80%, 64% 85%, 61% 100%, 39% 100%, 36% 85%, 26% 80%, 10% 87%,
      0 66%, 13% 55%, 14% 49%, 0 38%, 7% 16%, 23% 22%, 34% 17%);
  }
  & #game-sidebar .limbo-comic-toggle:has([data-limbo-auto-settings]:checked) { background-color: var(--limbo-mint); }
  & #game-sidebar .limbo-comic-toggle input {
    --limbo-toggle-thumb: clamp(5px, .5cqw, 8px);
    appearance: none;
    flex: none;
    width: clamp(36px, 3cqw, 49px);
    height: clamp(21px, 1.6cqw, 27px);
    margin: 0;
    padding: 0;
    border: 2px solid var(--limbo-ink);
    border-radius: 100vmax;
    background: radial-gradient(circle at 27% 50%, var(--limbo-ink) var(--limbo-toggle-thumb),
      transparent calc(var(--limbo-toggle-thumb) + .5px)), #fff6ce;
    cursor: inherit;
  }
  & #game-sidebar .limbo-comic-toggle input:checked {
    background: radial-gradient(circle at 73% 50%, var(--limbo-yellow) var(--limbo-toggle-thumb),
      transparent calc(var(--limbo-toggle-thumb) + .5px)), var(--limbo-ink);
  }
  & #game-sidebar .limbo-comic-form :is(.limbo-comic-odds, .limbo-comic-stake) {
    display: grid;
    min-width: 0;
  }
  & #game-sidebar .limbo-comic-form .limbo-comic-stake { gap: .3em; }
  & #game-sidebar .limbo-comic-form :is(.limbo-comic-odds, .limbo-comic-stake) > :is(label, .limbo-comic-odds-label, .limbo-comic-chance-label) {
    font: italic 900 clamp(19px, 2.56cqw, 43px)/1.06 var(--font-interface);
    font-synthesis: style weight;
    letter-spacing: -.036em;
    text-shadow: .014em 0 var(--limbo-ink);
  }
  & #game-sidebar .limbo-comic-odds { gap: .32em; }
  & #game-sidebar .limbo-comic-stake-entry {
    --stamp-width: clamp(50px, 5cqw, 82px);
    display: grid;
    grid-template-columns: var(--stamp-width) minmax(0, 1fr) var(--stamp-width);
    gap: clamp(7px, .6cqw, 11px);
  }
  & #game-sidebar .limbo-comic-reel {
    display: grid;
    grid-template-columns: minmax(44px, 1fr) minmax(0, 4fr) minmax(44px, 1fr);
  }
  & #game-sidebar :is(.limbo-comic-input, .limbo-comic-reel, .limbo-comic-chance) {
    position: relative;
    min-width: 0;
    min-height: var(--limbo-control-height);
    border: var(--limbo-keyline) solid var(--limbo-ink);
    border-radius: clamp(10px, 1.25cqw, 21px);
    background: var(--limbo-grain), var(--limbo-mint);
    box-shadow: inset 0 2px 4px #0e4e3033;
  }
  & #game-sidebar .limbo-comic-reel-window {
    container-type: inline-size;
    position: relative;
    overflow: hidden;
    min-width: 0;
    min-height: 44px;
    border-inline: max(1px, calc(var(--limbo-keyline) * .45)) solid var(--limbo-ink);
    background:
      linear-gradient(90deg, #16593152, transparent 25% 75%, #16593152),
      linear-gradient(#20764140, #d0ffc869 35%, #d0ffc869 62%, #20764150);
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
  }
  & #game-sidebar .limbo-comic-reel-window::before {
    position: absolute;
    inset: 3px auto auto 50%;
    width: 23px;
    height: 3px;
    border-radius: 2px;
    background: repeating-linear-gradient(90deg, #144b31 0 3px, transparent 3px 5px);
    content: "";
    transform: translateX(-50%);
    opacity: .74;
    pointer-events: none;
  }
  & #game-sidebar .limbo-comic-reel-window:hover:not([aria-disabled="true"]) {
    background-color: #baff98;
  }
  & #game-sidebar .limbo-comic-reel-window[data-dragging]:not([aria-disabled="true"]) {
    background-color: #5dffa7;
    cursor: grabbing;
  }
  & #game-sidebar .limbo-comic-reel-window[aria-disabled="true"] {
    filter: saturate(.72);
    cursor: default;
  }
  & #game-sidebar .limbo-comic-reel-window:focus-visible {
    outline: 3px solid #8c0344;
    outline-offset: -4px;
  }
  & #game-sidebar .limbo-comic-reel-track {
    /* Equal slots at a 42% pitch keep the selected value centered. */
    position: absolute;
    inset: 0 auto 0 -13%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    width: 126%;
    font-variant-numeric: lining-nums tabular-nums;
    text-align: center;
    white-space: nowrap;
    transform: translateX(var(--limbo-reel-offset, 0px));
    pointer-events: none;
  }
  & #game-sidebar .limbo-comic-reel-track > span {
    min-width: 0;
    padding: .18em .22em 0;
    color: #195333;
    font: normal 850 min(clamp(9px, 5.4cqw, 24px), calc(var(--limbo-reel-value-fit, 100cqw) * .65))/1 var(--font-interface);
    letter-spacing: -.035em;
  }
  & #game-sidebar .limbo-comic-reel-track > :is([data-limbo-reel-value="previous"], [data-limbo-reel-value="next"]) {
    overflow: hidden;
  }
  & #game-sidebar [data-limbo-reel-value="previous"] { text-align: end; }
  & #game-sidebar [data-limbo-reel-value="next"] { text-align: start; }
  & #game-sidebar .limbo-comic-reel-track > [data-limbo-reel-value="current"] {
    display: grid;
    justify-content: center;
    color: var(--limbo-ink);
    font-size: min(clamp(17px, 12cqw, 47px), var(--limbo-reel-value-fit, 100cqw));
    font-weight: 900;
    text-shadow: .013em 0 currentColor;
  }
  & #game-sidebar .limbo-comic-chance {
    display: grid;
    place-items: center;
    padding: .04em .1em .09em;
    color: var(--limbo-ink);
    font: normal 900 clamp(22px, 2.94cqw, 50px)/1 var(--font-interface);
    font-variant-numeric: lining-nums tabular-nums;
    letter-spacing: -.025em;
    text-shadow: .013em 0 currentColor;
  }
  & #game-sidebar .limbo-comic-input {
    container-type: inline-size;
    display: grid;
    align-items: stretch;
  }
  & #game-sidebar .limbo-comic-input :is(input, .limbo-comic-field-value) {
    grid-area: 1 / 1;
    min-width: 0;
    padding: .04em .1em .09em;
    font: normal 900 clamp(22px, 2.94cqw, 50px)/1 var(--font-interface);
    font-variant-numeric: lining-nums tabular-nums;
    letter-spacing: -.025em;
    text-shadow: .013em 0 currentColor;
    text-align: center;
  }
  & #game-sidebar .limbo-comic-input input {
    appearance: textfield;
    position: relative;
    width: 100%;
    min-height: 0;
    height: 100%;
    border: 0;
    border-radius: inherit;
    background: transparent;
    box-shadow: none;
    color: var(--limbo-ink);
    cursor: text;
  }
  & #game-sidebar .limbo-comic-input input::-webkit-inner-spin-button,
  & #game-sidebar .limbo-comic-input input::-webkit-outer-spin-button { appearance: none; margin: 0; }
  & #game-sidebar .limbo-comic-input:has(.limbo-comic-field-value) input:not(:focus) {
    color: transparent;
    text-shadow: none;
  }
  & #game-sidebar .limbo-comic-input input:focus-visible {
    outline: 3px solid #8c0344;
    outline-offset: -4px;
  }
  & #game-sidebar .limbo-comic-field-value {
    display: grid;
    z-index: 1;
    place-items: center;
    overflow: hidden;
    white-space: nowrap;
    color: var(--limbo-ink);
    pointer-events: none;
  }
  & #game-sidebar .limbo-comic-input:focus-within .limbo-comic-field-value { visibility: hidden; }
  & #game-sidebar .limbo-comic-stake-entry .limbo-comic-input :is(input, .limbo-comic-field-value) {
    font-size: clamp(16px, 12cqw, var(--limbo-stake-font-max, 48px));
  }
  & #game-sidebar .limbo-comic-stake-stamp {
    display: grid;
    min-width: 0;
    filter: drop-shadow(2px 3px 0 var(--limbo-ink));
    transform: rotate(var(--stamp-tilt));
    transition: transform 130ms ease, filter 130ms ease;
  }
  & #game-sidebar .limbo-comic-stake-stamp[data-stamp="half"] {
    --stamp-tilt: -1deg;
    --stamp-paper: #ff278d;
    --stamp-symbol: #fff2d3;
    --stamp-edge: polygon(2% 18%, 93% 0, 88% 34%, 99% 34%, 90% 83%, 1% 100%, 11% 66%, 0 66%);
    --stamp-prints: linear-gradient(143deg, #ffe2f0 0 17%, #ff8cbd 18% 22%, transparent 23% 79%, #bd11593b 80%);
    --stamp-symbol-shadow: 1px 1px 0 #790c41;
  }
  & #game-sidebar .limbo-comic-stake-stamp[data-stamp="double"] {
    --stamp-tilt: 1.2deg;
    --stamp-paper: #ffe313;
    --stamp-symbol: #8f0b4f;
    --stamp-edge: polygon(4% 5%, 70% 1%, 99% 22%, 88% 31%, 99% 49%, 74% 62%, 84% 71%,
      61% 99%, 1% 91%, 8% 57%, 2% 41%);
    --stamp-prints: linear-gradient(156deg, #fff58e 0 21%, transparent 23% 65%, #fca928 67% 81%, transparent 83%);
    --stamp-symbol-shadow: 1px 1px 0 #fff3ba;
  }
  & #game-sidebar .limbo-comic-stake-stamp > button {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    min-width: 44px;
    min-height: var(--limbo-control-height);
    clip-path: var(--stamp-edge);
    padding: .05em .12em .14em;
    border: 0;
    background: var(--limbo-ink);
    color: var(--limbo-ink);
    font: italic 900 clamp(25px, 2.8cqw, 48px)/1 var(--limbo-display);
    font-synthesis: style weight;
    letter-spacing: -.07em;
    text-shadow: .018em .012em currentColor;
  }
  & #game-sidebar .limbo-comic-stake-stamp > button::before {
    position: absolute;
    z-index: -1;
    inset: clamp(2px, .22cqw, 4px);
    clip-path: var(--stamp-edge);
    background: var(--limbo-grain), var(--stamp-prints), var(--stamp-paper);
    content: "";
  }
  & #game-sidebar .limbo-comic-stamp-ink {
    display: inline-flex;
    align-items: baseline;
    transform: rotate(-8deg);
  }
  & #game-sidebar .limbo-comic-stamp-ink > :first-child {
    margin-inline-end: .03em;
    color: var(--stamp-symbol);
    font-size: .85em;
    text-shadow: var(--stamp-symbol-shadow);
  }
  & #game-sidebar .limbo-comic-stake-stamp[data-stamp="double"] .limbo-comic-stamp-ink {
    padding-inline-end: .08em;
    transform: rotate(3deg);
  }
  & #game-sidebar .limbo-comic-stake-stamp > button:disabled { opacity: .83; }
  & #game-sidebar .limbo-comic-stake-stamp:has(button:focus-visible) {
    filter: drop-shadow(0 0 2px #a90049) drop-shadow(2px 3px 0 var(--limbo-ink));
  }
  & #game-sidebar .limbo-comic-stake-stamp > button:focus-visible::before { background-color: var(--limbo-paper); }
  @media (hover: hover) {
    & #game-sidebar .limbo-comic-stake-stamp:has(button:hover:not(:disabled)) {
      transform: translateY(-2px) rotate(var(--stamp-tilt));
    }
  }
  & #game-sidebar .limbo-comic-stake-stamp:has(button:active:not(:disabled)) {
    filter: drop-shadow(1px 1px 0 var(--limbo-ink));
    transform: translateY(2px) rotate(var(--stamp-tilt));
  }
  & #game-sidebar .limbo-comic-reel button {
    min-width: 0;
    min-height: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--limbo-ink);
    font: normal 900 clamp(24px, 3.6cqw, 60px)/1 var(--font-interface);
  }
  & #game-sidebar [data-limbo-target-step] {
    touch-action: pan-y;
    user-select: none;
    -webkit-touch-callout: none;
  }
  & #game-sidebar .limbo-comic-reel button:first-child {
    border-radius: clamp(6px, .85cqw, 15px) 0 0 clamp(6px, .85cqw, 15px);
  }
  & #game-sidebar .limbo-comic-reel > button:last-of-type {
    border-radius: 0 clamp(6px, .85cqw, 15px) clamp(6px, .85cqw, 15px) 0;
  }
  & #game-sidebar .limbo-comic-reel button:hover:not(:disabled) { background: #caffae; }
  & #game-sidebar .limbo-comic-reel button:focus-visible {
    outline: 3px solid #8c0344;
    outline-offset: -4px;
  }
  & #game-sidebar .limbo-comic-reel button:active:not(:disabled) { background: #49e88b; }
  & #game-sidebar .limbo-comic-reel button:disabled { opacity: .68; }

  & #game-sidebar .limbo-comic-primary-controls > .actions:has(.play-primary, [data-action="auth"]),
  & #game-sidebar .auto-series-actions {
    position: relative;
    margin-block: clamp(8px, 1.3cqw, 22px) clamp(2px, .6cqw, 10px);
  }
  & #game-sidebar .limbo-comic-primary-controls > .actions:has(.play-primary, [data-action="auth"])::before {
    position: absolute;
    inset: -5% auto auto -2.5%;
    width: 17%;
    aspect-ratio: 1.24;
    content: "";
    pointer-events: none;
    background: var(--limbo-ink);
    clip-path: polygon(evenodd, 1% 68%, 52% 94%, 0 81%, 1% 68%,
      7% 19%, 73% 74%, 11% 38%, 7% 19%, 1% 68%,
      53% 0, 98% 59%, 58% 15%, 53% 0, 1% 68%);
  }
  & #game-sidebar .limbo-comic-form .button:is(.play-primary, [data-action="auth"], [data-action="auto-stop"]) {
    --button-cut: polygon(8.5% 12%, 100% 0, 94% 92%, 0 100%);
    display: grid;
    place-items: center;
    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: max(74px, 9.8cqw);
    padding: .1em .37em .2em;
    color: var(--limbo-ink);
    border: 0;
    border-radius: 0;
    background: var(--limbo-ink);
    box-shadow: none;
    clip-path: var(--button-cut);
    font: italic 950 clamp(32px, 6.35cqw, 107px)/1 var(--limbo-display);
    font-synthesis: style weight;
    letter-spacing: -.028em;
    text-shadow: .015em 0 var(--limbo-ink);
    text-align: center;
    transform: rotate(-3deg);
    transition: transform .15s ease, background-color .15s ease;
  }
  & #game-sidebar .limbo-comic-form .button:is(.play-primary, [data-action="auth"], [data-action="auto-stop"])::before {
    position: absolute;
    inset: var(--limbo-keyline) var(--limbo-keyline) calc(var(--limbo-keyline) * 2.35);
    z-index: -1;
    content: "";
    clip-path: var(--button-cut);
    background: var(--limbo-grain), var(--limbo-yellow);
  }
  & #game-sidebar .limbo-comic-form .button:is(.play-primary, [data-action="auth"], [data-action="auto-stop"]):hover:not(:disabled) {
    transform: translateY(-2px) rotate(-4deg) scale(1.015);
  }
  & #game-sidebar .limbo-comic-form .button:is(.play-primary, [data-action="auth"], [data-action="auto-stop"]):active:not(:disabled) {
    transform: translateY(3px) rotate(-2deg) scale(.985);
  }
  & #game-sidebar .limbo-comic-form .button:is(.play-primary, [data-action="auth"], [data-action="auto-stop"]):focus-visible {
    background: #960047;
  }
  & #game-sidebar .limbo-comic-form:not([data-auto-series]):has([data-limbo-turbo]:checked) .play-primary {
    touch-action: pan-y;
    user-select: none;
    -webkit-touch-callout: none;
  }
  &[data-limbo-holding] #game-sidebar .limbo-comic-form:not([data-auto-series]) .play-primary {
    transform: translateY(3px) rotate(-2deg) scale(.985);
  }
  & #game-sidebar .auto-series-actions .button:is(.play-primary, [data-action="auth"], [data-action="auto-stop"]) {
    font-size: clamp(23px, 3.15cqw, 52px);
    min-height: max(64px, 6.3cqw);
  }
  & #game-sidebar .button[data-action="auto-stop"]::before { background: var(--limbo-grain), #ff7fae; }
  & #game-sidebar .auto-series-actions [hidden] { display: none !important; }
  & #game-sidebar .limbo-comic-auto-settings {
    container: limbo-auto / inline-size;
    min-width: 0;
  }
  & #game-sidebar .limbo-comic-auto-settings[hidden] { display: none; }
  & #game-sidebar .limbo-comic-auto-settings .auto-series-fields {
    gap: .55rem;
    padding: 0 2px 4px 0;
    border: 0;
    background: transparent;
  }
  & #game-sidebar .limbo-comic-auto-settings :is(.auto-quantity, .auto-progression, .auto-series-limits) {
    --limbo-auto-accent: var(--limbo-yellow);
    gap: .4rem .53rem;
    padding: clamp(.4rem, 1.7cqw, .75rem);
    border: 2px solid var(--limbo-ink);
    border-inline-start-width: 6px;
    border-inline-start-color: var(--limbo-auto-accent);
    border-radius: 2px;
    background: var(--limbo-grain), #fff8e0;
    box-shadow: 2px 3px var(--limbo-ink);
  }
  & #game-sidebar .limbo-comic-auto-settings [data-auto-progression="Win"] { --limbo-auto-accent: #32d887; }
  & #game-sidebar .limbo-comic-auto-settings [data-auto-progression="Loss"] { --limbo-auto-accent: #ff4d9a; }
  & #game-sidebar .limbo-comic-auto-settings :is(.auto-progression, .auto-series-limits) {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  }
  & #game-sidebar .limbo-comic-auto-settings label {
    gap: .23em;
    font: italic 850 clamp(.79rem, 3.38cqw, 1.07rem)/1.15 var(--font-interface);
    font-synthesis: style weight;
    opacity: 1;
  }
  & #game-sidebar .limbo-comic-auto-settings small {
    font: 690 .75rem/1.25 var(--font-interface);
  }
  & #game-sidebar .limbo-comic-auto-settings :is(input, select, .auto-unlimited) {
    min-height: 44px;
    border: 2px solid var(--limbo-ink);
    border-radius: 4px;
    color: var(--limbo-ink);
    background: #d0ffdc;
    font: 790 clamp(.83rem, 3.45cqw, 1rem)/1.2 var(--font-interface);
  }
  & #game-sidebar .limbo-comic-auto-settings input:disabled {
    background: #efe1c3;
    color: #624e40;
    opacity: 1;
  }
  & #game-sidebar .limbo-comic-auto-settings .auto-unlimited {
    width: 44px;
    background: var(--limbo-yellow);
    box-shadow: 1px 2px var(--limbo-ink);
    font-size: 1.45rem;
  }
  & #game-sidebar .limbo-comic-auto-settings .auto-unlimited[aria-pressed="true"] { background: var(--limbo-mint); }
  & #game-sidebar .limbo-comic-auto-settings .auto-unlimited:hover:not(:disabled) { background: #fff49c; }
  & #game-sidebar .limbo-comic-auto-settings :is(input, select, .auto-unlimited):focus-visible {
    outline: 3px solid #972055;
    outline-offset: -3px;
  }
  & #game-sidebar .limbo-auto-status {
    display: grid;
    min-width: 0;
    gap: .55rem;
    padding: .55rem;
    border: 2px solid var(--limbo-ink);
    border-radius: 3px;
    box-shadow: 2px 3px var(--limbo-ink);
    color: var(--limbo-ink);
    background: var(--limbo-grain), var(--limbo-paper);
  }
  & #game-sidebar .limbo-auto-phase {
    justify-self: start;
    max-width: 100%;
    padding: .26em .62em;
    color: var(--limbo-ink);
    background: var(--limbo-grain), var(--limbo-yellow);
    clip-path: polygon(2% 0, 100% 0, 97% 100%, 0 100%);
    font: italic 850 clamp(1rem, 1.45cqw, 1.45rem)/1.14 var(--limbo-display);
    font-synthesis: style weight;
    overflow-wrap: anywhere;
  }
  & #game-sidebar .limbo-auto-status[data-limbo-auto-phase="stopping"] .limbo-auto-phase { background-color: #ff91b8; }
  & #game-sidebar .limbo-auto-metrics {
    display: flex;
    gap: .42rem;
  }
  & #game-sidebar .limbo-auto-metric {
    flex: 1;
    min-width: 0;
    padding: .35em .48em;
    border: 2px solid var(--limbo-ink);
    background: #fff9e7;
  }
  & #game-sidebar .limbo-auto-metric > span {
    display: block;
    margin-block-end: .17em;
    font: 750 clamp(.7rem, 1cqw, .86rem)/1.1 var(--font-interface);
  }
  & #game-sidebar .limbo-auto-metric > strong {
    display: block;
    font: italic 900 clamp(1.05rem, 1.8cqw, 1.7rem)/1.15 var(--limbo-display);
    font-synthesis: style weight;
    overflow-wrap: anywhere;
  }
  & #game-sidebar .limbo-auto-status[data-limbo-auto-result="positive"] .limbo-auto-metric:has([data-limbo-auto-field="result"]) { background: var(--limbo-mint); }
  & #game-sidebar .limbo-auto-status[data-limbo-auto-result="negative"] .limbo-auto-metric:has([data-limbo-auto-field="result"]) { background: #ff9aba; }
  & #game-sidebar #preview:empty { display: none; }
  & #game-sidebar .limbo-comic-tools {
    --limbo-tools-inset: clamp(10px, 1.6cqw, 27px);
    --limbo-rules-width: clamp(98px, 37%, 138px);
    --limbo-tools-gap: clamp(7px, .6cqw, 10px);
    display: grid;
    position: relative;
    grid-area: tools;
    min-width: 0;
    width: min(calc(100% - 2 * var(--limbo-tools-inset)), 32rem);
    margin: 0 var(--limbo-tools-inset) clamp(11px, 1.1cqw, 18px);
    gap: var(--limbo-tools-gap);
    align-items: start;
  }
  & #game-sidebar .limbo-comic-tools > [data-action="minigame-rules"] {
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: 0;
    width: var(--limbo-rules-width);
  }
  & #game-sidebar .limbo-comic-paperwork {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  & #game-sidebar .limbo-comic-paperwork > summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55em;
    margin-inline-start: calc(var(--limbo-rules-width) + var(--limbo-tools-gap));
    width: fit-content;
    max-width: calc(100% - var(--limbo-rules-width) - var(--limbo-tools-gap));
    list-style: none;
    cursor: pointer;
  }
  & #game-sidebar .limbo-comic-paperwork > summary::-webkit-details-marker { display: none; }
  & #game-sidebar .limbo-comic-paperwork > summary::after {
    width: .45em;
    height: .45em;
    flex: none;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: translateY(-.12em) rotate(45deg);
    content: "";
  }
  & #game-sidebar .limbo-comic-paperwork[open] > summary::after { transform: translateY(.12em) rotate(225deg); }
  & #game-sidebar .limbo-comic-tools > :is(.button, .tag),
  & #game-sidebar .limbo-comic-paperwork > summary {
    min-height: 44px;
    padding: .25em .6em;
    border: 2px solid var(--limbo-ink);
    border-radius: 3px;
    color: var(--limbo-ink);
    background: var(--limbo-grain), var(--limbo-paper);
    box-shadow: 2px 3px var(--limbo-ink);
    font: italic 850 clamp(.87rem, 1.12cqw, 1.15rem)/1.12 var(--limbo-display);
    font-synthesis: style weight;
    text-align: center;
    white-space: normal;
  }
  & #game-sidebar .limbo-comic-paperwork > summary { background-color: #ffed91; }
  & #game-sidebar .limbo-comic-paperwork[inert] > summary { opacity: .7; }
  & #game-sidebar .limbo-comic-tools > .tag {
    justify-self: start;
    min-height: auto;
    padding: .32em .6em;
  }
  & #game-sidebar :is(.limbo-comic-tools > .button, .limbo-comic-paperwork > summary):hover {
    color: var(--limbo-ink);
    background-color: var(--limbo-yellow);
  }
  & #game-sidebar .limbo-comic-tools :is(input, textarea, button, summary):focus-visible {
    outline: 3px solid #972055;
    outline-offset: -3px;
  }
  & #game-sidebar .limbo-comic-proof-settings label {
    gap: .32em;
    font: italic 800 clamp(.85rem, 3.7cqw, 1rem)/1.18 var(--font-interface);
    font-synthesis: style weight;
  }
  & #game-sidebar .limbo-comic-proof-settings input {
    min-height: 44px;
    border: 2px solid var(--limbo-ink);
    border-radius: 3px;
    background: #d3ffdc;
    font-style: normal;
  }
  & #game-sidebar .limbo-comic-proof-settings input[readonly] {
    background: #fff8df;
    font: 620 clamp(.75rem, 3.35cqw, .9rem)/1.2 var(--mono);
    letter-spacing: .015em;
  }
  & #game-sidebar .limbo-comic-quote-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .48rem;
    margin: 0;
  }
  & #game-sidebar .limbo-comic-quote-grid > div {
    display: grid;
    align-content: start;
    justify-items: start;
    min-width: 0;
    gap: .25rem;
    padding: .42rem .52rem;
    border: 2px solid var(--limbo-ink);
    border-radius: 2px;
    color: var(--limbo-ink);
    background: var(--limbo-grain), var(--quote-card);
    box-shadow: 2px 2px var(--limbo-ink);
  }
  & #game-sidebar .limbo-comic-quote-edge { --quote-card: #ffadce; }
  & #game-sidebar .limbo-comic-quote-rtp { --quote-card: #a1fbb6; }
  & #game-sidebar .limbo-comic-quote-grid > .limbo-comic-quote-cap {
    --quote-card: #ffed82;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) minmax(min-content, auto);
    align-items: center;
  }
  & #game-sidebar .limbo-comic-quote-grid dt {
    max-width: 100%;
    font: 850 clamp(.71rem, 3.15cqw, .88rem)/1.13 var(--font-interface);
    overflow-wrap: anywhere;
  }
  & #game-sidebar .limbo-comic-quote-grid dd {
    max-width: 100%;
    margin: 0;
    font: italic 900 clamp(1.45rem, 6.8cqw, 2.1rem)/1 var(--limbo-display);
    font-variant-numeric: tabular-nums;
    font-synthesis: style weight;
    overflow-wrap: anywhere;
  }
  & #game-sidebar .limbo-comic-quote-payout {
    margin: .48rem 0 0;
    font-size: .85rem;
  }
  & #game-sidebar .limbo-comic-commitment {
    display: grid;
    gap: .6rem;
    min-width: 0;
  }
  & #game-sidebar .limbo-comic-proof-settings:has([data-limbo-quote]) .limbo-comic-commitment {
    padding-block-start: .67rem;
    border-block-start: 2px dashed #7f5a4d;
  }
  & #game-sidebar :is(.limbo-comic-player-seed, .limbo-comic-server-proof) {
    display: grid;
    gap: .5rem;
    padding: .48rem .57rem .58rem;
    border: 2px solid var(--limbo-ink);
    border-radius: 2px;
    background: #fffae9;
  }
  & #game-sidebar .limbo-comic-player-seed {
    border-inline-start: 6px solid #24bd73;
    background: #eaffec;
  }
  & #game-sidebar .limbo-comic-server-proof {
    border-inline-start: 6px solid #f1bc23;
  }
  & #game-sidebar .limbo-comic-server-proof > h3 {
    margin: 0;
    font: italic 900 clamp(.98rem, 4.1cqw, 1.28rem)/1.14 var(--limbo-display);
    font-synthesis: style weight;
  }
  & #game-sidebar .limbo-comic-server-proof textarea {
    min-width: 0;
    width: 100%;
    resize: vertical;
    padding: .55rem .62rem;
    border: 2px solid var(--limbo-ink);
    border-radius: 3px;
    background: #fff8e1;
    color: var(--limbo-ink);
    font: 600 clamp(.69rem, 3.55cqw, .88rem)/1.35 var(--mono);
    overflow-wrap: anywhere;
  }
  & #game-sidebar .limbo-comic-server-proof label:has([name="shuffleNonce"]) {
    grid-template-columns: minmax(0, 1fr) 5.5rem;
    align-items: center;
  }
  & #game-sidebar .limbo-comic-commitment [data-action="precommit"] {
    --limbo-ticket-action: polygon(2.5% 7%, 100% 0, 96% 91%, 0 100%);
    isolation: isolate;
    position: relative;
    justify-self: stretch;
    min-height: 52px;
    padding: .4rem .63rem .55rem;
    border: 0;
    border-radius: 0;
    color: var(--limbo-ink);
    background: var(--limbo-ink);
    clip-path: var(--limbo-ticket-action);
    font: italic 900 clamp(1.12rem, 5.6cqw, 1.65rem)/1.1 var(--limbo-display);
    font-synthesis: style weight;
    white-space: normal;
  }
  & #game-sidebar .limbo-comic-commitment [data-action="precommit"]::before {
    position: absolute;
    inset: 2px 2px 5px;
    z-index: -1;
    clip-path: var(--limbo-ticket-action);
    background: var(--limbo-grain), var(--limbo-yellow);
    content: "";
  }
  & #game-sidebar .limbo-comic-commitment [data-action="precommit"]:hover:not(:disabled)::before {
    background-color: #fff171;
  }
  & #game-sidebar .limbo-comic-commitment [data-action="precommit"]:focus-visible {
    background-color: #972055;
  }
}

@container limbo-ticket (min-width: 375px) {
  html[data-ludik-theme="comic"] #content[data-game="limbo"]:has(.limbo-comic-layout) #game-sidebar {
    & .limbo-comic-quote-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    & .limbo-comic-quote-grid > .limbo-comic-quote-cap {
      grid-column: auto;
      grid-template-columns: minmax(0, 1fr);
      align-items: start;
    }
  }
}

@container limbo-auto (min-width: 450px) {
  html[data-ludik-theme="comic"] #content[data-game="limbo"]:has(.limbo-comic-layout) #game-sidebar .limbo-comic-auto-settings {
    & .auto-series-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    & :is(.auto-quantity, .auto-series-limits) { grid-column: 1 / -1; }
    & .auto-progression { grid-template-columns: minmax(0, 1fr); }
  }
}

html[data-ludik-theme="comic"] #content[data-game="limbo"] {
  & .limbo-comic-recent-wrap {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(6px, .75cqw, 12px);
    align-items: start;
    margin: 0 clamp(10px, 1.6cqw, 27px) clamp(8px, .75cqw, 12px);
  }
  & .limbo-comic-recent {
    display: flex;
    gap: .42rem;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--limbo-ink) #fff3d376;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 3px;
    margin: 0;
    padding: 0 4px 6px 2px;
    list-style: none;
  }
  & .limbo-comic-recent > li {
    flex: none;
    scroll-snap-align: start;
  }
  & :is(.limbo-comic-history-trigger, .limbo-comic-recent-entry, .limbo-comic-recent-empty) {
    min-height: 44px;
    border: 2px solid var(--limbo-ink);
    border-radius: 3px;
    color: var(--limbo-ink);
    background: var(--limbo-grain), var(--limbo-paper);
    box-shadow: 2px 3px var(--limbo-ink);
  }
  & .limbo-comic-history-trigger {
    padding-inline: clamp(.57rem, 1.3cqw, 1rem);
    font: italic 850 clamp(1rem, 1.65cqw, 1.5rem)/1 var(--limbo-display);
    font-synthesis: style;
  }
  & .limbo-comic-history-trigger:hover { background-color: var(--limbo-yellow); }
  & .limbo-comic-recent-entry {
    display: grid;
    justify-items: center;
    gap: .18rem;
    min-width: 5.25rem;
    padding: .3em .55em;
    white-space: nowrap;
  }
  & .limbo-comic-recent-entry[data-result="win"] { background-color: var(--limbo-mint); }
  & .limbo-comic-recent-entry[data-result="loss"] { background-color: #ff93bb; }
  & .limbo-comic-recent-entry[data-result="push"] { background-color: var(--limbo-yellow); }
  & .limbo-comic-recent-entry:hover { filter: brightness(1.08); }
  & :is(.limbo-comic-history-trigger, .limbo-comic-recent-entry):focus-visible {
    outline: 3px solid #9f034b;
    outline-offset: -4px;
  }
  & .limbo-comic-recent-entry strong {
    font: italic 850 clamp(1.08rem, 2.05cqw, 1.68rem)/1 var(--limbo-display);
    font-synthesis: style;
    font-variant-numeric: tabular-nums;
  }
  & .limbo-comic-recent-entry span { font: 750 .72rem/1 var(--font-interface); }
  & .limbo-comic-recent-empty {
    justify-self: start;
    display: grid;
    align-items: center;
    margin: 0;
    padding: .25em .66em;
    font-size: .82rem;
    font-weight: 700;
  }
  & :is(.limbo-comic-recent, .limbo-comic-recent-empty)[hidden] { display: none; }
}

@media (max-width: 768px) {
  html[data-ludik-theme="comic"] #content[data-game="limbo"]:has(.limbo-comic-layout) {
    --limbo-space: 10px;
    --limbo-keyline: 3px;
    --limbo-control-height: clamp(45px, 10cqw, 60px);
    --limbo-stake-font-max: clamp(24px, 5.3vw, 34px);

    & .limbo-comic-layout {
      grid-template-columns: minmax(0, 1fr);
      grid-template-rows: auto;
      grid-template-areas: "playfield" "tools" "wager";
      padding: 0;
    }
    & .limbo-comic-arena.instant-limbo { aspect-ratio: 1.09; }
    & .limbo-comic-title {
      inset: 3.5% auto auto 2.4%;
      width: 43%;
      height: 29.5%;
      font-size: 9.8cqw;
    }
    & .limbo-comic-dial { inset: 14.5% auto auto 15%; width: 74%; }
    & .limbo-comic-bolt-left { inset: 54% auto auto 2.5%; width: 13%; }
    & .limbo-comic-bolt-right { inset: 14% 1.5% auto auto; width: 11.1%; }
    & .limbo-comic-arena::after { inset-inline-start: 7.5%; }
    & .limbo-comic-primary-controls {
      width: min(calc(100% - 16px), 38rem);
      margin: 0 auto;
      min-height: 0;
      padding: clamp(18px, 5cqw, 34px) clamp(13px, 5.8cqw, 40px) clamp(23px, 5cqw, 37px);
    }
    & #game-sidebar .auto-mode button {
      min-height: clamp(45px, 11cqw, 64px);
      font-size: clamp(23px, 5.8cqw, 33px);
    }
    & #game-sidebar .limbo-comic-form :is(.limbo-comic-odds, .limbo-comic-stake) > :is(label, .limbo-comic-odds-label, .limbo-comic-chance-label) {
      font-size: clamp(20px, 5.1cqw, 30px);
    }
    & #game-sidebar :is(.limbo-comic-input :is(input, .limbo-comic-field-value), .limbo-comic-chance) {
      font-size: clamp(24px, 5.3cqw, 34px);
    }
    & #game-sidebar .limbo-comic-form .button:is(.play-primary, [data-action="auth"], [data-action="auto-stop"]) {
      min-height: clamp(79px, 17cqw, 117px);
      font-size: clamp(39px, 9.5cqw, 63px);
    }
    & #game-sidebar .auto-series-actions .button:is(.play-primary, [data-action="auth"], [data-action="auto-stop"]) {
      min-height: clamp(68px, 15cqw, 104px);
      font-size: clamp(24px, 6cqw, 46px);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-ludik-theme="comic"] #content[data-game="limbo"]:has(.limbo-comic-layout) {
    & #game-sidebar :is(.auto-mode button, .limbo-comic-form .button, .limbo-comic-stake-stamp) { transition: none; }
  }
}

html[data-ludik-theme="comic"] #dialog:is([data-variant="limbo-history"], [data-variant="limbo-proof"], [data-variant="limbo-rules"], :has(.minigame-rules[data-rules-game="limbo"])) {
  width: min(700px, calc(100% - 20px));
  max-height: calc(100dvh - 24px);
  overflow: visible;
  padding: 0;
  color: var(--limbo-ink);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;

  &::backdrop { background: #18090ddd; }
  & #dialog-content {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    position: relative;
    isolation: isolate;
    gap: clamp(10px, 2vw, 18px);
    max-height: calc(100dvh - 24px);
    padding: clamp(16px, 3vw, 29px);
  }
  & #dialog-content::before,
  & #dialog-content::after {
    position: absolute;
    inset: 0;
    z-index: -2;
    clip-path: var(--limbo-paper-edge);
    background: var(--limbo-ink);
    pointer-events: none;
    content: "";
  }
  & #dialog-content::after {
    inset: 3px 3px 5px;
    z-index: -1;
    background: var(--limbo-grain), var(--limbo-paper-fill);
  }
  & .dialog-head { align-items: center; margin: 0; gap: .5rem; }
  & .dialog-head h2 {
    margin: 0 auto 0 0;
    padding: .32em .56em .42em;
    color: var(--limbo-ink);
    background: var(--limbo-grain), var(--limbo-yellow);
    border: 2px solid var(--limbo-ink);
    box-shadow: 2px 3px var(--limbo-ink);
    font: italic 900 clamp(1.35rem, 4.75vw, 2.65rem)/1 var(--limbo-display);
    transform: rotate(-2.5deg) skewX(-5deg);
  }
  & .dialog-head .icon-button {
    width: 44px;
    height: 44px;
    flex: none;
    font-size: 1.35rem;
  }
  & :is(.button, .icon-button) {
    min-height: 44px;
    color: var(--limbo-ink);
    border: 2px solid var(--limbo-ink);
    border-radius: 3px;
    background: var(--limbo-mint);
    box-shadow: 2px 3px var(--limbo-ink);
    font-weight: 850;
  }
  & :is(.button, .icon-button):hover:not(:disabled) {
    color: var(--limbo-ink);
    background: var(--limbo-yellow);
  }
  & :is(button, input, summary):focus-visible {
    outline: 3px solid #9f034b;
    outline-offset: 2px;
  }
  & :is(.limbo-comic-history, .limbo-comic-proof, .minigame-rules) {
    min-height: 0;
    min-width: 0;
    align-content: start;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--limbo-ink) transparent;
    padding: 2px 6px 7px 2px;
    color: var(--limbo-ink);
  }
  & .limbo-comic-history ol {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0 3px 7px 0;
    list-style: none;
  }
  & .limbo-comic-history-row {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.3fr) repeat(2, minmax(0, .9fr));
    align-items: center;
    gap: .55rem;
    width: 100%;
    min-height: 56px;
    padding: .35em .6em;
    color: var(--limbo-ink);
    border: 2px solid var(--limbo-ink);
    border-radius: 3px;
    background: #fff9e8;
    box-shadow: 2px 3px var(--limbo-ink);
    font-weight: 730;
    text-align: start;
    overflow-wrap: anywhere;
  }
  & .limbo-comic-history-row:hover { background: #fff0ba; }
  & .limbo-comic-history-row :is(span, time) { min-width: 0; }
  & .limbo-comic-history-row > :first-child {
    padding: .28em .38em .35em;
    border: 2px solid var(--limbo-ink);
    background: var(--limbo-yellow);
    font: italic 900 clamp(1.2rem, 4vw, 2rem)/1 var(--limbo-display);
    transform: rotate(-2deg);
  }
  & .limbo-comic-history-row[data-result="win"] > :first-child { background: var(--limbo-mint); }
  & .limbo-comic-history-row[data-result="loss"] > :first-child { background: #ff95ba; }
  & .limbo-comic-history-row small { display: block; color: #604c3f; font-weight: 650; }
  & .limbo-comic-history > .button { margin-block: .4rem; }
  & .limbo-comic-proof {
    gap: .74rem;
    padding: .38rem .42rem .55rem .18rem;
  }
  & .limbo-comic-proof-head {
    display: grid;
    gap: .62rem;
  }
  & .limbo-proof-factors {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: clamp(.36rem, 1.9vw, .85rem);
    padding: .12rem .1rem .25rem;
  }
  & .limbo-proof-comparison {
    display: grid;
    grid-template-rows: 1fr auto;
    gap: .28rem;
    min-width: 0;
  }
  & :is(.limbo-proof-score, .limbo-proof-target) {
    --limbo-receipt-cut: polygon(1.7% 7%, 6.8% 5%, 10.2% 1.9%, 18.3% 3%, 24% 1%, 36% 2.5%,
      43% 0, 56% 2.5%, 63% .8%, 75% 2.8%, 83% 1.5%, 94% 3%, 99.6% 1.7%, 98.7% 19%,
      100% 30%, 98.8% 40%, 100% 57%, 98.6% 67%, 99.5% 80%, 97.2% 96%, 89% 96.7%,
      82% 99%, 75% 97.5%, 66% 99.5%, 55% 98%, 48% 100%, 36% 97.4%, 27% 99%, 17% 96%,
      9% 98%, 2% 96%, 1% 83%, 2% 70%, 0 57%, 1.8% 44%, .6% 32%, 1.8% 16%);
    display: grid;
    align-content: center;
    justify-items: start;
    gap: .1rem;
    position: relative;
    isolation: isolate;
    min-width: 0;
    padding: .48rem clamp(.5rem, 2.5vw, 1.1rem) .58rem;
    color: var(--limbo-ink);
    filter: drop-shadow(2px 3px 0 var(--limbo-ink));
  }
  & .limbo-proof-score {
    --limbo-ticket-fill: var(--limbo-yellow);
    min-height: clamp(88px, 17vw, 129px);
    transform: rotate(-1.25deg);
  }
  & .limbo-proof-target {
    --limbo-ticket-fill: #ff7ab4;
    transform: rotate(1deg);
  }
  & :is(.limbo-proof-score, .limbo-proof-target)::before,
  & :is(.limbo-proof-score, .limbo-proof-target)::after {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: var(--limbo-ink);
    clip-path: var(--limbo-receipt-cut);
    pointer-events: none;
    content: "";
  }
  & :is(.limbo-proof-score, .limbo-proof-target)::after {
    inset: 2px;
    z-index: -1;
    background: var(--limbo-grain), var(--limbo-ticket-fill);
  }
  & :is(.limbo-proof-score, .limbo-proof-target) > span {
    font: 850 clamp(.74rem, 2.6vw, 1rem)/1.1 var(--font-interface);
  }
  & :is(.limbo-proof-score, .limbo-proof-target) > strong {
    width: 100%;
    font: italic 900 clamp(1.9rem, 7.25vw, 3.8rem)/.95 var(--limbo-display);
    font-synthesis: style weight;
    letter-spacing: -.025em;
    overflow-wrap: anywhere;
  }
  & .limbo-proof-target > strong { font-size: clamp(1.35rem, 4.8vw, 2.65rem); }
  & .limbo-proof-score > strong[data-length="long"] { font-size: clamp(1.28rem, 5.25vw, 3rem); }
  & .limbo-proof-score > strong[data-length="extended"] { font-size: clamp(.94rem, 3.9vw, 2.1rem); }
  & .limbo-proof-target > strong[data-length="long"] { font-size: clamp(.95rem, 3.65vw, 1.9rem); }
  & .limbo-proof-outcome {
    justify-self: start;
    z-index: 1;
    padding: .22em .52em .29em;
    color: var(--limbo-ink);
    border: 2px solid var(--limbo-ink);
    background: #fff2ce;
    box-shadow: 1px 2px var(--limbo-ink);
    font: 850 clamp(.7rem, 2.9vw, .98rem)/1.1 var(--font-interface);
    transform: rotate(-1.5deg);
  }
  & .limbo-comic-proof-head[data-result="win"] .limbo-proof-outcome { background: var(--limbo-mint); }
  & .limbo-comic-proof-head[data-result="loss"] .limbo-proof-outcome { background: #ff96bc; }
  & .limbo-comic-proof .stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border: 2px solid var(--limbo-ink);
    box-shadow: 2px 2px var(--limbo-ink);
  }
  & .limbo-comic-proof .stat {
    padding: .5rem clamp(.32rem, 2vw, .72rem);
    border: 0;
    border-radius: 0;
    background: #fff9e8;
  }
  & .limbo-comic-proof .stat + .stat { border-inline-start: 1px solid var(--limbo-ink); }
  & .limbo-comic-proof .stat:nth-child(2) { background: #baf9be; }
  & .limbo-comic-proof .stat :is(span, strong) {
    color: var(--limbo-ink);
  }
  & .limbo-comic-proof .stat span { font-size: .73rem; font-weight: 700; }
  & .limbo-comic-proof .stat strong {
    font: 850 clamp(.84rem, 2.9vw, 1.24rem)/1.12 var(--font-interface);
  }
  & .limbo-proof-record {
    padding: 0 .68rem .64rem;
    border: 2px solid var(--limbo-ink);
    background: #fff9e8;
  }
  & .limbo-proof-record h3 {
    margin: 0 -.68rem;
    padding: .42em .6em .48em;
    color: var(--limbo-paper);
    border-bottom: 1px solid var(--limbo-ink);
    background: var(--limbo-ink);
    font: italic 850 clamp(1rem, 3.1vw, 1.35rem)/1.07 var(--limbo-display);
    font-synthesis: style weight;
  }
  & .limbo-proof-record > dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .48rem .72rem;
    margin: 0 0 .56rem;
    padding: .55rem 0 .62rem;
    border-bottom: 1px dashed #7c634b;
  }
  & .limbo-proof-record dt {
    color: #503827;
    font-size: .74rem;
    font-weight: 730;
  }
  & .limbo-proof-record dd {
    margin: .12rem 0 0;
    font-size: clamp(.74rem, 2.45vw, .9rem);
    font-weight: 790;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
  }
  & .limbo-proof-record dd[data-shuffle-round-nonce] {
    width: max-content;
    max-width: 100%;
    padding: .11em .35em;
    border: 1px solid var(--limbo-ink);
    background: var(--limbo-mint);
  }
  & .limbo-comic-proof-ids {
    display: grid;
    gap: .42rem;
  }
  & .limbo-comic-proof-ids label {
    display: grid;
    gap: .22rem;
    min-width: 0;
    color: var(--limbo-ink);
    font-size: .78rem;
    font-weight: 800;
  }
  & .limbo-comic-proof-ids textarea {
    width: 100%;
    min-height: 44px;
    max-width: 100%;
    padding: .56rem .48rem;
    color: var(--limbo-ink);
    border: 1px solid var(--limbo-ink);
    border-radius: 2px;
    background: #fffcf3;
    font: 650 clamp(.67rem, 2.5vw, .82rem)/1.2 ui-monospace, monospace;
    overflow-wrap: anywhere;
    resize: none;
  }
  & .limbo-comic-proof-ids textarea:focus-visible {
    outline: 3px solid #9f034b;
    outline-offset: -3px;
  }
  & .limbo-comic-proof details {
    border: 2px solid var(--limbo-ink);
    background: #fff9e8;
    color: var(--limbo-ink);
  }
  & .limbo-comic-proof details > summary {
    display: flex;
    align-items: center;
    gap: .7em;
    min-height: 44px;
    padding: .42rem .62rem;
    color: var(--limbo-ink);
    background: var(--limbo-grain), #ffe684;
    font: 850 clamp(.84rem, 2.8vw, 1.02rem)/1.15 var(--font-interface);
    list-style: none;
  }
  & .limbo-comic-proof details > summary::-webkit-details-marker { display: none; }
  & .limbo-comic-proof details > summary::before {
    flex: none;
    width: .48em;
    height: .48em;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    content: "";
    transform: rotate(-45deg);
  }
  & .limbo-comic-proof details > summary:hover { background-color: var(--limbo-yellow); }
  & .limbo-comic-proof details[open] > summary::before { transform: rotate(45deg); }
  & .limbo-comic-proof details > summary:focus-visible { outline-offset: -3px; }
  & .limbo-comic-proof-terms { margin: 0; }
  & .limbo-comic-proof-terms div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
    gap: .45em;
    padding: .4em .62em;
    border-top: 1px solid #422b1e39;
    font-size: clamp(.78rem, 2.5vw, .91rem);
  }
  & .limbo-comic-proof-terms div:nth-child(even) { background: #ffefc4; }
  & .limbo-comic-proof-terms dd {
    margin: 0;
    text-align: end;
    font-weight: 780;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
  }
  & .limbo-proof-verification {
    display: grid;
    gap: .65rem;
    min-width: 0;
  }
  & .limbo-proof-verification > .actions {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) repeat(2, minmax(0, 1fr));
    gap: .42rem;
    padding: .08rem .1rem .18rem;
  }
  & .limbo-proof-verification > .actions .button {
    min-width: 0;
    padding: .38em .54em;
    border: 1px solid var(--limbo-ink);
    background: #fffcf1;
    box-shadow: 1px 2px var(--limbo-ink);
    font: 780 clamp(.75rem, 2.45vw, .96rem)/1.15 var(--font-interface);
    text-align: center;
    white-space: normal;
  }
  & .limbo-proof-verification > .actions [data-action="verify-proof"] {
    border-width: 2px;
    background: var(--limbo-grain), var(--limbo-yellow);
    box-shadow: 2px 3px var(--limbo-ink);
    font-weight: 900;
  }
  & .limbo-proof-verification > .actions .button:hover:not(:disabled) { background-color: #fff0ab; }
  & .limbo-proof-verification > .notice:not([hidden]) {
    padding: .5em .67em;
    color: var(--limbo-ink);
    border: 1px solid var(--limbo-ink);
    border-inline-start-width: 5px;
    background: #d8ffd8;
    overflow-wrap: anywhere;
  }
  & .limbo-proof-verification > .notice.error { background: #ffe0ee; }
  & .limbo-proof-verification details pre {
    max-height: 15rem;
    margin: 0;
    padding: .62rem;
    color: var(--limbo-ink);
    border: 0;
    border-top: 1px solid var(--limbo-ink);
    background: #fff9e8;
    font: .74rem/1.4 ui-monospace, monospace;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
  @media (max-width: 520px) {
    & .limbo-proof-verification > .actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    & .limbo-proof-verification > .actions [data-action="verify-proof"] { grid-column: 1 / -1; }
  }
  & .minigame-rules section {
    padding: 0 .7rem .7rem;
    border: 2px solid var(--limbo-ink);
    border-radius: 3px;
    background: #fff9e8;
    box-shadow: 2px 3px var(--limbo-ink);
  }
  & .minigame-rules h3 {
    margin-inline: -.7rem;
    padding: .38em .6rem;
    color: var(--limbo-ink);
    border-bottom: 2px solid var(--limbo-ink);
    background: var(--limbo-mint);
    font: italic 850 clamp(1rem, 3vw, 1.48rem)/1.1 var(--limbo-display);
  }
  & .minigame-rules section:nth-child(2) h3 { background: var(--limbo-yellow); }
  & .minigame-rules li::marker, & .minigame-rules-version { color: #881b48; }
  & .minigame-rules dl { border: 1px solid var(--limbo-ink); border-radius: 3px; }
  & .minigame-rules dl div { background: #fff4cf; }
  & .minigame-rules dl div:nth-child(even) { background: #ffedb4; }
  & .minigame-rules dd { color: var(--limbo-ink); }

  @media (max-width: 520px) {
    & .limbo-comic-history-row {
      grid-template-columns: minmax(0, 1.15fr) repeat(2, minmax(0, 1fr));
      gap: .24rem .4rem;
      font-size: .85rem;
    }
    & .limbo-comic-history-row > :first-child { grid-area: 1 / 1 / 3; }
    & .limbo-comic-history-row > :nth-child(2) { grid-column: 2 / -1; }
  }
}
