@font-face { font-family: "MinecraftCoco"; src: url("/fonts/mc.woff2") format("woff2"); font-weight: 400; font-display: block; }
@font-face { font-family: "MinecraftCoco"; src: url("/fonts/mc-bold.woff2") format("woff2"); font-weight: 700; font-display: block; }

:root {
  color-scheme: dark;
  --void: #07041a;
  --space: #0f0930;
  --ink: #1b1240;
  --tip: rgba(16, 0, 16, 0.94);
  --tip-solid: #100010;
  --tip-hi: #5000ff;
  --tip-lo: #28007f;
  --inv: #2d1b69;
  --inv-hi: #7a62e0;
  --inv-lo: #120838;
  --slot: #1c1145;
  --slot-hi: #6b55c9;
  --slot-lo: #07031a;
  --white: #ffffff;
  --text: #f0eaff;
  --gray: #aaaaaa;
  --dgray: #6e6690;
  --gold: #ffaa00;
  --yellow: #ffff55;
  --green: #55ff55;
  --xp: #80ff20;
  --aqua: #55ffff;
  --red: #ff5555;
  --pink: #ff55ff;
  --purple: #aa00aa;
  --chip: #ffd34d;
  --font: "MinecraftCoco", "Monocraft", ui-monospace, monospace;
  --s: 2px;
  --cell: min(118px, calc((min(100vw, 980px) - 210px) / 5));
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--void);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: none;
  font-smooth: never;
  text-rendering: optimizeSpeed;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--space); }
body::after { content: ""; position: fixed; inset: 0; z-index: -2; background: var(--bgimg, radial-gradient(120% 80% at 50% 0%, #1c0f4d 0%, #0b0623 55%, #05030f 100%)); transition: background .6s; }
body[data-theme="redstone"] { --bgimg: radial-gradient(120% 80% at 50% 0%, #2a0d0d 0%, #120707 55%, #060303 100%); }
body[data-theme="nether"] { --bgimg: radial-gradient(120% 80% at 50% 10%, #4a0f0a 0%, #220606 55%, #0b0202 100%); }
body[data-theme="end"] { --bgimg: radial-gradient(120% 80% at 50% 0%, #241045 0%, #0c0620 55%, #030109 100%); }
body[data-theme="aether"] { --bgimg: linear-gradient(180deg, #5fa8ff 0%, #9dd0ff 45%, #e9f6ff 100%); }
body[data-theme="farlands"] { --bgimg: radial-gradient(120% 80% at 50% 0%, #222 0%, #0d0d0d 55%, #000 100%); }
body[data-theme="antigua"] { --bgimg: radial-gradient(120% 80% at 50% 10%, #06323a 0%, #031418 55%, #010607 100%); }
body[data-theme="exuberante"] { --bgimg: radial-gradient(120% 80% at 50% 0%, #1f3d1a 0%, #0f2010 50%, #050b06 100%); }
body[data-theme="mina"] { --bgimg: radial-gradient(120% 80% at 50% 10%, #3a2a17 0%, #1a130b 55%, #070504 100%); }
body[data-theme="cerezos"] { --bgimg: linear-gradient(180deg, #f6b6d6 0%, #e889b8 40%, #7c3a6a 100%); }
body[data-theme="desierto"] { --bgimg: linear-gradient(180deg, #f3c27a 0%, #d9904a 45%, #6b3a1c 100%); }
body[data-theme="spooky"] { --bgimg: radial-gradient(120% 90% at 50% 0%, #1d0d2e 0%, #0d0716 55%, #040208 100%); }
a { color: inherit; text-decoration: none; }
button, input, select { font-family: var(--font); font-size: 16px; }
img.px, .px { image-rendering: pixelated; }
img { max-width: 100%; }
#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
#fx { position: fixed; inset: 0; pointer-events: none; z-index: 70; width: 100%; height: 100%; }
::selection { background: var(--tip-hi); color: #fff; }
h1, h2, h3 { font-weight: 400; margin: 0; line-height: 1.2; text-wrap: balance; }
.gray { color: var(--gray); }
.gold { color: var(--gold); }
.hl { color: var(--yellow); }
.small { font-size: 14px; color: var(--gray); }
.sh, h1, h2, h3, .mc-btn, .kicker, b { text-shadow: var(--s) var(--s) 0 rgba(0, 0, 0, 0.55); }

.mc-tip {
  position: relative;
  background: var(--tip);
  border: var(--s) solid transparent;
  border-image: linear-gradient(var(--tip-hi), var(--tip-lo)) 1;
  box-shadow: 0 calc(var(--s) * -1) 0 0 var(--tip-solid), 0 var(--s) 0 0 var(--tip-solid), calc(var(--s) * -1) 0 0 0 var(--tip-solid), var(--s) 0 0 0 var(--tip-solid);
}
.inv {
  background: var(--inv);
  box-shadow: inset var(--s) var(--s) 0 var(--inv-hi), inset calc(var(--s) * -1) calc(var(--s) * -1) 0 var(--inv-lo), 0 0 0 var(--s) #000;
}
.sunk {
  background: var(--slot);
  box-shadow: inset var(--s) var(--s) 0 var(--slot-lo), inset calc(var(--s) * -1) calc(var(--s) * -1) 0 var(--slot-hi);
}

.mc-btn {
  --b: url("/mc/gui/button_purple.png");
  --bh: url("/mc/gui/button_purple_hi.png");
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 40px;
  padding: 0 18px;
  color: #e0e0e0;
  background: none;
  border: 6px solid transparent;
  border-image: var(--b) 3 fill / 6px stretch;
  image-rendering: pixelated;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}
.mc-btn img { width: 24px; height: 24px; image-rendering: pixelated; filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.4)); }
.mc-btn:hover, .mc-btn:focus-visible { border-image-source: var(--bh); color: #ffffa0; outline: none; }
.mc-btn:active { transform: translateY(2px); }
.mc-btn:disabled { border-image-source: url("/mc/gui/button_off.png"); color: #a0a0a0; cursor: not-allowed; transform: none; }
.mc-btn.gold { --b: url("/mc/gui/button_gold.png"); --bh: url("/mc/gui/button_gold_hi.png"); color: #3a2400; text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.35); }
.mc-btn.gold:hover { color: #000; }
.mc-btn.red { --b: url("/mc/gui/button_red.png"); --bh: url("/mc/gui/button_red_hi.png"); color: #fff; }
.mc-btn.stone { --b: url("/mc/gui/button.png"); --bh: url("/mc/gui/button_hi.png"); }
.mc-btn.sm { height: 34px; padding: 0 12px; font-size: 14px; }
.mc-btn.big { height: 52px; font-size: 20px; padding: 0 26px; }
.mc-btn.wide { width: 100%; margin-top: 10px; }
.mc-btn.icon { width: 44px; height: 44px; padding: 0; }
.mc-btn.icon img { width: 26px; height: 26px; }

.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: rgba(10, 5, 30, 0.92); backdrop-filter: blur(6px); border-bottom: var(--s) solid #000; box-shadow: 0 var(--s) 0 rgba(120, 90, 255, 0.35); }
.top-inner { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; gap: 18px; padding-block: 8px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-icon { width: 40px; height: 40px; }
.brand-text { font-size: 18px; line-height: 1; }
.brand-text small { display: block; font-size: 10px; color: var(--gray); letter-spacing: 4px; margin-bottom: 3px; }
.brand-text b { color: var(--gold); font-weight: 400; }
.nav { display: flex; gap: 2px; flex: 1; }
.nav a { padding: 6px 10px; color: var(--gray); font-size: 15px; }
.nav a:hover { color: var(--yellow); }
.nav a.active { color: #fff; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.account { display: flex; align-items: center; gap: 8px; }
.balance { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 6px; height: 40px; }
.balance { background: var(--slot); box-shadow: inset 2px 2px 0 var(--slot-lo), inset -2px -2px 0 var(--slot-hi); }
.chip-ico { width: 26px; height: 26px; }
.balance-chips { display: flex; flex-direction: column; line-height: 1.05; min-width: 70px; }
.balance-chips b { font-weight: 400; color: var(--chip); font-size: 17px; }
.balance-chips small { color: var(--gray); font-size: 11px; }
.balance.bump, .balance-chips.bump { animation: bump .35s steps(3); }
@keyframes bump { 50% { transform: scale(1.08); } }
.xp-mini { display: flex; flex-direction: column; align-items: center; gap: 1px; width: 92px; cursor: help; }
.xp-num { color: var(--xp); font-size: 15px; line-height: 1; text-shadow: 2px 0 0 #000, -2px 0 0 #000, 0 2px 0 #000, 0 -2px 0 #000; }
.xp-track { display: block; width: 100%; height: 10px; background: url("/mc/gui/xp_bg.png") 0 0 / 100% 100%; image-rendering: pixelated; position: relative; }
.xp-fill { display: block; height: 100%; width: 0; background: url("/mc/gui/xp.png") 0 0 / 92px 10px no-repeat; image-rendering: pixelated; transition: width .5s steps(8); }
.avatar-btn { width: 40px; height: 40px; padding: 4px; border: 0; cursor: pointer; background: var(--slot); box-shadow: inset 2px 2px 0 var(--slot-lo), inset -2px -2px 0 var(--slot-hi); }
.avatar-btn img { width: 32px; height: 32px; display: block; }
.avatar-btn:hover { outline: 2px solid #fff; }

main { max-width: 1240px; margin: 0 auto; padding-block: 22px 40px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); min-height: 70vh; }
main.enter { animation: enter .35s steps(5); }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } }

.title-screen { position: relative; display: flex; flex-direction: column; align-items: center; gap: 28px; padding: 30px 0 18px; }
.logo-wrap { position: relative; text-align: center; padding-top: 8px; }
.coco-hero { display: block; width: 132px; height: 132px; margin: 0 auto 10px; filter: drop-shadow(6px 6px 0 rgba(0, 0, 0, 0.45)); animation: bob 2.6s ease-in-out infinite; }
.logo-img { display: block; width: min(440px, 84vw); height: auto; filter: drop-shadow(8px 10px 0 rgba(0, 0, 0, 0.45)); animation: bob 3.2s ease-in-out infinite; }
.logo { display: flex; flex-direction: column; align-items: center; line-height: .9; }
.logo-the { font-size: 22px; letter-spacing: 12px; color: #d9c8ff; text-shadow: 3px 3px 0 #2b1c63; margin-bottom: 6px; }
.logo-main {
  font-size: clamp(42px, 9.5vw, 104px);
  letter-spacing: 2px;
  color: #b58cff;
  background: url("/mc/block/amethyst_block.png") 0 0 / 48px 48px;
  image-rendering: pixelated;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 0 #3b1d8a) drop-shadow(0 4px 0 #2a1366) drop-shadow(0 4px 0 #1a0b44) drop-shadow(4px 0 0 #000) drop-shadow(-4px 0 0 #000) drop-shadow(0 -4px 0 #000) drop-shadow(0 4px 0 #000);
  text-shadow: none;
}
.splash { position: absolute; right: -150px; bottom: 120px; color: var(--yellow); font-size: clamp(14px, 2.2vw, 22px); transform: rotate(-18deg); text-shadow: 2px 2px 0 #3f3f00; animation: splash .5s ease-in-out infinite alternate; cursor: pointer; white-space: nowrap; transform-origin: center; }
@keyframes splash { from { transform: rotate(-18deg) scale(1); } to { transform: rotate(-18deg) scale(1.1); } }
.title-menu { display: flex; flex-direction: column; gap: 10px; width: min(420px, 100%); }
.title-menu .mc-btn { width: 100%; }
.menu-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.title-foot { width: 100%; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: #d0d0d0; text-shadow: 2px 2px 0 #333; padding-top: 14px; }

.sec-title { display: flex; align-items: center; gap: 10px; font-size: 22px; margin: 36px 0 16px; color: #fff; }
.sec-title img { width: 32px; height: 32px; }
.machine-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.machine-card, .table-card { position: relative; display: block; transition: transform .15s steps(3); }
.machine-card:hover, .table-card:hover { transform: translateY(-4px); }
.machine-card:hover .mc-art, .table-card:hover { outline: var(--s) solid #fff; outline-offset: 2px; }
.mc-art { position: relative; height: 170px; overflow: hidden; background: var(--tex) 0 0 / 48px 48px; image-rendering: pixelated; box-shadow: inset 0 0 0 var(--s) #000, inset 0 0 0 calc(var(--s) * 2) rgba(255, 255, 255, 0.15); }
.mc-scene { position: absolute; inset: 0; }
.mc-art::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 4, 24, 0.55), rgba(8, 4, 24, 0.2)); }
.mc-redstone .mc-scene { background: linear-gradient(180deg, rgba(40, 0, 0, 0.2), rgba(120, 0, 0, 0.55)); }
.mc-redstone .mc-scene::after { content: ""; position: absolute; left: 0; right: 0; bottom: 16px; height: 6px; background: #ff1a0a; box-shadow: 0 0 12px #ff1a0a; animation: pulse 1.2s steps(2) infinite; }
.mc-nether .mc-scene { background: linear-gradient(180deg, rgba(60, 0, 0, 0.3), rgba(255, 80, 0, 0.35)); }
.mc-nether .mc-scene::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 36px; background: url("/mc/block/lava_still.png") 0 0 / 48px 960px; image-rendering: pixelated; animation: lava 3s steps(20) infinite; }
.mc-end .mc-scene { background: url("/mc/env/end_portal.png") 0 0 / 192px, #0a0418; image-rendering: pixelated; opacity: .85; animation: drift 30s linear infinite; }
.mc-aether .mc-scene { background: linear-gradient(180deg, rgba(110, 180, 255, 0.85), rgba(230, 245, 255, 0.6)); }
.mc-aether .mc-scene::after { content: ""; position: absolute; inset: 0; background: url("/mc/env/clouds.png") 0 0 / 512px; image-rendering: pixelated; opacity: .55; animation: drift 40s linear infinite; }
@keyframes pulse { 50% { opacity: .45; } }
@keyframes lava { to { background-position: 0 -960px; } }
@keyframes drift { to { background-position: 512px 0; } }
.float { position: absolute; width: 64px; height: 64px; filter: drop-shadow(4px 4px 0 rgba(0, 0, 0, 0.5)); animation: bob 2.4s ease-in-out infinite; }
.float.f0 { left: 14%; top: 40px; }
.float.f1 { left: calc(50% - 40px); top: 26px; width: 80px; height: 80px; animation-delay: -.8s; }
.float.f2 { right: 14%; top: 40px; animation-delay: -1.6s; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.mc-info { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; background: var(--tip); border: var(--s) solid transparent; border-image: linear-gradient(var(--tip-hi), var(--tip-lo)) 1; border-top: 0; }
.mc-dim { font-size: 12px; color: var(--aqua); letter-spacing: 2px; text-transform: uppercase; }
.mc-info b { font-weight: 400; font-size: 17px; color: #fff; }
.mc-tag { font-size: 13px; color: var(--gold); }
.table-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.table-card { display: flex; align-items: center; gap: 14px; padding: 16px; min-height: 110px; background: linear-gradient(90deg, rgba(10, 4, 30, 0.88), rgba(10, 4, 30, 0.55)), var(--tex) 0 0 / 48px 48px; image-rendering: pixelated; box-shadow: inset 0 0 0 var(--s) #000, inset 0 0 0 calc(var(--s) * 2) rgba(255, 255, 255, 0.12); }
.tc-icons { display: flex; flex: none; }
.tc-icons img { width: 44px; height: 44px; margin-right: -10px; filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.5)); }
.tc-icons img:nth-child(2) { transform: translateY(-8px); }
.tc-info { display: flex; flex-direction: column; min-width: 0; padding-left: 12px; }
.tc-info b { font-weight: 400; font-size: 18px; color: #fff; }
.tc-info span { color: var(--gray); font-size: 13px; }
.live-dot { position: absolute; top: 10px; right: 10px; font-size: 12px; color: #fff; background: #c40000; padding: 2px 8px; box-shadow: 0 0 0 2px #000; animation: pulse 1s steps(2) infinite; }
.lobby-bottom { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; margin-top: 36px; }
.chat-box, .tab-list { background: rgba(0, 0, 0, 0.5); padding: 10px 12px; min-width: 0; }
.chat-title { display: flex; align-items: center; gap: 8px; color: var(--gray); font-size: 14px; margin-bottom: 8px; }
.chat-title img { width: 20px; height: 20px; }
.chat-lines { display: flex; flex-direction: column; gap: 3px; max-height: 270px; overflow: auto; }
.chat-line { font-size: 15px; color: #fff; text-shadow: 2px 2px 0 #3f3f3f; overflow-wrap: anywhere; }
.chat-line .cn { color: #fff; }
.chat-line b { font-weight: 400; }
.chat-line .aqua { color: var(--aqua); }
.chat-line .gray { color: var(--gray); font-size: 13px; }
.chat-line.sys { color: var(--yellow); }
.tab-rows { display: flex; flex-direction: column; gap: 2px; }
.tab-row { display: flex; align-items: center; gap: 10px; padding: 3px 8px; background: rgba(255, 255, 255, 0.08); font-size: 15px; }
.tab-row.empty { color: var(--gray); }
.tr-pos { color: var(--gray); width: 20px; }
.tr-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-lvl { color: var(--xp); text-shadow: 2px 0 0 #000, -2px 0 0 #000, 0 2px 0 #000, 0 -2px 0 #000; }

.page-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.page-head.flat { margin-bottom: 14px; }
.ph-text { flex: 1; min-width: 0; }
.kicker { display: block; font-size: 13px; letter-spacing: 3px; color: var(--aqua); }
.page-head h1 { font-size: clamp(24px, 4vw, 36px); color: #fff; }
.ph-tools { display: flex; gap: 8px; }

.slot-page { max-width: 1000px; margin: 0 auto; }
.cabinet { position: relative; padding: 18px; background: var(--frame) 0 0 / 48px 48px; image-rendering: pixelated; box-shadow: inset 0 0 0 var(--s) rgba(255, 255, 255, 0.25), 0 0 0 var(--s) #000, 0 0 0 calc(var(--s) * 3) rgba(0, 0, 0, 0.4), 10px 12px 0 rgba(0, 0, 0, 0.45); }
.cab-top, .cab-bottom { display: flex; justify-content: center; min-height: 10px; }
.cab-top { margin-bottom: 12px; }
.cab-bottom { margin-top: 12px; }
.cab-mid { display: flex; align-items: stretch; gap: 12px; justify-content: center; }
.cab-side { display: flex; width: 48px; flex: none; }
.cab-side > div { height: 100%; }
.reels-box { position: relative; padding: 8px; background: #050310; box-shadow: inset 4px 4px 0 #000, inset -4px -4px 0 rgba(255, 255, 255, 0.18), 0 0 0 var(--s) #000; }
.reels-bg { position: absolute; inset: 8px; pointer-events: none; }
.reels { position: relative; display: grid; grid-template-columns: repeat(5, var(--cell)); gap: 6px; justify-content: center; }
.reel { position: relative; height: calc(var(--cell) * 3); overflow: hidden; background: rgba(12, 7, 34, 0.6); box-shadow: inset 2px 2px 0 rgba(0, 0, 0, 0.6), inset -2px -2px 0 rgba(255, 255, 255, 0.12); }
.reel::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 16%, transparent 84%, rgba(0, 0, 0, 0.6)); z-index: 2; }
.reel.landed { animation: land .25s steps(3); }
@keyframes land { 40% { transform: translateY(5px); } }
.reel.anticipate { box-shadow: inset 0 0 0 4px var(--yellow), 0 0 24px rgba(255, 255, 85, 0.6); animation: antic .3s steps(2) infinite; }
@keyframes antic { 50% { box-shadow: inset 0 0 0 4px var(--gold), 0 0 34px rgba(255, 170, 0, 0.8); } }
.reel.drop .cell { animation: drop .42s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes drop { from { transform: translateY(-120%); } }
.strip { position: absolute; left: 0; top: 0; width: 100%; will-change: transform; }
.cell { height: var(--cell); display: grid; place-items: center; position: relative; }
.cell img { width: 68%; height: 68%; filter: drop-shadow(4px 4px 0 rgba(0, 0, 0, 0.5)); position: relative; z-index: 1; }
.strip.blur .cell img { filter: blur(2px) drop-shadow(4px 4px 0 rgba(0, 0, 0, 0.5)); transform: scaleY(1.15); }
.cell.hit::before { content: ""; position: absolute; inset: 5px; background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 3px var(--yellow), inset 0 0 0 6px #000; animation: hitbox .5s steps(2) infinite; z-index: 0; }
.cell.hit img { animation: hop .5s steps(2) infinite; }
.cell.dim img { opacity: .28; filter: grayscale(.6); }
.cell.gone img { animation: gone .45s steps(4) forwards; }
@keyframes gone { to { transform: scale(0) rotate(90deg); opacity: 0; } }
@keyframes hitbox { 50% { box-shadow: inset 0 0 0 3px var(--gold), inset 0 0 0 6px #000; background: rgba(255, 255, 85, 0.15); } }
@keyframes hop { 50% { transform: translateY(-6px) scale(1.06); } }
.paylines { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 4; }
.paylines path { fill: none; stroke-width: 6; stroke-linecap: square; stroke-linejoin: miter; stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: draw .5s steps(10) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hold-layer { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
.held-cell { position: absolute; display: grid; place-items: center; background: rgba(255, 220, 80, 0.25); box-shadow: inset 0 0 0 3px #ffe066, inset 0 0 0 6px #000, 0 0 18px rgba(255, 224, 102, 0.7); animation: heldIn .4s cubic-bezier(.3, 1.6, .5, 1); }
.held-cell img { width: 72%; height: 72%; filter: drop-shadow(4px 4px 0 rgba(0, 0, 0, 0.4)); animation: bob 1.4s ease-in-out infinite; }
@keyframes heldIn { from { transform: scale(1.5); opacity: 0; } }
.free-banner { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); z-index: 6; padding: 6px 14px; font-size: 16px; white-space: nowrap; color: var(--yellow); background: var(--tip); border: var(--s) solid transparent; border-image: linear-gradient(var(--tip-hi), var(--tip-lo)) 1; }
.free-banner b { color: #fff; font-weight: 400; }

.slot-hud { display: flex; align-items: flex-end; justify-content: center; gap: 22px; margin-top: 22px; flex-wrap: wrap; }
.hotbar-wrap { --hb: 2; display: flex; flex-direction: column; align-items: center; gap: 4px; position: relative; }
.action-bar { min-height: 24px; text-align: center; font-size: 16px; color: #fff; text-shadow: 2px 2px 0 #3f3f3f; max-width: 560px; }
.action-bar b { font-weight: 400; color: var(--yellow); }
.action-bar .dim { color: #cfcfcf; font-size: 14px; }
.action-bar.show { animation: abar .4s steps(4); }
.action-bar.static { margin-top: 10px; }
@keyframes abar { from { opacity: 0; transform: translateY(6px); } }
.item-name { position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 15px; color: #fff; text-shadow: 2px 2px 0 #3f3f3f; opacity: 0; pointer-events: none; }
.item-name.fade { animation: iname 2s steps(10); }
@keyframes iname { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
.xp-row { position: relative; width: calc(182px * var(--hb)); height: calc(5px * var(--hb) + 16px); display: flex; flex-direction: column; justify-content: flex-end; }
.xp-bar { width: 100%; height: calc(5px * var(--hb)); background: url("/mc/gui/xp_bg.png") 0 0 / 100% 100%; image-rendering: pixelated; }
.xp-bar .xp-fill { background-size: calc(182px * var(--hb)) 100%; }
.xp-level { position: absolute; left: 50%; bottom: calc(5px * var(--hb) - 6px); transform: translateX(-50%); color: var(--xp); font-size: 18px; line-height: 1; text-shadow: 2px 0 0 #000, -2px 0 0 #000, 0 2px 0 #000, 0 -2px 0 #000; }
.hotbar { position: relative; display: flex; width: calc(182px * var(--hb)); height: calc(22px * var(--hb)); padding: calc(1px * var(--hb)) 0 0 calc(1px * var(--hb)); background: url("/mc/gui/hotbar.png") 0 0 / 100% 100%; image-rendering: pixelated; }
.hb-slot { position: relative; width: calc(20px * var(--hb)); height: calc(20px * var(--hb)); padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.hb-slot img { width: calc(16px * var(--hb)); height: calc(16px * var(--hb)); image-rendering: pixelated; }
.hb-slot:hover:not(.empty) { background: rgba(255, 255, 255, 0.25); }
.hb-slot.empty { cursor: default; }
.hb-count { position: absolute; right: 1px; bottom: -1px; font-size: 11px; line-height: 1; color: #fff; text-shadow: 2px 2px 0 #3f3f3f; pointer-events: none; }
.hb-key { position: absolute; left: 3px; top: 1px; font-size: 10px; color: rgba(255, 255, 255, 0.45); }
.hb-slot.glint img { animation: glint 1.2s linear infinite; filter: drop-shadow(0 0 4px #c78cff) brightness(1.3); }
@keyframes glint { 50% { filter: drop-shadow(0 0 8px #ff8cff) brightness(1.6) hue-rotate(40deg); } }
.hb-sel { position: absolute; left: calc(var(--hb) * -1px); top: calc(var(--hb) * -1px); width: calc(24px * var(--hb)); height: calc(23px * var(--hb)); background: url("/mc/gui/hotbar_sel.png") 0 0 / 100% 100%; image-rendering: pixelated; pointer-events: none; transition: left .1s steps(2); }
.spin-col { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.win-box { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 14px; padding: 6px 12px; background: var(--slot); box-shadow: inset 2px 2px 0 var(--slot-lo), inset -2px -2px 0 var(--slot-hi); }
.win-box span { font-size: 12px; color: var(--gray); letter-spacing: 2px; }
.win-box b { font-weight: 400; font-size: 22px; color: var(--green); text-align: right; }
.win-box b.bet { color: var(--chip); font-size: 18px; }
.spin-btn { display: flex; align-items: center; justify-content: center; gap: 12px; min-width: 210px; height: 64px; padding: 0 20px; font-size: 22px; color: #3a2400; cursor: pointer; background: none; border: 6px solid transparent; border-image: url("/mc/gui/button_gold.png") 3 fill / 6px stretch; image-rendering: pixelated; text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.35); }
.spin-btn:hover { border-image-source: url("/mc/gui/button_gold_hi.png"); color: #000; }
.spin-btn img { width: 34px; height: 34px; image-rendering: pixelated; transition: transform .2s steps(3); }
.spin-btn.pulled img { transform: rotate(-45deg) translateY(4px); }
.spin-btn.auto { border-image-source: url("/mc/gui/button_red.png"); color: #fff; }
.spin-btn.auto span::after { content: " · PARAR"; }

.cab-redstone .lamps { display: flex; gap: 6px; }
.lamp { position: relative; width: 36px; height: 36px; box-shadow: 0 0 0 2px #000; }
.lamp img { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.lamp .on { opacity: 0; }
.lamp.lit .on { opacity: 1; }
.lamp.lit { box-shadow: 0 0 0 2px #000, 0 0 18px rgba(255, 190, 90, 0.75); }
.pistons { display: flex; flex-direction: column; justify-content: space-around; width: 100%; }
.piston { display: block; width: 44px; height: 44px; box-shadow: 0 0 0 2px #000; }
.piston img { width: 100%; height: 100%; transform: rotate(90deg); }
.pistons.r .piston img { transform: rotate(-90deg); }
.piston.push { animation: push .5s steps(4); }
.pistons.l .piston.push { --dx: 10px; }
.pistons.r .piston.push { --dx: -10px; }
@keyframes push { 30% { transform: translateX(var(--dx)); } 70% { transform: translateX(var(--dx)); } }
.wire { display: flex; align-items: center; gap: 0; width: 100%; max-width: 640px; }
.wire .dust { flex: 1; height: 6px; background: #4a0000; box-shadow: 0 0 0 2px #000; transition: background .2s steps(2), box-shadow .2s steps(2); }
.wire img { width: 36px; height: 36px; box-shadow: 0 0 0 2px #000; }
.wire .on { display: none; }
.cab-redstone.powered .wire .dust { background: #ff1a0a; box-shadow: 0 0 0 2px #000, 0 0 12px #ff1a0a; }
.cab-redstone.powered .wire .on { display: block; }
.cab-redstone.powered .wire .off { display: none; }
.cab-redstone .reels-bg { background: url("/mc/block/deepslate_tiles.png") 0 0 / 48px; image-rendering: pixelated; opacity: .35; }

.cab-nether .fires { display: flex; gap: 0; height: 40px; width: 100%; max-width: 640px; }
.fire { flex: 1; height: 40px; background: url("/mc/block/fire_0.png") 0 0 / 100% 3200%; image-rendering: pixelated; opacity: .25; animation: fire 1.2s steps(32) infinite; }
.fire:nth-child(even) { animation-delay: -.6s; }
@keyframes fire { to { background-position: 0 100%; } }
.cab-nether.blaze .fire, .cab-nether.burning .fire { opacity: 1; }
.pillars { display: flex; flex-direction: column; justify-content: space-around; width: 100%; }
.magma { width: 44px; height: 44px; box-shadow: 0 0 0 2px #000, 0 0 16px rgba(255, 90, 0, 0.5); }
.cab-nether .lava { width: 100%; height: 36px; background: url("/mc/block/lava_still.png") 0 0 / 36px 720px; image-rendering: pixelated; animation: lava2 3s steps(20) infinite; box-shadow: 0 0 0 2px #000, 0 0 20px rgba(255, 100, 0, 0.6); }
@keyframes lava2 { to { background-position: 0 -720px; } }
.cab-nether .reels-bg { background: url("/mc/block/netherrack.png") 0 0 / 48px; image-rendering: pixelated; opacity: .4; }
.ghast-col { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; background: url("/mc/block/nether_portal.png") 0 0 / 100% 3200%; image-rendering: pixelated; animation: portal 1.6s steps(32) infinite, ghin .45s cubic-bezier(.3, 1.6, .5, 1); box-shadow: inset 0 0 0 4px #ffffff; }
.ghast-col img { width: 92%; filter: drop-shadow(6px 6px 0 rgba(0, 0, 0, 0.45)); animation: bob 1.6s ease-in-out infinite; }
@keyframes portal { to { background-position: 0 100%; } }
@keyframes ghin { from { transform: scaleY(0); } }

.cab-end .chain { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.link { min-width: 56px; padding: 4px 8px; text-align: center; font-size: 16px; color: #8d7ab0; background: #120a24; box-shadow: inset 2px 2px 0 #000, inset -2px -2px 0 #3d2a66, 0 0 0 2px #000; }
.link.lit { color: #fff; background: #5a1f8e; box-shadow: inset 2px 2px 0 #b97cff, inset -2px -2px 0 #2b0a4a, 0 0 0 2px #000; }
.link.now { color: var(--yellow); animation: bump .35s steps(3); box-shadow: inset 2px 2px 0 #e7b8ff, inset -2px -2px 0 #2b0a4a, 0 0 0 2px #000, 0 0 16px #b45cff; }
.rods { display: flex; flex-direction: row; justify-content: center; gap: 14px; width: 100%; }
.rod { width: 8px; height: 100%; background: linear-gradient(90deg, #d8c9a0, #fff7e0 40%, #c9b98e); box-shadow: 0 0 0 2px #000, 0 0 14px rgba(255, 245, 220, 0.6); }
.cab-end .purpur { width: 100%; height: 22px; background: url("/mc/block/purpur_block.png") 0 0 / 22px; image-rendering: pixelated; box-shadow: 0 0 0 2px #000; }
.cab-end .reels-bg { background: url("/mc/env/end_portal.png") 0 0 / 256px, url("/mc/env/end_sky.png") 0 0 / 96px; image-rendering: pixelated; opacity: .7; animation: endp 40s linear infinite; mix-blend-mode: screen; }
@keyframes endp { to { background-position: 256px 512px, -96px 96px; } }
.cab-end .reel { background: rgba(10, 4, 26, 0.72); }

.cab-aether .leaves { width: 100%; height: 30px; background: url("/mc/aether/golden_oak_leaves.png") 0 0 / 30px; image-rendering: pixelated; box-shadow: 0 0 0 2px #000; }
.cab-aether .clouds { display: flex; flex-direction: column; justify-content: space-around; width: 100%; }
.cloudblock { width: 44px; height: 44px; opacity: .9; animation: bob 3s ease-in-out infinite; }
.cloudblock:nth-child(2) { animation-delay: -1s; }
.cloudblock:nth-child(3) { animation-delay: -2s; }
.cab-aether .grass { width: 100%; height: 24px; background: url("/mc/aether/aether_grass_block_side.png") 0 0 / 24px; image-rendering: pixelated; box-shadow: 0 0 0 2px #000; }
.cab-aether .reels-box { background: linear-gradient(180deg, #4d98f0, #a8d6ff); }
.cab-aether .reels-bg { background: url("/mc/env/clouds.png") 0 0 / 600px; image-rendering: pixelated; opacity: .5; animation: drift 50s linear infinite; }
.cab-aether .reel { background: rgba(255, 255, 255, 0.28); }
.cab-aether .reel::after { background: linear-gradient(180deg, rgba(40, 90, 160, 0.45), transparent 16%, transparent 84%, rgba(40, 90, 160, 0.45)); }

.mc-title { position: fixed; inset: 0; z-index: 75; display: grid; place-content: center; text-align: center; pointer-events: auto; background: rgba(5, 3, 15, 0.45); animation: tin .35s steps(5); cursor: pointer; padding: 16px; }
.mc-title.out { animation: tout .35s steps(5) forwards; }
@keyframes tin { from { opacity: 0; } }
@keyframes tout { to { opacity: 0; } }
.mt-main { font-size: clamp(40px, 9vw, 96px); color: #fff; text-shadow: 6px 6px 0 rgba(0, 0, 0, 0.6); animation: tpop .5s cubic-bezier(.3, 1.6, .5, 1); }
.mt-sub { font-size: clamp(20px, 4vw, 40px); color: #fff; margin-top: 10px; text-shadow: 4px 4px 0 rgba(0, 0, 0, 0.6); }
@keyframes tpop { from { transform: scale(2.2); opacity: 0; } }

.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(5, 3, 15, 0.7); padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.modal-card { width: min(470px, 100%); padding: 20px 22px 22px; max-height: 88vh; overflow: auto; animation: tin .2s steps(3); }
.modal-card.wide { width: min(700px, 100%); }
.modal-x { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border: 0; background: none; color: var(--gray); font-size: 22px; cursor: pointer; }
.modal-x:hover { color: #fff; }
.modal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; padding-right: 30px; }
.modal-head img { width: 32px; height: 32px; }
.modal-head h2 { font-size: 22px; color: #fff; }
.modal-card p { color: #d4cce8; margin: 6px 0 12px; font-size: 15px; }
.kv { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 10px; margin: 6px 0; font-size: 15px; background: var(--slot); box-shadow: inset 2px 2px 0 var(--slot-lo), inset -2px -2px 0 var(--slot-hi); }
.kv span { color: var(--gray); }
.kv b, .kv code { font-weight: 400; color: var(--chip); font-family: var(--font); overflow-wrap: anywhere; text-align: right; }
.code-input { display: flex; gap: 8px; justify-content: center; margin: 16px 0; }
.code-input input { width: 46px; height: 56px; text-align: center; font-size: 26px; text-transform: uppercase; color: var(--yellow); border: 0; background: #000; box-shadow: inset 0 0 0 2px #a0a0a0; }
.code-input input:focus { outline: none; box-shadow: inset 0 0 0 2px #fff; }
.mc-input { width: 100%; height: 40px; padding: 0 10px; color: #e0e0e0; background: #000; border: 0; box-shadow: inset 0 0 0 2px #a0a0a0; }
.mc-input:focus { outline: none; box-shadow: inset 0 0 0 2px #fff; }
.mc-input.sm { width: 110px; }
select.mc-input { appearance: none; cursor: pointer; }
.chip-pick { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.slot-btn { flex: 1 1 0; min-width: 64px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border: 0; cursor: pointer; color: #fff; font-size: 14px; background: var(--slot); box-shadow: inset 2px 2px 0 var(--slot-lo), inset -2px -2px 0 var(--slot-hi); }
.slot-btn img { width: 40px; height: 40px; }
.slot-btn:hover, .slot-btn.on { background: #3c2a86; outline: 2px solid #fff; }
.slot-btn.txt { padding: 12px 4px; }
.pending-list { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.pending-item { display: flex; justify-content: space-between; padding: 6px 10px; font-size: 13px; background: rgba(0, 0, 0, 0.4); }
.st { font-size: 13px; }
.st-done { color: var(--green); }
.st-pending { color: var(--yellow); }
.st-failed, .st-expired { color: var(--red); }
.pay-table { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.pay-row { display: flex; align-items: center; gap: 10px; padding: 8px; background: var(--slot); box-shadow: inset 2px 2px 0 var(--slot-lo), inset -2px -2px 0 var(--slot-hi); }
.pay-row img { width: 40px; height: 40px; flex: none; }
.pay-row div { display: flex; flex-direction: column; min-width: 0; }
.pay-row b { font-weight: 400; color: #fff; font-size: 15px; }
.pay-row span { font-size: 13px; color: var(--chip); }

.toast { position: fixed; top: calc(70px + env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); z-index: 80; display: flex; flex-direction: column; gap: 2px; width: min(320px, calc(100% - 32px)); padding: 10px 14px; font-size: 14px; color: #fff; animation: toastIn .35s steps(5); background: var(--tip); border: var(--s) solid transparent; border-image: linear-gradient(var(--tip-hi), var(--tip-lo)) 1; }
.toast-title { color: var(--yellow); }
.toast.err .toast-title { color: var(--red); }
.toast.ok .toast-title { color: var(--green); }
@keyframes toastIn { from { transform: translateX(110%); } }

.panel { padding: 20px; background: var(--tip); border: var(--s) solid transparent; border-image: linear-gradient(var(--tip-hi), var(--tip-lo)) 1; }
.panel.narrow { max-width: 460px; margin: 40px auto; }
.lead { color: #d4cce8; max-width: 72ch; }
.sub { display: flex; align-items: center; gap: 8px; font-size: 18px; margin: 20px 0 10px; color: #fff; }
.sub img { width: 24px; height: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-2 > div { min-width: 0; }
.tbl-wrap { overflow-x: auto; }
.mc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mc-table th { text-align: left; color: var(--gray); font-weight: 400; padding: 6px 8px; background: rgba(0, 0, 0, 0.4); }
.mc-table td { padding: 6px 8px; border-bottom: 2px solid rgba(255, 255, 255, 0.06); }
.pos { color: var(--green); }
.neg { color: var(--dgray); }
.fair-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.slot-box { padding: 10px; display: flex; flex-direction: column; gap: 4px; min-width: 0; background: var(--slot); box-shadow: inset 2px 2px 0 var(--slot-lo), inset -2px -2px 0 var(--slot-hi); }
.slot-box span { color: var(--gray); font-size: 13px; }
.slot-box code { font-family: var(--font); color: var(--chip); font-size: 14px; overflow-wrap: anywhere; }
.row-wrap { display: flex; gap: 10px; flex-wrap: wrap; }
.row-wrap .mc-input { flex: 1; min-width: 200px; width: auto; }
.verify { display: grid; grid-template-columns: 2fr 1fr 100px 1.3fr auto; gap: 8px; }
.verify .mc-input { width: 100%; }
.verify-out { margin-top: 12px; }
.vgrid { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.vreel { display: flex; flex-direction: column; gap: 4px; padding: 6px; background: var(--slot); }
.vreel img { width: 40px; height: 40px; }

.roulette-page { max-width: 1100px; margin: 0 auto; }
.stage { position: relative; aspect-ratio: 16 / 9; max-height: 64vh; width: 100%; margin: 0 auto; background: #0b0618; box-shadow: 0 0 0 var(--s) #000, 0 0 0 6px #2a1748, 10px 12px 0 rgba(0, 0, 0, 0.45); overflow: hidden; }
.stage-3d { position: absolute; inset: 0; }
.stage-3d canvas { display: block; width: 100% !important; height: 100% !important; image-rendering: pixelated; }
.stage-hud { position: absolute; inset: 0; pointer-events: none; padding: 12px; }
.live-tag { position: absolute; top: 12px; left: 12px; display: flex; align-items: center; gap: 8px; font-size: 14px; color: #fff; padding: 4px 10px; background: rgba(0, 0, 0, 0.55); text-shadow: 2px 2px 0 #000; }
.rec { width: 10px; height: 10px; background: #ff2020; box-shadow: 0 0 0 2px #000; animation: pulse 1s steps(2) infinite; }
.r-history { position: absolute; top: 12px; right: 12px; display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; max-width: 60%; }
.rh { min-width: 30px; padding: 2px 4px; text-align: center; font-size: 14px; color: #fff; box-shadow: 0 0 0 2px #000; text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5); }
.rh.red { background: #b3201a; }
.rh.black { background: #1e1e26; }
.rh.green { background: #1d8a2b; }
.rh.new { animation: bump .4s steps(3); outline: 2px solid var(--yellow); }
.r-status { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); font-size: clamp(16px, 2.6vw, 24px); color: #fff; padding: 6px 16px; white-space: nowrap; background: rgba(16, 0, 16, 0.8); text-shadow: 2px 2px 0 #000; border: var(--s) solid transparent; border-image: linear-gradient(var(--tip-hi), var(--tip-lo)) 1; }
.r-status.hot { color: var(--gold); animation: pulse .6s steps(2) infinite; }
.r-result { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; padding: 14px 28px; box-shadow: 0 0 0 4px #000, 0 0 0 8px var(--yellow), 0 0 40px rgba(255, 255, 85, 0.5); animation: tpop .5s cubic-bezier(.3, 1.6, .5, 1); }
.r-result b { font-weight: 400; font-size: clamp(40px, 8vw, 72px); line-height: 1; color: #fff; text-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5); }
.r-result span { font-size: 16px; color: #fff; letter-spacing: 3px; }
.r-result.red { background: #b3201a; }
.r-result.black { background: #1e1e26; }
.r-result.green { background: #1d8a2b; }
.stage-loading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--gray); background: #0b0618; }
.spin-ico { width: 48px; height: 48px; animation: spinI 1s steps(8) infinite; }
@keyframes spinI { to { transform: rotateY(360deg); } }
.table-ui { margin-top: 18px; padding: 16px; background: url("/mc/block/purple_wool.png") 0 0 / 48px; image-rendering: pixelated; box-shadow: inset 0 0 0 4px rgba(0, 0, 0, 0.35), 0 0 0 var(--s) #000, 0 0 0 8px #3a2414, 0 0 0 10px #000; }
.board-wrap { overflow-x: auto; padding: 4px 4px 8px; }
.rboard { display: grid; grid-template-columns: 52px repeat(12, minmax(40px, 1fr)) 52px; grid-template-rows: repeat(3, 44px) 40px 40px; gap: 3px; min-width: 640px; }
.rb { position: relative; border: 0; padding: 0; cursor: pointer; color: #fff; font-size: 17px; display: grid; place-items: center; text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5); box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.25), inset -2px -2px 0 rgba(0, 0, 0, 0.4), 0 0 0 2px #000; image-rendering: pixelated; }
.rb.num.red, .rb.red-o { background: url("/mc/block/red_wool.png") 0 0 / 32px; }
.rb.num.black, .rb.black-o { background: url("/mc/block/black_wool.png") 0 0 / 32px; }
.rb.zero { background: url("/mc/block/green_wool.png") 0 0 / 32px; grid-column: 1; }
.rb.out { background: rgba(20, 8, 40, 0.75); font-size: 15px; }
.rb.red-o span { color: #ff4040; font-size: 22px; }
.rb.black-o span { color: #101010; font-size: 22px; text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3); }
.rb:hover, .rb.hov { filter: brightness(1.35); outline: 2px solid #fff; outline-offset: -2px; z-index: 2; }
.rb.winner { outline: 3px solid var(--yellow); outline-offset: -3px; animation: hitbox .5s steps(2) infinite; z-index: 3; }
.rb.loser .stack { opacity: .35; }
.rb.hitnum { outline: 3px solid #fff; outline-offset: -3px; filter: brightness(1.5); z-index: 3; }
.stack { position: absolute; right: -6px; top: -8px; z-index: 4; display: flex; align-items: center; pointer-events: none; }
.stack img { width: 30px; height: 30px; filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.6)); }
.stack i { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-style: normal; font-size: 12px; color: #fff; text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000; }
.r-controls { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 12px; }
.chip-rack { display: flex; gap: 4px; padding: 6px; background: rgba(0, 0, 0, 0.45); }
.rack-chip { position: relative; width: 50px; height: 50px; border: 0; padding: 0; cursor: pointer; background: none; display: grid; place-items: center; transition: transform .1s steps(2); }
.rack-chip img { width: 46px; height: 46px; image-rendering: pixelated; filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.5)); }
.rack-chip span { position: absolute; font-size: 13px; color: #fff; text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000; }
.rack-chip.on { transform: translateY(-6px); }
.rack-chip.on::after { content: ""; position: absolute; inset: -2px; box-shadow: 0 0 0 2px #fff; }
.r-total { display: flex; flex-direction: column; padding: 4px 12px; background: rgba(0, 0, 0, 0.45); }
.r-total span { font-size: 12px; color: var(--gray); letter-spacing: 2px; }
.r-total b { font-weight: 400; font-size: 22px; color: var(--chip); }
.r-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.r-locked .rb, .r-locked .rack-chip { pointer-events: none; }

.bj-page { max-width: 1000px; margin: 0 auto; }
.bj-table { position: relative; padding: 18px 20px 26px; min-height: 470px; background: radial-gradient(120% 80% at 50% 0%, rgba(120, 20, 30, 0.55), rgba(40, 6, 10, 0.92)), url("/mc/block/crimson_nylium.png") 0 0 / 64px; image-rendering: pixelated; box-shadow: inset 0 0 0 4px rgba(0, 0, 0, 0.45), 0 0 0 var(--s) #000, 0 0 0 14px #1d1418, 0 0 0 16px #000, 12px 14px 0 rgba(0, 0, 0, 0.45); margin: 14px; }
.bj-table::before { content: ""; position: absolute; inset: -14px; z-index: -1; background: url("/mc/block/polished_blackstone_bricks.png") 0 0 / 48px; image-rendering: pixelated; }
.bj-dealer { display: flex; justify-content: space-between; align-items: flex-start; }
.piglin { display: flex; align-items: center; gap: 12px; }
.piglin img { width: 72px; height: auto; box-shadow: 0 0 0 3px #000; animation: bob 2.6s ease-in-out infinite; }
.say { position: relative; padding: 8px 12px; font-size: 15px; color: #fff; background: var(--tip); border: var(--s) solid transparent; border-image: linear-gradient(var(--tip-hi), var(--tip-lo)) 1; max-width: 300px; }
.say.pop { animation: tpop .35s cubic-bezier(.3, 1.6, .5, 1); }
.shoe img { width: 64px; height: 64px; box-shadow: 0 0 0 3px #000, 6px 6px 0 rgba(0, 0, 0, 0.4); }
.bj-row { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; min-height: 160px; margin-top: 12px; }
.bj-score { min-width: 54px; text-align: center; padding: 2px 10px; font-size: 18px; color: #fff; background: rgba(0, 0, 0, 0.55); box-shadow: 0 0 0 2px #000; }
.bj-score:empty { visibility: hidden; }
.bj-score.bust { color: var(--red); }
.cards { display: flex; justify-content: center; min-height: 128px; }
.card { width: 88px; height: 124px; margin: 0 -14px; perspective: 600px; }
.card-in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .45s cubic-bezier(.3, 1.4, .5, 1); }
.card.flipped .card-in, .card.back .card-in { transform: rotateY(180deg); }
.cf { position: absolute; inset: 0; backface-visibility: hidden; box-shadow: 0 0 0 3px #000, 6px 6px 0 rgba(0, 0, 0, 0.35); }
.cf.front { background: #f4f0e6; color: #1b1b24; display: grid; place-items: center; box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 5px #d5ccb8, 0 0 0 3px #000, 6px 6px 0 rgba(0, 0, 0, 0.35); }
.card.red .cf.front { color: #c01818; }
.cf.rear { transform: rotateY(180deg); display: grid; place-items: center; background: url("/mc/block/amethyst_block.png") 0 0 / 32px; image-rendering: pixelated; box-shadow: inset 0 0 0 4px #2a1366, inset 0 0 0 6px #b58cff, 0 0 0 3px #000, 6px 6px 0 rgba(0, 0, 0, 0.35); }
.cf.rear img { width: 46px; height: 46px; }
.corner { position: absolute; font-size: 16px; line-height: 1; text-align: center; text-shadow: none; }
.corner.tl { left: 8px; top: 8px; }
.corner.br { right: 8px; bottom: 8px; transform: rotate(180deg); }
.pip { font-size: 46px; line-height: 1; }
.cf .face { width: 52px; height: auto; box-shadow: 0 0 0 2px #000; }
.cf .ace { width: 52px; height: 52px; }
.bj-arc { text-align: center; color: rgba(255, 220, 160, 0.75); font-size: 13px; letter-spacing: 2px; margin: 10px 0; }
.bj-bet { position: absolute; left: 24px; bottom: 22px; display: flex; align-items: center; gap: 8px; }
.bj-bet img { width: 44px; height: 44px; filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.5)); }
.bj-bet b { font-weight: 400; color: var(--chip); font-size: 20px; }
.bj-hud { display: flex; align-items: flex-end; justify-content: center; gap: 22px; flex-wrap: wrap; margin-top: 18px; }
.bj-actions { display: flex; flex-direction: column; gap: 8px; min-width: 260px; }
.bj-acts { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }

.crash-page { max-width: 1000px; margin: 0 auto; }
.crash-stage { position: relative; aspect-ratio: 16 / 9; max-height: 60vh; width: 100%; background: #6aa8ff; box-shadow: 0 0 0 var(--s) #000, 0 0 0 6px #3b2a6e, 10px 12px 0 rgba(0, 0, 0, 0.45); overflow: hidden; }
.crash-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.crash-mult { position: absolute; left: 50%; top: 16%; transform: translateX(-50%); font-size: clamp(48px, 10vw, 110px); color: #fff; text-shadow: 4px 0 0 #1b1240, -4px 0 0 #1b1240, 0 4px 0 #1b1240, 0 -4px 0 #1b1240, 8px 8px 0 rgba(0, 0, 0, 0.45); pointer-events: none; }
.crash-mult.hot1 { color: var(--yellow); }
.crash-mult.hot2 { color: var(--gold); }
.crash-mult.hot3 { color: var(--pink); animation: bump .4s steps(2) infinite; }
.crash-mult.cashed { color: var(--green); }
.crash-mult.crashed { color: var(--red); }
.crash-sub { position: absolute; left: 50%; top: calc(16% + clamp(56px, 11vw, 120px)); transform: translateX(-50%); font-size: 18px; color: #fff; text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.6); white-space: nowrap; pointer-events: none; }
.crash-hist { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 4px; flex-wrap: wrap; }
.crash-hist span { padding: 2px 8px; font-size: 13px; background: rgba(0, 0, 0, 0.55); box-shadow: 0 0 0 2px #000; }
.crash-hist .good { color: var(--green); }
.crash-hist .bad { color: var(--red); }
.crash-hud { display: flex; align-items: flex-end; justify-content: center; gap: 22px; flex-wrap: wrap; margin-top: 18px; }
.crash-ctl { display: flex; flex-direction: column; gap: 8px; min-width: 240px; }
.auto-in { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--gray); }

.foot { max-width: 1240px; margin: 0 auto; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 18px 34px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); font-size: 13px; color: #c8c0dd; }

@media (prefers-reduced-motion: reduce) { .splash, .float, .fire, .cab-nether .lava, .cab-end .reels-bg, .cab-aether .reels-bg, .cell.hit img, .rec, .live-dot { animation: none !important; } }
@media (max-width: 980px) {
  .nav { display: none; }
  .machine-grid { grid-template-columns: repeat(2, 1fr); }
  .table-grid { grid-template-columns: 1fr; }
  .lobby-bottom, .grid-2, .fair-grid { grid-template-columns: 1fr; }
  :root { --cell: min(110px, calc((100vw - 96px) / 5)); }
  .cab-side { display: none; }
  .verify { grid-template-columns: 1fr 1fr; }
  .xp-mini { display: none; }
}
@media (max-width: 560px) {
  :root { --cell: calc((100vw - 32px - 36px - 16px - 24px) / 5); --s: 2px; }
  body { font-size: 15px; }
  .brand-text { display: none; }
  .balance-chips small { display: none; }
  .balance { padding-right: 8px; }
  .account { gap: 6px; }
  .account .mc-btn.sm { padding: 0 8px; font-size: 13px; }
  .account [data-action="cash"] { display: none; }
  .balance-chips { min-width: 0; }
  .balance-chips b { font-size: 15px; }
  .top-inner { gap: 8px; }
  .page-head { gap: 10px; }
  .page-head .back { font-size: 0; width: 38px; padding: 0; }
  .page-head .back::before { content: "\2039"; font-size: 18px; }
  .kicker { font-size: 11px; letter-spacing: 1px; }
  .ph-tools .mc-btn.icon { width: 38px; height: 38px; }
  .cabinet { padding: 12px 10px; }
  .reels-box { padding: 6px; }
  .reels { gap: 4px; }
  .lamp { width: 26px; height: 26px; }
  .cab-redstone .lamps { gap: 3px; }
  .wire img { width: 26px; height: 26px; }
  .hotbar-wrap { --hb: 1.8; }
  .spin-col { width: 100%; }
  .spin-btn { width: 100%; }
  .machine-grid { grid-template-columns: 1fr; }
  .mc-art { height: 140px; }
  .coco-hero { width: 96px; height: 96px; }
  .title-foot { justify-content: center; text-align: center; }
  .pay-table { grid-template-columns: 1fr; }
  .card { width: 70px; height: 100px; margin: 0 -12px; }
  .pip { font-size: 36px; }
  .cf .face { width: 42px; }
  .bj-table { padding: 12px 12px 70px; margin: 14px 0; }
  .bj-acts { grid-template-columns: 1fr 1fr 1fr; }
  .bj-actions, .crash-ctl { width: 100%; }
  .stage { aspect-ratio: 4 / 5; max-height: 70vh; }
  .r-btns { margin-left: 0; }
  .crash-stage { aspect-ratio: 4 / 5; }
  .page-head h1 { font-size: 22px; }
  .verify { grid-template-columns: 1fr; }
  .bj-bet { left: 50%; transform: translateX(-50%); bottom: 14px; }
}
.cab-redstone .cell[data-sym="0"] img, .mc-redstone .float.f1, .pay-row img.smooth { image-rendering: auto; }
@media (max-width: 560px) { .splash { right: -6px; bottom: -14px; } }
.mc-btn.snd { flex: none; width: 40px; height: 40px; }
.mc-btn.snd.off img { opacity: .85; }
.balance-chips small, .balance-chips b { white-space: nowrap; }

.mc-farlands .mc-scene { background: repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0 3px, transparent 3px 9px), linear-gradient(180deg, rgba(20, 20, 20, 0.6), rgba(248, 0, 248, 0.18)); animation: scan 1.4s steps(6) infinite; }
@keyframes scan { 50% { background-position: 0 6px, 0 0; } }
.cab-farlands .cmds { display: flex; gap: 6px; }
.cmd { width: 36px; height: 36px; background: url("/mc/farlands/command_block_anim.png") 0 0 / 100% 400%; image-rendering: pixelated; box-shadow: 0 0 0 2px #000; animation: cmdA 1.6s steps(4) infinite; }
.cmd.rep { filter: hue-rotate(230deg) saturate(1.4); }
.cmd.chain { filter: hue-rotate(90deg) saturate(1.2); }
@keyframes cmdA { to { background-position: 0 133.33%; } }
.farwall { width: 100%; background: url("/mc/farlands/stone.png") 0 0 / 48px 12px, url("/mc/farlands/dirt.png") 0 0 / 12px 48px; background-blend-mode: multiply; image-rendering: pixelated; box-shadow: 0 0 0 2px #000; animation: farjit 3s steps(3) infinite; }
.farwall.r { background-position: 24px 0, 0 24px; }
@keyframes farjit { 33% { background-position: 0 6px, 6px 0; } 66% { background-position: 0 -6px, -3px 12px; } }
.console { display: flex; align-items: center; gap: 8px; width: 100%; max-width: 640px; height: 34px; padding: 0 12px; background: rgba(0, 0, 0, 0.75); box-shadow: 0 0 0 2px #000; color: #fff; font-size: 15px; overflow: hidden; white-space: nowrap; }
.console .prompt { color: var(--gray); }
.console .caret { animation: pulse 1s steps(2) infinite; }
.cab-farlands .reels-bg { background: url("/mc/farlands/stone.png") 0 0 / 48px; image-rendering: pixelated; opacity: .22; }
.cab-farlands .reel { background: rgba(8, 8, 8, 0.7); }
.cab-farlands.glitch { animation: glitchA .6s steps(6); }
@keyframes glitchA { 20% { filter: hue-rotate(90deg) contrast(1.4); transform: translateX(-4px); } 40% { filter: invert(.15); transform: translateX(5px); } 60% { filter: none; transform: translateY(-3px); } 80% { filter: saturate(3) hue-rotate(-60deg); transform: none; } }
.herobrine-flash { position: absolute; inset: 0; z-index: 7; display: grid; place-items: center; background: rgba(0, 0, 0, 0.88); animation: hbf .7s steps(7); }
.herobrine-flash img { width: 46%; image-rendering: pixelated; filter: drop-shadow(0 0 22px #fff); }
@keyframes hbf { 0%, 30%, 60% { opacity: 1; } 15%, 45% { opacity: .1; } 100% { opacity: 1; } }
.cell.haunt img { animation: hauntIn .5s steps(5); }
@keyframes hauntIn { 0% { filter: invert(1) drop-shadow(0 0 10px #fff); transform: scale(1.3); } 50% { filter: drop-shadow(0 0 14px #fff); } }
.cab-farlands .cell[data-sym="0"] img { filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.7)) drop-shadow(4px 4px 0 rgba(0, 0, 0, 0.5)); }
.lever-arm { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; cursor: pointer; }
.la-stick { width: 16px; height: 80px; margin-bottom: -8px; background: url("/mc/block/lever.png") -56px -48px / 128px 128px; image-rendering: pixelated; transform-origin: 50% 100%; transform: rotate(-32deg); filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.5)); transition: transform .12s steps(2); }
.la-base { width: 48px; height: 26px; background: url("/mc/block/cobblestone.png") 0 0 / 40px; image-rendering: pixelated; box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.25), inset -2px -2px 0 rgba(0, 0, 0, 0.45), 0 0 0 2px #000; }
.lever-arm:hover .la-stick { transform: rotate(-24deg); }
.lever-arm.pull .la-stick { animation: pull .7s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes pull { 30% { transform: rotate(38deg); } 60% { transform: rotate(32deg); } 100% { transform: rotate(-32deg); } }

.bigwin { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; overflow: hidden; cursor: pointer; background: radial-gradient(circle at 50% 45%, rgba(60, 20, 110, 0.55), rgba(5, 2, 15, 0.88) 70%); }
.bigwin.in { animation: bwIn .35s ease-out; }
.bigwin.out { animation: bwOut .45s ease-in forwards; }
.bw-rays { position: absolute; left: 50%; top: 45%; width: 220vmax; height: 220vmax; margin: -110vmax 0 0 -110vmax; background: repeating-conic-gradient(from 0deg, rgba(255, 211, 77, 0.22) 0deg 10deg, transparent 10deg 20deg); animation: bwSpin 14s linear infinite; mask-image: radial-gradient(circle, #000 0, transparent 45%); -webkit-mask-image: radial-gradient(circle, #000 0, transparent 45%); }
.bigwin.t2 .bw-rays { background: repeating-conic-gradient(from 0deg, rgba(255, 85, 255, 0.24) 0deg 8deg, transparent 8deg 16deg); animation-duration: 9s; }
.bigwin.t3 .bw-rays { background: repeating-conic-gradient(from 0deg, rgba(85, 255, 255, 0.26) 0deg 6deg, rgba(255, 211, 77, 0.18) 6deg 12deg, transparent 12deg 18deg); animation-duration: 6s; }
.bigwin.t4 .bw-rays { background: repeating-conic-gradient(from 0deg, rgba(255, 85, 85, 0.3) 0deg 5deg, rgba(255, 211, 77, 0.3) 5deg 10deg, rgba(85, 255, 85, 0.25) 10deg 15deg, rgba(85, 85, 255, 0.25) 15deg 20deg); animation-duration: 3.5s; }
.bw-glow { position: absolute; left: 50%; top: 45%; width: 70vmin; height: 70vmin; margin: -35vmin 0 0 -35vmin; border-radius: 50%; background: radial-gradient(circle, rgba(255, 211, 77, 0.5), transparent 65%); animation: bwPulse 1s ease-in-out infinite; }
.bw-core { position: relative; text-align: center; display: grid; justify-items: center; gap: 6px; padding: 16px; }
.bw-coco { width: clamp(90px, 16vmin, 150px); image-rendering: pixelated; animation: bwBob .9s ease-in-out infinite; filter: drop-shadow(0 8px 0 rgba(0, 0, 0, 0.5)); }
.bw-title { font-size: clamp(52px, 12vw, 140px); line-height: 1; letter-spacing: 2px; color: #ffd34d; background: linear-gradient(180deg, #fff6c2 0%, #ffd34d 40%, #ff9f1c 70%, #c45a00 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(5px 5px 0 #3b1a00) drop-shadow(0 0 18px rgba(255, 170, 0, 0.7)); }
.bigwin.t2 .bw-title { background-image: linear-gradient(180deg, #ffe6ff 0%, #ff8ad8 40%, #b05cff 75%, #5a1f9e 100%); filter: drop-shadow(5px 5px 0 #24063d) drop-shadow(0 0 20px rgba(255, 85, 255, 0.8)); }
.bigwin.t3 .bw-title { background-image: linear-gradient(180deg, #e6ffff 0%, #7fe3ff 35%, #4d7cff 70%, #1d2a8a 100%); filter: drop-shadow(5px 5px 0 #08103d) drop-shadow(0 0 24px rgba(85, 255, 255, 0.85)); }
.bigwin.t4 .bw-title { background-image: linear-gradient(90deg, #ff5555, #ffaa00, #ffff55, #55ff55, #55ffff, #5555ff, #ff55ff); background-size: 300% 100%; animation: bwRainbow 1.2s linear infinite; filter: drop-shadow(6px 6px 0 #000) drop-shadow(0 0 26px rgba(255, 255, 255, 0.8)); }
.bigwin.pop2 .bw-title { animation: bwPop .6s cubic-bezier(.3, 1.8, .5, 1); }
.bigwin.t4.pop2 .bw-title { animation: bwPop .6s cubic-bezier(.3, 1.8, .5, 1), bwRainbow 1.2s linear infinite; }
.bw-amount { font-size: clamp(34px, 7vw, 76px); color: #fff; text-shadow: 4px 4px 0 #000, 0 0 16px rgba(255, 211, 77, 0.6); }
.bw-amount small { font-size: 0.45em; color: #ffd34d; }
.bigwin.final .bw-amount { animation: bwPop .5s cubic-bezier(.3, 1.8, .5, 1); color: #ffd34d; }
.bw-mult { font-size: clamp(18px, 3vw, 28px); color: #c9adff; text-shadow: 2px 2px 0 #000; }
.bw-skip { margin-top: 10px; font-size: 13px; color: rgba(255, 255, 255, 0.55); }
@keyframes bwIn { from { opacity: 0; } }
@keyframes bwOut { to { opacity: 0; transform: scale(1.08); } }
@keyframes bwSpin { to { transform: rotate(360deg); } }
@keyframes bwPulse { 50% { transform: scale(1.12); opacity: 0.7; } }
@keyframes bwBob { 50% { transform: translateY(-10px) rotate(-4deg); } }
@keyframes bwPop { 0% { transform: scale(0.2) rotate(-6deg); } 60% { transform: scale(1.18) rotate(2deg); } 100% { transform: scale(1); } }
@keyframes bwRainbow { to { background-position: 300% 0; } }
.screen-flash { position: fixed; inset: 0; z-index: 85; pointer-events: none; opacity: 0; }
.screen-flash.go { animation: sflash .45s ease-out; }
@keyframes sflash { 0% { opacity: var(--a, 0.4); } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .bw-rays, .bw-glow, .bw-coco { animation: none !important; } }

.plinko-page { max-width: 1100px; margin: 0 auto; }
.plinko-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 18px; align-items: start; }
.plinko-stage { position: relative; aspect-ratio: 1 / 0.8; max-height: 72vh; width: 100%; box-shadow: 0 0 0 var(--s) #000, 0 0 0 6px #4b2a8e, 10px 12px 0 rgba(0, 0, 0, 0.45); overflow: hidden; background: #120a24; }
.plinko-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.pl-recent { position: absolute; right: 8px; top: 8px; display: flex; flex-direction: column; gap: 4px; }
.pl-recent span { padding: 2px 8px; font-size: 13px; background: rgba(0, 0, 0, 0.6); box-shadow: 0 0 0 2px #000; text-align: center; animation: tpop .35s cubic-bezier(.3, 1.6, .5, 1); }
.pl-recent .hot { color: var(--gold); }
.pl-recent .good { color: var(--green); }
.pl-recent .bad { color: #ff9a9a; }
.plinko-side { display: flex; flex-direction: column; gap: 12px; padding: 14px; background: rgba(10, 6, 24, 0.75); box-shadow: 0 0 0 var(--s) #000, 0 0 0 6px #3b2a6e; }
.pl-group { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--gray); }
.pl-group b { font-size: 26px; color: var(--gold); font-weight: 400; }
.pl-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pl-seg .mc-btn { justify-content: center; padding-inline: 4px; }
#plAuto.on { box-shadow: inset 0 0 0 3px var(--gold); }
.plinko-hud { display: flex; justify-content: center; margin-top: 18px; }
@media (max-width: 860px) { .plinko-wrap { grid-template-columns: 1fr; } .plinko-stage { aspect-ratio: 1 / 1.05; max-height: none; } }

.mc-antigua .mc-scene { background: radial-gradient(60% 60% at 50% 70%, rgba(41, 223, 235, 0.35), transparent 70%), linear-gradient(180deg, rgba(0, 10, 14, 0.6), rgba(4, 40, 48, 0.6)); animation: pulse 2.4s steps(4) infinite; }
.mc-exuberante .mc-scene { background: linear-gradient(180deg, rgba(20, 40, 18, 0.45), rgba(90, 180, 255, 0.35)); }
.mc-exuberante .mc-scene::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30px; background: url("/mc/slots/exuberante/d_water_still.png") 0 0 / 30px 120px; image-rendering: pixelated; opacity: .85; animation: water 2s steps(4) infinite; }
.mc-mina .mc-scene { background: radial-gradient(40% 50% at 50% 40%, rgba(255, 180, 70, 0.35), transparent 70%), linear-gradient(180deg, rgba(10, 6, 2, 0.55), rgba(40, 26, 10, 0.5)); }
.mc-mina .mc-scene::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 24px; background: url("/mc/slots/mina/d_rail_h.png") 0 0 / 24px; image-rendering: pixelated; }
.mc-cerezos .mc-scene { background: linear-gradient(180deg, rgba(255, 192, 224, 0.55), rgba(255, 240, 248, 0.2)); }
.mc-cerezos .mc-scene::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 34px; background: url("/mc/slots/cerezos/d_cherry_leaves.png") 0 0 / 34px; image-rendering: pixelated; }
.mc-desierto .mc-scene { background: linear-gradient(180deg, rgba(255, 210, 140, 0.5), rgba(214, 150, 70, 0.35)); }
.mc-desierto .mc-scene::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26px; background: url("/mc/slots/desierto/d_sand.png") 0 0 / 26px; image-rendering: pixelated; }
@keyframes water { to { background-position: 0 -120px; } }

.cell-badge { position: absolute; display: grid; place-items: end end; padding: 6px; pointer-events: none; animation: heldIn .35s cubic-bezier(.3, 1.6, .5, 1); }
.cell-badge b { font-weight: 400; font-size: 22px; line-height: 1; padding: 3px 6px 4px; color: #fff; background: #000; box-shadow: 0 0 0 2px #000; text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.6); }
.cell-badge.mult { box-shadow: inset 0 0 0 3px #29dfeb, inset 0 0 0 6px #000, 0 0 22px rgba(41, 223, 235, 0.7); background: rgba(41, 223, 235, 0.14); }
.cell-badge.mult b { background: #0b4c58; color: #7ff6ff; }
.cell-badge.mult.m5 b { background: #29dfeb; color: #00262c; animation: bump .5s steps(2) infinite; }
.cell-badge.heartv { place-items: end center; }
.cell-badge.heartv b { background: #c21f4a; color: #fff; font-size: 20px; }
.cell-badge.heartv.big b { background: #ffd34d; color: #6b0b2a; animation: bump .5s steps(2) infinite; }
.cell-badge.heartv.collect { animation: collect .7s ease-in forwards; }
@keyframes collect { 40% { transform: scale(1.25); } 100% { transform: scale(.2); opacity: 0; } }

.cab-antigua .shriekers { display: flex; gap: 10px; }
.shrieker { position: relative; width: 40px; height: 40px; box-shadow: 0 0 0 2px #000; }
.shrieker img { width: 100%; height: 100%; }
.shrieker::after { content: ""; position: absolute; left: 50%; top: 0; width: 40px; height: 40px; margin-left: -20px; border: 3px solid #7ff6ff; opacity: 0; pointer-events: none; }
.cab-antigua.shriek .shrieker::after { animation: ring 0.9s ease-out var(--d) 2; }
.cab-antigua.pulse .shrieker img { animation: pulse .5s steps(2) var(--d); }
@keyframes ring { 0% { transform: translateY(0) scale(.5); opacity: 1; } 100% { transform: translateY(-34px) scale(2.1); opacity: 0; } }
.sculkwall { position: relative; width: 100%; background: url("/mc/slots/antigua/d_sculk.png") 0 0 / 48px 192px; image-rendering: pixelated; box-shadow: 0 0 0 2px #000; animation: sculkA 3s steps(4) infinite; }
.sculkwall .tendril { position: absolute; left: 50%; width: 6px; height: 18px; margin-left: -3px; background: #29dfeb; box-shadow: 0 0 10px #29dfeb, 0 0 0 2px #000; animation: pulse 1.4s steps(2) infinite; }
.sculkwall .tendril:nth-child(1) { top: 18%; }
.sculkwall .tendril:nth-child(2) { top: 48%; animation-delay: -.5s; }
.sculkwall .tendril:nth-child(3) { top: 78%; animation-delay: -1s; }
@keyframes sculkA { to { background-position: 0 -192px; } }
.sculkfloor { width: 100%; height: 26px; background: url("/mc/slots/antigua/d_sculk_vein.png") 0 0 / 26px 104px, url("/mc/slots/antigua/d_deepslate_bricks.png") 0 0 / 26px; image-rendering: pixelated; box-shadow: 0 0 0 2px #000, 0 0 18px rgba(41, 223, 235, 0.35); }
.cab-antigua .reels-box { background: radial-gradient(70% 70% at 50% 100%, #0b4c58, #031114 70%); }
.cab-antigua .reels-bg { background: url("/mc/slots/antigua/d_reinforced_deepslate_side.png") 0 0 / 48px; image-rendering: pixelated; opacity: .18; }
.cab-antigua .reel { background: rgba(2, 16, 20, 0.72); }
.cab-antigua .reel::after { background: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.75)); }
.cab-antigua .cell[data-sym="0"] img { filter: drop-shadow(0 0 8px rgba(41, 223, 235, 0.8)) drop-shadow(4px 4px 0 rgba(0, 0, 0, 0.5)); }
.cab-antigua.roar { animation: roar 1.4s steps(10); }
@keyframes roar { 20%, 60% { filter: brightness(.55) contrast(1.4); } 40% { filter: brightness(1.4) hue-rotate(-10deg); } }

.cab-exuberante .vines { display: flex; justify-content: space-around; width: 100%; height: 64px; overflow: hidden; background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.25)); box-shadow: 0 0 0 2px #000; }
.vine { width: 26px; height: calc(var(--h) * 26px); background: url("/mc/slots/exuberante/d_cave_vines_plant_lit.png") 0 0 / 26px; image-rendering: pixelated; transform-origin: top center; animation: swayIdle 3s ease-in-out var(--d) infinite; }
.vine::after { content: ""; display: block; width: 26px; height: 26px; margin-top: calc(var(--h) * 26px - 26px); background: url("/mc/slots/exuberante/d_cave_vines_lit.png") 0 0 / 26px; image-rendering: pixelated; filter: drop-shadow(0 0 6px rgba(255, 190, 80, 0.8)); }
.vine.sway { animation: sway .8s ease-out; }
@keyframes swayIdle { 50% { transform: rotate(4deg); } }
@keyframes sway { 25% { transform: rotate(12deg); } 60% { transform: rotate(-8deg); } }
.drips { display: flex; flex-direction: column; justify-content: space-around; align-items: center; width: 100%; background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("/mc/slots/exuberante/d_dripstone_block.png") 0 0 / 48px; image-rendering: pixelated; box-shadow: 0 0 0 2px #000; }
.drip { position: relative; width: 40px; height: 40px; }
.drip img { width: 100%; height: 100%; filter: brightness(1.3) drop-shadow(2px 2px 0 #000); }
.drip i { position: absolute; left: 50%; top: 32px; width: 4px; height: 6px; margin-left: -2px; background: #5fb3ff; animation: dripF 2.6s ease-in infinite; }
.drip:nth-child(2) i { animation-delay: -1s; }
.drip:nth-child(3) i { animation-delay: -1.8s; }
@keyframes dripF { 0%, 60% { transform: translateY(0); opacity: 0; } 65% { opacity: 1; } 100% { transform: translateY(70px); opacity: 0; } }
.pool { width: 100%; height: 28px; background: url("/mc/slots/exuberante/d_water_still.png") 0 0 / 28px 112px; image-rendering: pixelated; box-shadow: 0 0 0 2px #000; animation: pool 2s steps(4) infinite; }
@keyframes pool { to { background-position: 0 -112px; } }
.cab-exuberante .reels-box { background: linear-gradient(180deg, #1d3b1a, #0d2a3a); }
.cab-exuberante .reels-bg { background: url("/mc/slots/exuberante/d_azalea_leaves.png") 0 0 / 48px; image-rendering: pixelated; opacity: .2; }
.cab-exuberante .reel { background: rgba(8, 26, 16, 0.6); }
.cab-exuberante .cell.splash img { animation: splash .35s steps(4); }
@keyframes splash { 50% { transform: scale(1.3) rotate(-8deg); filter: brightness(2); } }

.cab-mina .track { position: relative; width: 100%; height: 44px; overflow: hidden; background: url("/mc/slots/mina/d_rail_h.png") 0 18px / 26px 26px repeat-x; image-rendering: pixelated; }
.cab-mina .cart { position: absolute; left: -60px; bottom: 6px; width: 44px; height: 44px; }
.cab-mina .cart img { width: 100%; height: 100%; }
.cab-mina .cart.ride { animation: ride 1.6s linear; }
@keyframes ride { to { left: 100%; } }
.beams { display: flex; flex-direction: column; justify-content: space-around; align-items: center; width: 100%; background: url("/mc/slots/mina/d_oak_log.png") 0 0 / 48px; image-rendering: pixelated; box-shadow: 0 0 0 2px #000; }
.torchlit { width: 34px; height: 34px; }
.torchlit img { width: 100%; height: 100%; filter: drop-shadow(0 0 10px rgba(255, 190, 80, 0.9)); animation: flick 0.4s steps(2) infinite; }
@keyframes flick { 50% { filter: drop-shadow(0 0 6px rgba(255, 160, 60, 0.7)); } }
.rails { width: 100%; height: 26px; background: url("/mc/slots/mina/d_powered_rail_on_h.png") 0 0 / 26px, url("/mc/slots/mina/d_cobblestone.png") 0 0 / 26px; image-rendering: pixelated; box-shadow: 0 0 0 2px #000; }
.cab-mina .reels-box { background: radial-gradient(70% 70% at 50% 40%, #3b2a14, #120c05 75%); }
.cab-mina .reels-bg { background: url("/mc/slots/mina/d_stone.png") 0 0 / 48px; image-rendering: pixelated; opacity: .2; }
.cab-mina .reel { background: rgba(18, 12, 6, 0.6); }
.cab-mina .cell.fuse img { animation: fuse .2s steps(2) infinite; }
@keyframes fuse { 50% { filter: brightness(3) drop-shadow(0 0 10px #fff); transform: scale(1.08); } }
.cab-mina .cell.blasted img { animation: hauntIn .5s steps(5); }
.reels-box.boomflash { animation: boomF .4s steps(4); }
@keyframes boomF { 0% { box-shadow: inset 0 0 0 999px rgba(255, 255, 255, 0.7); } }

.blossom { width: 100%; height: 40px; background: url("/mc/slots/cerezos/d_cherry_leaves.png") 0 0 / 40px; image-rendering: pixelated; box-shadow: 0 0 0 2px #000; }
.trunk { width: 100%; background: url("/mc/slots/cerezos/d_cherry_log.png") 0 0 / 48px; image-rendering: pixelated; box-shadow: 0 0 0 2px #000; }
.meadow { position: relative; width: 100%; height: 30px; background: url("/mc/slots/cerezos/d_grass_block_side.png") 0 0 / 30px; image-rendering: pixelated; box-shadow: 0 0 0 2px #000; }
.meadow .petals { position: absolute; inset: 0 0 auto; height: 18px; background: url("/mc/slots/cerezos/d_pink_petals.png") 0 0 / 30px; image-rendering: pixelated; transform: translateY(-10px); }
.cab-cerezos .reels-box { background: linear-gradient(180deg, #ffd6ea, #f4a7cc); }
.cab-cerezos .reels-bg { background: url("/mc/slots/cerezos/d_pink_petals.png") 0 0 / 64px; image-rendering: pixelated; opacity: .25; animation: drift 60s linear infinite; }
.cab-cerezos .reel { background: rgba(255, 255, 255, 0.35); }
.cab-cerezos .reel::after { background: linear-gradient(180deg, rgba(160, 50, 110, 0.4), transparent 16%, transparent 84%, rgba(160, 50, 110, 0.4)); }
.cab-cerezos .cell[data-sym="1"] img { animation: beat 1s steps(2) infinite; }
@keyframes beat { 50% { transform: scale(1.12); } }

.temple { display: flex; width: 100%; height: 36px; }
.tblk { flex: 1; image-rendering: pixelated; box-shadow: 0 0 0 1px #000; }
.tblk.c { background: url("/mc/slots/desierto/d_chiseled_sandstone.png") 0 0 / 36px; }
.tblk.t { background: url("/mc/slots/desierto/d_orange_terracotta.png") 0 0 / 36px; }
.tblk:nth-child(5) { background: url("/mc/slots/desierto/d_blue_terracotta.png") 0 0 / 36px; }
.pillar { width: 100%; background: url("/mc/slots/desierto/d_sandstone.png") 0 0 / 48px; image-rendering: pixelated; box-shadow: 0 0 0 2px #000; }
.dunes { width: 100%; height: 26px; background: url("/mc/slots/desierto/d_sand.png") 0 0 / 26px; image-rendering: pixelated; box-shadow: 0 0 0 2px #000; }
.cab-desierto .reels-box { background: linear-gradient(180deg, #7a4a20, #2a160a); }
.cab-desierto .reels-bg { background: url("/mc/slots/desierto/d_cut_sandstone.png") 0 0 / 48px; image-rendering: pixelated; opacity: .16; }
.cab-desierto .reel { background: rgba(40, 22, 8, 0.55); }
.cab-desierto.sandstorm .reels-bg { animation: storm .8s steps(8); }
@keyframes storm { 50% { opacity: .5; background-position: 24px 0; } }
@media (prefers-reduced-motion: reduce) { .vine, .drip i, .pool, .sculkwall, .torchlit img, .cab-cerezos .reels-bg { animation: none !important; } }
