:root {
  --ink: #1a0d1e;
  --plum: #2a1230;
  --pink: #ff3d7f;
  --saffron: #ffb21a;
  --mint: #3dffc5;
  --cream: #fff4e2;
  --sky: #9ad8ff;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; overflow: hidden; background: #12060f; }
body {
  color: var(--cream); font-family: var(--display);
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  overscroll-behavior: none;
}
em { font-family: var(--serif); font-style: italic; font-weight: 600; color: var(--pink); }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }
kbd { font-family: inherit; font-size: .85em; font-weight: 700; border: 1px solid #fff4e255; border-bottom-width: 2px; border-radius: 6px; padding: 0 6px; margin: 0 2px; }

#game { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }
body:not(.touch) .tc, body.touch .kb { display: none; }

/* ---------- HUD ---------- */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 5; }
#hud[hidden] { display: none; }
.hud-top {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 12px;
  padding: calc(12px + var(--safe-t)) 16px 0;
}
.hud-left { display: grid; gap: 8px; }
.hearts { display: flex; gap: 4px; align-items: center; height: 22px; }
.hearts i {
  width: 20px; height: 18px; display: block; background: #fff4e230;
  clip-path: path("M10 18 C 2 12, 0 8, 0 5 C 0 2, 2 0, 5 0 C 7 0, 9 1, 10 3 C 11 1, 13 0, 15 0 C 18 0, 20 2, 20 5 C 20 8, 18 12, 10 18 Z");
}
.hearts i.on { background: var(--pink); filter: drop-shadow(0 0 6px #ff3d7f99); }
.hearts em { font-style: normal; font-size: 16px; margin-left: 4px; }
.bars { display: grid; gap: 4px; width: min(220px, 34vw); }
.barrow { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.barrow span { opacity: .7; }
.barrow b { font-size: 12px; color: var(--saffron); min-width: 34px; text-align: right; }
.bar { height: 8px; border-radius: 99px; background: #fff4e218; overflow: hidden; border: 1px solid #fff4e222; }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; transition: width .12s linear; }
.bar.sal i { background: linear-gradient(90deg, #6fc3ff, var(--sky)); }
.bar.chonk i { background: linear-gradient(90deg, var(--saffron), #ff7a1a); }
.bar.lust i { background: linear-gradient(90deg, var(--pink), #ff7ab0); }
body.unhinged .bar.lust i { background: linear-gradient(90deg, var(--pink), var(--saffron), var(--mint), var(--pink)); background-size: 300% 100%; animation: shimmer .6s linear infinite; }
@keyframes shimmer { to { background-position: 300% 0; } }

.scorebox { text-align: center; }
#score { font-weight: 800; font-size: clamp(26px, 4vw, 40px); letter-spacing: -.03em; line-height: 1; text-shadow: 3px 3px 0 var(--ink); }
#combo { font-size: 13px; font-weight: 700; color: var(--saffron); min-height: 18px; margin-top: 2px; }
.hud-right { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
#wave { font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .12em; opacity: .85; margin-right: 4px; }
.icon {
  pointer-events: auto; width: 38px; height: 38px; border-radius: 50%;
  background: #fff4e214; border: 1px solid #fff4e22a; font-size: 14px; font-weight: 800;
  display: grid; place-items: center; transition: background .15s;
}
.icon:hover { background: #fff4e230; }

#humReady {
  position: absolute; left: 50%; bottom: calc(22px + var(--safe-b)); transform: translate(-50%, 10px);
  font-weight: 800; font-size: 13px; letter-spacing: .14em; color: var(--ink);
  background: var(--saffron); padding: 8px 14px; border-radius: 99px; opacity: 0;
  transition: opacity .2s, transform .2s; box-shadow: 3px 3px 0 var(--ink);
}
#humReady.on { opacity: 1; transform: translate(-50%, 0); animation: nudge 1.2s ease-in-out infinite; }
#humReady kbd { border-color: #1a0d1e66; }
@keyframes nudge { 50% { transform: translate(-50%, -3px); } }
body.touch #humReady { display: none; }

#bossbar {
  position: absolute; left: 50%; top: calc(78px + var(--safe-t)); transform: translateX(-50%);
  width: min(460px, 70vw); text-align: center; font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
}
#bossbar[hidden] { display: none; }
#bossbar .bar { height: 10px; margin-top: 5px; border-color: #ff3d7f66; }
#bossbar .bar i { background: linear-gradient(90deg, #3fae4a, #7be36f); width: 100%; }

#humBtn {
  display: none; pointer-events: auto; position: absolute;
  right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(150px + var(--safe-b));
  width: 74px; height: 74px; border-radius: 50%;
  background: #fff4e21a; border: 2px solid #fff4e244; font-weight: 800; font-size: 15px; letter-spacing: .08em;
  touch-action: none;
}
#humBtn.ready { background: var(--saffron); color: var(--ink); border-color: var(--ink); box-shadow: 0 0 24px #ffb21a88; animation: throb 1s ease-in-out infinite; }
@keyframes throb { 50% { transform: scale(1.07); } }
body.touch #humBtn { display: block; }

/* ---------- banner ---------- */
#banner {
  position: fixed; left: 0; right: 0; top: 32%; z-index: 6; text-align: center; pointer-events: none; opacity: 0;
}
#banner b { display: block; font-weight: 800; font-size: clamp(44px, 9vw, 104px); letter-spacing: -.05em; line-height: .9; color: var(--pink); text-shadow: 5px 5px 0 var(--saffron); }
#banner span { display: block; margin-top: 10px; font-family: var(--serif); font-style: italic; font-size: clamp(17px, 2.2vw, 24px); }
#banner.show { animation: bannerIn 2s cubic-bezier(.2,1.2,.4,1) forwards; }
@keyframes bannerIn {
  0% { opacity: 0; transform: scale(.6) rotate(-4deg); }
  15% { opacity: 1; transform: scale(1.05) rotate(1deg); }
  25% { transform: scale(1) rotate(0); }
  80% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.04) translateY(-14px); }
}

/* ---------- screens ---------- */
.screen { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: calc(20px + var(--safe-t)) 16px calc(20px + var(--safe-b)); overflow-y: auto; }
.screen[hidden] { display: none; }
.screen.dim { background: #12060fcc; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

#title { place-items: start center; background: linear-gradient(180deg, #12060fee 0%, #12060f99 38%, #12060f00 62%); }
.title-inner { text-align: center; max-width: 820px; padding-top: 2vh; }
.chip { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 99px; border: 1px solid #fff4e233; background: #fff4e20d; }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); }
h1 { line-height: .82; letter-spacing: -.05em; margin-top: 14px; }
h1 .w1 { display: inline-block; font-weight: 800; font-size: clamp(64px, 12vw, 150px); color: var(--pink); text-shadow: 5px 5px 0 var(--saffron); }
h1 .w2 { display: inline-block; margin-left: .2em; font-family: var(--serif); font-style: italic; font-weight: 600; font-size: clamp(60px, 11vw, 140px); letter-spacing: -.03em; }
.tag { font-size: clamp(17px, 2vw, 22px); margin-top: 12px; opacity: .92; }
.big {
  margin-top: 22px; background: var(--pink); color: var(--ink); border: 3px solid var(--ink);
  font-weight: 800; font-size: 22px; padding: 14px 46px; border-radius: 99px;
  box-shadow: 5px 5px 0 var(--cream); transition: transform .12s, box-shadow .12s;
}
.big:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--cream); }
.big:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--cream); }
#playBtn { font-size: 26px; padding: 16px 64px; animation: throb 1.6s ease-in-out infinite; }
.ghost { margin-top: 12px; padding: 12px 22px; border-radius: 99px; border: 1px solid #fff4e244; font-weight: 700; font-size: 16px; background: #fff4e20d; transition: background .15s; }
.ghost:hover { background: #fff4e226; }
.best { margin-top: 14px; font-size: 14px; opacity: .7; font-weight: 600; }
.best.new { opacity: 1; color: var(--saffron); font-size: 18px; animation: throb .9s ease-in-out infinite; }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; text-align: left; }
.how div { background: #2a1230cc; border: 1px solid #fff4e21c; border-radius: 18px; padding: 12px 14px; font-size: 14px; line-height: 1.35; }
.how b { display: block; color: var(--saffron); font-size: 16px; margin-bottom: 4px; }
.how span { opacity: .85; }
.how .short { display: none; }
.fine { margin-top: 12px; font-size: 13px; opacity: .65; line-height: 1.7; }
.corner { position: absolute; top: calc(14px + var(--safe-t)); right: 14px; }

.panel { width: min(860px, 100%); text-align: center; }
.panel.small { width: min(360px, 100%); }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--saffron); }
h2 { font-weight: 800; font-size: clamp(36px, 6vw, 64px); letter-spacing: -.04em; line-height: 1; margin-top: 6px; }
.sub { margin-top: 8px; opacity: .7; }
.stack { display: grid; gap: 4px; margin-top: 8px; }
.stack .big { margin-top: 14px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.card {
  position: relative; display: grid; justify-items: center; gap: 8px; align-content: start;
  padding: 26px 18px 20px; border-radius: 24px; background: var(--plum); border: 2px solid #fff4e222;
  text-align: center; transition: transform .2s cubic-bezier(.3,1.5,.5,1), border-color .2s, background .2s;
  animation: dealIn .45s cubic-bezier(.3,1.4,.5,1) backwards;
}
.card:nth-child(2) { animation-delay: .07s; }
.card:nth-child(3) { animation-delay: .14s; }
@keyframes dealIn { from { opacity: 0; transform: translateY(40px) rotate(-6deg) scale(.9); } }
.card:hover, .card:focus-visible { transform: translateY(-8px) rotate(-1deg); border-color: var(--pink); background: #3b1844; }
.card .ico { font-size: 44px; line-height: 1; filter: drop-shadow(0 6px 10px #0006); }
.card b { font-size: 21px; letter-spacing: -.02em; }
.card .desc { font-size: 15px; opacity: .85; line-height: 1.35; }
.card .lv { font-size: 12px; letter-spacing: .2em; color: var(--saffron); }
.card .key { position: absolute; top: 10px; left: 12px; font-size: 12px; font-weight: 800; opacity: .45; }
body.touch .card .key { display: none; }

.final { font-weight: 800; font-size: clamp(64px, 12vw, 120px); letter-spacing: -.05em; line-height: 1; color: var(--pink); text-shadow: 5px 5px 0 var(--saffron); margin-top: 6px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 20px auto 0; max-width: 640px; }
.stats div { background: #2a1230; border: 1px solid #fff4e21c; border-radius: 14px; padding: 10px 8px; }
.stats span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; opacity: .6; }
.stats b { font-size: 22px; }
blockquote { margin: 20px auto 0; max-width: 560px; background: var(--cream); color: var(--ink); border-radius: 22px; padding: 16px 22px; box-shadow: 6px 6px 0 var(--saffron); }
blockquote span { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--pink); }
blockquote p { font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.35; margin-top: 4px; }
.row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 10px; }
.row .big { margin-top: 12px; }

.noscript { position: fixed; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; font-size: 20px; }


/* ---------- XP, combo pop, toasts ---------- */
.xp { position: absolute; left: 0; right: 0; top: 0; height: 5px; background: #fff4e212; }
.xp i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #6fe3ff, #b98cff, var(--pink)); box-shadow: 0 0 12px #6fe3ffaa; transition: width .15s ease-out; }
#combo[data-tier="2"], #combo[data-tier="3"] { color: #ff7a1a; font-size: 15px; }
#combo[data-tier="4"], #combo[data-tier="5"], #combo[data-tier="6"] { color: var(--pink); font-size: 17px; text-shadow: 0 0 12px #ff3d7f88; }
#comboPop {
  position: absolute; left: 50%; top: 22%; transform: translateX(-50%); white-space: nowrap; opacity: 0;
  font-weight: 800; font-size: clamp(22px, 4vw, 40px); letter-spacing: -.02em; color: var(--saffron); text-shadow: 3px 3px 0 var(--ink);
}
#comboPop.show { animation: comboIn 1.3s cubic-bezier(.2,1.4,.4,1) forwards; }
@keyframes comboIn {
  0% { opacity: 0; transform: translateX(-50%) scale(.4) rotate(-8deg); }
  18% { opacity: 1; transform: translateX(-50%) scale(1.15) rotate(2deg); }
  30% { transform: translateX(-50%) scale(1); }
  75% { opacity: 1; }
  100% { opacity: 0; transform: translateX(-50%) translateY(-18px); }
}
#toasts { position: fixed; right: 14px; bottom: calc(14px + var(--safe-b)); z-index: 30; display: grid; gap: 8px; pointer-events: none; }
.toast {
  display: flex; gap: 10px; align-items: center; max-width: 320px; padding: 10px 14px; border-radius: 16px;
  background: var(--cream); color: var(--ink); box-shadow: 4px 4px 0 var(--saffron); animation: toastIn .4s cubic-bezier(.3,1.5,.5,1);
  transition: opacity .4s, transform .4s;
}
.toast.out { opacity: 0; transform: translateX(30px); }
.toast .ti { font-size: 26px; }
.toast b { display: block; font-size: 15px; }
.toast span { font-size: 12px; opacity: .75; }
@keyframes toastIn { from { opacity: 0; transform: translateX(60px) scale(.9); } }

body.disco .xp i { animation: shimmer .5s linear infinite; background-size: 300% 100%; }

/* ---------- title modes ---------- */
.modes { display: flex; gap: 10px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.mode { pointer-events: auto; display: grid; gap: 2px; text-align: left; padding: 10px 18px; border-radius: 18px; background: #2a1230dd; border: 1px solid #fff4e22a; transition: transform .15s, border-color .15s; }
.mode:hover { transform: translateY(-2px); border-color: var(--saffron); }
.mode b { font-size: 16px; }
.mode span { font-size: 12px; opacity: .7; }

/* ---------- card rarities ---------- */
.card .tier { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; opacity: .6; }
.card .lv i { font-style: normal; color: var(--mint); text-shadow: 0 0 8px var(--mint); }
.card.rare { border-color: #6fc3ff88; background: linear-gradient(160deg, #23234a, var(--plum)); }
.card.rare .tier { color: #6fc3ff; opacity: 1; }
.card.legendary { border-color: var(--saffron); background: linear-gradient(160deg, #4a2a10, var(--plum)); box-shadow: 0 0 30px #ffb21a55; }
.card.legendary .tier { color: var(--saffron); opacity: 1; }
.card.evo { border-color: #ffd23f; background: linear-gradient(160deg, #6a4a00, #4a1240); box-shadow: 0 0 40px #ffd23f77; animation: dealIn .45s cubic-bezier(.3,1.4,.5,1) backwards, glowPulse 1.4s ease-in-out infinite; }
.card.evo .tier { color: #ffd23f; opacity: 1; }
@keyframes glowPulse { 50% { box-shadow: 0 0 60px #ffd23faa; } }
#rerollBtn { margin-top: 18px; }
#rerollBtn:disabled { opacity: .4; cursor: default; }

/* ---------- tiffin chest ---------- */
.chest-stage { position: relative; height: 170px; margin-bottom: 6px; display: grid; place-items: center; margin-top: 18px; }
.tiffin-box { position: relative; width: 90px; height: 130px; animation: chestShake .14s linear 6; }
.tiffin-box i { position: absolute; left: 0; right: 0; border-radius: 12px; background: linear-gradient(90deg, #8a93a3, #e8ecf2 40%, #a7afbd); border: 2px solid #4a5160; }
.tiffin-box .handle { top: -18px; left: 28px; right: 28px; height: 26px; background: none; border: 5px solid #8a93a3; border-bottom: 0; border-radius: 18px 18px 0 0; }
.tiffin-box .lid { top: 0; height: 22px; z-index: 2; transition: transform .5s cubic-bezier(.3,1.6,.5,1); }
.tiffin-box .tier:nth-of-type(2) { top: 24px; height: 34px; }
.tiffin-box .tier:nth-of-type(3) { top: 60px; height: 34px; }
.tiffin-box .tier:nth-of-type(4) { top: 96px; height: 34px; }
.tiffin-box.gold i { background: linear-gradient(90deg, #b8860b, #ffe680 40%, #d4a017); border-color: #6a4a00; }
.tiffin-box.gold .handle { background: none; border-color: #d4a017; }
.tiffin-box.gold { filter: drop-shadow(0 0 24px #ffd23f); }
@keyframes chestShake { 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }
#chest.opened .tiffin-box .lid { transform: translate(56px, -14px) rotate(32deg); }
#chest.opened .tiffin-box .handle { transform: translate(64px, -2px) rotate(32deg); transition: transform .5s cubic-bezier(.3,1.6,.5,1); }
.reel { position: absolute; inset: 0; overflow: hidden; pointer-events: none; opacity: 0; mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent); }
#chestReel { display: flex; gap: 22px; font-size: 42px; position: absolute; top: 50%; transform: translateY(-50%); white-space: nowrap; }
#chest.opened .reel { animation: reelFade 1.1s ease-out forwards; }
#chest.opened #chestReel { animation: reelSpin 1.1s cubic-bezier(.1,.6,.3,1) forwards; }
@keyframes reelFade { 0% { opacity: 0; } 15% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }
@keyframes reelSpin { from { transform: translate(0, -50%); } to { transform: translate(-1100px, -50%); } }
.loots { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 4px; min-height: 90px; }
.loot { display: grid; justify-items: center; gap: 4px; width: 140px; padding: 12px 10px; border-radius: 18px; background: var(--plum); border: 2px solid #fff4e22a; animation: lootIn .45s cubic-bezier(.3,1.6,.5,1) backwards; }
.loot span { font-size: 34px; }
.loot b { font-size: 14px; }
.loot em { font-size: 12px; color: #ffd23f; }
.loot.evo { border-color: #ffd23f; box-shadow: 0 0 30px #ffd23f88; background: linear-gradient(160deg, #6a4a00, #4a1240); }
@keyframes lootIn { from { opacity: 0; transform: translateY(-40px) scale(.5) rotate(10deg); } }
#chestBtn[hidden] { display: none; }

/* ---------- game over extras ---------- */
.daily { margin-top: 6px; font-size: 14px; color: var(--mint); font-weight: 700; }
.daily:empty { display: none; }
.hayline { display: flex; justify-content: center; align-items: baseline; gap: 12px; margin-top: 16px; }
.hayline b { font-size: 26px; color: var(--saffron); }
.hayline > span { font-size: 13px; opacity: .7; }
.hayline b span { font-size: inherit; }
.next { max-width: 420px; margin: 8px auto 0; font-size: 13px; }
.next:empty { display: none; }
.next .bar { margin-top: 6px; }
.next .bar i { background: linear-gradient(90deg, var(--saffron), var(--pink)); }
#againBtn kbd { border-color: #1a0d1e66; font-size: .6em; vertical-align: middle; }
body.touch #againBtn kbd { display: none; }

/* ---------- barn ---------- */
.panel.barn { width: min(640px, 100%); }
.hay-total { margin-top: 8px; font-size: 18px; }
.hay-total b { color: var(--saffron); font-size: 24px; }
.tabs { display: inline-flex; gap: 4px; margin-top: 16px; padding: 4px; border-radius: 99px; background: #fff4e20d; border: 1px solid #fff4e21c; }
.tabs button { padding: 8px 18px; border-radius: 99px; font-weight: 700; font-size: 14px; }
.tabs button.on { background: var(--pink); color: var(--ink); }
.items { display: grid; gap: 8px; margin-top: 16px; text-align: left; }
.item { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 18px; background: var(--plum); border: 1px solid #fff4e21c; }
.item .ico { font-size: 30px; text-align: center; }
.item b { display: block; font-size: 16px; }
.item span { display: block; font-size: 13px; opacity: .75; }
.item .lv { color: var(--saffron); letter-spacing: .2em; font-size: 11px; opacity: 1; margin-top: 2px; }
.item button { padding: 8px 14px; border-radius: 99px; background: var(--saffron); color: var(--ink); font-weight: 800; font-size: 14px; white-space: nowrap; }
.item button:disabled { background: #fff4e21a; color: var(--cream); opacity: .6; cursor: default; }
.item em { font-style: normal; font-family: var(--display); font-size: 13px; color: var(--saffron); font-weight: 700; }
.item.locked { opacity: .6; }
.item.got { border-color: #ffb21a66; }
.swatch { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 2px solid #1a0d1e; overflow: hidden; justify-self: center; }
.swatch i { position: absolute; left: 6px; right: 6px; top: 0; height: 16px; border-radius: 0 0 50% 50%; background: var(--fr); }
.swatch u { position: absolute; left: 0; right: 0; top: 18px; height: 5px; background: var(--bd); }
#barnBack { margin-top: 20px; }

@media (max-width: 720px) {
  .modes { gap: 6px; }
  .mode { padding: 8px 12px; }
  .mode b { font-size: 14px; }
  #comboPop { top: 26%; }
  .loot { width: 120px; }
  #toasts { left: 14px; right: 14px; bottom: auto; top: calc(130px + var(--safe-t)); justify-items: center; }
  .hud-top { grid-template-columns: 1fr auto; }
  .scorebox { grid-column: 1 / -1; grid-row: 2; justify-self: center; margin-top: -4px; }
  .hud-right { grid-column: 2; grid-row: 1; }
  .bars { width: min(190px, 48vw); }
  .how { gap: 6px; margin-top: 18px; }
  .how div { padding: 8px 10px; font-size: 12px; text-align: center; }
  .how b { font-size: 15px; margin-bottom: 2px; }
  .how .long { display: none !important; }
  .how .short { display: block; }
  .fine { display: none; }
  .big { margin-top: 16px; }
  .tag { margin-top: 8px; }
  .title-inner { padding-top: 0; }
  .cards { grid-template-columns: 1fr; gap: 10px; margin-top: 18px; }
  .card { grid-template-columns: 48px 1fr; justify-items: start; text-align: left; column-gap: 14px; row-gap: 2px; padding: 14px 16px; }
  .card > * { grid-column: 2; }
  .card .ico { grid-column: 1; grid-row: 1 / span 4; font-size: 36px; align-self: center; justify-self: center; }
  .card .key { left: auto; right: 14px; }
  .stats { grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 14px; }
  .stats div { padding: 7px 4px; border-radius: 12px; }
  .stats span { font-size: 9px; letter-spacing: .04em; }
  .stats b { font-size: 17px; }
  blockquote p { font-size: 16px; }
  #bossbar { top: calc(118px + var(--safe-t)); }
}
@media (max-height: 640px) and (min-width: 721px) {
  .how { display: none; }
  h1 .w1, h1 .w2 { font-size: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  #banner.show { animation: none !important; opacity: 1; }
}
