@font-face {
  font-family: "Gobold";
  src: url(/casino/virt-kironzveri/assets/gobold.otf) format("opentype");
  font-display: swap;
}

:root {
  --text: #0d2a12;
  --muted: #4a6a50;
  --accent: #ffc928;
  --accent-2: #ffe27a;
  --red: #e3262f;
  --red-2: #ff5a3c;
  --win: #00c166;
  --danger: #ea442e;
  --header: #04120a;
  --cyan: #8ff0b0;
  --panel: rgba(10, 34, 18, .88);
  --panel-line: rgba(140, 220, 120, .25);
  --c-gold: linear-gradient(180deg, #ffe680 0%, #e9b425 45%, #9c6a0a 100%);
  --c-red: linear-gradient(180deg, #ff5a3c 0%, #e3201a 60%, #a50f0b 100%);
  --c-blue: linear-gradient(180deg, #4ea0ff 0%, #1565e0 60%, #0b3f9c 100%);
  --c-yellow: linear-gradient(180deg, #fff27a 0%, #ffd200 60%, #d9a400 100%);
  --c-green: linear-gradient(180deg, #6ee05a 0%, #2fa52a 60%, #1b6f18 100%);
  --c-orange: linear-gradient(180deg, #ffad4d 0%, #f47a12 60%, #b9520a 100%);
  --c-purple: linear-gradient(180deg, #c27bff 0%, #9b3fe0 60%, #6a1fa8 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  width: 100%;
  background: #06170b url(/casino/virt-kironzveri/assets/jungle-bg.webp) center top / cover fixed;
  font-family: "Roboto", "Segoe UI", sans-serif;
  color: #fff;
  overflow: hidden;
  user-select: none;
}

#app {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 1360px;
  margin: 0 auto;
  position: relative;
}

/* ---------- top bar ---------- */

.topbar {
  height: 64px;
  background: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
  position: relative;
  z-index: 100;
  border-bottom: 2px solid var(--accent);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img.logo { height: 44px; width: auto; }
.brand .title { font-family: "Gobold", "Roboto Condensed", sans-serif; font-size: 22px; letter-spacing: 1px; color: #8be04e; text-shadow: 0 2px 0 #1f5d12; }
.brand .sub {
  background: linear-gradient(180deg, #ffb52e, #e3500f); color: #fff; font-size: 10px; font-weight: 700;
  padding: 2px 6px; border-radius: 2px; text-transform: uppercase;
}
.top-right { display: flex; align-items: center; gap: 14px; font-weight: 700; position: relative; z-index: 110; }
.clock { font-size: 12px; opacity: .9; }
.balance { font-size: 14px; letter-spacing: .2px; color: var(--accent-2); }
.exit-btn {
  border: 0; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .4px;
  padding: 8px 14px; border-radius: 2px; cursor: pointer; text-transform: uppercase;
}
.exit-btn:hover { background: var(--red-2); }
.help-btn {
  width: 34px; height: 34px; padding: 0; border: 0; background: transparent;
  display: flex; align-items: center; justify-content: center; border-radius: 50%; cursor: pointer;
}
.help-btn img {
  width: 26px; height: 26px; display: block;
  filter: brightness(0) saturate(100%) invert(80%) sepia(60%) saturate(800%) hue-rotate(2deg) brightness(104%);
}
.help-btn:hover { opacity: .85; }

.lang-switch { position: relative; z-index: 120; }
.lang-btn {
  display: flex; align-items: center; gap: 6px; padding: 4px 8px; border: 0; border-radius: 6px;
  background: #12301a; color: #fff; cursor: pointer;
}
.lang-btn img { width: 22px; height: 16px; object-fit: cover; border-radius: 2px; }
.lang-btn #lang-code { font-size: 12px; font-weight: 700; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 6px); max-height: 280px; overflow: auto; min-width: 180px;
  background: #0f2416; border: 1px solid #234d2c; border-radius: 8px; box-shadow: 0 12px 28px rgba(0,0,0,.45); z-index: 130;
}
.lang-menu.hide { display: none; }
.lang-item {
  width: 100%; display: flex; align-items: center; gap: 8px; padding: 8px 10px; text-align: left;
  border: 0; background: transparent; color: #fff; cursor: pointer; font-size: 12px;
}
.lang-item:hover, .lang-item.on { background: #1a4626; }
.lang-item img { width: 22px; height: 16px; object-fit: cover; }

/* ---------- modals ---------- */

.help-modal {
  position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.7); padding: 16px;
}
.help-modal.hide { display: none; }
.help-modal-card {
  width: min(720px, 100%); max-height: min(86vh, 760px); display: flex; flex-direction: column;
  background: #143a1e; border-radius: 10px; box-shadow: 0 20px 50px rgba(0,0,0,.55); overflow: hidden; color: #fff;
}
.help-modal-head {
  display: flex; align-items: center; justify-content: center; position: relative; padding: 14px;
  border-bottom: 1px solid #2a5838;
}
.help-modal-head h2 { margin: 0; font-size: 16px; }
.help-close {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 22px;
  width: 32px; height: 32px; border: 0; background: transparent; color: #fff; cursor: pointer;
}
.help-modal-body { padding: 14px 16px; overflow: auto; flex: 1; font-size: 14px; line-height: 1.45; color: #e8f5ea; }
.help-modal-body p { margin: 0 0 12px; }
.stats-footer { padding: 10px 16px; border-top: 1px solid #2a5838; }
.stats-clear { background: #1f5530; border: 0; color: #fff; padding: 8px 12px; border-radius: 6px; font-weight: 700; cursor: pointer; }
.stats-row { padding: 8px 0; border-bottom: 1px solid #2a5838; font-size: 13px; }
.stats-row .sub { opacity: .75; font-size: 12px; margin-top: 2px; }

/* ---------- layout ---------- */

.layout {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  grid-template-areas: "main slip";
  align-items: start;
  gap: 10px;
  min-height: 0;
  padding: 10px 12px;
  overflow: auto;
}
.main-col { grid-area: main; display: flex; flex-direction: column; gap: 8px; min-width: 0; }

/* ---------- colour tokens ---------- */

.c-gold { --cbg: var(--c-gold); --cfg: #3a2600; --csolid: #e9b425; }
.c-red { --cbg: var(--c-red); --cfg: #fff; --csolid: #e3201a; }
.c-blue { --cbg: var(--c-blue); --cfg: #fff; --csolid: #1565e0; }
.c-yellow { --cbg: var(--c-yellow); --cfg: #2b2200; --csolid: #ffd200; }
.c-green { --cbg: var(--c-green); --cfg: #fff; --csolid: #2fa52a; }
.c-orange { --cbg: var(--c-orange); --cfg: #fff; --csolid: #f47a12; }
.c-purple { --cbg: var(--c-purple); --cfg: #fff; --csolid: #9b3fe0; }

.pill {
  display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 8px 0 0; border-radius: 11px;
  background: var(--cbg); color: var(--cfg); font: 700 13px/1 "Gobold", "Roboto Condensed", sans-serif;
  min-width: 52px; justify-content: space-between; box-shadow: inset 0 -2px 0 rgba(0,0,0,.2);
}
.pill img { width: 22px; height: 22px; border-radius: 50%; }
.dot { display: inline-block; width: 22px; height: 22px; border-radius: 50%; background: var(--cbg); box-shadow: inset 0 -2px 0 rgba(0,0,0,.25), 0 0 0 2px rgba(255,255,255,.25); flex: 0 0 auto; }

/* ---------- stage: jungle, statistics and wheel ---------- */

.stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(300px, 400px) minmax(200px, 1.2fr);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 6px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 55%, rgba(170,240,60,.55) 0%, rgba(90,190,40,.25) 35%, transparent 65%),
    url(/casino/virt-kironzveri/assets/jungle-bg.webp) center / cover;
  box-shadow: 0 6px 20px rgba(0,0,0,.45);
}
.leaf { position: absolute; pointer-events: none; z-index: 0; opacity: .9; }
.leaf-l { left: -40px; bottom: -60px; height: 75%; transform: scaleX(-1); }
.leaf-r { right: -50px; bottom: -80px; height: 80%; }

.sound-btn {
  position: absolute; left: 10px; top: 10px; z-index: 6; width: 30px; height: 30px; border: 0; border-radius: 50%;
  background: rgba(0,0,0,.45) no-repeat center / 18px 18px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M3 9v6h4l5 5V4L7 9H3zm13.5 3A4.5 4.5 0 0 0 14 8v8a4.5 4.5 0 0 0 2.5-4zM14 3.2v2.1a7 7 0 0 1 0 13.4v2.1a9 9 0 0 0 0-17.6z'/%3E%3C/svg%3E");
}
.sound-btn.off {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M16.5 12A4.5 4.5 0 0 0 14 8v2.2l2.4 2.4c.1-.2.1-.4.1-.6zM19 12c0 .9-.2 1.8-.5 2.6l1.5 1.5A9 9 0 0 0 14 3.2v2.1A7 7 0 0 1 19 12zM4.3 3 3 4.3 7.7 9H3v6h4l5 5v-6.7l4.3 4.3c-.7.5-1.4.9-2.3 1.2v2.1a9 9 0 0 0 3.7-1.8l2 2 1.3-1.3L4.3 3zM12 4 9.9 6.1 12 8.2V4z'/%3E%3C/svg%3E");
}

.side { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.stage-logo { width: min(210px, 100%); align-self: center; filter: drop-shadow(0 4px 8px rgba(0,0,0,.4)); }
.box { background: var(--panel); border: 1px solid var(--panel-line); border-radius: 6px; padding: 6px 7px; box-shadow: 0 4px 12px rgba(0,0,0,.35); }
.box-head { font: 700 12px/1.2 "Gobold", "Roboto Condensed", sans-serif; letter-spacing: .6px; margin-bottom: 5px; display: flex; justify-content: space-between; gap: 6px; }
.box-head small { font-size: 10px; opacity: .8; }
.hc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hc-list { display: flex; flex-direction: column; gap: 3px; }
.hc-item, .rc-cell { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.hc-item em, .rc-cell em, .hcol em { font-style: normal; font-weight: 700; font-size: 12px; min-width: 16px; text-align: center; }
.hot-colors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px 6px; }
.hcol { display: flex; align-items: center; gap: 5px; }

.rc-zero { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 10px; padding-bottom: 4px; margin-bottom: 4px; border-bottom: 1px solid var(--panel-line); }
.rc-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px 10px; }

.wheel-col { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.wheel-top { display: flex; gap: 8px; align-items: stretch; }
.game-id, .next-draw {
  display: flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 6px; font-size: 10px; font-weight: 700;
  letter-spacing: .4px; box-shadow: 0 3px 8px rgba(0,0,0,.35);
}
.game-id { background: linear-gradient(180deg, #fff3b0, #ffc928); color: #3a2600; }
.game-id b { font: 700 15px/1 "Gobold", "Roboto Condensed", sans-serif; }
.next-draw { background: linear-gradient(180deg, #ff5a3c, #c4120c); color: #fff; }
.next-draw b, .bh-timer b { font: 700 17px/1 "Gobold", "Roboto Condensed", sans-serif; color: #ffe27a; letter-spacing: 1px; }
.urgent { animation: flicker 1s steps(1) infinite; }
@keyframes flicker { 50% { color: #fff; } }
.last-pill .pill { height: 20px; min-width: 46px; font-size: 12px; }
.last-pill .pill img { width: 20px; height: 20px; }

.wheel-box { position: relative; width: 100%; aspect-ratio: 1 / 1; max-width: 380px; }
.wheel { position: absolute; inset: 0; width: 100%; height: 100%; will-change: transform; filter: drop-shadow(0 6px 14px rgba(0,0,0,.45)); }
.arrow { position: absolute; left: 50%; top: -6%; width: 11%; transform: translateX(-50%); z-index: 4; filter: drop-shadow(0 3px 4px rgba(0,0,0,.5)); }
.hub {
  position: absolute; left: 50%; top: 50%; width: 63%; height: 63%; transform: translate(-50%, -50%); z-index: 3;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.hub img { position: absolute; inset: -6%; width: 112%; height: 112%; object-fit: contain; }
.hub b {
  position: relative; margin-top: 46%; font: 700 clamp(30px, 6vw, 64px)/1 "Gobold", "Roboto Condensed", sans-serif;
  color: #fff; -webkit-text-stroke: 2px #2a1300; text-shadow: 0 3px 0 #000, 0 0 14px rgba(0,0,0,.5);
}
.hub.c-yellow b, .hub.c-gold b { color: #1c1300; -webkit-text-stroke: 1px #fff6c8; text-shadow: 0 0 8px rgba(255,255,255,.6); }
.hub.empty { visibility: hidden; }
.hub.pop { animation: hubPop .6s cubic-bezier(.2,1.6,.4,1); }
@keyframes hubPop { 0% { transform: translate(-50%, -50%) scale(.7); } 100% { transform: translate(-50%, -50%) scale(1); } }

.fulltime {
  position: absolute; inset: 0; z-index: 8; display: none; flex-direction: column; align-items: center;
  justify-content: center; background: rgba(4,20,8,.72); backdrop-filter: blur(3px); gap: 10px; padding: 12px;
}
.fulltime.show { display: flex; animation: fadeIn .35s ease; }
.fulltime.won { background: radial-gradient(ellipse at center, rgba(130,96,10,.88), rgba(20,14,2,.9)); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.ft-body { display: flex; flex-direction: column; align-items: center; gap: 10px; width: min(560px, 100%); }
.ft-card {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 28px 12px; border-radius: 12px;
  background: var(--cbg); color: var(--cfg); box-shadow: 0 8px 24px rgba(0,0,0,.5), inset 0 0 0 3px rgba(255,255,255,.35);
}
.ft-label { font: 700 13px/1 "Gobold", "Roboto Condensed", sans-serif; letter-spacing: 2px; opacity: .9; }
.ft-card img { width: 150px; height: 150px; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0,0,0,.4)); }
.ft-num { font: 700 46px/1 "Gobold", "Roboto Condensed", sans-serif; }
.ft-name { font-size: 16px; font-weight: 900; text-transform: uppercase; }
.ft-bets { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.ft-bets .tag { font-size: 12px; padding: 3px 10px; border-radius: 10px; white-space: nowrap; font-weight: 700; }
.ft-bets .tag.won { background: var(--win); }
.ft-bets .tag.lost { background: var(--danger); }
.ft-total { font-size: 18px; font-weight: 900; padding: 4px 16px; border-radius: 4px; }
.ft-total.won { background: var(--win); }
.ft-total.lost { background: rgba(234,68,46,.85); }

/* ---------- betting board ---------- */

.board {
  display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 8px; padding: 8px; border-radius: 6px;
  background: linear-gradient(180deg, rgba(14,46,22,.96), rgba(8,30,14,.96)); box-shadow: 0 6px 20px rgba(0,0,0,.4);
}
.board-head { display: flex; align-items: center; gap: 10px; min-height: 30px; margin-bottom: 6px; flex-wrap: wrap; }
.bh-title { font: 700 15px/1 "Gobold", "Roboto Condensed", sans-serif; letter-spacing: .6px; }
.phase-hint { flex: 1; font-size: 11px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .3px; min-width: 120px; }
.bh-timer { display: flex; align-items: center; gap: 6px; background: linear-gradient(180deg, #ff5a3c, #c4120c); padding: 4px 10px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.bh-repeat { display: flex; align-items: center; gap: 6px; background: #1f7a2c; padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.bh-repeat select { background: #fff; color: #111; border: 0; border-radius: 3px; font-weight: 700; padding: 1px 2px; }

.num-zero { display: flex; justify-content: center; gap: 10px; margin-bottom: 8px; }
.num-zero .num-btn { width: calc((100% - 50px) / 6); }
.num-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px 10px; }
.num-btn, .color-btn {
  position: relative; border: 0; cursor: pointer; background: var(--cbg); color: var(--cfg);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.25), 0 3px 6px rgba(0,0,0,.35); transition: transform .12s ease, box-shadow .12s ease;
}
.num-btn {
  height: 50px; border-radius: 25px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px 0 2px;
}
.num-btn img { width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,.55); }
.num-btn b { font: 700 24px/1 "Gobold", "Roboto Condensed", sans-serif; }
.num-btn:hover:not(.locked), .color-btn:hover:not(.locked) { transform: translateY(-2px); }
.num-btn.selected, .color-btn.selected { box-shadow: 0 0 0 3px #7ff6ff, 0 0 14px 2px rgba(127,246,255,.7); }
.num-btn.locked, .color-btn.locked { cursor: default; filter: saturate(.75) brightness(.9); }
.num-btn.winner, .color-btn.winner { filter: none; box-shadow: 0 0 0 3px #fff, 0 0 18px 4px rgba(255,236,120,.95); animation: winGlow .9s ease-in-out infinite alternate; }
@keyframes winGlow { to { transform: scale(1.05); } }
.stake-badge {
  position: absolute; top: -6px; right: -4px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px;
  background: #fff; color: #0d2a12; font-size: 11px; font-weight: 900; display: none; align-items: center; justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,.4), inset 0 0 0 2px #e3262f;
}
.selected > .stake-badge { display: inline-flex; }

.board-colors { display: flex; flex-direction: column; }
.color-list { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.color-btn {
  flex: 1; min-height: 44px; border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
}
.color-btn b { font: 700 17px/1 "Gobold", "Roboto Condensed", sans-serif; text-transform: uppercase; letter-spacing: .5px; }
.color-btn small { font-size: 11px; font-weight: 900; opacity: .85; }

/* ---------- my bets ---------- */

.panel-head {
  min-height: 42px; background: linear-gradient(90deg, #12401c, #1f6a2c); display: flex; align-items: center;
  padding: 0 14px; gap: 8px; font-size: 16px; font-weight: 500;
}
.panel-head .count {
  width: 21px; height: 21px; border-radius: 50%; background: var(--accent); color: #1c1300; font-size: 13px;
  font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.matchday-bets { background: #fff; border-radius: 4px; overflow: hidden; }
.md-list { max-height: 140px; overflow: auto; color: var(--text); }
.md-item { padding: 10px 12px; border-top: 1px solid #dfe8e0; display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.md-item .right { text-align: right; color: #c27a00; font-weight: 700; }
.md-item.won .right { color: var(--win); }
.md-item.lost .right { color: var(--danger); }

/* ---------- order ticket ---------- */

.ticket {
  grid-area: slip; background: #0c2414; border: 1px solid rgba(255,255,255,.12); border-radius: 8px;
  display: flex; flex-direction: column; align-self: start; overflow: hidden; color: #fff;
  transition: box-shadow .35s ease, border-color .35s ease;
}
.ticket.has-bets { border-color: rgba(255,201,40,.5); box-shadow: 0 0 0 1px rgba(255,201,40,.15); }
.ticket-toggle {
  width: 100%; display: flex; align-items: center; gap: 8px; padding: 12px; text-align: left;
  background: transparent; border: 0; cursor: pointer; color: inherit;
}
.ticket-toggle:hover { background: rgba(255,255,255,.03); }
.ticket-toggle h2 { margin: 0; font-size: 14px; letter-spacing: .04em; flex: 1; font-weight: 700; }
.ticket-count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--accent); color: #1c1300;
  font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center;
}
.ticket-count.hide { display: none; }
.ticket-chevron {
  width: 10px; height: 10px; border-right: 2px solid #9cb; border-bottom: 2px solid #9cb;
  transform: rotate(45deg); transition: transform .35s ease; margin-top: -4px; flex-shrink: 0;
}
.ticket:not(.is-collapsed) .ticket-chevron { transform: rotate(225deg); margin-top: 4px; }
.ticket-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.22,.61,.36,1); }
.ticket:not(.is-collapsed) .ticket-panel { grid-template-rows: 1fr; }
.ticket-panel-inner {
  overflow: hidden; min-height: 0; padding: 0 10px; opacity: 0; transform: translateY(-6px);
  transition: opacity .3s ease, transform .35s ease, padding .35s ease;
}
.ticket:not(.is-collapsed) .ticket-panel-inner { padding: 0 10px 10px; opacity: 1; transform: translateY(0); }
.ticket-tools { display: flex; justify-content: flex-end; margin-bottom: 6px; }
.linkish { background: none; border: 0; color: var(--cyan); font-size: 12px; cursor: pointer; padding: 0; }
.stake-row { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 12px; font-weight: 700; color: #9cbfa2; }
.stake-row input {
  width: 72px; text-align: center; background: #061a0c; border: 1px solid rgba(255,255,255,.15);
  color: #fff; border-radius: 4px; padding: 6px;
}
.stake-row button { width: 28px; height: 28px; background: #1c4c2a; border: 0; border-radius: 4px; color: #fff; cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.chips button {
  min-width: 44px; height: 32px; padding: 0 8px; background: #143e20; border: 1px solid transparent;
  border-radius: 999px; color: #fff; font-weight: 700; font-size: 12px; cursor: pointer;
}
.chips button.active { background: #0b5224; border-color: var(--accent); }
.slip-body { overflow: auto; min-height: 0; max-height: 0; transition: max-height .35s ease; position: relative; }
.ticket:not(.is-collapsed) .slip-body { max-height: 160px; min-height: 48px; }
.ticket.ticket--grow:not(.is-collapsed) .slip-body { max-height: 240px; }
.ticket.ticket--grow2:not(.is-collapsed) .slip-body { max-height: 320px; }
.slip-empty { color: var(--cyan); font-size: 13px; padding: 12px 4px; }
.slip-item {
  background: #133620; border: 1px solid rgba(255,255,255,.08); border-radius: 6px; padding: 8px;
  margin-bottom: 6px; font-size: 12px; position: relative; animation: slipIn .28s ease;
}
@keyframes slipIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.slip-item .meta { font-size: 11px; color: #9cbfa2; margin-bottom: 4px; }
.slip-item .sel { font-size: 13px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.slip-item .sel-name { display: flex; align-items: center; gap: 6px; }
.slip-item .sel-name img { width: 24px; height: 24px; border-radius: 50%; }
.slip-item .sel-name .dot { width: 18px; height: 18px; }
.slip-item .est { color: var(--accent-2); font-size: 11px; text-align: right; margin-top: 4px; }
.slip-item input {
  width: 78px; height: 32px; border: 1px solid rgba(255,255,255,.2); border-radius: 2px; text-align: right;
  padding: 0 6px; font-weight: 700; margin-top: 6px; background: #061a0c; color: #fff;
}
.slip-item .remove { float: right; border: 0; background: transparent; color: #9cbfa2; cursor: pointer; font-size: 16px; }
.ticket-totals {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 8px; margin-top: 6px;
  display: flex; flex-direction: column; gap: 4px; font-size: 12px;
}
.ticket-totals strong { float: right; color: var(--accent-2); font-size: 15px; font-weight: 800; }
.submit-btn {
  width: 100%; margin-top: 10px; height: 48px; border: 0; border-radius: 6px;
  background: linear-gradient(180deg, var(--red-2), var(--red)); color: #fff; font-size: 15px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .04em; cursor: pointer;
}
.submit-btn:disabled { opacity: .5; cursor: default; }

.last-results { margin-top: 10px; border-top: 1px solid rgba(255,255,255,.12); padding: 10px; }
.lr-head { font-size: 12px; font-weight: 800; letter-spacing: .5px; color: #9cbfa2; margin-bottom: 6px; }
.lr-empty { font-size: 12px; color: var(--cyan); }
.lr-row { display: flex; align-items: center; gap: 6px; padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 12px; }
.lr-no { color: var(--accent-2); font-weight: 800; min-width: 44px; }
.lr-trk { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .85; }
.road { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 8px; }
.road-dot {
  width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 900; background: var(--cbg); color: var(--cfg);
}

.toast {
  position: fixed; top: 80px; right: 20px; background: rgba(255,255,255,.96); color: var(--text);
  padding: 12px 16px; border-radius: 4px; box-shadow: 0 8px 24px rgba(0,0,0,.2); z-index: 50;
  display: none; font-weight: 600; border-left: 4px solid var(--accent);
}
.toast.show { display: block; animation: slideIn .35s ease; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- responsive ---------- */

@media (max-width: 1180px) {
  .stage { grid-template-columns: minmax(160px, 1fr) minmax(280px, 340px) minmax(190px, 1fr); }
  .num-btn { height: 44px; }
  .num-btn img { width: 40px; height: 40px; }
  .num-btn b { font-size: 20px; }
}
@media (max-width: 980px) {
  body { overflow: auto; }
  #app { height: auto; min-height: 100%; }
  .layout { grid-template-columns: 1fr; grid-template-areas: "main" "slip"; overflow: visible; }
  .brand .title { font-size: 17px; }
  .stage { grid-template-columns: 1fr 1fr; grid-template-areas: "wheel wheel" "left right"; }
  .wheel-col { grid-area: wheel; }
  .side-left { grid-area: left; }
  .side-right { grid-area: right; }
  .stage-logo { display: none; }
}
@media (max-width: 640px) {
  .clock, .help-btn, .brand .title { display: none; }
  .stage { grid-template-columns: 1fr; grid-template-areas: "wheel" "left" "right"; padding: 10px 8px; }
  .board { grid-template-columns: 1fr; }
  .color-list { flex-direction: row; flex-wrap: wrap; }
  .color-btn { flex: 1 1 28%; }
  .num-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
  .num-zero .num-btn { width: calc((100% - 21px) / 4); }
  .num-btn { height: 40px; padding-right: 10px; }
  .num-btn img { width: 36px; height: 36px; }
  .num-btn b { font-size: 18px; }
  .ft-card img { width: 110px; height: 110px; }
}
