/* $$P Double v50 — premium graphite / rose casino theme.
   Loaded after double-upgrade.css so wager, wallet and round IDs stay intact. */
.double-page {
  --d50-ink:#080b11;
  --d50-surface:#111722;
  --d50-glass:rgba(20,27,38,.82);
  --d50-line:rgba(228,233,245,.13);
  --d50-rose:#ff607a;
  --d50-gold:#f1ce91;
  --d50-text:#f5f3f0;
  --d50-ease:cubic-bezier(.22,1,.36,1);
  background:
    radial-gradient(ellipse 68% 32% at 50% -9%,rgba(89,111,163,.25),transparent 95%),
    radial-gradient(ellipse 38% 35% at 100% 44%,rgba(175,63,100,.095),transparent),
    linear-gradient(180deg,#0c111b,#070a10 60%,#090c12);
  color:var(--d50-text);
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display",Inter,system-ui,sans-serif;
}
.double-page *, .double-page *::before, .double-page *::after {box-sizing:border-box;}
.double-page button {font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;}
.double-page :is(button,a,summary,input):focus-visible {
  outline:3px solid #a4e9ff !important;outline-offset:3px !important;
}
.double-page header {
  min-width:0;
  min-height:76px;
  height:auto;
  padding:12px clamp(15px,3.2vw,54px);
  gap:clamp(8px,1.3vw,18px);
  border-bottom:1px solid rgba(241,204,144,.15);
  background:rgba(9,13,21,.84);
  -webkit-backdrop-filter:blur(18px) saturate(150%);
  backdrop-filter:blur(18px) saturate(150%);
  box-shadow:0 12px 30px #0002;
}
.double-page header > a {
  flex:0 0 auto;
  display:inline-flex;align-items:center;justify-content:center;
  min-height:38px;padding:0 15px;
  color:#f0e4d1;
  border:1px solid rgba(248,223,174,.2);
  border-radius:13px;
  background:rgba(255,255,255,.055);
  font-size:12px;letter-spacing:.04em;
  transition:background .2s,transform .2s var(--d50-ease);
}
.double-page header > a:hover {background:rgba(255,255,255,.12);transform:translateY(-1px);}
.double-page header > div:first-of-type {
  flex:1 1 auto;
  min-width:0;
}
.double-page header > div:first-of-type b {
  font-size:clamp(15px,1.6vw,23px);
  font-weight:900;
  letter-spacing:.06em;
  color:#f7e7cc;
}
.double-page header > div:first-of-type small {display:block;margin-top:4px;color:#a5b2c4;letter-spacing:.1em;}
.double-page header .wallet {
  flex:0 1 250px;
  min-width:0;
  padding:8px 13px;
  border-radius:13px;
  border:1px solid rgba(241,208,146,.2);
  background:linear-gradient(140deg,rgba(246,216,153,.085),rgba(255,255,255,.015));
}
.double-page header .wallet small {
  display:block;
  font-size:9px;
  line-height:1.4;
  color:#b5c0ce;
  letter-spacing:.08em;
}
.double-page header .wallet b {
  min-width:0;
  max-width:100%;
  display:block;
  margin-top:3px;
  color:#ffe6ad;
  font-size:clamp(12px,1.3vw,18px);
  font-weight:850;
  letter-spacing:-.045em;
  line-height:1.3;
  text-align:right;
  font-variant-numeric:tabular-nums;
  overflow-wrap:anywhere;
}
.double-page main {
  width:min(1540px,calc(100% - 48px));
  margin:24px auto 60px;
  padding-right:290px;
  min-width:0;
}
.double-page main > * {min-width:0;}
.double-page .hero {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(95px,auto);
  min-height:106px;
  align-items:center;
  gap:clamp(10px,1.4vw,22px);
  padding:17px 21px 23px;
  border:1px solid var(--d50-line);
  border-radius:20px;
  background:
    radial-gradient(circle at 0 0,rgba(255,255,255,.045),transparent 48%),
    linear-gradient(125deg,rgba(29,37,53,.87),rgba(15,21,31,.88));
  box-shadow:inset 0 1px rgba(255,255,255,.07),0 16px 36px #0003;
  overflow:hidden;
}
.double-page .hero::before {
  content:"";position:absolute;left:19px;right:19px;bottom:10px;height:5px;
  border-radius:99px;background:rgba(255,255,255,.095);
}
.double-page .hero::after {
  left:19px;bottom:10px;
  max-width:calc(100% - 38px);
  height:5px;
  border-radius:99px;
  background:linear-gradient(90deg,#c6335a,#ff7991 66%,#ffd2d9);
  box-shadow:0 0 13px rgba(255,92,129,.32);
  transition:width .09s linear;
  will-change:auto;
}
.double-page .round {min-width:0;}
.double-page .round #phase {
  display:inline;
  font-size:clamp(10px,.83vw,12px);
  font-weight:800;
  color:#bcebd5;
  letter-spacing:.10em;
}
.double-page .round b {
  color:#c1cbda;
  margin-top:10px;
  font-size:clamp(11px,1vw,14px);
  line-height:1.45;
  letter-spacing:.08em;
  overflow-wrap:anywhere;
}
.double-page .round i {color:#f6d499;}
.double-page #liveDot {
  width:8px;height:8px;margin-right:8px;
  background:#64e3b4;
  box-shadow:0 0 0 4px rgba(76,224,155,.12),0 0 13px #53eab082;
}
.double-page .timer {min-width:95px;}
.double-page .timer strong {
  font-size:clamp(39px,4.5vw,65px);
  font-weight:900;
  letter-spacing:-.065em;
  line-height:1.05;
  background:linear-gradient(180deg,#fff1cd,#e6b878);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  text-shadow:none;
  font-variant-numeric:tabular-nums;
}
.double-page .timer :is(small,span) {color:#aab6c8;font-size:9px;font-weight:750;letter-spacing:.12em;}
.double-page .wheel-shell {
  min-width:0;
  position:relative;
  isolation:isolate;
  contain:paint;
  height:clamp(125px,11vw,165px);
  margin:17px 0 15px;
  overflow:hidden;
  border:1px solid rgba(238,215,173,.27);
  border-radius:25px;
  background:
    radial-gradient(ellipse at 50% 0%,rgba(121,138,178,.15),transparent 80%),
    linear-gradient(180deg,#111824,#090d15);
  box-shadow:0 26px 58px rgba(0,0,0,.45),inset 0 1px rgba(255,255,255,.06);
}
.double-page .wheel-shell::before,
.double-page .wheel-shell::after {
  content:"";position:absolute;z-index:2;top:0;bottom:0;width:clamp(28px,12%,100px);
  pointer-events:none;
}
.double-page .wheel-shell::before {left:0;background:linear-gradient(90deg,#0d131e,transparent);}
.double-page .wheel-shell::after {right:0;background:linear-gradient(270deg,#0d131e,transparent);}
.double-page .wheel {
  position:relative;
  height:100%;
  display:flex;
  align-items:center;
  gap:8px;
  width:100%;
  will-change:transform;
  backface-visibility:hidden;
}
.double-page .wheel .cell {
  position:relative;
  overflow:hidden;
  flex:0 0 92px;
  height:clamp(98px,8vw,120px);
  display:grid;place-items:center;
  border:1px solid rgba(255,255,255,.18);
  border-radius:17px;
  box-shadow:inset 0 1px rgba(255,255,255,.24),inset 0 -15px 24px #0004,0 6px 16px #0004;
  font-weight:900;
  font-size:clamp(28px,2.9vw,37px);
  font-variant-numeric:tabular-nums;
  text-shadow:0 3px 6px #0007;
}
.double-page .wheel .cell::before {
  content:"";position:absolute;inset:0;pointer-events:none;
  border-radius:inherit;
  background:linear-gradient(145deg,rgba(255,255,255,.22),transparent 44%,transparent 70%,rgba(0,0,0,.13));
}
.double-page .wheel .cell.red {background:linear-gradient(155deg,#ff5c7a,#c92f50 62%,#721a35);}
.double-page .wheel .cell.black {background:linear-gradient(150deg,#384355,#1b2431 63%,#0c111b);border-color:rgba(168,190,211,.25);}
.double-page .wheel .cell.white {background:linear-gradient(145deg,#fffdf6,#e2e8f0 54%,#9faebf);color:#172131;text-shadow:0 1px #fff8;border-color:#fff3;}
.double-page .marker {
  z-index:4;
  width:3px;
  background:linear-gradient(180deg,rgba(255,226,158,0),#ffe5aa 33%,#f7ba66 65%,rgba(255,226,158,0));
  box-shadow:0 0 17px rgba(255,208,129,.62);
  pointer-events:none;
}
.double-page .marker::before {
  content:"◆";
  left:-10px;top:-7px;
  font-size:22px;
  color:#ffe3a5;
  text-shadow:0 2px 8px #000;
}
.double-page .history {
  min-width:0;
  align-items:center;
  display:flex;
  gap:14px;
  padding:10px 14px;
  margin-bottom:17px;
  border:1px solid var(--d50-line);
  border-radius:16px;
  background:rgba(255,255,255,.035);
}
.double-page .history > small {flex:0 0 auto;font-weight:750;letter-spacing:.1em;}
.double-page .history div {min-width:0;gap:6px;overflow-x:auto;scrollbar-width:none;padding-block:2px;}
.double-page .history div::-webkit-scrollbar {display:none;}
.double-page .history i {
  flex:0 0 29px;width:29px;height:29px;
  border-radius:10px;
  box-shadow:inset 0 1px #ffffff2b,0 2px 7px #0004;
}
.double-page .history .red {background:linear-gradient(145deg,#f85c78,#ae2947);}
.double-page .history .black {background:linear-gradient(145deg,#3a4353,#121925);border:1px solid #ffffff24;}
.double-page .history .white {background:#ecf2f7;color:#1a2432;}
.double-page .bet-layout {
  min-width:0;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(190px,230px);
  gap:14px;
}
.double-page .controls,
.double-page .bet-layout > aside,
.double-page .info article {
  min-width:0;
  border:1px solid rgba(255,255,255,.105);
  border-radius:20px;
  background:linear-gradient(150deg,rgba(28,36,51,.85),rgba(14,19,28,.9));
  box-shadow:inset 0 1px rgba(255,255,255,.065),0 12px 34px #0003;
}
.double-page .controls {padding:19px;}
.double-page .amount {display:flex;gap:15px;align-items:end;min-width:0;}
.double-page .amount > label {min-width:0;flex:1 1 auto;color:#c5cddd;font-size:10px;font-weight:800;letter-spacing:.09em;}
.double-page #amount {
  width:min(100%,260px);
  min-width:0;
  max-width:100%;
  min-height:48px;
  margin-top:8px;
  padding:9px 14px;
  border:1px solid rgba(243,217,165,.25);
  border-radius:13px;
  color:#fff0ca;
  background:linear-gradient(160deg,#0e141d,#171f2b);
  box-shadow:inset 0 2px 6px #0004;
  font-size:clamp(16px,1.2vw,20px);
  font-weight:800;
  letter-spacing:-.02em;
  font-variant-numeric:tabular-nums;
  outline-offset:3px;
}
.double-page #amount:focus {border-color:#ffdca6;box-shadow:0 0 0 4px rgba(241,193,109,.1);}
.double-page .amount > div {
  min-width:0;
  flex:1 1 auto;
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:7px;
}
.double-page .amount button {
  flex:0 1 auto;
  margin:0;
  min-width:42px;
  min-height:40px;
  padding:9px 11px;
  border:1px solid rgba(255,255,255,.15);
  border-radius:11px;
  background:linear-gradient(150deg,rgba(255,255,255,.10),rgba(255,255,255,.025));
  box-shadow:inset 0 1px rgba(255,255,255,.1),0 3px 6px #0002;
  color:#dfe7f0;
  font-size:12px;
  font-weight:800;
  font-variant-numeric:tabular-nums;
  transition:background .17s,transform .17s var(--d50-ease),border-color .17s;
}
.double-page .amount button:hover {background:rgba(239,207,147,.13);border-color:rgba(240,212,153,.55);transform:translateY(-2px);}
.double-page .amount button:active {transform:scale(.955);}
.double-page .amount :is(#half,#max) {color:#ffdfaa;border-color:rgba(244,202,133,.3);}
.double-page .colors {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-top:19px;
}
.double-page .colors button {
  position:relative;
  isolation:isolate;
  min-width:0;
  min-height:108px;
  height:auto;
  padding:13px 8px;
  overflow:hidden;
  border-radius:17px;
  border:1px solid rgba(255,255,255,.22);
  box-shadow:inset 0 1px rgba(255,255,255,.22),inset 0 -12px 22px #0002,0 8px 17px #0003;
  transition:transform .21s var(--d50-ease),box-shadow .21s,border-color .21s,filter .21s;
}
.double-page .colors button::after {
  content:"";position:absolute;z-index:-1;inset:0;
  background:linear-gradient(145deg,rgba(255,255,255,.2),transparent 51%);
  pointer-events:none;
}
.double-page .colors button.red {background:linear-gradient(155deg,#fa617c,#c63254 65%,#83233e);}
.double-page .colors button.white {background:linear-gradient(145deg,#fffefa,#e4eaf1 65%,#b7c4d1);color:#1a2834;}
.double-page .colors button.black {background:linear-gradient(145deg,#3e475a,#1b2532 58%,#0b131c);border-color:#79879d70;}
.double-page .colors span {font-size:clamp(10px,.88vw,13px);font-weight:900;letter-spacing:.08em;}
.double-page .colors b {margin:5px 0;font-size:clamp(26px,2.8vw,37px);line-height:1.05;letter-spacing:-.06em;}
.double-page .colors small {opacity:.82;font-size:10px;font-weight:700;}
.double-page .colors button:not(:disabled):hover {
  transform:translateY(-4px);
  border-color:#fff6da;
  filter:brightness(1.07);
  box-shadow:inset 0 1px #fff6,0 15px 24px #0007,0 0 0 3px rgba(255,213,159,.13);
}
.double-page .colors button:not(:disabled):active {transform:translateY(-1px) scale(.975);}
.double-page .colors button:disabled {
  opacity:.45;
  filter:saturate(.63);
  box-shadow:inset 0 1px #ffffff16;
  cursor:not-allowed;
}
.double-page .controls #message {
  min-height:43px;
  display:grid;align-items:center;
  margin:15px 0 0;
  padding:10px 12px;
  border:1px solid rgba(164,189,218,.16);
  border-radius:11px;
  background:rgba(4,8,14,.3);
  color:#cad4e1;
  font-size:clamp(11px,.9vw,13px);
  line-height:1.4;
  overflow-wrap:anywhere;
}
.double-page .bet-layout > aside {padding:18px;}
.double-page .bet-layout > aside h2 {font-size:13px;font-weight:900;letter-spacing:.07em;color:#f4dfb8;}
.double-page #myBets {color:#c1cad5;min-height:82px;}
.double-page #myBets .bet-row {gap:12px;min-width:0;}
.double-page #myBets .bet-row b {overflow-wrap:anywhere;text-align:right;}
.double-page aside > b {
  display:block;
  min-width:0;
  padding:12px 0 0;
  border-top:1px solid rgba(255,255,255,.13);
  color:#aebdcb;
  font-size:12px;
}
.double-page aside > b span {
  display:block;
  color:#ffe5ad;
  margin-top:5px;
  font-size:clamp(15px,1.3vw,20px);
  font-variant-numeric:tabular-nums;
  line-height:1.2;
  overflow-wrap:anywhere;
}
.double-page .double-rankings {
  min-width:0;
  border:1px solid rgba(235,205,153,.18);
  border-radius:22px;
  background:linear-gradient(145deg,rgba(29,38,54,.98),rgba(12,17,26,.98));
  box-shadow:inset 0 1px rgba(255,255,255,.08),0 20px 55px #0004;
}
.double-page .double-sidebar-heading small {color:#f0cb8f;}
.double-page .double-sidebar-total {background:rgba(244,205,143,.06);}
.double-page .double-sidebar-total strong {max-width:100%;min-width:0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums;}
.double-page .double-participants {scrollbar-color:#ffffff35 transparent;scrollbar-width:thin;}
.double-page .double-participant,.double-page .double-participant-identity {min-width:0;}
.double-page .double-participant > strong {overflow-wrap:anywhere;word-break:normal;}
.double-page .community {
  min-width:0;
  gap:12px;
  margin-top:16px;
}
.double-page .community article {
  min-width:0;
  border:1px solid var(--d50-line);
  border-top:2px solid transparent;
  border-radius:15px;
  background:rgba(23,31,43,.86);
  box-shadow:inset 0 1px rgba(255,255,255,.04);
}
.double-page .community .red {border-top-color:#ff718e;}
.double-page .community .white {border-top-color:#f7f5ea;}
.double-page .community .black {border-top-color:#99a9bc;}
.double-page .community .bet-row b {overflow-wrap:anywhere;}
.double-page .double-rules {
  border:1px solid rgba(238,212,171,.15);
  border-radius:14px;
  background:rgba(255,255,255,.025);
  color:#b3c2d4;
  padding:0 14px;
}
.double-page .double-rules > summary {padding:14px 3px;color:#ead5b0;font-weight:750;cursor:pointer;}
.double-page .double-rules[open] {padding:0 14px 14px;}
.double-page .info {min-width:0;grid-template-columns:minmax(0,1fr);gap:12px;margin-top:13px;}
.double-page .info article {padding:17px;}
.double-page .info h2 {color:#f4d097;font-size:clamp(14px,1.35vw,19px);}
.double-page .info p {color:#b3becd;line-height:1.55;}
.double-page :is(.fair button,.info button,#verifyClose) {
  min-height:36px;
  padding:8px 12px;
  border:1px solid rgba(237,209,155,.28);
  border-radius:10px;
  background:rgba(255,255,255,.055);
  color:#f2dfc1;
  font-weight:750;
}
.double-page #verify {
  width:min(680px,calc(100vw - 28px));
  max-height:80dvh;
  border:1px solid rgba(237,212,168,.32);
  border-radius:22px;
  background:linear-gradient(140deg,#192434,#0c111b);
  box-shadow:0 25px 100px #000b;
  color:#e9eef5;
}
.double-page #verify::backdrop {background:#03070dcc;backdrop-filter:blur(5px);}
.double-page #verifyData {max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere;}
@media (min-width:1101px){
  .double-page main {padding-right:290px;}
  .double-page .double-rankings {right:0;top:0;width:268px;}
}
@media (max-width:1100px){
  .double-page main {padding-right:0;}
  .double-page .double-rankings {position:static;width:100%;margin-top:15px;}
}
@media (max-width:780px){
  .double-page header {padding:10px 13px;gap:8px;}
  .double-page header > a {padding:0 10px;font-size:11px;}
  .double-page header > div:first-of-type b {font-size:15px;}
  .double-page header .wallet {flex:0 1 170px;padding:8px;}
  .double-page main {width:calc(100% - 22px);margin:13px auto 36px;}
  .double-page .hero {padding:13px 14px 21px;gap:8px;min-height:95px;grid-template-columns:minmax(0,1fr) auto;}
  .double-page .hero::before,.double-page .hero::after {left:13px;bottom:8px;}
  .double-page .hero::before {right:13px;}
  .double-page .hero::after {max-width:calc(100% - 26px);}
  .double-page .timer strong {font-size:clamp(38px,8vw,52px);}
  .double-page .wheel-shell {height:125px;border-radius:17px;margin:12px 0;}
  .double-page .wheel .cell {height:90px;flex-basis:70px;border-radius:12px;font-size:28px;}
  .double-page .history {padding:8px 10px;gap:8px;margin-bottom:12px;}
  .double-page .history > small {max-width:78px;font-size:9px;line-height:1.45;}
  .double-page .history i {flex-basis:26px;width:26px;height:26px;border-radius:8px;}
  .double-page .bet-layout {grid-template-columns:minmax(0,1fr);gap:12px;}
  .double-page .controls {padding:14px;}
  .double-page .bet-layout > aside {padding:14px;}
  .double-page .amount {display:block;}
  .double-page .amount > label {display:block;width:100%;}
  .double-page #amount {width:100%;min-height:47px;}
  .double-page .amount > div {width:100%;justify-content:space-between;margin-top:10px;}
  .double-page .amount button {min-height:39px;min-width:42px;padding:8px;}
  .double-page .colors {gap:8px;margin-top:14px;}
  .double-page .colors button {min-height:97px;}
  .double-page .colors span {font-size:11px;}
  .double-page .colors b {font-size:29px;}
  .double-page .community article {max-height:160px;}
  .double-page .double-rankings {height:clamp(270px,46dvh,410px);}
}
@media (max-width:390px){
  .double-page header {gap:6px;padding-inline:8px;}
  .double-page header.ssp-has-xp > div:first-of-type {flex:1 1 73px;min-width:0;}
  .double-page header.ssp-has-xp > .wallet {flex:0 1 132px;min-width:0;}
  .double-page header > a {min-height:34px;padding:0 7px;font-size:10px;}
  .double-page header > div:first-of-type b {font-size:12px;letter-spacing:.015em;}
  .double-page header > div:first-of-type small {font-size:7px;letter-spacing:0;}
  .double-page header .wallet {flex:0 1 136px;padding:7px;}
  .double-page header .wallet small {font-size:8px;letter-spacing:0;}
  .double-page header .wallet b {font-size:clamp(10px,2.72vw,12px);letter-spacing:-.045em;overflow-wrap:anywhere;}
  .double-page .hero {padding:12px 11px 20px;}
  .double-page .timer strong {font-size:39px;}
  .double-page .round b {font-size:10px;}
  .double-page .amount button {min-width:38px;padding:8px 6px;font-size:11px;}
  .double-page .colors {gap:6px;}
  .double-page .colors button {padding:11px 3px;min-height:94px;border-radius:12px;}
  .double-page .colors span {font-size:9px;letter-spacing:.02em;}
  .double-page .colors b {font-size:26px;}
  .double-page .colors small {font-size:9px;}
  .double-page .history > small {max-width:60px;font-size:8px;}
}
@media (prefers-reduced-motion:reduce){
  .double-page .wheel,.double-page .wheel .cell,
  .double-page .hero::after,
  .double-page .colors button,
  .double-page .amount button,
  .double-page header > a {transition:none !important;animation:none !important;}
  .double-page .wheel {will-change:auto !important;}
}
/* v88: register press sensation before the network wager resolves. */
.double-page :is([data-color],[data-add],#half,#max,#pause,#verifyBtn):not(:disabled){touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.double-page :is([data-color],[data-add],#half,#max,#pause,#verifyBtn):not(:disabled):active{transition-duration:.06s!important;transform:translateY(1px) scale(.984);filter:brightness(1.09)}
@media(prefers-reduced-motion:reduce){.double-page :is([data-color],[data-add],#half,#max,#pause,#verifyBtn):active{transition:none!important}}
