/* ============================================================================
   mc.css — the Minecraft skin for akerluck
   Loaded after styles/brand/premium so it can re-skin the whole shell: dirt and
   grass blocks, oak planks, stone bevels, pixel type and blocky controls.
   Layout is untouched — this file only changes how it looks.
   ========================================================================== */

:root{
  --mc-grass:#aa983b;--mc-grass-d:#7d6e23;--mc-grass-l:#c5b24f;
  --mc-dirt:#7c5638;--mc-dirt-d:#523522;--mc-dirt-l:#9a6f47;
  --mc-stone:#3b3b40;--mc-stone-d:#232327;--mc-stone-l:#4e4e56;
  --mc-oak:#a97842;--mc-oak-d:#6d4a26;--mc-oak-l:#c39a63;
  --mc-diamond:#5fd3f3;--mc-emerald:#b9a333;--mc-redstone:#c8402f;
  --mc-pixel:'Press Start 2P',ui-monospace,'Courier New',monospace;
  --panel:#211f1b;--panel2:#2b2823;--panel3:#35312a;--line:#4a4239;
  --bg:#4a3320;--bg2:#2a2118;
  --text:#f8f3e6;--mut:#c0b5a2;
  --fire:#e07a2f;--fire2:#f3b45c;--gold:#f3c14a;
  --good:#d4c266;--bad:#e0533f;--brand:#c8402f;
}

/* ---------- the world behind everything ---------- */
html{background:#3b2a1a}
body{
  background-color:#6b4a2c;
  background-image:
    repeating-linear-gradient(0deg,rgba(0,0,0,.115) 0 1px,transparent 1px 32px),
    repeating-linear-gradient(90deg,rgba(0,0,0,.095) 0 1px,transparent 1px 32px),
    radial-gradient(circle at 18% 22%,rgba(255,255,255,.05) 0 4px,transparent 5px),
    radial-gradient(circle at 62% 58%,rgba(0,0,0,.09) 0 6px,transparent 7px),
    radial-gradient(circle at 84% 34%,rgba(255,255,255,.035) 0 3px,transparent 4px),
    linear-gradient(180deg,#7e5a37 0,#5f4128 55%,#46301c 100%);
  background-repeat:repeat,repeat,no-repeat,no-repeat,no-repeat,no-repeat;
  background-position:0 0,0 0,center,center,center,center;
  background-attachment:fixed;
  animation:mc-grid-drift 90s linear infinite;
  font-family:'Plus Jakarta Sans',system-ui,sans-serif;
}
/* the grid slides one tile every minute and a half: alive, never busy */
@keyframes mc-grid-drift{
  from{background-position:0 0,0 0,center,center,center,center}
  to{background-position:0 -64px,0 -64px,center,center,center,center}
}
@media (prefers-reduced-motion:reduce){body{animation:none}}
/* a strip of grass where the sky meets the ground */
body::before{
  content:'';position:fixed;left:0;right:0;top:0;height:6px;z-index:60;pointer-events:none;
  background:linear-gradient(180deg,var(--mc-grass-l),var(--mc-grass) 60%,var(--mc-grass-d));
  box-shadow:0 2px 0 rgba(0,0,0,.4);
}
::selection{background:var(--mc-grass);color:#27220b}
::-webkit-scrollbar{width:12px;height:12px}
::-webkit-scrollbar-track{background:#2c2116}
::-webkit-scrollbar-thumb{background:var(--mc-stone-l);border:2px solid #201a13;border-radius:2px}
::-webkit-scrollbar-thumb:hover{background:#5d5d66}

/* ---------- header: an oak plank bar ---------- */
.top{
  background:
    repeating-linear-gradient(90deg,rgba(0,0,0,.22) 0 2px,transparent 2px 48px),
    repeating-linear-gradient(0deg,rgba(255,255,255,.06) 0 1px,transparent 1px 12px),
    linear-gradient(180deg,#8a5f34,#6a4524 70%,#4f3219);
  border-bottom:3px solid #33210f;
  box-shadow:0 4px 0 rgba(0,0,0,.35),inset 0 3px 0 rgba(255,225,170,.18);
}
.wordmark{font-family:var(--mc-pixel);font-size:14px;letter-spacing:0;text-shadow:2px 2px 0 #2a1808}
.wordmark span{color:#ffd85e}
.logo .fire{filter:drop-shadow(0 0 8px rgba(255,190,60,.5))}
.nav button{
  border-radius:3px;color:#e8dcc4;font-weight:700;letter-spacing:.02em;
  background:rgba(0,0,0,.18);border:2px solid transparent;
  box-shadow:inset 0 -2px 0 rgba(0,0,0,.28);
}
.nav button:hover{background:rgba(0,0,0,.32);color:#fff8e6;border-color:#3d2a14}
.nav button.on{
  background:linear-gradient(180deg,var(--mc-grass-l),var(--mc-grass) 65%,var(--mc-grass-d));
  color:#292409;border-color:#5f5318;box-shadow:inset 0 2px 0 rgba(255,255,255,.32),0 2px 0 #4f4616;
}
.pill{
  background:linear-gradient(180deg,#3a362f,#26231e);border:2px solid #15130f;border-radius:3px;
  box-shadow:inset 2px 2px 0 rgba(255,255,255,.07),inset -2px -2px 0 rgba(0,0,0,.5);
}
.pill b{font-family:var(--mc-pixel);font-size:11px;color:#ffe9a8}
.avbtn{border-radius:3px;border:2px solid #1b1712;background:#2b2721}
.iconbtn{border-radius:3px;border:2px solid #15130f;background:#2b2721}

/* ---------- stone panels everywhere ---------- */
.panel,.dropdown,.modal .box,.mcard,.card{
  border-radius:4px;
}
.panel{
  background:
    repeating-linear-gradient(0deg,rgba(255,255,255,.022) 0 1px,transparent 1px 12px),
    linear-gradient(180deg,#403c35,#2b2823 60%,#221f1b);
  border:2px solid #131110;
  box-shadow:
    inset 2px 2px 0 rgba(255,255,255,.08),
    inset -2px -2px 0 rgba(0,0,0,.45),
    0 5px 0 rgba(0,0,0,.32),
    0 14px 30px rgba(0,0,0,.35);
}
.dropdown,.modal .box{
  background:linear-gradient(180deg,#35312a,#231f1a);
  border:2px solid #12100d;
  box-shadow:inset 2px 2px 0 rgba(255,255,255,.07),inset -2px -2px 0 rgba(0,0,0,.5),0 20px 44px rgba(0,0,0,.6);
}
.dditem{border-radius:2px}
.dditem:hover{background:rgba(255,255,255,.07)}
.ddhead{border-bottom:2px solid #14110d}

/* ---------- blocky buttons ---------- */
.btn{
  border-radius:3px;border:2px solid #5f5318;
  background:linear-gradient(180deg,var(--mc-grass-l),var(--mc-grass) 62%,var(--mc-grass-d));
  color:#252009;font-weight:800;letter-spacing:.02em;
  box-shadow:0 4px 0 #2b2205,inset 0 2px 0 rgba(255,255,255,.35),inset 0 -3px 0 rgba(0,0,0,.2);
  text-shadow:0 1px 0 rgba(255,255,255,.25);
}
.btn:hover{filter:brightness(1.07)}
.btn:active{transform:translateY(3px);box-shadow:0 1px 0 #2b2205,inset 0 2px 0 rgba(0,0,0,.2)}
.btn.ghost{
  border-color:#141210;color:#f1e8d6;
  background:linear-gradient(180deg,#4a4640,#2f2b26);
  box-shadow:0 4px 0 #17140f,inset 0 2px 0 rgba(255,255,255,.1);
}
.btn.ghost:hover{background:linear-gradient(180deg,#555048,#36322c);filter:none}
.btn:disabled{filter:none;opacity:.55}
.btn.sm{border-radius:2px}

/* ---------- form controls as stone sockets ---------- */
.field,.betbox input,.betrow,.cssearch input,select.field{
  background:#161410;border:2px solid #0d0b09;border-radius:3px;
  box-shadow:inset 2px 2px 0 rgba(0,0,0,.55),inset -1px -1px 0 rgba(255,255,255,.05);
  color:#fdf6e6;
}
.field:focus,.betbox input:focus{border-color:var(--mc-grass)}
.betbox,.infobox,.result,.hist,.cssearch,.factrow{
  border-radius:3px;
}
.infobox>div,.betbox .betrow{
  background:linear-gradient(180deg,#332f29,#252119);
  border:2px solid #12100c;border-radius:3px;
  box-shadow:inset 1px 1px 0 rgba(255,255,255,.06),inset -1px -1px 0 rgba(0,0,0,.45);
}
.infobox small{color:#bfae90;letter-spacing:.06em}
.infobox b{color:#ffe9a8}
.result{
  background:linear-gradient(180deg,#3a352d,#26221c);
  border:2px solid #12100c;border-radius:3px;
  box-shadow:inset 2px 2px 0 rgba(255,255,255,.06),inset -2px -2px 0 rgba(0,0,0,.4);
  color:#f4ecda;
}
.seg{background:#151310;border:2px solid #0d0b09;border-radius:3px;padding:3px}
.seg button,.seg .on{border-radius:2px}
.seg button.on{background:linear-gradient(180deg,#9e8d39,#766822);color:#252007;box-shadow:inset 0 1px 0 rgba(255,255,255,.3)}
.chip{border-radius:2px;background:#2b2721;border:2px solid #14110d}
.chip.w,.chip.good{border-color:#7d6f2b}
input[type=range]{accent-color:var(--mc-grass)}
label,.lbl,.ctrlcap .px{color:#e5d9c0}
.ctrlcap .px,.px{font-family:var(--mc-pixel);font-size:9px;letter-spacing:0;color:#ece0a5}
.gamehead h2,.view h1,.view h2,.panel h3{font-family:var(--mc-pixel);letter-spacing:0}
.gamehead h2{font-size:13px;line-height:1.5;text-shadow:2px 2px 0 #1a1208;color:#fdf6e6}
.gamehead .muted{color:#d3c4a6}
button.back{background:#2b2721;border:2px solid #14110d;border-radius:3px;color:#f1e8d6}
.muted,small.hint{color:#c2b49a}

/* ---------- lobby tiles: grass-topped blocks ---------- */
.gcard{
  border-radius:4px;border:2px solid #14110d;
  background:linear-gradient(180deg,#3b372f,#262218 70%,#1e1b15);
  box-shadow:inset 2px 2px 0 rgba(255,255,255,.07),inset -2px -2px 0 rgba(0,0,0,.45),0 5px 0 rgba(0,0,0,.3);
}
.gcard::before{
  content:'';display:block;height:5px;
  background:linear-gradient(180deg,var(--mc-grass-l),var(--mc-grass) 60%,var(--mc-grass-d));
}
.gcard:hover{border-color:#5f5318;transform:translateY(-4px);box-shadow:0 8px 0 rgba(0,0,0,.3),0 16px 30px rgba(0,0,0,.4)}
.gcat{background:rgba(0,0,0,.35);border:1px solid #4a4239;border-radius:2px;color:#ece0a5}
.gname{font-weight:800}
.art{border-radius:2px}

/* ---------- footer & chat ---------- */
footer{
  background:
    repeating-linear-gradient(90deg,rgba(0,0,0,.2) 0 2px,transparent 2px 40px),
    linear-gradient(180deg,#3a2a1a,#241a10);
  border-top:3px solid var(--mc-grass-d);
  color:#c9b79a;
}
.chatbox,.chat,.chatwrap{background:#1c1914;border-color:#12100c}

/* ---------- keep pixels crisp ---------- */
.art svg,.mcico svg,.diceicon svg,.dici svg,.chip svg,.gcard svg{shape-rendering:crispEdges;image-rendering:pixelated}

/* ============================================================================
   DICE — one line: blue where you win (diamond above), black where you lose
   (coal above), and the rolled number lands on it.
   ========================================================================== */
.dbar{width:min(100%,460px);display:flex;flex-direction:column;gap:8px;margin:4px 0 2px}
.dicrow{position:relative;height:46px}
.dic{
  position:absolute;top:0;transform:translateX(-50%);
  display:flex;flex-direction:column;align-items:center;gap:3px;
  transition:left .16s ease;pointer-events:none;
}
.dic .dici{display:block;width:24px;height:24px;filter:drop-shadow(0 2px 2px rgba(0,0,0,.5))}
.dic .dici svg{width:100%;height:100%}
.dic em{font-style:normal;font-size:10px;letter-spacing:.04em;color:#c9bda6;white-space:nowrap}
.dic.win em{color:#9fe0ff}
.dic.win.hit .dici{animation:dicPop .4s ease}
.dic.lose.hit .dici{animation:dicPop .4s ease}
@keyframes dicPop{0%{transform:translateY(0) scale(1)}45%{transform:translateY(-4px) scale(1.16)}100%{transform:translateY(0) scale(1)}}
.dtrack{
  position:relative;height:16px;border-radius:2px;overflow:hidden;
  background:#0a0a0c;border:2px solid #0d0b09;
  box-shadow:inset 0 3px 6px rgba(0,0,0,.75),inset 0 -1px 0 rgba(255,255,255,.06);
}
.dfill{
  height:100%;width:50%;
  background:linear-gradient(180deg,#63c8f5,#1f78c8 70%,#155a9b);
  box-shadow:inset 0 2px 0 rgba(255,255,255,.35);
  transition:width .16s ease;
}
.dmark{
  position:absolute;top:-3px;bottom:-3px;width:3px;margin-left:-1.5px;left:50%;
  background:#8fdcff;box-shadow:0 0 10px #49b6ff;border-radius:1px;
  transition:left .25s ease;
}

/* ============================================================================
   CHICKEN — Minecraft woods outside the river (the river itself is untouched)
   ========================================================================== */
.cross-scene{position:relative;width:100%;padding:54px 0 56px;border-radius:6px;overflow:hidden}
.cross-scene::before{
  content:'';position:absolute;inset:0;z-index:0;pointer-events:none;
  background:
    radial-gradient(120% 80% at 50% 0%,rgba(120,200,255,.16),transparent 60%),
    linear-gradient(180deg,#a08f38,#7d6f2b 14%,#7a5537 22%,#5a3d22 78%,#3f2a15);
}
.cross-woods{
  position:absolute;left:0;right:0;height:54px;z-index:1;pointer-events:none;
  background-repeat:repeat-x;background-size:auto 100%;background-position:bottom left;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='54' viewBox='0 0 96 54' shape-rendering='crispEdges'%3E%3Crect x='10' y='6' width='34' height='22' fill='%233f7a2c'/%3E%3Crect x='16' y='0' width='22' height='8' fill='%234f8f34'/%3E%3Crect x='4' y='16' width='10' height='12' fill='%23356b26'/%3E%3Crect x='42' y='18' width='8' height='10' fill='%23356b26'/%3E%3Crect x='24' y='26' width='8' height='22' fill='%235a3a1e'/%3E%3Crect x='24' y='30' width='8' height='4' fill='%23694a28'/%3E%3Crect x='64' y='30' width='22' height='14' fill='%234f8f34'/%3E%3Crect x='70' y='24' width='12' height='8' fill='%235fa63f'/%3E%3Crect x='56' y='38' width='10' height='8' fill='%233f7a2c'/%3E%3Crect x='0' y='46' width='96' height='8' fill='%235f9c3c'/%3E%3Crect x='0' y='50' width='96' height='4' fill='%237a5537'/%3E%3C/svg%3E");
}
.cross-woods.top{top:0}
.cross-woods.bottom{bottom:0;transform:scaleY(-1)}
.cross-h{position:relative;z-index:2;box-shadow:0 18px 40px rgba(0,0,0,.5)}
.cross-h .cross-kerb.start,.cross-h .cross-kerb.finish{
  background-image:
    repeating-linear-gradient(90deg,rgba(0,0,0,.2) 0 2px,transparent 2px 17px),
    linear-gradient(180deg,#c5b24f,#8e7d28 12%,#7a5537 20%,#5a3d22);
}
.cross-h .cross-kerb{color:#f1e7c8;font-weight:800}

/* ============================================================================
   ROULETTE — the wheel sits in the middle of a Minecraft village
   ========================================================================== */
#v-roulette .stage{padding:0;overflow:hidden;border-radius:6px;background:#0b0b0f}
#v-roulette .stage::before{display:none}
#v-roulette .roul-stage{
  padding:112px 16px 20px;min-height:100%;border-radius:6px;overflow:hidden;
}
.roul-village{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.roul-village svg{width:100%;height:100%;display:block;shape-rendering:crispEdges}
.roul-village::after{
  content:'';position:absolute;inset:0;
  background:
    radial-gradient(64% 46% at 50% 46%,rgba(0,0,0,.5),rgba(0,0,0,.12) 72%,transparent),
    linear-gradient(180deg,rgba(0,0,0,.32),transparent 24%,transparent 74%,rgba(0,0,0,.42));
}
.roul-wheelwrap{position:relative;z-index:3}
.roul-coop,.roul-villager{z-index:4}
.roul-stage .result{margin-top:4px;background:rgba(20,16,12,.82);border:2px solid #12100c}
.roul-stage .hist .chip{background:rgba(20,16,12,.78)}

@media(max-width:700px){
  .cross-scene{padding:44px 0 46px}
  .cross-woods{height:44px}
  #v-roulette .roul-stage{padding-top:96px;padding-left:10px;padding-right:10px}
  .wordmark{font-size:11px}
  .gamehead h2{font-size:11px}
}

/* ---------- lobby hero: a Minecraft landscape behind the crest ---------- */
#v-lobby .hero{
  position:relative;border:3px solid #131110;border-radius:6px;overflow:hidden;
  box-shadow:inset 0 0 0 2px rgba(255,255,255,.06),0 8px 0 rgba(0,0,0,.3),0 22px 50px rgba(0,0,0,.45);
  background-image:
    linear-gradient(180deg,rgba(8,7,5,.26) 0%,rgba(8,7,5,.48) 30%,rgba(8,7,5,.7) 56%,rgba(8,7,5,.62) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='120' viewBox='0 0 160 120' shape-rendering='crispEdges'%3E%3Crect x='18' y='18' width='52' height='30' fill='%233f7a2c'/%3E%3Crect x='26' y='8' width='36' height='12' fill='%234f8f34'/%3E%3Crect x='10' y='30' width='14' height='18' fill='%23356b26'/%3E%3Crect x='66' y='32' width='12' height='16' fill='%23356b26'/%3E%3Crect x='40' y='46' width='12' height='34' fill='%235a3a1e'/%3E%3Crect x='40' y='52' width='12' height='6' fill='%23694a28'/%3E%3Crect x='104' y='44' width='40' height='24' fill='%234f8f34'/%3E%3Crect x='114' y='30' width='22' height='16' fill='%235fa63f'/%3E%3Crect x='94' y='60' width='16' height='20' fill='%233f7a2c'/%3E%3Crect x='0' y='76' width='160' height='14' fill='%235f9c3c'/%3E%3Crect x='0' y='86' width='160' height='34' fill='%237a5537'/%3E%3Crect x='0' y='88' width='160' height='3' fill='%236a4629'/%3E%3Crect x='0' y='108' width='160' height='3' fill='%236a4629'/%3E%3C/svg%3E"),
    linear-gradient(180deg,#7cc0ef 0%,#a8dcf8 26%,#d7eefb 46%,#c5b04a 50%,#a08f38 60%,#7a5537 72%,#4a3220 100%);
  background-repeat:repeat,repeat-x,no-repeat;
  background-size:auto,auto 132px,auto;
  background-position:0 0,left bottom,0 0;
}
#v-lobby .hero::after{
  content:'';position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(64% 46% at 50% 34%,transparent,rgba(0,0,0,.32) 78%);
}
#v-lobby .hero-inner{position:relative;z-index:2}
#v-lobby .tagline{
  background:linear-gradient(180deg,#a97842,#7a5230);
  border:2px solid #4b3018;border-radius:3px;color:#2a1a0a;
  box-shadow:inset 0 2px 0 rgba(255,235,190,.35),inset 0 -2px 0 rgba(0,0,0,.3);
  text-shadow:none;font-weight:800;letter-spacing:.14em;
}
#v-lobby .tagline i{color:#4b3018}
#v-lobby .herosub{color:#f2e8d3;text-shadow:0 2px 6px rgba(0,0,0,.85)}
#v-lobby .herosub code{background:rgba(0,0,0,.45);border:1px solid #4a4239;border-radius:2px;color:#ffe9a8}
#v-lobby .featured .fcard{
  border-radius:3px;border:2px solid #131110;
  background:linear-gradient(180deg,#403c34,#26231d);
  box-shadow:inset 2px 2px 0 rgba(255,255,255,.08),inset -2px -2px 0 rgba(0,0,0,.45),0 4px 0 rgba(0,0,0,.35);
}
#v-lobby .featured .fcard:hover{border-color:#5f5318;transform:translateY(-3px)}
#v-lobby .featured .fcard b.px{color:#ffe9a8}
#v-lobby .hero .sec-h h2{color:#fff}
#v-lobby .age{color:#e6d9bd}
#v-lobby .crest-fire{filter:drop-shadow(0 0 22px rgba(255,150,40,.6))}

/* characters stand on a grass ledge instead of floating in the sky */
.roul-villager::after{
  content:'';position:absolute;left:-10px;right:-10px;bottom:-7px;height:12px;z-index:-1;
  background:linear-gradient(180deg,#c5b24f,#a08f38 36%,#7a5537);
  border:2px solid #1b1409;border-radius:2px;
  box-shadow:0 3px 0 rgba(0,0,0,.35),inset 0 2px 0 rgba(255,255,255,.22);
}
.roul-coop .roul-nest{
  height:15px;width:66px;border-radius:2px;
  background:
    repeating-linear-gradient(90deg,rgba(0,0,0,.12) 0 2px,transparent 2px 8px),
    linear-gradient(180deg,#e0bf5a,#b9922f 55%,#8a6a1f);
  border:2px solid #4a3512;
  box-shadow:0 3px 0 rgba(0,0,0,.35),inset 0 2px 0 rgba(255,244,190,.5);
}
.dtrack{border-color:#0a0908}
.dfill{min-width:2px}

/* roulette keeps its own colours on the chosen outside bet */
#roPicker button.on[data-ro="red"]{background:linear-gradient(180deg,#e2564a,#b02a20);color:#fff7ec;border-color:#6d1b14;box-shadow:inset 0 1px 0 rgba(255,255,255,.3)}
#roPicker button.on[data-ro="black"]{background:linear-gradient(180deg,#4c4c55,#24242a);color:#f4f2ec;border-color:#111}

/* the big primary action is always a grass block */
.btn.big{
  background:linear-gradient(180deg,var(--mc-grass-l),var(--mc-grass) 58%,var(--mc-grass-d));
  color:#231e07;border:2px solid #5f5318;border-radius:3px;
  box-shadow:0 5px 0 #2b2205,inset 0 2px 0 rgba(255,255,255,.35),inset 0 -3px 0 rgba(0,0,0,.22);
  text-shadow:0 1px 0 rgba(255,255,255,.22);
}
.btn.big:hover:not(:disabled){filter:brightness(1.07)}
.btn.big:active:not(:disabled){transform:translateY(3px);box-shadow:0 2px 0 #2b2205,inset 0 2px 0 rgba(255,255,255,.2)}
.btn.big:disabled{background:linear-gradient(180deg,#5d5a52,#403d36);border-color:#232019;box-shadow:0 4px 0 #1e1b15;color:#c9c2b4}


/* ============================================================================
   GAME BACKDROPS — three different Minecraft places, one per game
   ========================================================================== */
.mc-stage{position:relative;isolation:isolate;overflow:hidden;border-radius:6px;border:3px solid #12100c}
.mc-stage>.mc-scene{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.mc-stage>.mc-scene svg{display:block;width:100%;height:100%}
.mc-stage>.mc-scene::after{content:'';position:absolute;inset:0;
  background:radial-gradient(78% 52% at 50% 42%,rgba(0,0,0,.52),rgba(0,0,0,.18) 68%,transparent)}
.mc-stage>*:not(.mc-scene){position:relative;z-index:2}

/* dice — a torch-lit stone brick stronghold */
#v-dice .stage.mc-stage{background:#1b1b1b}
#v-dice .dtop .dnum,
#v-dice .dnum{background:rgba(10,9,7,.8);border:2px solid #2f2c25;border-radius:3px;color:#ffe9c0;
  box-shadow:inset 0 2px 0 rgba(255,255,255,.07),0 4px 0 rgba(0,0,0,.4)}
#v-dice .dtrack{background:#100f0c;border:2px solid #2d2a23;box-shadow:inset 0 3px 0 rgba(0,0,0,.7)}
#v-dice .result{background:rgba(10,9,7,.82);border:2px solid #14110c;border-radius:3px}
#v-dice .hist{background:rgba(10,9,7,.6);border-top:2px solid #201d17}
#v-dice .dic em{color:#e8dcc4;text-shadow:1px 1px 0 #000}
#v-dice .stage .chip{background:rgba(10,9,7,.7)}

/* mines — a deep cave of deepslate, ore and torches */
#v-mines .stage.mc-stage{background:#141821}
#v-mines .mgrid{background:rgba(9,12,18,.5);border:2px solid #0a0e14;border-radius:3px;padding:10px;
  box-shadow:inset 0 0 0 2px rgba(255,255,255,.04),0 6px 0 rgba(0,0,0,.35)}
#v-mines .tile{border-radius:2px;border:2px solid #22262b;
  background:linear-gradient(180deg,#5d646b,#3d4349);
  box-shadow:inset 2px 2px 0 rgba(255,255,255,.14),inset -2px -2px 0 rgba(0,0,0,.45),0 3px 0 rgba(0,0,0,.4)}
#v-mines .tile:not(:disabled):hover{border-color:#3a5566}
#v-mines .tile.gem{background:linear-gradient(180deg,#fce98a,#25a9bd);border-color:#0d6b7d;
  box-shadow:inset 2px 2px 0 rgba(255,255,255,.5),0 0 22px rgba(252,228,106,.45)}
#v-mines .tile.boom{background:linear-gradient(180deg,#e8482c,#7f1409);border-color:#4a0c06;
  box-shadow:inset 2px 2px 0 rgba(255,255,255,.28),0 0 22px rgba(232,56,28,.4)}
#v-mines .result{background:rgba(8,11,16,.84);border:2px solid #0a0e14;border-radius:3px}
#v-mines .hist{background:rgba(8,11,16,.6);border-top:2px solid #1b222c}

/* keno — a village square at sunset, numbered on an oak noticeboard */
#v-keno .stage.mc-stage{background:#1b1424}
#v-keno .keno{background:linear-gradient(180deg,rgba(62,42,24,.88),rgba(38,25,14,.92));
  border:3px solid #241609;border-radius:3px;padding:10px;gap:6px;
  box-shadow:inset 2px 2px 0 rgba(255,220,160,.16),inset -2px -2px 0 rgba(0,0,0,.55),0 6px 0 rgba(0,0,0,.4)}
#v-keno .kcell{border-radius:2px;border:2px solid #241a0e;color:#f2e7d2;
  font-family:var(--mc-pixel);font-size:9px;line-height:1;
  background:linear-gradient(180deg,#6f6b62,#494439);
  box-shadow:inset 2px 2px 0 rgba(255,255,255,.16),inset -2px -2px 0 rgba(0,0,0,.45)}
#v-keno .kcell:hover{border-color:#8a6a2a;color:#fff8e6}
#v-keno .kcell.pick{background:linear-gradient(180deg,#f5df75,#a08d2b);color:#2a2509;border-color:#5f5319;
  box-shadow:inset 2px 2px 0 rgba(255,255,255,.45),0 0 14px rgba(236,210,84,.5)}
#v-keno .kcell.hit{background:linear-gradient(180deg,#fce98a,#25a9bd);color:#062a30;border-color:#0d6b7d;
  box-shadow:inset 2px 2px 0 rgba(255,255,255,.5),0 0 16px rgba(252,228,106,.55)}
#v-keno .kcell.miss{background:linear-gradient(180deg,#3b3a36,#1d1c19);border-color:#14130f;color:#6f6a60}
#v-keno .kpay{color:#f0dfbf}
#v-keno .kpay .chip{background:rgba(24,16,9,.68);border:1px solid #5a4220;color:#f4e6c8}
#v-keno .result{background:rgba(18,12,8,.82);border:2px solid #120d07;border-radius:3px}
#v-keno .hist{background:rgba(18,12,8,.6);border-top:2px solid #2a1d10}

/* ---------- coinflip: both faces are round coins ---------- */
#v-coinflip .coin3d .face{border-radius:50%;border-width:9px}
#v-coinflip .coin3d .face.back{
  border-radius:50%;border-color:#0a2434;
  background:radial-gradient(circle at 35% 30%,#1b5a78,#0b2e42 46%,#04121c);
  box-shadow:inset 0 0 0 5px #0d3850,0 16px 34px rgba(0,0,0,.5),0 0 46px rgba(24,182,232,.28);
}
#v-coinflip .coin3d .face.back .ic{filter:drop-shadow(0 0 8px rgba(120,230,255,.45))}
#v-coinflip .coin3d .face .ic{width:64%;height:64%}

/* keep the cave and the village visible around the boards */
#v-mines .stage.mc-stage{padding:26px 18px;gap:20px}
#v-mines .mgrid{width:min(100%,400px)}
#v-keno .stage.mc-stage{padding:24px 16px;gap:16px}
#v-keno .keno{width:min(100%,408px);padding:8px;gap:5px}
#v-keno .kcell{min-width:0;padding:0;font-size:8px}
#v-keno .stage.mc-stage{min-height:620px}

#v-mines .stage.mc-stage{padding:30px 14px;gap:22px}
#v-mines .mgrid{width:min(100%,356px)}
#v-mines .stage.mc-stage>.mc-scene::after{
  background:radial-gradient(80% 55% at 50% 45%,rgba(0,0,0,.34),rgba(0,0,0,.08) 72%,transparent)}
/* the mines board is a mine shaft cut into the cave wall */
#v-mines .mgrid{
  background:rgba(10,14,20,.34);
  border:0;border-radius:3px;
  box-shadow:inset 0 0 0 2px rgba(0,0,0,.55),inset 0 0 40px rgba(0,0,0,.5),0 6px 0 rgba(0,0,0,.42);
  gap:9px;
}

#v-mines .stage.mc-stage{padding:26px 12px;gap:18px}
#v-mines .mgrid{width:min(100%,318px)}
#v-keno .stage.mc-stage{min-height:560px}
#v-dice .diceicon{width:34px;height:34px}
/* icon labels stay readable on the stone wall */
#v-dice .dic .dici{width:27px;height:27px;filter:drop-shadow(0 0 6px rgba(255,255,255,.4))}
#v-dice .dic.lose .dici{filter:drop-shadow(0 0 6px rgba(255,190,170,.55))}
#v-dice .dic em{background:rgba(8,7,5,.6);padding:1px 5px 2px;border-radius:2px}

/* ---------- custom game card pictures (set in the staff panel) ---------- */
.gcard .art.has-img{background:#0d0b09}
.gcard .art.has-img .sp,.gcard .art.has-img .star,.gcard .art.has-img>i{display:none}
.gcard .art .gcard-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;z-index:1}

/* ---------- wheel: a stone prize wheel on a night boardwalk ---------- */
#v-wheel .stage.mc-stage{background:#0b1220;padding:22px 14px;gap:16px}
.whwrap{position:relative;display:grid;place-items:center;width:100%;z-index:2}
.whcv{display:block;width:min(72vw,280px);height:min(72vw,280px);filter:drop-shadow(0 16px 28px rgba(0,0,0,.6))}
.whptr{
  position:absolute;top:2px;left:50%;transform:translateX(-50%);
  width:7px;height:30px;border-radius:2px;pointer-events:none;
  background:linear-gradient(180deg,#ff6a55,#c11d12);
  box-shadow:0 0 14px rgba(255,80,60,.75),0 0 0 2px rgba(0,0,0,.6);
  z-index:3;
}
.whptr::after{
  content:'';position:absolute;left:50%;bottom:-10px;transform:translateX(-50%);
  border:8px solid transparent;border-top-color:#e8341f;
  filter:drop-shadow(0 2px 2px rgba(0,0,0,.6));
}
#v-wheel .result{background:rgba(10,9,7,.84);border:2px solid #14110c;border-radius:3px;margin-top:2px}
#v-wheel .hist{background:rgba(10,9,7,.6);border-top:2px solid #201d17}
.art-wheel{
  background:
    radial-gradient(circle at 50% 46%,rgba(197,178,79,.35),transparent 58%),
    repeating-conic-gradient(from 0deg,rgba(255,255,255,.05) 0 12deg,transparent 12deg 24deg),
    linear-gradient(165deg,#2c2919,#0a0a0f);
}

/* The big Case battle tile with its own picture: nothing but the picture and
   the game name. The card takes the picture's own shape, so nothing is cropped
   and nothing is letterboxed. */
.gcard-lead{overflow:hidden}
.gcard-lead.has-img{display:block;min-height:0;border-color:rgba(232,199,126,.28)}
.gcard-lead.has-img::before{display:none}
.gcard-lead.has-img .art{display:none}
.gcard-lead .gcard-img.gcard-bg{
  position:relative;inset:auto;display:block;z-index:0;
  width:100%;height:auto;max-height:min(64vh,520px);
  object-fit:cover;object-position:center;background:#0b0a09;
}
.gcard-lead.has-img .ginfo{
  position:absolute;left:0;right:0;bottom:0;z-index:2;
  display:block;padding:14px 18px 16px;background:none;
}
.gcard-lead.has-img .ginfo .gcat,
.gcard-lead.has-img .ginfo .glead-cta{display:none}
.gcard-lead.has-img .ginfo b.px{
  display:block;font-size:clamp(19px,4.4vw,28px);color:#fff;letter-spacing:.03em;
  text-shadow:0 2px 10px rgba(0,0,0,.9),0 1px 2px rgba(0,0,0,.95);
}


/* ============================================================================
   MORE MINECRAFT PLACES
   Coinflip sits in a soul sand valley, crash flies over the overworld, and
   every remaining game gets a scene of its own.
   ========================================================================== */
/* coinflip — a soul sand valley at night, blue soul fire around the coin */
#v-coinflip .stage.mc-stage{padding:34px 16px;gap:20px;background:#0c2430}
#v-coinflip .coinwrap{filter:drop-shadow(0 18px 30px rgba(0,0,0,.55))}
#v-coinflip .result{background:rgba(8,20,26,.84);border:2px solid #0a1418;border-radius:3px}
#v-coinflip .hist{background:rgba(8,20,26,.6);border-top:2px solid #16323a}
#v-coinflip .stage .chip{background:rgba(8,20,26,.7)}

/* limbo — the End: pale islands, obsidian pillars, a violet rift */
#v-limbo .stage.mc-stage{background:#0d0818;padding:30px 20px;gap:18px}
#v-limbo .limbo-num{
  position:relative;z-index:2;font-family:var(--mc-pixel);font-size:clamp(26px,7vw,40px);
  color:#f0e4ff;text-shadow:0 4px 0 #2a1040,0 0 26px rgba(178,128,255,.6);letter-spacing:.02em;
  padding:14px 18px;border:3px solid #2a1a44;border-radius:3px;
  background:linear-gradient(180deg,rgba(28,16,46,.86),rgba(14,8,24,.9));
  box-shadow:inset 2px 2px 0 rgba(200,160,255,.18),inset -2px -2px 0 rgba(0,0,0,.6);
}
#v-limbo .limbo-num.win{color:#fff6c8;border-color:#6d632d;text-shadow:0 4px 0 #3c3410,0 0 26px rgba(245,224,121,.6)}
#v-limbo .limbo-num.lose{color:#ffc9c0;border-color:#5c2418;text-shadow:0 4px 0 #3a1108,0 0 26px rgba(255,120,90,.5)}
#v-limbo .result{background:rgba(12,7,20,.86);border:2px solid #1a1030;border-radius:3px}
#v-limbo .hist{background:rgba(12,7,20,.62);border-top:2px solid #251740}
#v-limbo .stage .chip{background:rgba(12,7,20,.72);border:2px solid #2a1a44}

/* hi-lo — a mesa desert in the late afternoon */
#v-highlow .stage.mc-stage{background:#c98a4c;padding:26px 16px;gap:16px}
#v-highlow .hlstage{
  background:
    radial-gradient(90% 130% at 50% -24%,rgba(255,225,170,.18),transparent 62%),
    linear-gradient(180deg,rgba(34,19,9,.88),rgba(20,11,5,.94));
  border:3px solid #3b2210;border-radius:4px;
  box-shadow:inset 2px 2px 0 rgba(255,220,160,.18),inset -2px -2px 0 rgba(0,0,0,.55),0 12px 30px rgba(0,0,0,.45);
}
#v-highlow .hlcall{
  border-radius:3px;border:3px solid #3b2210;
  background:linear-gradient(180deg,#7a4f2c,#4a2c14);color:#fff3dc;
  box-shadow:inset 2px 2px 0 rgba(255,220,160,.2),inset -2px -2px 0 rgba(0,0,0,.5);
}
#v-highlow .hlcall.high:not(:disabled){border-color:#6e6227;background:linear-gradient(180deg,#9e8d39,#6e611f)}
#v-highlow .hlcall.low:not(:disabled){border-color:#7d2018;background:linear-gradient(180deg,#b03a2a,#75200f)}
#v-highlow .hlcall b{color:#ffe9a8}
#v-highlow .hlcall small{color:#e6d3b2}
#v-highlow .result{background:rgba(30,16,7,.88);border:2px solid #24140a;border-radius:3px}
#v-highlow .hist{background:rgba(30,16,7,.6);border-top:2px solid #4a2a12}
#v-highlow .hlnote{color:#ffe9c6;text-shadow:0 2px 4px rgba(60,30,8,.8)}
#v-highlow .stage .chip{background:rgba(30,16,7,.72);border:2px solid #5a3418}

/* cases — a village storage room: oak planks, chests, a crafting table */
#v-cases .stage.mc-stage{background:#6d4a26;padding:24px 14px;gap:14px}
#v-cases .casegrid{background:rgba(20,12,6,.34);border:3px solid #3b2210;border-radius:3px;padding:8px}
#v-cases .casecard{border-radius:3px;border:3px solid #3b2210;background:linear-gradient(180deg,#a97842,#7b5330)}
#v-cases .casecard.on{border-color:#c39a63;box-shadow:0 0 0 2px rgba(255,226,170,.22),0 6px 0 rgba(0,0,0,.35)}
#v-cases .casepick{background:rgba(20,12,6,.4);border:3px solid #3b2210;border-radius:3px}
/* the opening strip is the same dirt the site stands on */
#v-cases .reelwrap{
  background-color:#6b4a2c;
  background-image:
    repeating-linear-gradient(0deg,rgba(0,0,0,.115) 0 1px,transparent 1px 32px),
    repeating-linear-gradient(90deg,rgba(0,0,0,.095) 0 1px,transparent 1px 32px),
    radial-gradient(circle at 18% 22%,rgba(255,255,255,.055) 0 4px,transparent 5px),
    radial-gradient(circle at 62% 58%,rgba(0,0,0,.10) 0 6px,transparent 7px),
    linear-gradient(180deg,#7e5a37 0,#5f4128 55%,#46301c 100%);
  border:3px solid #3b2210;border-radius:3px;
  box-shadow:inset 2px 2px 0 rgba(255,230,180,.14),inset -2px -2px 0 rgba(0,0,0,.45);
}
#v-cases .reelwrap::before{background:linear-gradient(90deg,#5b3f26,rgba(91,63,38,0))}
#v-cases .reelwrap::after{background:linear-gradient(270deg,#5b3f26,rgba(91,63,38,0))}
/* the drops ride on the dirt itself — no boxes, just item and price */
#v-cases .reel .ctile{background:none;border-color:transparent;box-shadow:none}
#v-cases .reel .ctile b{color:#fff6df;text-shadow:0 2px 0 rgba(0,0,0,.5)}
#v-cases .reel .ctile .cv{color:#ffe9a8}
#v-cases .ctile{border-radius:2px;border:2px solid #2c1c0e;background:linear-gradient(180deg,#4a4030,#241c14)}
#v-cases .result{background:rgba(20,12,6,.86);border:2px solid #24140a;border-radius:3px}
#v-cases .hist{background:rgba(20,12,6,.6);border-top:2px solid #4a2a12}
#v-cases .stage .chip{background:rgba(20,12,6,.72);border:2px solid #5a3418}

/* case battle — a nether fortress arena: dark bricks, a lava fall, glowstone */
#v-battle .stage.mc-stage{background:#1b0c0c;padding:22px 12px;gap:14px}
#v-battle .bbhead .px,#v-battle h3.px{color:#ffe2b0;text-shadow:2px 2px 0 #2a0d0d}
#v-battle .bcol,#v-battle .bbattle{
  border-radius:3px;
}
#v-battle .bcol{
  background:rgba(20,8,8,.78);border:3px solid #3d1c1c;
  box-shadow:inset 2px 2px 0 rgba(255,170,120,.1),inset -2px -2px 0 rgba(0,0,0,.6);
}
#v-battle .bslot.rolling{background:rgba(10,4,4,.92);border:2px solid #4a2418;border-radius:3px}
#v-battle .result{background:rgba(16,7,7,.88);border:2px solid #2a1010;border-radius:3px}
#v-battle .hist,#v-battle .coutcomes{background:rgba(16,7,7,.62);border-top:2px solid #3d1c1c}
#v-battle .stage .chip{background:rgba(16,7,7,.75);border:2px solid #4a2418}
#v-battle .bjack{border-radius:3px;border:3px solid #4a2418;background:rgba(18,8,8,.9)}

/* crash — a bright overworld day, with a soft scrim so the number still reads */
#v-crash .cvwrap{overflow:hidden;background:#aa983b}
#v-crash .cvwrap>.mc-scene{position:absolute;inset:0;z-index:0;pointer-events:none}
#v-crash .cvwrap>.mc-scene svg{display:block;width:100%;height:100%}
#v-crash .cvwrap>.mc-scene::after{
  content:'';position:absolute;inset:0;
  background:radial-gradient(58% 46% at 50% 40%,rgba(6,12,22,.4),rgba(6,12,22,.12) 62%,transparent 80%);
}
#v-crash .crsky{display:none}
#v-crash .crm .crmval{color:#fffdf2;text-shadow:0 4px 0 rgba(31,27,9,.55),0 0 26px rgba(0,0,0,.35)}
#v-crash .crm small{background:rgba(22,20,10,.72);border-color:rgba(255,255,255,.22);color:#f4efd7}
#v-crash .hist.crhist{background:rgba(22,20,10,.72);border-top:2px solid #52491d}
#v-crash .hist.crhist .chip{background:rgba(22,20,10,.8);border:2px solid #52491d}

/* blackjack — an oak plank table, and the dealer is a villager */
#v-blackjack .bjtable{
  border-radius:4px;border:4px solid #3b2210;
  background:
    repeating-linear-gradient(0deg,rgba(0,0,0,.13) 0 2px,transparent 2px 34px),
    repeating-linear-gradient(90deg,rgba(0,0,0,.2) 0 2px,transparent 2px 54px),
    linear-gradient(180deg,#b0824a,#8a5f34 46%,#6d4a26);
  box-shadow:
    inset 3px 3px 0 rgba(255,225,170,.24),
    inset -3px -3px 0 rgba(0,0,0,.45),
    0 16px 36px rgba(0,0,0,.5);
}
#v-blackjack .bjtable::before{
  background:radial-gradient(70% 60% at 22% 0%,rgba(255,226,170,.16),transparent 68%),
             radial-gradient(120% 120% at 50% 120%,rgba(0,0,0,.34),transparent 72%);
}
#v-blackjack .bjbeam{display:none}
#v-blackjack .bjvillager{
  right:8px;top:6px;bottom:auto;margin-top:0;width:96px;height:130px;z-index:4;
  filter:drop-shadow(0 10px 14px rgba(0,0,0,.45));
}
#v-blackjack .bjvillager::after{
  content:'';position:absolute;left:2px;right:2px;bottom:-4px;height:8px;z-index:-1;
  background:linear-gradient(180deg,rgba(0,0,0,.32),rgba(0,0,0,0));border-radius:50%;
}
#v-blackjack .hands{padding-right:106px}
#v-blackjack .bjtotal{background:rgba(30,18,8,.6);border:2px solid #4a3018}
#v-blackjack .bjtotal small{color:#f0dcb6}
#v-blackjack .bjtotal b{color:#fff0c8}
@media(max-width:700px){
  #v-blackjack .bjvillager{width:64px;height:88px;right:6px;top:2px}
  #v-blackjack .hands{padding-right:74px}
}

/* crash — no purple view background: the site's own world shows behind it */
#v-crash{background:none}
#v-crash .stage.crstage{
  border:1px solid rgba(0,0,0,.45);border-radius:12px;
  background:
    repeating-linear-gradient(0deg,rgba(0,0,0,.115) 0 1px,transparent 1px 32px),
    repeating-linear-gradient(90deg,rgba(0,0,0,.095) 0 1px,transparent 1px 32px),
    linear-gradient(180deg,#7e5a37,#5f4128 55%,#46301c);
  box-shadow:
    inset 2px 2px 0 rgba(255,255,255,.08),
    inset -2px -2px 0 rgba(0,0,0,.45),
    0 5px 0 rgba(0,0,0,.32);
}
#v-crash .cvwrap{
  border-radius:3px;border:3px solid #131110;
  box-shadow:inset 0 0 0 2px rgba(0,0,0,.45),0 10px 26px rgba(0,0,0,.45);
}
#v-crash .hist.crhist{background:rgba(20,12,6,.6);border-top:2px solid #4a2a12}
#v-crash .hist.crhist .chip{background:rgba(20,12,6,.82);border:2px solid #4a2a12}

/* case battle — a quiet plains dawn instead of the loud fortress, and a calmer
   board: one dark plate for the heading, flat cards, no framed clutter */
#v-battle .stage.mc-stage{background:#cfe9f4;padding:18px 12px;gap:14px}
#v-battle .stage>.mc-scene::after{
  background:linear-gradient(180deg,rgba(20,19,10,.3),rgba(20,19,10,.24) 46%,rgba(20,19,10,.42));
}
#v-battle .bbhead{
  background:rgba(22,21,12,.74);border:2px solid rgba(14,13,8,.85);border-radius:3px;
  padding:9px 12px;box-shadow:0 3px 0 rgba(0,0,0,.28);
}
#v-battle .bbhead .px,#v-battle .bbhead h3{font-size:12px;color:#f6f1de;text-shadow:1px 1px 0 #2b2715}
#v-battle .bbmeta{color:#e9e4ce}
#v-battle .bprog{height:6px;border-radius:2px;background:rgba(0,0,0,.42)}
#v-battle .bcol{
  border:0;border-radius:4px;background:rgba(22,21,14,.84);
  box-shadow:0 4px 0 rgba(0,0,0,.28);
}
#v-battle .bcol .bitems{gap:8px}
#v-battle .bchips{gap:5px;margin-top:2px}
#v-battle .bchip{background:rgba(0,0,0,.42);border:1px solid rgba(255,255,255,.1);border-radius:2px;font-size:9px}
#v-battle .empty{
  color:#f7f4e5;background:rgba(22,21,12,.66);border:2px solid rgba(14,13,8,.8);
  border-radius:3px;padding:10px 12px;margin:0;text-align:center;
}
#v-battle .result{border:2px solid rgba(14,13,8,.8);background:rgba(22,21,12,.7);border-radius:3px}
#v-battle .result:empty{display:none}
#v-battle .couttitle{background:rgba(22,21,12,.7);border-radius:3px;padding:6px 10px}
#v-battle .couttitle span{opacity:.75}
#v-battle .coutover .coutround,#v-battle .coutround{background:rgba(22,21,12,.72);border-radius:3px}
#v-battle .bprog[aria-valuenow="0"]{opacity:.3}

/* case battle picker — official / community switch */
#cbPickTabs{
  margin-left:auto;display:flex;gap:2px;padding:2px;flex:0 0 auto;
  background:rgba(0,0,0,.42);border:2px solid #14110d;border-radius:3px;
}
#cbPickTabs button{
  border:0;border-radius:2px;padding:5px 9px;cursor:pointer;background:none;
  font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#d8cbb2;
}
#cbPickTabs button.on{background:linear-gradient(180deg,var(--mc-grass-l),var(--mc-grass) 65%,var(--mc-grass-d));color:#292409}
.cpickbar{flex-wrap:wrap;row-gap:8px}
@media(max-width:560px){
  #cbPickTabs{order:5;width:100%;justify-content:center;margin:4px 0 0}
}

/* cases — price only: no odds, no return figures */
#v-cases .infobox{display:flex;gap:10px}
#v-cases .infobox>div{flex:1 1 0}
#v-cases .ctile small{display:none}
#v-cases .ccrtp{display:none}
#v-cases .ccrowb{justify-content:flex-start}
#v-cases .facthead{padding:0 0 2px;border:0;background:none}
#v-cases .casefacts{padding:0 2px}
#v-battle .ccrtp{display:none}
#v-battle .ccrowb{justify-content:flex-start}

/* in battle: no header plate, and the opening area stays exactly the size of the
   empty stage — team modes never widen or push the board out */
#v-battle .bbhead{display:none!important}
#v-battle .stage.mc-stage{width:100%;min-width:0;min-height:380px;padding:14px 10px}
#v-battle #cbBoard{width:100%;max-width:100%;min-width:0}
#v-battle .bbattle,#v-battle .bteams{width:100%;max-width:100%;min-width:0}
#v-battle .bbattle{grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:10px}
#v-battle .bteams{display:flex;flex-direction:column;gap:8px}
#v-battle .bteam,#v-battle .bcol,#v-battle .bteamgrid{min-width:0;max-width:100%}
#v-battle .bteamgrid{grid-template-columns:repeat(var(--n,2),minmax(0,1fr));gap:8px}
#v-battle .bitems,#v-battle .bslot,#v-battle .btile{min-width:0;max-width:100%}
#v-battle .bslot.rolling{height:210px}
@media(max-width:700px){
  #v-battle .bslot.rolling{height:150px}
  #v-battle .bteamgrid{gap:6px}
  #v-battle .bcol{padding:9px}
}

/* generated case pictures: the loot art fills its slot, no extra frame */
.caseimg{display:block;width:100%;height:100%;object-fit:contain;border-radius:inherit}
.ccart:has(.caseimg),.pickart:has(.caseimg),.bcardart:has(.caseimg){background:transparent;border-color:transparent}
.bcaserow .ccart .caseimg{height:30px}
.cpick .ccart .caseimg{height:68px}
#tab-officialcases td.ocname,#tab-cases td.ocname{display:flex;align-items:center;gap:10px}
#tab-officialcases td.ocname .caseimg,#tab-cases td.ocname .caseimg{width:56px;height:56px;flex:0 0 56px}

/* case creator: the live picture of the loot */
#mCase #ccArt{object-fit:contain}

/* ---------- case battle openings and the select-cases page ---------- */
/* the battle reels ride on the same dirt as a single case opening */
#v-battle .bslot.rolling{
  background-color:#6b4a2c;
  background-image:
    repeating-linear-gradient(0deg,rgba(0,0,0,.115) 0 1px,transparent 1px 32px),
    repeating-linear-gradient(90deg,rgba(0,0,0,.095) 0 1px,transparent 1px 32px),
    radial-gradient(circle at 18% 22%,rgba(255,255,255,.055) 0 4px,transparent 5px),
    radial-gradient(circle at 62% 58%,rgba(0,0,0,.10) 0 6px,transparent 7px),
    linear-gradient(180deg,#7e5a37 0,#5f4128 55%,#46301c 100%);
  border:3px solid #3b2210;border-radius:3px;
  box-shadow:inset 2px 2px 0 rgba(255,230,180,.14),inset -2px -2px 0 rgba(0,0,0,.45);
}
#v-battle .bslot.rolling::after{
  background:linear-gradient(180deg,#5b3e25 0%,rgba(91,62,37,.86) 8%,rgba(91,62,37,.1) 30%,transparent 50%,rgba(91,62,37,.1) 70%,rgba(91,62,37,.86) 92%,#5b3e25 100%);
}
#v-battle .btile{background:rgba(0,0,0,.1);border-bottom:1px solid rgba(0,0,0,.14)}
#v-battle .btile .bv{color:#ffeec8;text-shadow:0 2px 0 rgba(0,0,0,.45)}
#v-battle .btile.is-win{background:linear-gradient(90deg,rgba(243,193,74,.28),rgba(243,193,74,.06) 68%,transparent)}
#v-battle .bslot.rolling.landed{border-color:#c39a63}

/* the select-cases page: dirt behind oak bars and oak case cards */
.cpicker{
  background-color:#6b4a2c;
  background-image:
    repeating-linear-gradient(0deg,rgba(0,0,0,.115) 0 1px,transparent 1px 32px),
    repeating-linear-gradient(90deg,rgba(0,0,0,.095) 0 1px,transparent 1px 32px),
    radial-gradient(circle at 18% 22%,rgba(255,255,255,.055) 0 4px,transparent 5px),
    radial-gradient(circle at 62% 58%,rgba(0,0,0,.10) 0 6px,transparent 7px),
    linear-gradient(180deg,#7e5a37 0,#5f4128 55%,#46301c 100%);
  background-attachment:fixed;
  background-position:0 0,0 0,center,center,center;
  animation:mc-grid-drift 90s linear infinite;
}
.cpickbar,.cpickfoot{
  background:
    repeating-linear-gradient(90deg,rgba(0,0,0,.22) 0 2px,transparent 2px 48px),
    repeating-linear-gradient(0deg,rgba(255,255,255,.06) 0 1px,transparent 1px 12px),
    linear-gradient(180deg,#8a5f34,#6a4524 70%,#4f3219);
  border-color:#33210f;
  backdrop-filter:none;
}
.cpickbar{border-bottom:3px solid #33210f}
.cpickfoot{border-top:3px solid #33210f}
.cpicktitle b{color:#fff6e0;text-shadow:2px 2px 0 #2a1808}
.cpickgrid .casecard{background:linear-gradient(180deg,#a97842,#7b5330);border:3px solid #3b2210;border-radius:3px}
.cpickgrid .casecard.on{border-color:#c39a63;box-shadow:0 0 0 2px rgba(255,226,170,.22),0 6px 0 rgba(0,0,0,.35)}
.cpickcount{background:rgba(20,12,6,.5);border:2px solid #3b2210;border-radius:3px;color:#ffe9a8}

/* ---------- chat: oak head, dirt body, docked to the far right ---------- */
.chat{
  background-color:#6b4a2c;
  background-image:
    repeating-linear-gradient(0deg,rgba(0,0,0,.115) 0 1px,transparent 1px 32px),
    repeating-linear-gradient(90deg,rgba(0,0,0,.095) 0 1px,transparent 1px 32px),
    radial-gradient(circle at 18% 22%,rgba(255,255,255,.05) 0 4px,transparent 5px),
    radial-gradient(circle at 62% 58%,rgba(0,0,0,.09) 0 6px,transparent 7px),
    radial-gradient(circle at 84% 34%,rgba(255,255,255,.035) 0 3px,transparent 4px),
    linear-gradient(180deg,#7e5a37 0,#5f4128 55%,#46301c 100%);
  background-position:0 0,0 0,center,center,center,center;
  animation:mc-grid-drift 90s linear infinite;
  border-left:1px solid rgba(0,0,0,.4);
  box-shadow:-12px 0 30px rgba(0,0,0,.35);
}
.chathead{
  background:
    repeating-linear-gradient(90deg,rgba(0,0,0,.22) 0 2px,transparent 2px 48px),
    linear-gradient(180deg,#8a5f34,#6a4524 70%,#4f3219);
  border-bottom:3px solid #33210f;
}
.chathead b{color:#fff6e0;text-shadow:2px 2px 0 #2a1808}
.chathead .x{color:#ffe9c6}
.chatlist{padding:8px 6px}
.msg{border-radius:3px}
.msg:hover{background:rgba(0,0,0,.16)}
.msg.staff{background:rgba(243,193,74,.12);box-shadow:inset 3px 0 0 var(--gold)}
.mbody p{color:#fff4e2}
.mmeta time{color:#d3bfa2}
.chatcount{background:rgba(20,12,6,.55);border:2px solid #33210f;border-radius:3px;color:#f2e9bb}
.chatform{background:rgba(20,12,6,.35);border-top:3px solid #33210f}
.chatform input{background:#161410;border:2px solid #0d0b09;border-radius:3px;color:#fdf6e6}
.chatform input::placeholder{color:#a89a86}
.chatnote{color:#e0cdb0;background:rgba(20,12,6,.35);border-top:0}
/* the chat button sits in the far right corner, above the page */
.chatfab{
  position:fixed!important;left:auto!important;right:14px!important;bottom:14px!important;top:auto!important;
  z-index:95!important;border-radius:3px;
  background:linear-gradient(180deg,#a97842,#7b5330);
  color:#fff6e0;border:3px solid #33210f;
  box-shadow:0 4px 0 rgba(0,0,0,.4),inset 0 2px 0 rgba(255,230,180,.25);
  font-family:var(--mc-pixel);font-size:9px;letter-spacing:0;
}
.chatfab:hover{filter:brightness(1.08)}

/* on a phone the chat is a panel on the right edge, not a full-screen sheet */
@media(max-width:1180px){
  .chat{width:min(360px,92vw)!important;left:auto!important;right:0!important}
}

/* while the chat panel is open its button steps aside */
body.chat-open .chatfab{display:none}

/* ---------- linked Minecraft account ----------
   The wallet shows whether the DonutSMP name the player pays from (and is paid
   to) is confirmed, waiting for a staff check, or still missing. */
.linkbox{display:flex;align-items:center;gap:12px;justify-content:space-between;margin:14px 0 4px;padding:12px 14px;background:#2a231a;border:2px solid #4a3a26;border-left:6px solid #8a6a44;color:#f3e7cf}
.linkbox b{display:block;font-size:14px;color:#ffe9b8}
.linkbox small{display:block;margin-top:4px;font-size:12.5px;line-height:1.45;color:#c9bba0}
.linkbox code{font-family:'JetBrains Mono',ui-monospace,monospace;background:#191510;border:1px solid #4a3a26;color:#ffd77a;padding:1px 6px}
.linkbox.wait{border-left-color:#d9a33c;background:#31281a}
.linkbox.ok{border-left-color:#b2a046;background:#2d2a1b}
.linkbox.ok b{color:#f3e6a5}
.linkbox .btn{flex:0 0 auto}

/* ============================================================================
   Clean pass — calmer surfaces, softer edges, one shadow language.
   Loaded last on purpose: these override the chunky bevels above.
   ========================================================================== */
.panel,.dropdown,.modal .box,.mcard,.card,.betbox,.infobox,.result,.hist,.cssearch,.factrow{
  border-radius:12px;
}
.panel,.mcard,.card{
  background:
    linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,0) 40%),
    linear-gradient(180deg,#37332c,#282420);
  border:1px solid rgba(0,0,0,.42);
  box-shadow:0 10px 26px rgba(0,0,0,.26),inset 0 1px 0 rgba(255,255,255,.06);
}
.dropdown,.modal .box{
  background:linear-gradient(180deg,#3a352e,#262220);
  border:1px solid rgba(0,0,0,.5);
  box-shadow:0 26px 60px rgba(0,0,0,.55),inset 0 1px 0 rgba(255,255,255,.06);
}
.btn{
  border:1px solid #554b17;border-radius:10px;
  background:linear-gradient(180deg,#c5b24f,#a29039 55%,#827329);
  box-shadow:0 2px 0 #2b2205,0 8px 18px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.35);
  letter-spacing:.01em;
}
.btn:hover{filter:brightness(1.06)}
.btn:active{transform:translateY(1px);box-shadow:0 1px 0 #2b2205,inset 0 1px 0 rgba(0,0,0,.15)}
.btn.ghost{
  background:linear-gradient(180deg,#4a4640,#302c27);border-color:#1b1815;color:#f3ecdd;
  box-shadow:0 2px 0 #17140f,0 8px 18px rgba(0,0,0,.2);
}
.btn.ghost:hover{background:linear-gradient(180deg,#544f47,#38332d)}
.field,.betbox input,.betrow,.cssearch input,select.field{
  border-radius:10px;background:#181510;border:1px solid rgba(0,0,0,.55);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
  transition:border-color .15s,box-shadow .15s;
}
.field:focus,.betbox input:focus,.cssearch input:focus,select.field:focus{
  border-color:var(--mc-grass);box-shadow:0 0 0 3px rgba(170,152,59,.22);
}
.pill,.avbtn,.iconbtn{
  border-radius:10px;border:1px solid rgba(0,0,0,.5);
  background:linear-gradient(180deg,#403a32,#2a261f);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07);
}
.infobox>div,.betbox .betrow,.result{
  border-radius:10px;border:1px solid rgba(0,0,0,.5);
  background:linear-gradient(180deg,#332f29,#262119);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}
.seg{border-radius:10px;border:1px solid rgba(0,0,0,.55);background:#191511}
.seg button,.seg .on{border-radius:7px}
.chip{border-radius:7px;border:1px solid rgba(0,0,0,.5);background:#2b2721}
.logo .fire{filter:drop-shadow(0 2px 8px rgba(255,190,60,.35))}
.nav button{border-radius:8px;border:1px solid transparent}
.nav button.on{border-radius:8px;box-shadow:inset 0 1px 0 rgba(255,255,255,.3),0 2px 8px rgba(0,0,0,.25)}
.top{box-shadow:0 6px 22px rgba(0,0,0,.3),inset 0 1px 0 rgba(255,225,170,.16)}
table{border-collapse:separate;border-spacing:0}
thead th{background:rgba(0,0,0,.16);font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#cbbda3}
tbody tr+tr td{border-top:1px solid rgba(255,255,255,.05)}
::focus-visible,button:focus-visible,a:focus-visible{outline:2px solid var(--mc-grass-l);outline-offset:2px}
