/* PUDDLE — Roulette · Plinko · Hilo */

/* ---------- roulette ---------- */
.ro-stage { background: var(--bg-1); border-radius: 12px; padding: 18px; }
.ro-view { position: relative; height: 112px; overflow: hidden; border-radius: 10px; background: var(--bg-0); }
.ro-view::before, .ro-view::after { content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none; }
.ro-view::before { left: 0; background: linear-gradient(90deg, var(--bg-0), transparent); }
.ro-view::after { right: 0; background: linear-gradient(270deg, var(--bg-0), transparent); }
.ro-track { position: absolute; left: 0; top: 14px; display: flex; gap: 8px; will-change: transform; }
.ro-cell { flex: none; width: 80px; height: 84px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: rgba(255,255,255,.55); }
.ro-cell.red { background: #ED4163; color: rgba(255,255,255,.7); }
.ro-cell.black { background: #2a3947; }
.ro-cell.green { background: #00E701; color: rgba(0,0,0,.55); }
.ro-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: #fff; z-index: 3; box-shadow: 0 0 10px rgba(255,255,255,.55); }
.ro-line::before { content: ""; position: absolute; left: -5px; top: -1px; border: 6.5px solid transparent; border-top-color: #fff; border-bottom: 0; }
.ro-status { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 14px 2px 12px; font-size: 14px; font-weight: 600; min-height: 22px; }
.ro-status .big { font-size: 15px; }
.ro-status .tm { font-variant-numeric: tabular-nums; color: var(--text-1); font-weight: 500; }
.ro-bar { height: 4px; background: var(--bg-2); border-radius: 2px; overflow: hidden; margin-bottom: 14px; }
.ro-bar i { display: block; height: 100%; width: 0; background: var(--ice); }
.ro-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ro-col { background: var(--bg-0); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ro-pick { height: 50px; border: 0; border-radius: 8px; cursor: pointer; font: inherit; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; color: #fff; transition: filter .15s, transform .05s; }
.ro-pick:hover:not(:disabled) { filter: brightness(1.12); }
.ro-pick:active:not(:disabled) { transform: translateY(1px); }
.ro-pick:disabled { opacity: .45; cursor: not-allowed; }
.ro-pick.red { background: #ED4163; } .ro-pick.black { background: #2a3947; } .ro-pick.green { background: #00E701; color: #04210a; }
.ro-pick small { font-weight: 600; opacity: .85; font-size: 12px; }
.ro-sum { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-1); padding: 0 2px; }
.ro-sum b { color: #fff; font-variant-numeric: tabular-nums; }
.ro-list { display: flex; flex-direction: column; gap: 4px; max-height: 190px; overflow-y: auto; min-height: 24px; }
.ro-list:empty::before { content: "No bets"; color: var(--text-2); font-size: 12px; padding: 2px; }
.ro-b { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; padding: 5px 8px; border-radius: 6px; background: var(--bg-1); }
.ro-b.me { box-shadow: inset 0 0 0 1px var(--ice); }
.ro-b .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ro-b .am { font-variant-numeric: tabular-nums; color: var(--text-1); white-space: nowrap; }
.ro-b.won .am { color: var(--green); } .ro-b.lost .am { color: var(--red); }
.ro-col.hit { box-shadow: 0 0 0 2px var(--ice); }
.chips span.rc-red { background: #ED4163; color: #fff; } .chips span.rc-black { background: #2a3947; color: #fff; } .chips span.rc-green { background: #00E701; color: #04210a; }
@media (max-width: 700px) { .ro-cols { grid-template-columns: 1fr; } .ro-cell { width: 64px; height: 68px; } .ro-view { height: 96px; } }

/* ---------- plinko ---------- */
.pl-stage { background: var(--bg-1); border-radius: 12px; padding: 16px; }
.pl-board { position: relative; width: 100%; max-width: 640px; margin: 0 auto; }
.pl-board canvas { display: block; width: 100%; height: auto; }
.pl-slots { display: flex; gap: 3px; margin-top: 4px; }
.pl-slot { flex: 1 1 0; min-width: 0; text-align: center; font-size: 11px; font-weight: 700; padding: 7px 0; border-radius: 5px; color: #0b1620; font-variant-numeric: tabular-nums; transition: transform .12s; white-space: nowrap; overflow: hidden; }
.pl-slot.hit { transform: translateY(5px); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; background: var(--bg-0); padding: 4px; border-radius: 10px; }
.seg button { height: 38px; border: 0; border-radius: 7px; background: transparent; color: var(--text-1); font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; }
.seg button.on { background: var(--bg-2); color: #fff; }
.seg button:disabled { opacity: .5; cursor: not-allowed; }
.pl-last { display: flex; gap: 6px; justify-content: center; margin-top: 14px; flex-wrap: wrap; min-height: 28px; }

/* ---------- hilo ---------- */
.hl-stage { background: var(--bg-1); border-radius: 12px; padding: 18px; }
.hl-table { background: var(--bg-0); border-radius: 12px; padding: 18px 12px; min-height: 250px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.hl-row { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; scroll-behavior: smooth; }
.hl-row::-webkit-scrollbar { height: 6px; } .hl-row::-webkit-scrollbar-thumb { background: var(--bg-2); border-radius: 3px; }
.hl-card { flex: none; width: 92px; height: 132px; border-radius: 10px; background: #fff; color: #11202b; position: relative; box-shadow: 0 4px 12px rgba(0,0,0,.35); animation: hlIn .28s ease-out; }
.hl-card.red { color: #d8244a; }
.hl-card .c1 { position: absolute; top: 8px; left: 9px; font-weight: 800; font-size: 20px; line-height: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.hl-card .c1 em { font-style: normal; font-size: 16px; }
.hl-card .mid { position: absolute; inset: 0; display: grid; place-items: center; font-size: 42px; opacity: .92; }
.hl-card.cur { outline: 3px solid var(--ice); outline-offset: 2px; }
.hl-card.old { opacity: .55; transform: scale(.94); box-shadow: none; }
.hl-card.bad { outline: 3px solid var(--red); outline-offset: 2px; }
.hl-card.back { background: repeating-linear-gradient(45deg, #2f4553, #2f4553 6px, #3e5568 6px, #3e5568 12px); color: transparent; }
.hl-tag { flex: none; align-self: center; font-size: 11px; font-weight: 700; color: var(--text-1); background: var(--bg-2); padding: 3px 7px; border-radius: 6px; }
.hl-tag.hi { color: var(--green); } .hl-tag.lo { color: var(--ice); } .hl-tag.sk { color: var(--text-1); }
.hl-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hl-opt { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 8px; border: 0; border-radius: 10px; background: var(--bg-2); color: #fff; font: inherit; cursor: pointer; }
.hl-opt:hover:not(:disabled) { background: var(--bg-3); }
.hl-opt:disabled { opacity: .4; cursor: not-allowed; }
.hl-opt b { font-size: 16px; } .hl-opt span { font-size: 12px; color: var(--text-1); font-variant-numeric: tabular-nums; }
.hl-stats { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--text-1); flex-wrap: wrap; }
.hl-stats b { color: #fff; font-variant-numeric: tabular-nums; }
@keyframes hlIn { from { opacity: 0; transform: translateY(-14px) scale(.96); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) { .hl-card { width: 72px; height: 104px; } .hl-card .mid { font-size: 32px; } .hl-card .c1 { font-size: 16px; } }
