:root {
  --blue: #1d3be3;
  --blue-deep: #1429a8;
  --ink: #0b1340;
  --paper: #f3f5fb;
  --white: #ffffff;
  --marker: #ffe14a;
  --stamp: #e3142d;
  --muted: #55608a;
  --line: #d5daea;
  --display: 'Bricolage Grotesque', 'Arial Narrow', Arial, sans-serif;
  --hand: 'Caveat', 'Comic Sans MS', cursive;
  --hud: 3.25rem;
  --edge: 3px solid var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--hud); -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  margin: 0;
  padding-top: var(--hud);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.125rem;
  line-height: 1.5;
  font-optical-sizing: auto;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--marker); outline-offset: 3px; }
.band:not(.ink):not(.red) :focus-visible { outline-color: var(--blue); }
.band.yellow :focus-visible { outline-color: var(--ink); }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: -999px; top: 0; background: var(--marker); color: var(--ink); padding: .5rem 1rem; z-index: 60; }
.skip:focus { left: 0; }

.wrap { width: min(100% - 2.5rem, 76rem); margin-inline: auto; }
.wrap.narrow { width: min(100% - 2.5rem, 46rem); }

/* Characters */

.ico { width: 2.5rem; height: 2.5rem; flex: none; overflow: visible; }
.c-skin { fill: var(--white); stroke: var(--ink); stroke-width: 3; }
.c-shirt { fill: var(--blue); stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.c-cardigan { fill: var(--marker); stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.c-tie { fill: var(--stamp); stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.c-hair { fill: var(--ink); stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.c-ink { fill: var(--ink); }
.c-line { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.c-thin { stroke-width: 2; }
.c-bot { fill: #c9d1ee; stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.c-eye { fill: var(--marker); stroke: var(--ink); stroke-width: 2.5; }
.c-glass { fill: var(--white); stroke: var(--ink); stroke-width: 2.5; }

/* Buttons */

.btn { font-weight: 700; font-size: 1.1rem; background: var(--marker); color: var(--ink); border: var(--edge); border-radius: 3px; padding: .7rem 1.4rem; cursor: pointer; box-shadow: 5px 5px 0 var(--ink); transition: transform .08s, box-shadow .08s; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 1px 1px 0 var(--ink); }
.btn:disabled { opacity: .55; cursor: progress; transform: none; box-shadow: 5px 5px 0 var(--ink); }
.btn.ghost { background: transparent; color: var(--white); border-color: var(--white); }
.btn.plain { background: var(--white); }
.ink .btn, .hero .title-msg .btn { box-shadow: 5px 5px 0 var(--blue); }
.ink .btn:hover { box-shadow: 7px 7px 0 var(--blue); }
.ink .btn:active { box-shadow: 1px 1px 0 var(--blue); }
.hero .title-msg .btn { box-shadow: 5px 5px 0 var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

/* HUD */

.hud { position: fixed; inset: 0 0 auto 0; height: var(--hud); z-index: 50; background: var(--ink); color: var(--white); display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-inline: max(1.25rem, (100% - 76rem) / 2); font-size: 1rem; }
.hud .brand { font-weight: 800; font-stretch: 80%; font-size: 1.15rem; text-decoration: none; white-space: nowrap; }
.hud-count { white-space: nowrap; }
.hud-count strong { display: inline-block; min-width: 3ch; text-align: right; font-size: 1.35rem; font-weight: 800; font-stretch: 78%; color: var(--marker); font-variant-numeric: tabular-nums; line-height: 1; vertical-align: -.08em; }
.hud-count.zero strong { color: var(--stamp); }
.hud-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--blue); }
.hud-bar i { display: block; height: 100%; width: 0; background: var(--stamp); }
.badges { position: relative; }
.hud-btn { background: var(--marker); color: var(--ink); border: 0; border-radius: 3px; padding: .25rem .7rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.hud-btn span { font-variant-numeric: tabular-nums; }
.hud-btn.bump { animation: bump .45s; }
.badge-panel { position: absolute; right: 0; top: calc(100% + .75rem); width: min(22rem, calc(100vw - 2rem)); background: var(--white); color: var(--ink); border: var(--edge); border-radius: 4px; box-shadow: 8px 8px 0 var(--blue); padding: 1rem 1.1rem; }
.badge-panel > p { font-weight: 800; font-stretch: 80%; font-size: 1.3rem; margin-bottom: .5rem; }
.badge-panel li { display: grid; grid-template-columns: 1.6rem 1fr; gap: .1rem .5rem; padding-block: .45rem; border-top: 1.5px solid var(--line); font-size: .95rem; line-height: 1.25; color: var(--muted); }
.badge-panel li::before { content: '?'; grid-row: span 2; width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 2px dashed var(--line); display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.badge-panel li b { color: var(--muted); font-weight: 700; }
.badge-panel li.got { color: var(--ink); }
.badge-panel li.got b { color: var(--ink); }
.badge-panel li.got::before { content: '✓'; background: var(--marker); border: 2px solid var(--ink); color: var(--ink); }

@keyframes bump { 30% { transform: scale(1.25) rotate(-4deg); } 60% { transform: scale(.95) rotate(2deg); } }

/* Hero */

.hero { background: var(--blue); color: var(--white); padding-bottom: clamp(3.5rem, 8vw, 7rem); position: relative; }
.title-wrap { position: relative; }

h1 {
  font-size: clamp(4.4rem, 19.5vw, 17rem);
  font-weight: 800;
  font-stretch: 75%;
  line-height: .84;
  letter-spacing: -.035em;
  padding-block: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 2vw, 1.5rem);
  margin-left: -.04em;
  user-select: none;
}
h1 .ln { display: block; white-space: nowrap; }
h1 .ch { display: inline-block; cursor: url(stamp.svg) 18 30, pointer; transition: transform .12s, color .12s; transform-origin: 50% 80%; }
h1 .ch:hover { color: var(--marker); transform: translateY(-.04em) rotate(-4deg); }
h1 .ch:nth-child(even):hover { transform: translateY(-.04em) rotate(4deg); }
h1 .ch.gone { animation: fall .7s cubic-bezier(.5, 0, .9, .5) forwards; pointer-events: none; }
@keyframes fall { 15% { transform: translateY(-.08em) rotate(var(--r, 12deg)); color: var(--stamp); } 100% { transform: translateY(1.6em) rotate(calc(var(--r, 12deg) * 5)); opacity: 0; } }

.title-hint { font-family: var(--hand); font-size: clamp(1.3rem, 2.2vw, 1.9rem); line-height: 1; color: var(--marker); transform: rotate(-3deg); width: max-content; margin-bottom: clamp(1.5rem, 4vw, 3rem); }
.title-hint::before { content: '↑ '; }
.title-msg { position: absolute; left: 0; top: 28%; max-width: 34rem; }
.title-msg p { font-size: clamp(1.6rem, 4vw, 3rem); font-weight: 800; font-stretch: 80%; line-height: 1; margin-bottom: 1.25rem; }

.sticker { position: absolute; right: 0; top: clamp(1rem, 5vw, 4rem); width: clamp(7rem, 15vw, 12.5rem); aspect-ratio: 1; display: grid; place-items: center; background: none; border: 0; padding: 0; cursor: pointer; transform: rotate(12deg); transition: transform .2s cubic-bezier(.3, 1.8, .5, 1); filter: drop-shadow(6px 6px 0 var(--ink)); }
.sticker:hover { transform: rotate(4deg) scale(1.08); }
.sticker:active { transform: rotate(18deg) scale(.94); }
.burst { position: absolute; inset: 0; background: var(--marker); clip-path: polygon(50.0% 0.0%, 57.4% 8.1%, 67.1% 3.0%, 71.2% 13.2%, 82.1% 11.7%, 82.6% 22.7%, 93.3% 25.0%, 89.9% 35.5%, 99.2% 41.3%, 92.5% 50.0%, 99.2% 58.7%, 89.9% 64.5%, 93.3% 75.0%, 82.6% 77.3%, 82.1% 88.3%, 71.3% 86.8%, 67.1% 97.0%, 57.4% 91.9%, 50.0% 100.0%, 42.6% 91.9%, 32.9% 97.0%, 28.7% 86.8%, 17.9% 88.3%, 17.4% 77.3%, 6.7% 75.0%, 10.1% 64.5%, 0.8% 58.7%, 7.5% 50.0%, 0.8% 41.3%, 10.1% 35.5%, 6.7% 25.0%, 17.4% 22.7%, 17.9% 11.7%, 28.8% 13.2%, 32.9% 3.0%, 42.6% 8.1%); animation: spin 28s linear infinite; }
.sticker-text { position: relative; color: var(--ink); font-weight: 800; font-stretch: 76%; font-size: clamp(1.05rem, 2.3vw, 1.9rem); line-height: .95; text-align: center; max-width: 5.2em; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.pitch p + p { margin-top: 1rem; }
.pitch .lede { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.15; font-weight: 700; font-stretch: 88%; }
.pitch .scribble { font-family: var(--hand); font-size: 1.9rem; line-height: 1; color: var(--marker); transform: rotate(-4deg); margin-top: 2.25rem; width: max-content; }

/* Simulator */

.sim { background: var(--white); color: var(--ink); border: var(--edge); border-radius: 4px; padding: clamp(1rem, 2.5vw, 1.75rem); box-shadow: 14px 14px 0 var(--ink); transform: rotate(.6deg); }
.sim.shake, .game.shake { animation: shake .4s; }
@keyframes shake { 20% { transform: translate(-6px, 2px) rotate(-.8deg); } 40% { transform: translate(6px, -2px) rotate(1deg); } 60% { transform: translate(-4px, 1px) rotate(-.4deg); } 80% { transform: translate(3px, 0) rotate(.5deg); } }
.sim-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.sim-head h2 { font-size: 1.7rem; font-weight: 800; line-height: 1.1; letter-spacing: 0; max-width: none; }
.sim-head p { font-size: .95rem; color: var(--muted); }
.sim-hint { font-family: var(--hand); font-size: 1.35rem; line-height: 1; color: var(--blue); margin-block: .3rem .8rem; }

.org { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.org button { position: relative; width: 100%; min-height: 3.2rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .25rem; text-align: left; border: 2px solid var(--ink); border-radius: 3px; padding: .3rem .4rem .3rem .5rem; background: var(--white); font-size: .82rem; line-height: 1.15; cursor: url(stamp.svg) 18 30, pointer; transition: transform .1s, box-shadow .1s, background .1s; }
.org button:hover:not(.out) { transform: translate(-2px, -2px) rotate(-1deg); box-shadow: 4px 4px 0 var(--ink); background: var(--marker); }
.org .role { display: block; font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.org .who { display: block; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.org .ico { width: 1.7rem; height: 1.7rem; }
.org button.out { border-style: dashed; border-color: var(--line); background: var(--paper); cursor: default; }
.org button.out .role { text-decoration: line-through; text-decoration-color: var(--stamp); text-decoration-thickness: 2px; color: var(--muted); font-weight: 500; }
.org button.out .who { color: var(--blue); font-weight: 600; }
.org button.out .ico { animation: pop .3s cubic-bezier(.3, 1.8, .5, 1); }
.org button.out::after { content: 'vyhozeno'; position: absolute; right: -4px; top: -8px; font-size: .62rem; font-weight: 800; letter-spacing: .04em; color: var(--stamp); border: 1.5px solid var(--stamp); border-radius: 2px; padding: 0 .25rem; background: var(--white); transform: rotate(7deg); animation: stamp .18s ease-out; }
.org button.back { border: 2px solid var(--ink); border-style: solid; background: var(--marker); }
.org button.back .who { color: var(--ink); font-weight: 600; }
@keyframes stamp { from { transform: rotate(7deg) scale(2.6); opacity: 0; } to { transform: rotate(7deg) scale(1); opacity: 1; } }
@keyframes pop { from { transform: scale(0) rotate(-40deg); } to { transform: none; } }

.meters { display: grid; grid-template-columns: auto 1fr 1fr; gap: 1rem; margin-top: 1.1rem; padding-top: .9rem; border-top: var(--edge); }
.meters dt { font-size: .82rem; color: var(--muted); }
.meters dd { font-size: clamp(1.1rem, 2vw, 1.6rem); font-weight: 800; font-stretch: 78%; font-variant-numeric: tabular-nums; white-space: nowrap; }
.meters dd.tick { animation: bump .3s; }
#m-damage { color: var(--stamp); }
.log { margin-top: .9rem; min-height: 6.6rem; font-size: .95rem; line-height: 1.35; display: flex; flex-direction: column; justify-content: flex-end; gap: .3rem; }
.log p { color: var(--muted); }
.log p:last-child { color: var(--ink); font-weight: 600; }
.sim > .btn { margin-top: 1rem; width: 100%; }

/* Ticker */

.ticker { background: var(--marker); color: var(--ink); border-block: var(--edge); overflow: hidden; transform: rotate(-1.2deg) scale(1.02); margin-block: -1.4rem; position: relative; z-index: 2; }
.ticker-track { display: flex; width: max-content; animation: ticker 36s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker p { white-space: nowrap; font-size: 1.35rem; font-weight: 800; font-stretch: 80%; padding-block: .55rem; padding-right: 2.5rem; word-spacing: .15em; }
.ticker b { font-weight: 800; background: var(--ink); color: var(--white); padding: 0 .4em; border-radius: 2px; margin-right: 1.6rem; }
.ticker b.up { color: #7dffae; }
.ticker b.down { color: #ff8b98; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Bands */

.band { padding-block: clamp(4rem, 9vw, 8rem); position: relative; }
.band.white { background: var(--white); }
.band.ink { background: var(--ink); color: var(--white); }
.band.yellow { background: var(--marker); }
.band.red { background: var(--stamp); color: var(--white); }

h2 { font-size: clamp(2.3rem, 5.6vw, 4.6rem); font-weight: 800; font-stretch: 76%; line-height: .95; letter-spacing: -.02em; max-width: 17ch; text-wrap: balance; }
.intro { font-size: 1.35rem; line-height: 1.3; color: var(--muted); margin-top: 1rem; max-width: 34ch; }
.ink .intro { color: #b9c2ec; max-width: 40ch; }
.yellow .intro { color: var(--ink); }

.two { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }

/* Game */

.game-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.rules { margin-top: 1.75rem; display: grid; gap: .7rem; }
.rules li { display: flex; gap: .9rem; align-items: center; font-size: 1.05rem; line-height: 1.3; }
.rules .ico { width: 3rem; height: 3rem; background: var(--white); border-radius: 50%; border: 2px solid var(--white); }
.game-stats { display: grid; grid-template-columns: auto auto 1fr auto; gap: .5rem clamp(1rem, 3vw, 2rem); margin-bottom: .9rem; }
.game-stats dt { font-size: .85rem; color: #d7ddfa; }
.game-stats dd { font-size: clamp(1.3rem, 3vw, 2.3rem); font-weight: 800; font-stretch: 76%; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--marker); }
.board-wrap { position: relative; }
.game-stats dd.tick { animation: bump .3s; }
#g-time.low { color: var(--white); background: var(--stamp); padding-inline: .15em; border-radius: 3px; }

.game { position: relative; background: var(--blue); border: 3px solid var(--white); border-radius: 6px; padding: clamp(.75rem, 2vw, 1.25rem); box-shadow: 14px 14px 0 var(--stamp); }
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.4rem, 1.2vw, .8rem); }
.hole { position: relative; aspect-ratio: 1 / 1.05; background: #c9d1ee; border: var(--edge); border-radius: 4px; overflow: hidden; padding: 0; cursor: url(stamp.svg) 18 30, pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.hole::before { content: ''; position: absolute; inset: 0 0 34% 0; background: var(--paper); background-image: linear-gradient(var(--line) 2px, transparent 2px); background-size: 100% 25%; }
.hole::after { content: ''; position: absolute; inset: auto 0 0 0; height: 34%; background: var(--white); border-top: var(--edge); z-index: 2; }
.hole .pop { position: absolute; left: 12%; right: 12%; bottom: 30%; z-index: 1; transform: translateY(110%); transition: transform .14s cubic-bezier(.3, 1.6, .5, 1); }
.hole .pop svg { display: block; width: 100%; height: auto; overflow: visible; }
.hole.up .pop { transform: translateY(0); }
.hole.hit .pop { transition: transform .25s ease-in; transform: translateY(120%) rotate(18deg); }
.hole .mark { position: absolute; left: 50%; top: 40%; z-index: 3; transform: translate(-50%, -50%) rotate(-12deg) scale(0); font-size: clamp(.6rem, 1.5vw, .95rem); font-weight: 800; letter-spacing: .03em; color: var(--stamp); background: var(--white); border: 3px solid var(--stamp); border-radius: 3px; padding: .05em .4em; white-space: nowrap; pointer-events: none; }
.hole.hit .mark, .hole.oops .mark { animation: thud .5s forwards; }
.hole.oops .mark { color: var(--ink); border-color: var(--ink); background: var(--marker); }
@keyframes thud { 0% { transform: translate(-50%, -50%) rotate(-12deg) scale(2.6); opacity: 0; } 25% { transform: translate(-50%, -50%) rotate(-12deg) scale(1); opacity: 1; } 80% { opacity: 1; transform: translate(-50%, -50%) rotate(-12deg) scale(1); } 100% { opacity: 0; transform: translate(-50%, -50%) rotate(-12deg) scale(1); } }

.game-over { position: absolute; inset: -.25rem; z-index: 5; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(1.25rem, 4vw, 3rem); background: rgba(11, 19, 64, .93); border-radius: 3px; }
.game.playing .game-over { display: none; }
.go-title { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 800; font-stretch: 76%; line-height: .95; color: var(--marker); margin-bottom: .75rem; }
.game-over > p:not(.go-title) { font-size: 1.15rem; max-width: 30rem; }
.game-msg { min-height: 1.6em; margin-top: .75rem; font-family: var(--hand); font-size: 1.5rem; line-height: 1.1; color: var(--marker); }

/* Method */

.steps { counter-reset: s; margin-top: 2.5rem; max-width: 40rem; }
.steps li { counter-increment: s; position: relative; padding: 1rem 0 1rem 4.25rem; border-top: var(--edge); transition: padding-left .15s; }
.steps li:hover { padding-left: 4.9rem; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: .85rem; width: 3rem; height: 3rem; border-radius: 50%; background: var(--ink); color: var(--marker); display: grid; place-items: center; font-size: 1.7rem; font-weight: 800; font-stretch: 78%; line-height: 1; transition: transform .2s cubic-bezier(.3, 1.8, .5, 1); }
.steps li:hover::before { transform: rotate(-14deg) scale(1.15); }
.steps li:nth-child(4)::before { background: var(--stamp); color: var(--white); }
.steps li strong { display: block; font-size: 1.2rem; }

.chart { background: var(--white); border: var(--edge); border-radius: 4px; padding: 1.25rem; box-shadow: 12px 12px 0 var(--ink); transform: rotate(2deg); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.chart:hover { transform: rotate(-1deg) scale(1.02); }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .axis { stroke: var(--ink); stroke-width: 2.5; }
.chart .deck { fill: none; stroke: var(--blue); stroke-width: 4; stroke-dasharray: 2 9; stroke-linecap: round; }
.chart .real { fill: none; stroke: var(--stamp); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.chart.drawn .real { stroke-dashoffset: 0; transition: stroke-dashoffset 2.2s cubic-bezier(.6, 0, .4, 1) .2s; }
.chart .dot { fill: var(--marker); stroke: var(--ink); stroke-width: 2.5; transform-box: fill-box; transform-origin: center; transform: scale(0); }
.chart.drawn .dot { transform: scale(1); transition: transform .4s cubic-bezier(.3, 2.4, .5, 1) 1.5s; }
.chart .lbl { font-family: var(--display); font-size: 14px; fill: var(--muted); }
.chart .deck-l { fill: var(--blue); font-weight: 700; }
.chart .real-l { fill: var(--stamp); font-weight: 700; }
.chart .hand { font-family: var(--hand); font-size: 22px; font-weight: 600; fill: var(--ink); }
.chart .arrow { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.chart figcaption { font-size: .9rem; color: var(--muted); margin-top: .75rem; }

/* Calculator */

.calc { margin-top: 2.5rem; max-width: 56rem; }
.calc label { display: block; font-weight: 600; font-size: 1.25rem; }
.calc output { display: inline-block; min-width: 3ch; font-size: 2.2rem; font-weight: 800; font-stretch: 78%; line-height: 1; color: var(--blue); font-variant-numeric: tabular-nums; }
.calc input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 2.75rem; margin-block: .5rem 1rem; background: transparent; cursor: grab; }
.calc input[type=range]:active { cursor: grabbing; }
.calc input[type=range]::-webkit-slider-runnable-track { height: .9rem; background: var(--paper); border: var(--edge); border-radius: 99px; }
.calc input[type=range]::-moz-range-track { height: .9rem; background: var(--paper); border: var(--edge); border-radius: 99px; box-sizing: border-box; }
.calc input[type=range]::-moz-range-progress { height: .9rem; background: var(--stamp); border: var(--edge); border-radius: 99px; box-sizing: border-box; }
.calc input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 2.4rem; height: 2.4rem; margin-top: -.95rem; background: var(--marker); border: var(--edge); border-radius: 4px; box-shadow: 3px 3px 0 var(--ink); transform: rotate(8deg); transition: transform .12s; }
.calc input[type=range]::-moz-range-thumb { width: 2.4rem; height: 2.4rem; background: var(--marker); border: var(--edge); border-radius: 4px; box-shadow: 3px 3px 0 var(--ink); box-sizing: border-box; }
.calc input[type=range]:active::-webkit-slider-thumb { transform: rotate(-8deg) scale(1.1); }

.crowd { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 2px; min-height: 5.5rem; align-content: start; }
.crowd svg { width: 100%; height: auto; aspect-ratio: 1; overflow: visible; opacity: 0; transform: scale(0); transition: transform .2s cubic-bezier(.3, 1.8, .5, 1), opacity .1s; }
.crowd svg.on { opacity: 1; transform: none; }
.crowd svg.ext { background: var(--marker); border-radius: 50%; }
.crowd-key { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; font-size: .9rem; color: var(--muted); margin-block: .5rem 1.5rem; }
.crowd-key span::before { content: ''; display: inline-block; width: .8em; height: .8em; margin-right: .4em; border: 2px solid var(--ink); background: #c9d1ee; border-radius: 2px; vertical-align: -.05em; }
.crowd-key .k-ext::before { background: var(--marker); border-radius: 50%; }

.calc table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.calc th { text-align: left; font-weight: 500; padding: .7rem 1rem .7rem 0; }
.calc td { text-align: right; white-space: nowrap; font-weight: 700; font-stretch: 85%; padding-block: .7rem; }
.calc tbody tr { border-top: 1.5px solid var(--line); }
.calc tbody td::before { content: '− '; }
.calc tr.plus td { color: var(--blue); }
.calc tr.plus td::before { content: '+ '; }
.calc tfoot tr { border-top: 4px solid var(--ink); }
.calc tfoot th { font-weight: 800; font-size: 1.3rem; }
.calc tfoot td { font-size: clamp(1.8rem, 5.5vw, 3.6rem); font-weight: 800; font-stretch: 76%; color: var(--stamp); line-height: 1.1; }
.calc tfoot td.tick { animation: wobble .25s; }
@keyframes wobble { 30% { transform: translateX(-4px) rotate(-1.5deg); } 70% { transform: translateX(4px) rotate(1.5deg); } }
.verdict { margin-top: 1.25rem; font-family: var(--hand); font-size: 1.85rem; line-height: 1.1; color: var(--ink); background: linear-gradient(transparent 12%, var(--marker) 12%, var(--marker) 88%, transparent 88%); display: inline; padding-inline: .2em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* Dictionary */

.dict { margin-top: 2.5rem; border-bottom: var(--edge); }
.dict > div { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1rem 3rem; padding: 1.1rem .75rem; border-top: var(--edge); align-items: baseline; background: linear-gradient(var(--marker), var(--marker)) no-repeat 0 0 / 0 100%; transition: background-size .28s ease-out; }
.dict > div:hover { background-size: 100% 100%; }
.dict dt { font-size: clamp(1.3rem, 2.8vw, 2.1rem); font-weight: 800; font-stretch: 78%; line-height: 1.05; }
.dict dd { font-size: 1.2rem; }
.dict dd::before { content: '= '; font-weight: 800; color: var(--stamp); }

/* Quotes */

.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.75rem, 3vw, 3rem); margin-top: 3rem; align-items: start; }
.quotes figure { transition: transform .2s cubic-bezier(.3, 1.8, .5, 1); }
.quotes figure:nth-child(1) { transform: rotate(-1.5deg); }
.quotes figure:nth-child(2) { transform: rotate(1deg) translateY(1rem); }
.quotes figure:nth-child(3) { transform: rotate(-.6deg); }
.quotes figure:hover { transform: rotate(0) scale(1.03); }
.quotes blockquote { position: relative; background: var(--white); color: var(--ink); border: var(--edge); border-radius: 6px; padding: 1.25rem 1.4rem; box-shadow: 8px 8px 0 var(--ink); font-size: 1.3rem; line-height: 1.25; font-weight: 700; font-stretch: 90%; }
.quotes blockquote::after { content: ''; position: absolute; left: 2.2rem; bottom: -1.05rem; width: 1.6rem; height: 1.6rem; background: var(--white); border-right: var(--edge); border-bottom: var(--edge); transform: rotate(45deg) skew(12deg, 12deg); }
.quotes figcaption { display: flex; gap: .9rem; align-items: center; margin-top: 1.6rem; padding-left: 1rem; font-size: 1rem; line-height: 1.3; }
.quotes .ico { width: 3.5rem; height: 3.5rem; background: var(--white); border: var(--edge); border-radius: 50%; overflow: hidden; }
.quotes figcaption b { color: var(--marker); letter-spacing: .1em; }
.quotes small { opacity: .85; }

/* Plans */

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.75rem); margin-top: 3rem; align-items: start; }
.plans article { position: relative; background: var(--white); border: var(--edge); border-radius: 4px; padding: clamp(1.25rem, 2.5vw, 2rem); box-shadow: 8px 8px 0 var(--ink); transition: transform .2s cubic-bezier(.3, 1.8, .5, 1), box-shadow .2s; }
.plans article:hover { transform: translate(-3px, -6px) rotate(-1deg); box-shadow: 12px 14px 0 var(--ink); }
.plans .featured { background: var(--blue); color: var(--white); transform: rotate(1.2deg) scale(1.03); z-index: 1; }
.plans .featured:hover { transform: translate(-3px, -6px) rotate(0) scale(1.05); }
.plans .flag { position: absolute; right: -.75rem; top: -1.1rem; background: var(--stamp); color: var(--white); border: var(--edge); font-weight: 800; font-size: .95rem; padding: .1rem .7rem; transform: rotate(5deg); }
.plans h3 { font-size: 1.4rem; font-weight: 800; }
.plans .price { font-size: clamp(1.9rem, 3.4vw, 2.9rem); font-weight: 800; font-stretch: 76%; line-height: 1.05; margin-block: .4rem 1rem; }
.plans ul { margin-top: 1.1rem; font-size: 1rem; }
.plans li { padding-block: .5rem; border-top: 1.5px solid var(--line); }
.plans .featured li { border-color: rgba(255, 255, 255, .35); }

.offer { position: relative; display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 3rem; min-height: 9rem; align-content: flex-start; }
#decline { transition: transform .18s cubic-bezier(.3, 1.6, .5, 1), box-shadow .08s; }

/* LinkedIn generator */

.ink .two { align-items: start; }
.post { background: var(--white); color: var(--ink); border-radius: 6px; padding: 1.25rem 1.4rem; box-shadow: 12px 12px 0 var(--blue); transform: rotate(-1deg); }
.post header { display: flex; gap: .8rem; align-items: center; margin-bottom: 1rem; font-size: .95rem; line-height: 1.25; }
.post header p span { color: var(--muted); }
.post .avatar { flex: none; width: 3.25rem; height: 3.25rem; border-radius: 50%; background: var(--marker); border: var(--edge); overflow: hidden; display: grid; place-items: end center; }
.post .avatar .ico { width: 2.9rem; height: 2.9rem; }
#post-text { white-space: pre-line; min-height: 14rem; }
#post-text.fresh { animation: fresh .35s; }
@keyframes fresh { from { opacity: 0; transform: translateY(6px); } }
.reactions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.reactions button { background: var(--paper); border: 2px solid var(--ink); border-radius: 99px; padding: .3rem .8rem; font-size: .9rem; font-weight: 600; cursor: pointer; transition: transform .1s, background .1s; }
.reactions button:hover { background: var(--marker); transform: translateY(-2px); }
.reactions button.pop { animation: bump .35s; background: var(--marker); }
.reactions b { font-variant-numeric: tabular-nums; margin-left: .2em; }
.post footer { margin-top: 1rem; padding-top: .75rem; border-top: 1.5px solid var(--line); font-size: .9rem; color: var(--muted); }

/* Jobs */

.jobs { margin-top: 2.5rem; display: grid; gap: 1rem; max-width: 60rem; }
.jobs li { display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; background: var(--white); border: var(--edge); border-radius: 4px; padding: 1.1rem 1.4rem; box-shadow: 6px 6px 0 var(--ink); transition: transform .15s; }
.jobs li:hover { transform: translateX(6px); }
.jobs h3 { font-size: 1.5rem; font-weight: 800; font-stretch: 80%; line-height: 1.1; }
.jobs p { margin-top: .25rem; max-width: 40rem; }
.jobs .btn { flex: none; white-space: nowrap; }
.jobs .btn.rejected { background: var(--stamp); color: var(--white); transform: rotate(-4deg); box-shadow: none; cursor: default; opacity: 1; animation: stamp-in .25s ease-out; }
.jobs .taken { background: var(--ink); color: var(--white); }
.taken-tag { flex: none; font-weight: 800; background: var(--marker); color: var(--ink); border: var(--edge); padding: .2rem .8rem; transform: rotate(4deg); }
@keyframes stamp-in { from { transform: rotate(-4deg) scale(2.2); opacity: 0; } }

/* FAQ */

.narrow h2 { margin-bottom: 2.5rem; }
details { border-top: var(--edge); }
details:last-of-type { border-bottom: var(--edge); }
summary { cursor: pointer; font-size: 1.4rem; font-weight: 800; font-stretch: 84%; line-height: 1.15; padding-block: 1.1rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; transition: padding-left .15s; }
summary:hover { padding-left: .6rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; flex: none; width: 2.2rem; height: 2.2rem; display: grid; place-items: center; background: var(--marker); border: var(--edge); border-radius: 50%; font-weight: 800; line-height: 1; transition: transform .25s cubic-bezier(.3, 1.8, .5, 1), background .2s; }
details[open] summary::after { transform: rotate(135deg); background: var(--stamp); color: var(--white); }
details p { padding-bottom: 1.25rem; max-width: 38rem; }

/* Footer */

.foot { background: var(--blue); color: var(--white); padding-block: 4rem 7rem; font-size: 1rem; }
.foot .wrap > p { max-width: 46rem; }
.foot .wrap > p + p { margin-top: .6rem; }
.foot .sig { font-size: clamp(2.4rem, 8vw, 6rem); font-weight: 800; font-stretch: 75%; line-height: .9; letter-spacing: -.02em; margin-bottom: 2rem; max-width: none; }
.loading { max-width: 34rem; margin-bottom: 2.5rem; }
.loading p { font-weight: 700; display: flex; justify-content: space-between; }
.loading > div { height: 1.6rem; border: 3px solid var(--white); border-radius: 3px; margin-block: .4rem; overflow: hidden; }
.loading i { display: block; height: 100%; width: 99%; background: repeating-linear-gradient(-45deg, var(--marker) 0 14px, #f2c800 14px 28px); background-size: 200% 100%; animation: stripes 1.2s linear infinite; }
.loading .small { font-weight: 400; opacity: .85; font-size: .9rem; }
@keyframes stripes { to { background-position: -39.6px 0; } }

/* Cookie bar and toast */

.cookies { position: fixed; left: 1rem; bottom: 1rem; z-index: 40; max-width: 24rem; background: var(--white); color: var(--ink); border: var(--edge); border-radius: 4px; box-shadow: 8px 8px 0 var(--ink); padding: 1rem 1.1rem; font-size: .95rem; line-height: 1.35; transform: rotate(-1.5deg); animation: slide .4s cubic-bezier(.3, 1.5, .5, 1); }
.cookies[hidden] { display: none; }
.cookies div { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .8rem; }
.cookies .btn { font-size: .95rem; padding: .4rem .8rem; box-shadow: 3px 3px 0 var(--ink); }
@keyframes slide { from { transform: translateY(120%) rotate(-8deg); } }

.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 200%) rotate(-2deg); background: var(--marker); color: var(--ink); border: var(--edge); border-radius: 3px; box-shadow: 6px 6px 0 var(--ink); padding: .7rem 1.1rem; font-weight: 700; line-height: 1.25; max-width: min(28rem, calc(100vw - 2rem)); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), visibility .25s; z-index: 70; visibility: hidden; }
.toast.show { transform: translate(-50%, 0) rotate(-2deg); visibility: visible; }
.toast b { display: block; font-size: .8rem; font-weight: 600; }

@media (max-width: 60rem) {
  .hero-grid, .two, .game-grid { grid-template-columns: minmax(0, 1fr); }
  .quotes, .plans { grid-template-columns: minmax(0, 1fr); }
  .quotes figure:nth-child(2) { transform: rotate(1deg); }
  .plans .featured { transform: rotate(.8deg); }
  .chart { max-width: 30rem; }
  .pitch .scribble { margin-top: 1.5rem; }
  .hud .brand span { display: none; }
}

@media (max-width: 40rem) {
  body { font-size: 1.0625rem; }
  .hud { font-size: .9rem; gap: .5rem; }
  .hud .brand { display: none; }
  .sticker { top: auto; bottom: -1rem; right: -.25rem; }
  .title-msg { top: 12%; }
  .org { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .org button { font-size: .74rem; padding-inline: .35rem .25rem; }
  .org .ico { width: 1.35rem; height: 1.35rem; }
  .org button.out::after { font-size: .52rem; top: -8px; }
  .sim { box-shadow: 8px 8px 0 var(--ink); transform: none; }
  .meters { grid-template-columns: 1fr 1fr; }
  .meters div:first-child { grid-column: 1 / -1; display: flex; gap: .5rem; align-items: baseline; }
  .board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .game { box-shadow: 8px 8px 0 var(--stamp); }
  .crowd { grid-template-columns: repeat(10, minmax(0, 1fr)); }
  .dict > div { grid-template-columns: minmax(0, 1fr); gap: .3rem; padding-inline: .4rem; }
  .calc th { font-size: .98rem; }
  .jobs li { flex-direction: column; align-items: flex-start; }
  .ticker p { font-size: 1.1rem; }
  .cookies { right: 1rem; max-width: none; }
  .post { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .ticker-track { animation: none; }
  .burst, .loading i { animation: none; }
  .chart .real { stroke-dashoffset: 0; }
  .chart .dot { transform: scale(1); }
}
