/* Game screens, from specs 03 and 04. Shared pieces first: the bordered panel,
   chips, the dark input with coin and trash, the striped buttons. */
.screen--jackpot { background-image: url("../assets/jackpot/bg-page-1920x1080.png"); }
.screen--coinflip, .screen--pvp-mines, .screen--wheel { background-image: url("../assets/coinflip/bg-page-1920x1080.png"); }
.screen--mines { background-image: url("../assets/mines/bg-mines.png"); }
.screen--plinko { background-image: url("../assets/plinko/bg-plinko.png"); }
.screen--upgrader { background-image: url("../assets/upgrader/bg-upgrader.png"); }
.screen--jackpot, .screen--coinflip, .screen--pvp-mines, .screen--wheel, .screen--mines, .screen--plinko, .screen--upgrader { background-size: 100% 894px; background-position: center top; }
.screen > .gpage { padding-top: 8px; }

.snow { position: absolute; z-index: 3; height: auto; pointer-events: none; }

.panel {
  position: relative;
  border: 2px solid var(--line); border-radius: 5px;
  background: linear-gradient(var(--a, 214deg), rgba(18, 18, 18, 0.5), rgba(18, 18, 18, 0));
}
.glabel { display: block; margin: -1px 0 8px; font-size: 14px; line-height: 21px; color: var(--muted-2); }
.glabel--13 { font-size: 13px; }
.glabel--c { text-align: center; text-transform: capitalize; }

.chips { display: flex; gap: 8px; }
.chips--fill > .chip { flex: 1; }
.chips--c { justify-content: center; }
.chip {
  min-width: 32px; height: 32px; padding: 0 6px; border-radius: 2px;
  font: 500 14px/21px var(--f-head); text-transform: uppercase; color: var(--muted-2);
  transition: color 0.2s, background-color 0.2s, transform 0.15s;
}
.chip:hover { color: #ffffff; background-color: rgba(56, 56, 56, 0.5); }
.chip:active { transform: scale(0.94); }
.chip.is-on { color: #1d1d1d; background: #383838 url("../assets/mines/chip-selected-bg.png") left center / auto 100% repeat-x; }
.chip:disabled { opacity: 0.4; pointer-events: none; }

.ginput {
  position: relative; display: flex; align-items: center; height: 40px; padding: 0 8px 0 16px;
  background: #383838; border-radius: 2px; transition: box-shadow 0.2s;
}
.ginput:focus-within { box-shadow: 0 0 0 1px rgba(255, 199, 1, 0.5); }
.ginput > img:first-child { flex: none; margin-right: 8px; }
.ginput input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: none; font-size: 14px; color: #ffffff; }
.ginput input::-webkit-inner-spin-button { display: none; }
.ginput .trash { flex: none; transition: transform 0.2s var(--ease-back), filter 0.2s; }
.ginput .trash:hover { transform: rotate(-10deg) scale(1.12); filter: brightness(1.3); }
.ginput--mines { padding-left: 12px; gap: 4px; }
.ginput--mines span { font-size: 14px; }
.ginput:has(input:disabled) { opacity: 0.7; }

.gbtn { width: 100%; height: 40px; font-weight: 500; }
.stripe-yellow { background-image: url("../assets/jackpot/deposit-button-stripes.jpg"); }

/* outline stripe buttons: VIEW (yellow) and VIEW OUTCOME (grey-blue) */
/* The stripes fill the button; a dark plate sits 2px inside, so only a 2px
   striped edge shows. On hover the plate fades and the whole button stripes. */
.btn-view, .btn-outcome {
  position: relative; isolation: isolate; display: inline-grid; place-items: center; height: 40px; border-radius: 2px;
  font: 600 14px/21px var(--f-head); text-transform: uppercase; transition: color 0.2s, transform 0.15s;
}
.btn-view::before, .btn-outcome::before { content: ""; position: absolute; inset: 2px; z-index: -1; border-radius: 1px; transition: opacity 0.2s; }
.btn-view { width: 56px; color: var(--gold); background: url("../assets/pvpmines/view-button-stripes.jpg") left center / auto 100%; }
.btn-view::before { background: #212121; }
.btn-outcome { width: 120px; font-weight: 500; color: #868686; background: url("../assets/coinflip/button-outline-stripes.jpg") left center / auto 100%; }
.btn-outcome::before { background: #1b1b1b; }
.btn-view:hover, .btn-outcome:hover { color: #141414; }
.btn-view:hover::before, .btn-outcome:hover::before { opacity: 0; }
.btn-view:active, .btn-outcome:active { transform: scale(0.96); }

/* stat cards (Jackpot, CoinFlip, PvP Mines) */
.scards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.scard {
  position: relative; display: flex; align-items: center; gap: 12px; height: 80px; padding-left: 16px;
  background: linear-gradient(198.04deg, rgba(18, 18, 18, 0.5), rgba(18, 18, 18, 0)), #232323;
  border: 2px solid var(--line); border-radius: 4px; white-space: nowrap;
}
.scard b { display: block; font-weight: 700; font-size: 17px; line-height: 18px; }
.scard small { display: block; margin-top: 7px; font-size: 14px; line-height: 21px; color: var(--muted-2); }
.scard--btn { justify-content: center; padding: 0; }
.scard--btn .btn-gold { width: 144px; }
.ring-dot { position: relative; width: 24px; height: 24px; }
.ring-dot::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: #ffffff; opacity: 0.75; animation: ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite; }
.ring-dot img { position: relative; }
.bump { animation: bump 0.45s var(--ease-back); }
@keyframes bump { 40% { transform: scale(1.18); color: var(--gold); } }

/* ===================== MINES ===================== */
.mines { display: flex; flex-direction: column; align-items: center; padding-top: 40px; }
.mines__game { position: relative; display: grid; grid-template-columns: 96px 464px 96px; gap: 24px; align-items: center; }
.counter { position: relative; width: 96px; height: 132.3px; }
.counter img { width: 96px; height: 132.3px; }
.counter b { position: absolute; left: 0; right: 0; top: 58px; text-align: center; font: 700 22px/36px var(--f-head); }
.counter.bump b { animation: bump 0.45s var(--ease-back); }
.mgrid { display: grid; grid-template-columns: repeat(5, 80px); gap: 16px; }
.mcell { position: relative; width: 80px; height: 80px; perspective: 600px; }
.mcell__peek { position: absolute; left: 0; top: 80px; width: 80px; height: 81.9px; pointer-events: none; transition: opacity 0.3s; }
.mcell__btn { position: relative; z-index: 1; display: block; width: 80px; height: 80px; transform-style: preserve-3d; transition: transform 0.5s var(--ease-out); }
.mcell__btn > * { position: absolute; inset: 0; backface-visibility: hidden; }
.mcell__tile { width: 80px; height: 79px; transition: filter 0.2s, transform 0.2s var(--ease-back); }
.mcell__face { display: grid; place-items: center; transform: rotateY(180deg); border-radius: 14px; }
.mcell__face--gem { background: radial-gradient(circle at 50% 40%, rgba(77, 124, 255, 0.35), rgba(23, 23, 23, 0.95) 70%); box-shadow: inset 0 0 0 2px rgba(91, 117, 255, 0.6); }
.mcell__face--gem img { width: 72px; height: auto; }
.mcell__face--mine { background: radial-gradient(circle at 50% 45%, rgba(255, 74, 89, 0.45), rgba(40, 14, 24, 0.95) 70%); box-shadow: inset 0 0 0 2px rgba(255, 74, 89, 0.7); }
.mcell__face--mine img { width: 54px; height: 54px; filter: drop-shadow(0 0 8px rgba(255, 74, 89, 0.9)); }
.mcell.is-open .mcell__btn { transform: rotateY(180deg); }
.mcell.is-open .mcell__peek { opacity: 0; }
.mcell.is-ghost .mcell__face { opacity: 0.45; }
.mcell.is-boom .mcell__face--mine { animation: boom 0.6s ease-out; }
@keyframes boom { 0% { transform: rotateY(180deg) scale(1); } 30% { transform: rotateY(180deg) scale(1.25); box-shadow: 0 0 40px rgba(255, 74, 89, 0.9), inset 0 0 0 2px #ff4a59; } }
.mcell.is-gemhit .mcell__face--gem img { animation: gem-pop 0.5s var(--ease-back) 0.25s backwards; }
@keyframes gem-pop { from { transform: scale(0.3) rotate(-30deg); opacity: 0; } }
.mines.is-live .mcell:not(.is-open) .mcell__btn:hover .mcell__tile { filter: brightness(1.35) drop-shadow(0 0 10px rgba(77, 124, 255, 0.7)); transform: translateY(-3px); }
.mines:not(.is-live) .mcell__btn { cursor: default; }
.mines.is-shake .mgrid { animation: shake 0.4s; }
.mines__hash { position: absolute; left: 50%; bottom: -33px; transform: translateX(-50%); z-index: 2; font: 500 14px/21px var(--f-head); color: var(--muted-2); white-space: nowrap; }
.mines__panel { --a: 214.12deg; width: 448px; margin-top: 80px; padding: 30px 28px 28px; }
.mines__panel .snow { left: 122px; top: -14px; }
.mines__panel .group + .group { margin-top: 30px; }
.mines__panel .chips { margin-top: 8px; }
.mines__mine-chips { justify-content: center; }
.mines__mine-chips .chip { width: 32px; }
.mines__play { margin-top: 30px; }
.mines__play.is-cash { background-color: #33ebb4; filter: hue-rotate(95deg) saturate(1.2); }
.mines__mult { display: flex; justify-content: space-between; margin-top: 12px; font: 500 14px/21px var(--f-head); color: var(--muted-2); }
.mines__mult b { color: #ffffff; font-weight: 500; }

/* ===================== PLINKO ===================== */
.plinko { display: flex; gap: 36px; max-width: 992px; padding-top: 38px; }
.plinko__panel { --a: 222.31deg; flex: none; width: 460px; padding: 28px 28px 24px; display: flex; flex-direction: column; gap: 24px; }
.plinko__panel .snow--tl { left: 2px; top: -14px; }
.plinko__panel .snow--tr { right: 2px; top: -14px; }
.plinko__panel .snow--b { left: 121px; bottom: -24px; }
.plinko__max { margin: -8px 0 0; font-size: 10px; line-height: 15px; color: var(--muted-2); text-transform: uppercase; }
.board { position: relative; flex: none; width: 300px; height: 314.4px; margin-top: 106px; }
.board__bg { position: absolute; left: -15px; top: -22px; width: 330px; height: 330.1px; max-width: none; object-fit: fill; }
.board__pegs { position: absolute; left: 0; top: 0; width: 300px; height: 300px; }
.board canvas { position: absolute; left: 0; top: 0; width: 300px; height: 300px; }
.board__decor { position: absolute; pointer-events: none; }
.board__decor--tl { left: 86.4px; top: 9.6px; width: 40.8px; }
.board__decor--sleigh { left: 24px; top: 38px; width: 69px; transform: rotate(-6deg); transform-origin: 50% 0; animation: sleigh 3.6s ease-in-out infinite; }
@keyframes sleigh { 50% { transform: rotate(-9deg) translateY(2px); } }
.board__decor--bl { left: -12px; top: 217.2px; width: 42px; }
.board__decor--right { left: 180px; top: 38.4px; width: 72px; }
.board__decor--br { left: 267px; top: 216px; width: 33px; }
.buckets { position: absolute; left: 0; right: 0; top: 290.4px; height: 24px; }
.bucket { position: absolute; top: 0; display: grid; place-items: center; height: 24px; transform: translateX(-50%); transition: transform 0.15s; }
.bucket img { position: absolute; left: 50%; top: 50%; width: 100%; height: auto; transform: translate(-50%, -50%); }
.bucket span { position: relative; font: 700 10px/1 var(--f-head); letter-spacing: -0.02em; color: var(--c); white-space: nowrap; }
.bucket.is-hit { animation: bucket-hit 0.45s var(--ease-back); }
@keyframes bucket-hit { 40% { transform: translateX(-50%) translateY(5px) scale(1.15); filter: brightness(1.4) drop-shadow(0 0 8px var(--c)); } }
.plinko__table { margin-top: 80px; }
.btable__head, .btable__row { display: grid; grid-template-columns: 206.33fr 206.33fr 206.33fr 206.33fr 128fr; align-items: center; padding: 0 43.3px; }
.btable__head { height: 21px; margin-bottom: 8px; color: var(--muted-2); text-transform: capitalize; }
.btable__head span:nth-child(3) { font-size: 13px; }
.btable__row { height: 44px; font: 500 14px/21px var(--f-head); color: var(--muted-2); white-space: nowrap; }
.btable__row:nth-child(odd) { background: rgba(59, 59, 59, 0.3); }
.btable__row.is-new { animation: row-in 0.5s var(--ease-out); }
@keyframes row-in { from { opacity: 0; transform: translateY(-10px); background: rgba(255, 199, 1, 0.15); } }
.btable__user { display: flex; align-items: center; gap: 8px; min-width: 0; font: 400 14px/21px var(--f-body); }
.btable__user img { flex: none; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.btable__user span { max-width: 154px; overflow: hidden; white-space: nowrap; }
.btable__row .coinline { gap: 8px; }
.btable__bet { color: #ffffff; }
.btable__pay { color: #33ebb4; }

/* ===================== UPGRADER ===================== */
.recent { display: grid; grid-template-columns: repeat(2, 342px); gap: 8px; justify-content: center; padding-top: 48px; }
.rcard { position: relative; display: flex; align-items: center; gap: 16px; height: 80px; padding: 0 16px; background: url("../assets/upgrader/recent-card-bg.svg") 0 0 / 100% 100% no-repeat; }
.rcard.is-new { animation: rcard-in 0.6s var(--ease-back); }
@keyframes rcard-in { from { opacity: 0; transform: translateY(-14px) scale(0.96); } }
.rcard > img { flex: none; width: 48px; height: 48px; object-fit: contain; }
.rcard__text { flex: 1; min-width: 0; }
.rcard__text p { margin: 0; font-size: 14px; line-height: 21px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rcard__text .coinline { margin-top: 6px; font: 500 14px/21px var(--f-head); color: var(--muted-2); }
.rcard__right { width: 87px; }
.rcard__right p { display: flex; align-items: center; gap: 4px; margin: 0; font: 400 14px/21px var(--f-head); color: var(--gold); }
.rcard__right b { display: block; margin-top: 6px; font: 500 14px/21px var(--f-head); }
.rcard .snow { top: -16px; }
.stage { position: relative; display: grid; grid-template-columns: 391.5px 208px 240.9px; align-items: start; justify-content: space-between; gap: 32px; max-width: 968.2px; margin: 80px 0 0 71.8px; padding-top: 72px; }
.roll { --a: 210.39deg; margin-top: 11px; padding: 30px 14px 22px; display: flex; flex-direction: column; gap: 24px; }
.roll .snow--a { left: 16px; top: -14px; }
.roll .snow--b { left: 315.5px; bottom: -14px; }
.roll__types { justify-content: center; }
.roll__types .chip { width: 120px; }
.roll__types .chip.is-on { background-image: url("../assets/upgrader/chip-selected-bg-120.png"); }
.dial { position: relative; width: 208px; height: 345px; margin-top: 42px; }
.dial > img, .dial > canvas { position: absolute; max-width: none; }
.dial__oil { left: -41.6px; top: 238.7px; width: 291.2px; height: 26.9px; }
.dial__dome { left: 0; top: 0; width: 208px; height: 253.1px; }
.dial canvas { left: 0; top: 0; width: 208px; height: 208px; }
.dial__pointer { left: 91px; top: -32px; width: 26px; z-index: 4; filter: drop-shadow(0 0 6px rgba(255, 199, 1, 0.6)); }
.dial.is-rolling .dial__pointer { animation: pointer-tick 0.12s ease-in-out infinite alternate; }
@keyframes pointer-tick { to { transform: translateY(3px); } }
.dial__elements { left: 1.06px; top: 27.6px; width: 199.7px; height: 233.9px; }
.dial__sign { left: 47.8px; top: 153.5px; width: 66.5px; height: 62.2px; transform-origin: 50% 0; animation: sign-sway 3s ease-in-out infinite; }
@keyframes sign-sway { 50% { transform: rotate(3deg); } }
.dial__pct { position: absolute; left: 55.8px; top: 185.7px; width: 45.7px; text-align: center; font: 600 16px/24px var(--f-head); z-index: 3; white-space: nowrap; }
.dial.is-win .dial__pct { color: #33ebb4; animation: bump 0.5s var(--ease-back); }
.dial.is-lose .dial__pct { color: var(--red); }
.dial .snow { z-index: 5; }
.target { position: relative; width: 240.9px; height: 320px; border-radius: 4px; background: url("../assets/upgrader/target-panel-bg.png") center / 100% 100% no-repeat; }
.target__empty { position: absolute; left: 0; right: 0; top: 253px; margin: 0 auto; width: 110px; font-size: 14px; line-height: 21px; color: var(--muted-2); text-align: center; }
.target__item { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; border-radius: 4px; background: var(--inner); text-align: center; animation: target-in 0.45s var(--ease-back); }
@keyframes target-in { from { opacity: 0; transform: scale(0.9); } }
.target__item img { width: 150px; height: 150px; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.5)); animation: float-y 3.2s ease-in-out infinite; }
@keyframes float-y { 50% { transform: translateY(-6px); } }
.target__item p { margin: 0; font-size: 14px; }
.target__item .coinline { font: 500 16px var(--f-head); }
.target__clear { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; background: rgba(0, 0, 0, 0.35); color: var(--muted-2); font-size: 16px; line-height: 1; }
.target .snow { left: 39px; top: -16px; }
.skins { margin-top: 80px; }
.skins__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.skins__head h2 { margin: 0; font: 500 24px/36px var(--f-head); text-transform: uppercase; }
.skins__tools { display: flex; gap: 8px; }
.sort { display: flex; align-items: center; justify-content: center; gap: 12px; width: 160px; height: 40px; font-size: 13px; color: var(--muted-2); }
.sort img { transition: transform 0.3s var(--ease-back); }
.sort.is-desc img { transform: rotate(180deg); }
.search { display: flex; align-items: center; gap: 10px; width: 320px; height: 40px; padding: 0 16px; background: #1c1c1c; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font: 500 14px var(--f-head); text-transform: uppercase; color: #ffffff; }
.search input::placeholder { color: #5e5e5e; }
.skins__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.skin { position: relative; height: 192px; padding: 2px; border-radius: 4px; background: var(--outer); text-align: center; transition: transform 0.25s var(--ease-out), box-shadow 0.25s; }
.skin__in { position: relative; height: 100%; border-radius: 4px; background: var(--inner); overflow: hidden; }
.skin__splash { position: absolute; left: 0; top: 0; width: 100%; height: 93px; }
.skin__img { position: relative; width: 80px; height: 80px; margin: 16px auto 0; object-fit: contain; transition: transform 0.35s var(--ease-back); }
.skin p { position: relative; margin: 10px 8px 0; font-size: 13px; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.skin .coinline { position: relative; margin-top: 6px; font: 500 14px/21px var(--f-head); color: var(--muted-2); }
.skin:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4); }
.skin:hover .skin__img { transform: scale(1.12) rotate(-4deg); }
.skin.is-on { box-shadow: 0 0 0 2px #ffffff, 0 0 22px rgba(255, 255, 255, 0.25); }
.skin.is-in { animation: panel-in 0.4s var(--ease-out) backwards; animation-delay: var(--d); }
.skins__none { grid-column: 1 / -1; padding: 40px; text-align: center; color: var(--muted-2); }

/* ===================== JACKPOT ===================== */
.jp { padding-top: 72px; }
.jp__wheel { position: relative; width: 480px; height: 480px; margin: 0 auto; }
.jp__wheel > img { position: absolute; max-width: none; }
.jp__backdrop { left: 0; top: 0; width: 480px; height: 480px; }
.jp__ring { left: 40px; top: 40px; width: 400px; height: 400px; }
.jp__splash { left: 40px; top: 40px; width: 400px; height: auto; pointer-events: none; z-index: 2; }
.jp__segs { position: absolute; left: 40px; top: 40px; width: 400px; height: 400px; z-index: 1; transition: transform 6.5s cubic-bezier(0.12, 0.7, 0.12, 1); }
.jp__segs circle { fill: none; stroke-width: 57; transition: stroke-dasharray 0.6s var(--ease-out), stroke-dashoffset 0.6s var(--ease-out); }
.jp__plate { left: 111.67px; top: 110.7px; width: 256.66px; height: 258.58px; z-index: 2; }
.jp__pointer { left: 227px; top: 22px; width: 26px; z-index: 4; transform: rotate(0deg); filter: drop-shadow(0 0 6px rgba(255, 199, 1, 0.7)); }
.jp__hub { position: absolute; z-index: 3; left: 168px; top: 177.5px; width: 144px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.jp__timer { display: flex; flex-direction: column; align-items: center; height: 65px; }
.jp__timer b { font: 700 16px/24px var(--f-head); color: var(--muted-2); font-variant-numeric: tabular-nums; }
.jp__timer.is-hot b { color: var(--red); animation: bump 1s ease-in-out infinite; }
.jp__amount { display: flex; align-items: center; gap: 8px; margin-top: 8px; font: 700 22px/33px var(--f-head); }
.jp__hub .btn-gold { width: 144px; font-weight: 500; }
.jp__winner { position: absolute; z-index: 5; inset: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border-radius: 50%; background: rgba(18, 18, 18, 0.92); text-align: center; animation: target-in 0.5s var(--ease-back); }
.jp__winner img { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--gold); }
.jp__winner small { color: var(--muted-2); }
.jp__winner b { font: 700 22px var(--f-head); color: var(--gold); }
.jp .snow--top { left: 139px; top: -16px; }
.jp .snow--ul { left: 64px; top: 32px; }
.jp .snow--lr { left: 367px; top: 363px; }
.jp .snow--bot { left: 262px; top: 420px; }
.jp__hash { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 0; width: 430px; margin: 11px auto 0; font: 500 14px/21px var(--f-head); color: var(--muted-2); }
.jp__hash span { max-width: 423px; overflow: hidden; white-space: nowrap; margin-right: -8.83px; }
.jp__hash button { flex: none; margin-left: 4px; transition: transform 0.2s var(--ease-back); }
.jp__hash button:hover { transform: scale(1.2); }
.jp__panel { --a: 200.07deg; width: 896px; max-width: 100%; margin: 32px auto 0; padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.jp__panel .snow--tl { left: 8px; top: -8px; }
.jp__panel .snow--tr { right: 40px; top: -16px; }
.jp__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.jp__stat { height: 112px; padding: 0 0 0 34px; display: flex; flex-direction: column; justify-content: center; gap: 8px; background: linear-gradient(198.03deg, rgba(18, 18, 18, 0.5), rgba(18, 18, 18, 0)), #232323; border: 2px solid var(--line); border-radius: 4px; }
.jp__stat > div { display: flex; align-items: center; gap: 16px; font-weight: 700; font-size: 22px; line-height: 22px; }
.jp__stat small { font-size: 18px; line-height: 27px; color: var(--muted-2); }
.jp__stat:first-child small { font-size: 17px; }
.jp__stat .of { color: var(--muted-2); font-size: 20px; }
.jp__players { position: relative; min-height: 240px; background: #212121; }
.jp__players .snow--a { left: 32px; top: -16px; }
.jp__players .snow--b { left: 670px; top: -16px; }
.jp__empty { display: grid; place-items: center; height: 240px; font: 500 14px/21px var(--f-head); text-transform: uppercase; }
.jp__list { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.jp__row { display: grid; grid-template-columns: 8px 32px minmax(0, 1fr) auto 70px; align-items: center; gap: 12px; height: 48px; padding: 0 16px 0 0; background: #232323; border-radius: 2px; animation: row-in 0.45s var(--ease-out); }
.jp__row i { height: 100%; background: var(--c); border-radius: 2px 0 0 2px; }
.jp__row img { width: 32px; height: 32px; border-radius: 50%; }
.jp__row b { font-weight: 400; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.jp__row strong { text-align: right; font: 600 14px var(--f-head); color: var(--c); }
.jp__row.is-win { box-shadow: 0 0 0 2px var(--gold); }
.jp-dep { display: flex; flex-direction: column; gap: 16px; }

/* ===================== COINFLIP ===================== */
.cf { padding-top: 32px; }
.cf .scard .snow { right: 0; }
.cf__row > .btn-outcome { justify-self: start; }
.cf__prev { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; height: 30px; }
.cf__hist { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cf__hist > span { flex: none; font-size: 14px; color: var(--muted-2); }
.cf__coins { display: flex; gap: 16px; overflow: hidden; }
.cf__coins img { flex: none; width: 28px; height: 28px; }
.cf__coins img.is-new { animation: coin-in 0.5s var(--ease-back); }
@keyframes coin-in { from { transform: translateX(-20px) scale(0.4) rotate(-90deg); opacity: 0; } }
.cf__split { flex: none; display: flex; gap: 14px; }
.cf__split span { display: flex; align-items: center; gap: 12px; font: 700 20px/30px var(--f-head); }
.cf__list { position: relative; margin-top: 40px; }
.cf__list > .snow { top: -16px; }
/* columns at the design's x positions: amount 233.8, DOUBLE DOWN 410.66, coin 677.33, button 791.33 */
.cf__row { display: grid; grid-template-columns: 233.8px 176.86px 266.67px 114px 120px; align-items: center; height: 96px; padding: 12px 43.33px; }
.cf__row:nth-child(odd of .cf__row) { background: rgba(35, 35, 35, 0.3); }
.cf__row.is-new { animation: row-in 0.5s var(--ease-out); }
.cf__vs { display: flex; align-items: center; gap: 12px; font: 400 16px/24px var(--f-head); color: var(--muted-2); text-transform: uppercase; }
.cf__ava { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; }
.cf__ava > img:first-child { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.cf__ava > img.is-logo { width: 42px; height: 48px; border-radius: 0; object-fit: contain; }
.cf__ava .badge { position: absolute; right: 0; top: 0; width: 16px; height: 16px; }
.cf__ava--wait { border: 2px dashed #535353; color: var(--muted-2); font-size: 18px; animation: wait-spin 4s linear infinite; }
@keyframes wait-spin { to { transform: rotate(360deg); } }
.cf__amt { font-weight: 700; font-size: 19px; line-height: 20px; }
.cf__dd { justify-self: start; font: 500 14px/21px var(--f-head); color: var(--gold); text-transform: uppercase; transition: text-shadow 0.2s, transform 0.15s; }
.cf__dd:hover { text-shadow: 0 0 12px rgba(255, 199, 1, 0.8); transform: scale(1.05); }
.cf__dd--wait { color: var(--muted-2); cursor: default; }
.cf__res { width: 28px; height: 28px; }
.flip { position: relative; width: 160px; height: 160px; margin: 8px auto 0; perspective: 900px; }
.flip__coin { position: absolute; inset: 0; transform-style: preserve-3d; }
.flip__coin img { position: absolute; inset: 0; width: 160px; height: 160px; backface-visibility: hidden; }
.flip__coin img:last-child { transform: rotateY(180deg); }
.flip__shadow { position: absolute; left: 30px; right: 30px; bottom: -24px; height: 14px; border-radius: 50%; background: rgba(0, 0, 0, 0.45); filter: blur(4px); }
.cf-duel { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-bottom: 24px; text-align: center; }
.cf-duel > div { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cf-duel .cf__ava { width: 64px; height: 64px; }
.cf-duel .cf__ava > img:first-child { width: 64px; height: 64px; }
.cf-duel .cf__ava > img.is-logo { width: 56px; height: 64px; }
.cf-duel .cf__ava .badge { width: 22px; height: 22px; }
.cf-duel .is-winner .cf__ava { box-shadow: 0 0 0 3px var(--gold), 0 0 24px rgba(255, 199, 1, 0.5); }
.cf-duel small { color: var(--muted-2); }
.cf-result { min-height: 32px; margin-top: 36px; text-align: center; font: 700 20px var(--f-head); text-transform: uppercase; }
.side-pick { display: flex; justify-content: center; gap: 24px; }
.side-pick button { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 18px; border: 2px solid var(--line); border-radius: 4px; color: var(--muted-2); font: 500 14px var(--f-head); text-transform: uppercase; transition: border-color 0.2s, transform 0.2s var(--ease-back); }
.side-pick button img { width: 56px; height: 56px; }
.side-pick button.is-on { border-color: var(--gold); color: #ffffff; transform: translateY(-3px); }
.form-stack { display: flex; flex-direction: column; gap: 20px; }

/* ===================== PVP MINES ===================== */
.pvp { padding-top: 32px; }
.pvp h2 { margin: 40px 0 0; font: 500 28px/42px var(--f-head); text-transform: uppercase; }
.pvp__active { min-height: 80px; padding-top: 16px; }
.pvp__active:empty::after { content: "No active games. Create one to start."; display: block; padding: 18px 0; color: var(--muted-2); }
.pvp__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.pvp__active .pvp__grid { margin-top: 0; }
.pcard { display: flex; justify-content: space-between; gap: 16px; height: 128px; padding: 16px 16px 20px; background: #212121; border: 1px solid #3f3f3f; border-radius: 4px; box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1); transition: transform 0.25s var(--ease-out), border-color 0.25s; }
.pcard:hover { transform: translateY(-3px); border-color: #656565; }
.pcard.is-in { animation: panel-in 0.4s var(--ease-out) backwards; animation-delay: var(--d); }
.pcard__l { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.stack { display: flex; height: 32px; }
.stack > * { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; overflow: hidden; }
.stack > * + * { margin-left: -12px; }
.stack img.photo { width: 32px; height: 32px; object-fit: cover; }
.stack img.logo { width: 28px; height: 32px; }
.stack .slot { border: 2px dashed #535353; background: #212121; color: var(--muted-2); font-size: 14px; }
.stack .is-join { animation: target-in 0.4s var(--ease-back); }
.pcard__info { display: flex; flex-direction: column; font-size: 14px; line-height: 21px; color: var(--muted-2); }
.pcard__info span { display: flex; align-items: center; gap: 8px; text-transform: capitalize; white-space: nowrap; }
.pcard__info span + span { gap: 16px; font-weight: 600; font-size: 13px; text-transform: none; }
.pcard__r { display: flex; flex-direction: column; align-items: flex-end; gap: 17px; }
.pcard__meta { display: flex; align-items: center; height: 33px; }
.pcard__meta .mc { display: flex; align-items: center; gap: 4px; font-size: 16px; line-height: 24px; color: var(--muted-2); }
.pcard__meta i { width: 1px; height: 20px; margin: 0 12px 0 12px; background: #636363; }
.pcard__meta .coinline { gap: 4px; font: 600 16px/24px var(--f-head); }
.pvp-board { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; max-width: 360px; margin: 0 auto; }
.pvp-board button { aspect-ratio: 1; border-radius: 8px; transition: transform 0.2s var(--ease-back); }
.pvp-board button img { width: 100%; height: 100%; }
.pvp-board button:not(:disabled):hover { transform: translateY(-3px); filter: brightness(1.3); }
.pvp-board button.is-safe { background: radial-gradient(circle, rgba(77, 124, 255, 0.35), rgba(23, 23, 23, 0.95) 70%); animation: target-in 0.35s var(--ease-back); }
.pvp-board button.is-safe img, .pvp-board button.is-mine img { padding: 8px; }
.pvp-board button.is-mine { background: radial-gradient(circle, rgba(255, 74, 89, 0.45), rgba(40, 14, 24, 0.95) 70%); animation: boom-sm 0.5s ease-out; }
@keyframes boom-sm { 30% { transform: scale(1.2); } }
.pvp-players { display: flex; justify-content: center; gap: 16px; margin-bottom: 20px; }
.pvp-players > div { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 80px; font-size: 12px; color: var(--muted-2); transition: opacity 0.3s; }
.pvp-players img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid transparent; object-fit: cover; }
.pvp-players .is-turn img { border-color: var(--gold); box-shadow: 0 0 14px rgba(255, 199, 1, 0.5); }
.pvp-players .is-out { opacity: 0.35; text-decoration: line-through; }
.pvp-status { margin: 20px 0 0; text-align: center; font: 500 16px var(--f-head); text-transform: uppercase; }

/* ===================== WHEEL (not in the design, drawn in its style) ===================== */
.wh { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: center; padding-top: 40px; }
.wh__stage { position: relative; display: grid; place-items: center; }
.wh__wheel { position: relative; width: min(440px, 100%); aspect-ratio: 1; }
.wh__wheel svg { width: 100%; height: 100%; transition: transform 7s cubic-bezier(0.12, 0.7, 0.1, 1); filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5)); }
.wh__hub { position: absolute; inset: 30%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 50%; background: radial-gradient(circle, #212121, #121212); box-shadow: 0 0 0 6px #171717, inset 0 0 20px rgba(0, 0, 0, 0.6); }
.wh__hub img { width: 40px; height: auto; }
.wh__hub b { font: 700 22px/1 var(--f-head); font-variant-numeric: tabular-nums; }
.wh__hub small { font-size: 12px; color: var(--muted-2); text-transform: uppercase; }
.wh__pointer { position: absolute; left: 50%; top: -14px; width: 30px; transform: translateX(-50%); z-index: 2; filter: drop-shadow(0 0 8px rgba(255, 199, 1, 0.7)); }
.wh__panel { --a: 214deg; padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.wh__bets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.wh__bet { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: 2px; background: #232323; border-bottom: 3px solid var(--c); font: 600 18px var(--f-head); transition: transform 0.15s, background 0.2s; }
.wh__bet small { font: 400 12px var(--f-body); color: var(--muted-2); }
.wh__bet:hover { background: #383838; transform: translateY(-2px); }
.wh__bet:disabled { opacity: 0.5; pointer-events: none; }
.wh__bet.is-mine { box-shadow: inset 0 0 0 2px var(--c); }
.wh__hist { display: flex; gap: 6px; margin-top: 32px; flex-wrap: wrap; justify-content: center; }
.wh__hist span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--c); font: 700 10px var(--f-head); color: #121212; }
.wh__hist span.is-new { animation: coin-in 0.5s var(--ease-back); }
.wh__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 40px; }
.wh__col { padding: 12px; background: rgba(35, 35, 35, 0.6); border-top: 3px solid var(--c); border-radius: 2px; min-height: 120px; }
.wh__col h3 { display: flex; justify-content: space-between; margin: 0 0 8px; font: 600 16px var(--f-head); }
.wh__col h3 span { color: var(--muted-2); font-weight: 500; font-size: 13px; }
.wh__col p { display: flex; align-items: center; gap: 8px; margin: 4px 0; font-size: 13px; color: #d0d0d0; animation: row-in 0.4s var(--ease-out); }
.wh__col p img { width: 20px; height: 20px; border-radius: 50%; }
.wh__col p em { margin-left: auto; font-style: normal; font-family: var(--f-head); }
.wh__col.is-win { box-shadow: 0 0 0 2px var(--c), 0 0 24px color-mix(in srgb, var(--c) 50%, transparent); }

/* ---- responsive ---- */
@media (max-width: 1100px) {
  .stage { grid-template-columns: 1fr 208px; justify-items: center; max-width: none; margin-left: 0; }
  .stage .target { grid-column: 1 / -1; }
  .plinko { flex-direction: column; align-items: center; }
  .board { margin-top: 32px; }
  .scards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .scard--btn { grid-column: span 2; }
  .wh { grid-template-columns: 1fr; }
  .skins__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pvp__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 799.98px) {
  .mines__game { grid-template-columns: 1fr; transform: scale(0.72); transform-origin: top center; margin-bottom: -140px; }
  .counter { display: none; }
  .mines__panel, .plinko__panel { width: 100%; }
  .recent { grid-template-columns: minmax(0, 342px); }
  .stage { grid-template-columns: 1fr; }
  .roll { width: 100%; }
  .skins__head { flex-direction: column; align-items: stretch; }
  .skins__tools { flex-wrap: wrap; }
  .search { width: 100%; }
  .skins__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jp__wheel { transform: scale(0.7); transform-origin: top center; margin-bottom: -144px; }
  .jp__stats { grid-template-columns: 1fr; }
  .scards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cf__prev { flex-direction: column; align-items: flex-start; height: auto; }
  .cf__row { grid-template-columns: 112px 1fr 104px; height: auto; gap: 8px; padding: 12px; }
  .cf__vs { gap: 6px; font-size: 13px; }
  .cf__vs .cf__ava { width: 40px; height: 40px; }
  .cf__vs .cf__ava > img:first-child { width: 40px; height: 40px; }
  .cf__vs .cf__ava > img.is-logo { width: 35px; height: 40px; }
  .cf__amt { font-size: 15px; white-space: nowrap; }
  .cf__row .btn-outcome { width: 104px; font-size: 12px; }
  .cf__dd, .cf__res { display: none; }
  .pvp__grid { grid-template-columns: 1fr; }
  .btable__head, .btable__row { grid-template-columns: 1.4fr 1fr 1fr; padding: 0 12px; }
  .btable__head span:nth-child(n+4), .btable__row > :nth-child(n+4) { display: none; }
  .wh__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
