
  :root {
    color-scheme: dark; font: 16px/1.5 "Segoe UI","Yu Gothic UI",Meiryo,sans-serif;
    color: #f7f4fc; background: #131119; --line: #353040; --muted: #c0b7cc; --accent: #d8f694;
  }
  * { box-sizing: border-box; }
  body { margin: 0; }
  .bar { background: #1c1824; border-bottom: 1px solid var(--line); }
  .wrap { max-width: 1376px; margin: auto; padding-inline: 40px; }
  .bar-row { min-height: 65px; display: flex; align-items: center; gap: 22px; }
  .standalone-label { font-weight: 750; }
  .lobby-link { color: var(--muted); text-decoration: none; font-size: .875rem; }
  .lobby-link:hover { color: #fff; }
  #balance { margin-left: auto; padding: 6px 10px; border-radius: 7px; background: #30283a; font-weight: 700; font-size: .875rem; font-variant-numeric: tabular-nums; }
  main { padding-block: 27px 36px; }
  .heading { margin: 0 0 16px; font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.25; }
  .play-area { display: grid; grid-template-columns: minmax(238px, 272px) minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
  .controls { grid-column: 1; grid-row: 1; padding: 22px; background: #221d2b; border-right: 1px solid var(--line); }
  .result-panel { border-top: 1px solid var(--line); margin-top: 21px; padding-top: 14px; }
  .stake { display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: .875rem; color: var(--muted); margin-bottom: 15px; }
  .stake strong { color: #f8f5fc; }
  .stage { grid-column: 2; grid-row: 1; display: grid; place-items: center; padding: 16px; min-width: 0; background: radial-gradient(ellipse at 50% 38%, #302438, #191520 69%); }
  canvas { width: min(100%, 584px); height: auto; display: block; border-radius: 10px; background: #212b31; }
  .play-area[data-current-game="skyward"] canvas { width: min(100%, 910px); }
  .play-area[data-current-game="crash"] canvas { width:min(100%,980px); }
  .play-area[data-current-game="crash"] .stage { background:#101115; padding:14px; }
  .play-area[data-current-game="crash"] .canvas-frame { background:#101115; }
  .crash-history { display:flex; align-items:center; justify-content:flex-end; gap:5px; overflow:hidden; width:100%; min-height:28px; padding:0 8px; margin:0 0 6px; list-style:none; }
  .crash-history li { padding:2px 8px; border-radius:5px; color:#d7d7de; background:#26272f; font:650 .76rem/1.55 "Segoe UI",sans-serif; }
  .crash-history li[data-won="true"] { background:#123c2f; color:#70edac; }
  .crash-history li[data-won="false"] { background:#3c212b; color:#ff9ca8; }
  .play-area[data-current-game="crash"][data-outcome="won"] #status { color:#70edac; }
  .play-area[data-current-game="crash"][data-outcome="lost"] #status { color:#ff9ca8; }
  #crash-tabs { display:flex; gap:3px; padding:3px; border-radius:7px; background:#101116; margin-bottom:14px; }
  #crash-tabs button { flex:1; min-height:34px; border:0; color:#a8a8b2; background:transparent; }
  #crash-tabs button[aria-pressed="true"] { background:#30313a; color:white; }
  #roulette-outcome { position:absolute; bottom:0;left:50%; transform:translateX(-50%); text-align:center; border:2px solid #3cd993; border-radius:7px; padding:4px 14px; line-height:1.15; color:#53ebab; background:#11251f; font-weight:750; }
  #roulette-outcome small { display:block;color:#dbf8e9;white-space:nowrap; }
  .play-area:is([data-current-game="candy"],[data-current-game="skyward"]) { display:flex; flex-direction:column; max-width:1080px; margin-inline:auto; }
  .play-area:is([data-current-game="candy"],[data-current-game="skyward"]) .stage { padding:0; background:#17161b; }
  .play-area:is([data-current-game="candy"],[data-current-game="skyward"]) canvas { width:100%; height:auto; border-radius:0; }
  .play-area:is([data-current-game="candy"],[data-current-game="skyward"]) .controls { padding:10px 14px; border:0; border-top:1px solid var(--line); }
  .play-area:is([data-current-game="candy"],[data-current-game="skyward"]) .stake { display:none; }
  .play-area:is([data-current-game="candy"],[data-current-game="skyward"]) form { display:flex; flex-wrap:wrap; align-items:end; gap:10px; }
  .play-area[data-current-game="candy"] #candy-set { display:flex; flex-wrap:wrap; gap:10px; }
  .play-area:is([data-current-game="candy"],[data-current-game="skyward"]) .result-panel { margin:7px 0 0; padding:4px 0 0; display:flex; align-items:center; justify-content:space-between; gap:8px; }
  .play-area:is([data-current-game="candy"],[data-current-game="skyward"]) #status { min-height:0; }
  .play-area[data-current-game="skyward"] :is(#speed-setting,#play) { display:none; }
  .play-area[data-current-game="chicken"] canvas { width:min(100%,980px); }
  .play-area:is([data-current-game="minedrop"],[data-current-game="orchard"]) { width:min(100%,max(330px,51svh));margin:auto;display:flex;flex-direction:column; }
  .play-area:is([data-current-game="minedrop"],[data-current-game="orchard"]) .stage { padding:0;display:block; }
  .play-area:is([data-current-game="minedrop"],[data-current-game="orchard"]) canvas { width:100%;max-width:100%;height:auto; border-radius:0; }
  .play-area:is([data-current-game="minedrop"],[data-current-game="orchard"]) .controls { border:0;padding:8px 12px; }
  .play-area:is([data-current-game="minedrop"],[data-current-game="orchard"]) .controls :is(form,.stake) { display:none; }
  .play-area:is([data-current-game="minedrop"],[data-current-game="orchard"]) .result-panel { margin:0;padding:0; border:0; }
  .play-area:is([data-current-game="minedrop"],[data-current-game="orchard"]) #status { min-height:0; }
  #cabinet-wallet,.cabinet-back { position:absolute; top:1.2%;font:700 clamp(10px,1vw,15px)/1.4 "Segoe UI",sans-serif; padding:2px 9px; }
  #cabinet-wallet { right:2%; background:#fffd; border:1px solid #a89e8b; color:#232423; border-radius:4px; }
  .cabinet-back { left:2%; border-radius:14px;background:#173944df;color:white;text-decoration:none; }
  .arcade-deck { width:100%; display:grid;grid-template-columns:1fr auto 1fr;align-items:center;justify-items:center;gap:7px; padding:8px 12px 10px; background:#201912; border:5px solid #9e623a; border-top:0; }
  .arcade-deck .rate { grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:8px;width:82%; }
  .arcade-deck .rate label {display:flex;align-items:center;justify-content:center;gap:6px;margin:0;color:inherit;font-weight:700;white-space:nowrap;}
  .arcade-deck .rate input { width:9ch;height:32px;text-align:center;font-size:.85rem; padding:2px 5px;background:#100f0d;border:1px solid #827d6d; }
  .arcade-deck button { min-height:32px; padding:4px 9px;border-radius:8px;font-weight:700;font-size:.8rem; }
  .rate button { background:#243536;color:#f4fff9;border:1px solid #7ee1ce; }
  #cabinet-guide {grid-row:2;grid-column:1;border:0;color:#fff5e7;background:transparent;}
  #cabinet-play { grid-row:2; grid-column:2; display:grid;place-items:center;width:58px;height:58px; border:3px solid #38332d; border-radius:50%;color:#161412;background:#fffdf8;font-size:1.65rem; }
  #cabinet-play:disabled { opacity:.85; }
  .is-settled #cabinet-play {width:auto;min-width:94px;height:42px;padding:4px 12px;border-radius:22px;font-size:.9rem;}
  .is-settled #flight-play::before {content:"REPLAY";}
  #cabinet-speed { grid-row:2;grid-column:3;background:#77e9d8;color:#143131;border:0; }
  #cabinet-skip {grid-column:2;grid-row:2; align-self:center;border:0; border-radius:50%;width:58px;height:58px; background:#fffaf0;color:#302a21;}
  .play-area[data-current-game="orchard"] .arcade-deck { background:linear-gradient(#8bc85c,#b2da56 75%,#b9d964); border:0; }
  .play-area[data-current-game="orchard"] .rate { border:2px solid #e8b656;border-radius:18px; background:linear-gradient(#f283ad,#bb2a6c); width:86%; }
  .play-area[data-current-game="orchard"] .rate button { display:none; }
  .play-area[data-current-game="orchard"] .rate input { width:9ch; height:29px; background:transparent; border:0; color:white;font-weight:750; }
  .play-area[data-current-game="orchard"] .rate label {color:white;}
  .play-area[data-current-game="orchard"] :is(#cabinet-play,#cabinet-skip) { background:#fff5ea;color:#de307d;border:4px dashed #ca558c; }
  .play-area[data-current-game="orchard"] :is(#cabinet-speed,#cabinet-guide) { background:#ffeeddaa; color:#3c4135; border-radius:4px; }
  #cabinet-help { max-width:min(390px,90vw); border:1px solid #655d67; border-radius:10px; background:#241f28; color:white; padding:18px; }
  #cabinet-help::backdrop { background:#08080bc4; }
  .canvas-frame { position:relative; }
  #flight-hud { position:absolute; inset:0; pointer-events:none; container-type:inline-size; font-weight:800; color:white; }
  #flight-hud :is(button,input,a) { pointer-events:auto; }
  .flight-wallet,.flight-back {
    position:absolute; display:flex; align-items:center; background:linear-gradient(#e3e3efed,#d1d2e2f0);
    border:.16cqw solid #e8e9f6; box-shadow:inset 0 0 .45cqw #e7e8f5;
  }
  .flight-back { left:0; top:3.5%; width:9.2%; height:13.3%; border-radius:0 7cqw 7cqw 0; font-size:0; text-decoration:none; }
  .flight-back::before { content:""; position:absolute; left:32%; top:21%; width:39%; height:29%; border:.78cqw solid white; border-left:0; border-radius:0 3cqw 3cqw 0; }
  .flight-back::after { content:""; position:absolute; left:27%; top:46%; width:18%; height:35%; background:white; clip-path:polygon(0 50%,100% 0,100% 100%); }
  .flight-wallet { top:4.4%; right:2.2%; width:26%; height:11.4%; justify-content:flex-end; padding-right:1.7cqw; color:#25232d; border-radius:.42cqw; font:700 2.2cqw/1 "Segoe UI",sans-serif; font-variant-numeric:tabular-nums; }
  .flight-wallet::before { content:"P"; position:absolute; left:4.3%; display:grid; place-items:center; width:2.5cqw; aspect-ratio:1; color:white; font:800 1.62cqw/1 "Segoe UI",sans-serif; border-radius:50%; background:linear-gradient(#ff716f,#e94b51); box-shadow:inset 0 .12cqw .2cqw #ff9b93; }
  .flight-settings { position:absolute; left:70.9%; top:72.2%; width:13.9%; display:grid; justify-items:center; gap:1.03cqw; }
  .flight-settings button { position:relative; width:94%; height:3.65cqw; min-height:0; margin:0; padding:0 0 0 2.55cqw; border:.2cqw solid #ccd1dc; border-radius:.35cqw; color:#24242c; background:#fafbfd; box-shadow:inset 0 0 0 .16cqw #eceef3; font:700 1.18cqw/1 "Yu Gothic UI",sans-serif; }
  .flight-settings button::before { content:"❯"; position:absolute; left:.9cqw; top:50%; transform:translateY(-54%); color:#35363e; font:800 2.1cqw/1 "Segoe UI Symbol",sans-serif; text-shadow:.48cqw 0 #9b9ca4,.96cqw 0 #d2d3d8; }
  .flight-settings label { display:grid; width:100%; height:7.15cqw; align-content:center; justify-items:center; gap:.33cqw; border-radius:1.65cqw; color:white; background:#131b2eaa; }
  .flight-settings label::before { content:"ベット額"; color:#e9edf8; font:700 1.07cqw/1 "Yu Gothic UI",sans-serif; }
  .flight-settings input { width:85%; height:2.55cqw; min-height:0; margin:0; padding:0 .2cqw; border:0; border-radius:.2cqw; background:transparent; color:white; font:700 clamp(8px,1.5cqw,18px)/1 "Segoe UI",sans-serif; text-align:center; }
  .flight-settings input::-webkit-inner-spin-button,.rate input::-webkit-inner-spin-button {appearance:none;}
  .flight-settings :is(button,input):disabled { opacity:1; }
  #flight-play {
    position:absolute; left:86.7%; top:72.2%; width:11.2%; aspect-ratio:1; min-height:0; padding:0;
    border:.22cqw solid #e5e7ef; border-radius:50%;
    background:conic-gradient(from 240deg at 100% 50%,#25242c 0deg 60deg,transparent 60deg) 52% 38% / 34% 40% no-repeat,
      radial-gradient(ellipse at 45% 31%,#fafbfe 0%,#f8f9fc 65%,#eeeef2 85%,#d6d7e2);
    box-shadow:inset 0 0 0 .34cqw #dce0e8,inset 0 0 .32cqw .57cqw #e9e9ee;
  }
  #flight-play::before { content:"PLAY"; position:absolute; inset:63% 0 auto; color:#25242c; font:800 1.72cqw/1 "Segoe UI",sans-serif; text-align:center; }
  #flight-play:disabled { opacity:1; cursor:default; }
  .games { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 15px; }
  button, select, input { font: inherit; color: inherit; border: 1px solid #51485d; border-radius: 7px; background: #2d2636; }
  button { min-height: 41px; padding: 5px 11px; cursor: pointer; }
  button:hover:not(:disabled) { border-color: #93839f; }
  button[aria-pressed="true"] { background: #3b3444; color: var(--accent); border-color: #777768; font-weight: 700; }
  :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
  button:disabled, select:disabled, input:disabled { opacity: .6; cursor: default; }
  form, form div:not([hidden]) { display: grid; gap: 11px; }
  label { display: grid; gap: 5px; color: var(--muted); font-size: .875rem; }
  input, select { width: 100%; height: 43px; padding: 5px 9px; }
  .speed-setting { display: flex; align-items: center; gap: 8px; min-height: 33px; }
  .speed-setting input { width: 17px; height: 17px; margin: 0; accent-color: var(--accent); }
  [hidden] { display: none !important; }
  #play { min-height: 45px; background: var(--accent); color: #222811; border-color: var(--accent); font-weight: 800; }
  #collect { color: var(--accent); }
  #status { min-height: 2.8em; margin: 0; font-size: .9rem; color: var(--muted); }
  #reset { min-height: 30px; padding: 3px 0; margin-top: 9px; color: var(--muted); background: transparent; border: 0; font-size: .8rem; text-decoration: underline; text-underline-offset: 3px; }
  .games button { font-size: .875rem; }
  .stage { align-content: center; }
  .canvas-frame { width: 100%; display: grid; place-items: center; min-width: 0; }
  .play-area[data-current-game="dice"] .canvas-frame { display: none; }
  .play-area:is([data-current-game="dice"],[data-current-game="roulette"],[data-current-game="chicken"],[data-current-game="crash"]) { --line:#2a2d37; --muted:#afb2bf; border-color:#2a2d37; }
  .play-area:is([data-current-game="dice"],[data-current-game="roulette"],[data-current-game="chicken"],[data-current-game="crash"]) .controls { background:#1e2028; }
  .play-area:is([data-current-game="dice"],[data-current-game="roulette"],[data-current-game="chicken"],[data-current-game="crash"]) #play { color:#fff; background:#791dff; border-color:#791dff; }
  .play-area:is([data-current-game="dice"],[data-current-game="roulette"],[data-current-game="chicken"],[data-current-game="crash"]) :is(select,input:not([type="range"])) { background:#12141b; border-color:#353945; }
  .play-area:is([data-current-game="dice"],[data-current-game="chicken"],[data-current-game="crash"]) .stake { display:none; }
  form .stake-input:not([hidden]) { display:grid;grid-template-columns:1fr auto auto;gap:3px; }
  .stake-input button { min-height:0; background:#30323c; }
  .play-area[data-current-game="dice"] .stage { background:#121318; color:#f3f3f7; min-height:clamp(315px,37vw,510px); }
  .dice-board { width:min(100%,800px); min-width:0; padding:10px clamp(7px,2vw,24px); }
  .roll-history { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:5px; margin:0; padding:0;list-style:none;min-height:24px; }
  .roll-history li { padding:2px 8px;border-radius:4px;background:#2e303d;color:#e5e5ee;font-size:.8rem;font-variant-numeric:tabular-nums; }
  .roll-history li[data-win="true"] { background:#185637;color:#a6f9bf; }
  .dice-rail { position:relative;margin:72px 0 22px; padding:18px 13px 2px;border:5px solid #303342;border-bottom:0;border-radius:9px 9px 0 0; background:#131419;--cut:50%;--left:#f14054;--right:#45d68b; }
  .dice-rail input { appearance:none; display:block;width:100%;height:7px;padding:0;margin:4px 0 16px; border:0;border-radius:4px;background:linear-gradient(to right,var(--left) var(--cut),var(--right) var(--cut));cursor:pointer; }
  .dice-rail input::-webkit-slider-thumb { appearance:none;width:17px;height:25px;background:#8661ff;border:1px solid #a48cff;border-radius:5px; }
  .dice-rail input::-moz-range-thumb { width:15px;height:24px;background:#8661ff;border:1px solid #a48cff;border-radius:5px; }
  .roll-bubble { position:absolute;bottom:calc(100% + 10px);transform:translateX(-50%);display:grid;place-items:center; min-width:49px;height:46px;padding:3px;border:3px solid #46d28a;border-radius:6px;background:#191d23;color:white;box-shadow:4px 4px 0 #46d28a;font-weight:750;font-variant-numeric:tabular-nums; }
  .roll-bubble[data-win="false"] { border-color:#ed4958;box-shadow:4px 4px 0 #ed4958; }
  @keyframes roll-in { from { opacity:.1; margin-bottom:8px; } to { opacity:1; margin-bottom:0; } }
  .roll-bubble.rolled { animation:roll-in .16s both; }
  @media(prefers-reduced-motion:reduce) { .roll-bubble.rolled { animation:none; } }
  .scale-labels { display:flex;justify-content:space-between;color:#e5e5ed;background:#121318;border-top:5px solid #303342; margin:0 -18px -4px;padding:8px 16px 0;font-size:.8rem;font-weight:700; }
  .dice-metrics { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0; }
  .dice-metrics dd { display:flex; align-items:center;gap:3px;margin:5px 0 0; padding:5px 10px;border:1px solid #343742;border-radius:6px;background:#15161c;font-weight:650; }
  .dice-metrics label { font-size:.83rem; }
  .dice-metrics dd input { min-width:0;width:100%;height:31px;padding:0;appearance:textfield;background:transparent!important;border:0;font:inherit; }
  .dice-metrics input::-webkit-inner-spin-button { appearance:none; }
  #flip-direction { padding:0 4px; min-height:26px; border:0; background:transparent; font-size:1.2rem; }
  @media(max-width:480px){ .dice-metrics {gap:5px;} .dice-metrics dd {padding:3px 4px;font-size:.82rem;} .dice-metrics label {font-size:.72rem;} }
  .play-area[data-current-game="roulette"] .stage { background:#14151d; padding:20px clamp(8px,2.5vw,30px) 23px; gap:14px; }
  .play-area[data-current-game="roulette"] .canvas-frame { position:relative; width:clamp(145px,24vh,225px); aspect-ratio:1; margin:auto; }
  .play-area[data-current-game="roulette"] canvas { width:100%; max-width:none; background:transparent;display:block; }
  .roulette-felt { position:relative; width:min(100%,820px); margin:0 auto; }
  #inside-chips { position:absolute; inset:0; pointer-events:none; }
  #inside-chips span { position:absolute; transform:translate(-50%,-50%); display:grid;place-items:center; min-width:19px; height:19px; border-radius:50%; padding:0 2px; border:2px dashed #615534; background:#ffdf83; color:#1e382e; font:700 10px/1 "Segoe UI",sans-serif; }
  #zero-pockets [data-pocket="00"] { grid-row:1; }
  .roulette-grid { display:grid; grid-template-columns:.9fr minmax(0,12fr) 1fr; gap:2px; }
  #zero-pockets,#column-pockets,#number-pockets,#outside-pockets { display:grid; gap:2px; }
  #number-pockets { grid-template-columns:repeat(12,minmax(0,1fr)); grid-template-rows:repeat(3,1fr); }
  #number-pockets button { grid-column:var(--col); grid-row:var(--row); }
  .roulette-felt button { position:relative; min-height:36px; border:0; border-radius:3px; padding:3px 0; font-size:clamp(.72rem,1.2vw,1rem); font-weight:650; background:#292c36; color:#f5f3f8; font-variant-numeric:tabular-nums; }
  .roulette-felt [data-tone="red"] { background:#c43848; }
  .roulette-felt [data-tone="black"] { background:#252832; }
  .roulette-felt [data-tone="green"] { background:#298b4c; }
  .roulette-felt .bet-actions { justify-content:space-between;margin-bottom:4px; }
  .roulette-felt .bet-actions button { min-height:26px;background:transparent;color:#c8cbd3;font-size:.8rem; }
  .roulette-felt button.covered, .roulette-felt button:hover:not(:disabled) { box-shadow:inset 0 0 0 2px #dfca81; }
  .roulette-felt button:disabled { opacity:.65; }
  .roulette-felt button[data-chip]::after { content:attr(data-chip); position:absolute; right:1px; top:0; padding:0 3px; min-width:15px; border:1px dashed #2b4136; border-radius:25px; background:#ffdf83; color:#213c32; font:700 10px/14px "Segoe UI",sans-serif; }
  #outside-pockets { margin:2px 0 0; grid-template-columns:repeat(6,minmax(0,1fr)); }
  #outside-pockets button:nth-child(-n+3) { grid-column:span 2; }
  #chip-values,.bet-actions { display:flex; gap:6px; flex-wrap:wrap; }
  form #chip-values:not([hidden]) { display:flex; gap:9px; }
  #chip-values button { min-height:36px; min-width:36px; padding:0 5px;border-radius:50%;border:3px dashed #f5eafaab; background:#6e25a4;font-size:.72rem; }
  #chip-values button:nth-child(2){background:#21647b;} #chip-values button:nth-child(3){background:#168d80;}
  #chip-values button[aria-pressed="true"] { outline:2px solid white;outline-offset:2px;color:white; }
  #chip-list { list-style:none; padding:0; margin:0; max-height:110px; overflow:auto; font-size:.85rem; color:#e7ddcb; }
  #chip-list:empty { display:none; }
  @media (max-width: 480px) {
    .roulette-grid { grid-template-columns: minmax(0,1fr); }
    #zero-pockets { grid-template-columns:1fr 1fr; }
    #zero-pockets [data-pocket="00"] { grid-row:auto; }
    #number-pockets { grid-template-columns:repeat(3,minmax(0,1fr)); grid-template-rows:none; }
    #number-pockets button { grid-column:auto; grid-row:auto; }
    #column-pockets { grid-template-columns:repeat(3,1fr); direction:rtl; }
    .roulette-felt button { min-height:32px; }
  }
  @media (max-width: 710px) {
    .wrap { padding-inline: 15px; }
    .bar-row { min-height: 59px; gap: 13px; }
    main { padding-block: 18px 26px; }
    .play-area { grid-template-columns: minmax(0, 1fr); }
    .stage { grid-column: 1; padding: 9px; }
    .controls { grid-row: 2; border: 0; border-top: 1px solid var(--line); padding: 15px; }
    .result-panel { margin-top: 14px; padding-top: 10px; }
    #status { min-height: 0; }
    .games button { min-height: 38px; }
  }
  @font-face { font-family:"Barlow Condensed";src:url("type/BarlowCondensed-ExtraBold.ttf") format("truetype");font-weight:800;font-display:swap; }
:root { --line:#343943; --muted:#acb4c1; --accent:#b8a4ff; background:#111418;color:#f4f6fa; }
.bar { background:#1a1e24;border-color:#30353d; }
.wrap { max-width:1430px; padding-inline:clamp(16px,4.2vw,70px); }
.bar-row { min-height:60px;gap:9px; }
.bar .lobby-link { display:inline-flex;gap:9px;align-items:center;color:#f0eff5;font:800 25px/1 "Barlow Condensed",Impact,sans-serif;letter-spacing:-.035em;text-decoration:none; }
.bar .lobby-link::before { content:"";width:7px;height:7px;margin-right:4px;border-bottom:1.5px solid #adb2ba;border-left:1.5px solid #adb2ba;transform:rotate(45deg); }
.lobby-link i {width:23px;height:21px;transform:skew(-12deg);background:repeating-linear-gradient(90deg,#eac890 0 22%,transparent 22% 35%);clip-path:polygon(0 22%,48% 0,100% 0,100% 76%,54% 100%,0 100%);}
.balance-label { margin-left:auto;font-size:.76rem;color:#b1b6c1; }
.bar #balance { margin-left:0;padding:6px 10px;border:1px solid #3a3e47;border-radius:7px;background:#262b33;font-size:.86rem; }
.bar .lobby-link,.balance-label,.bar #balance {white-space:nowrap;}
@media(max-width:470px) {
  .balance-label {display:none;}
  .bar .lobby-link {font-size:21px;gap:5px;flex-shrink:0;}
  .bar #balance {font-size:clamp(11px,3vw,14px);padding:6px;}
  .wallet-menu summary {gap:4px;}
}
.wallet-menu { position:relative;margin-left:auto; }
.wallet-menu summary { display:flex;align-items:center;gap:10px;list-style:none;cursor:pointer;font-variant-numeric:tabular-nums; }
.wallet-menu summary::-webkit-details-marker {display:none}
.wallet-menu summary output {pointer-events:none;}
.wallet-menu summary::after {content:"";width:5px;height:5px;border:solid #c8ced6;border-width:0 1.5px 1.5px 0;transform:translateY(-2px) rotate(45deg);}
.wallet-menu #reset {position:absolute;top:calc(100% + 6px);right:0;z-index:12;white-space:nowrap;margin:0;padding:11px 16px;text-decoration:none;color:#e6e7e9;border:1px solid #434953;border-radius:7px;background:#262b33;box-shadow:0 9px 23px #07090c80;}
.screen-actions {display:flex;align-items:center;gap:6px;margin-left:auto}
.screen-actions button,.game-picker summary {box-sizing:border-box;min-height:36px;}
.screen-actions button {display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:6px 10px;background:transparent;color:#bfc5ce;border:1px solid transparent;border-radius:6px;font-size:.81rem;}
.screen-actions button:hover,.wallet-menu #reset:hover {background:#30353d;color:#fff;}
#open-guide i {display:grid;place-items:center;width:16px;height:16px;border:1.5px solid currentColor;border-radius:50%;font:bold 11px/1 Arial,sans-serif;}
#screen-size {width:36px;padding:0;}
#screen-size i {width:15px;height:15px;background:linear-gradient(currentColor,currentColor) left top,linear-gradient(currentColor,currentColor) right top,linear-gradient(currentColor,currentColor) left bottom,linear-gradient(currentColor,currentColor) right bottom,linear-gradient(currentColor,currentColor) left top,linear-gradient(currentColor,currentColor) right top,linear-gradient(currentColor,currentColor) left bottom,linear-gradient(currentColor,currentColor) right bottom;background-repeat:no-repeat;background-size:6px 1.6px,6px 1.6px,6px 1.6px,6px 1.6px,1.6px 6px,1.6px 6px,1.6px 6px,1.6px 6px;}
.bar :focus-visible,.screen-actions button:focus-visible,.game-picker summary:focus-visible {outline:2px solid #eac890;outline-offset:2px;}
.game-guide {margin:auto;max-width:min(420px,calc(100vw - 28px));border-radius:12px;border:1px solid #434954;background:#21252b;padding:22px;color:#f3f4f4;box-shadow:0 18px 64px #0008;}
.game-guide::backdrop {background:#090c10ba;}
.game-guide form {display:flex;align-items:center;justify-content:space-between;gap:18px;}
.game-guide h2 {margin:0;font-size:1.1rem;}
.game-guide p {margin:15px 0 1px;line-height:1.9;color:#d4d6dc;font-size:.93rem;}
.game-guide button {min-height:32px;width:32px;padding:0;border:0;background:#31373f;color:#eee;font-size:1.2rem;}
:root:fullscreen,:root.expanded-play {overflow:auto;background:#111418;}
:root:is(:fullscreen,.expanded-play) .bar {display:none;}
.expanded-demo {display:none;margin-inline-start:.55em;color:#bfc5ce;font-size:.75rem;font-weight:600;letter-spacing:normal;}
:root:is(:fullscreen,.expanded-play) .expanded-demo {display:inline-block;}
:root:is(:fullscreen,.expanded-play) main.wrap {max-width:1800px;padding-inline:clamp(8px,2vw,32px);}
main { padding-block:22px 32px; }
.game-heading { display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px; }
.heading { margin:0;font-size:clamp(1.4rem,2.3vw,2rem);line-height:1.25;letter-spacing:-.045em; }
.game-picker { position:relative; }
.game-picker summary { list-style:none;cursor:pointer;display:flex;align-items:center;gap:9px;font-size:.8rem;font-weight:600;color:#d4d7df;padding:7px 11px;background:#21252d;border:1px solid #3a3e47;border-radius:6px; }
.game-picker summary::-webkit-details-marker { display:none; }
.game-picker summary::after { content:"";width:6px;height:6px;border-bottom:1.4px solid;border-right:1.4px solid;transform:translateY(-2px) rotate(45deg); }
.game-picker .games { position:absolute;z-index:10;right:0;top:calc(100% + 6px);display:grid;grid-template-columns:1fr 1fr;gap:4px;width:265px;padding:7px;border:1px solid #444b58;border-radius:8px;background:#22262e;box-shadow:0 12px 30px #080a0d80; }
.game-picker .games button { min-height:38px;padding:7px;text-align:left;border:0;color:#e8eaf2;background:transparent;font-size:.83rem;border-radius:4px; }
.game-picker .games button:hover,.game-picker .games button[aria-pressed="true"] { background:#393644;color:#e7ddff; }
.play-area { border-radius:10px;border-color:#323740;background:#191c23; }
.candy-mode-triggers { position:absolute;pointer-events:none;inset:0; }
.candy-mode-triggers button { position:absolute;left:.7%;width:14.4%;height:13.2%;min-height:0;background:transparent;border:0;pointer-events:auto; }
.candy-mode-triggers button:first-child { top:29%; }
.candy-mode-triggers button:last-child { top:43.7%; }
.portrait-board .candy-mode-triggers button {width:35.5%;height:8.9744%;}
.portrait-board .candy-mode-triggers button:first-child {left:11.1667%;top:74.8718%;}
.portrait-board .candy-mode-triggers button:last-child {left:53.3333%;top:74.8718%;}
.candy-mode-triggers button:focus-visible { outline:3px solid white;outline-offset:1px; }
#candy-controls {position:absolute;inset:0;pointer-events:none;}
#candy-controls button {position:absolute;pointer-events:auto;padding:0;min-height:0;border:0;background:transparent;border-radius:50%;transform:translate(-50%,-50%);top:91.6667%;}
#candy-controls button:focus-visible {outline:3px solid white;outline-offset:1px;}
#candy-less,#candy-more {width:4.792%;height:7.667%;}
#candy-less {left:71.25%;} #candy-more {left:84.8958%;}
#candy-spin {left:78.125%;width:9.167%;height:14.667%;}
.portrait-board #candy-controls button {top:90.5128%;}
.portrait-board :is(#candy-less,#candy-more) {width:13%;height:10%;}
.portrait-board #candy-less {left:32%;} .portrait-board #candy-more {left:68%;}
.portrait-board #candy-spin {left:50%;width:16.3333%;height:12.5641%;}
.play-area[data-current-game="candy"] .controls {display:flex;flex-direction:row-reverse;align-items:center;justify-content:space-between;gap:8px;padding:5px 12px;}
.play-area[data-current-game="candy"]:not(.candy-round-status) .result-panel {position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;}
.play-area[data-current-game="candy"] .controls :is(#candy-set>label:has(#candy-mode),#play,#skip) {display:none;}
.play-area[data-current-game="candy"] #candy-set>label {display:flex;align-items:center;gap:6px;white-space:nowrap;font-size:.76rem;}
#candy-unit {width:9ch;height:32px;padding:3px 5px;font-size:.85rem;}
.play-area[data-current-game="candy"] .result-panel {border:0;margin:0;padding:0;}
.play-area[data-current-game="candy"] .speed-setting {white-space:nowrap;font-size:.76rem;min-height:28px;}
.play-area .controls { background:#1c2027;border-color:#32363e; }
.play-area .result-panel { border-color:#343941; }
.controls #chicken-set .chicken-quote {display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 0;color:#bdc0cf;font-size:.8rem;}
.chicken-quote output {color:#f2f2f7;font-weight:650;font-variant-numeric:tabular-nums;}
@media(max-width:710px) {
  .play-area[data-current-game="skyward"] .canvas-frame {margin-bottom:58px;}
  #flight-hud .flight-settings {top:100%;left:0;right:0;width:100%;height:58px;padding:6px 12px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#20242b;}
  #flight-hud .flight-settings label {order:-1;display:flex;align-items:center;gap:8px;width:auto;height:44px;background:transparent;}
  #flight-hud .flight-settings label::before {font:600 12px/1.4 "Yu Gothic UI",sans-serif;white-space:nowrap;}
  #flight-hud .flight-settings input {width:9ch;height:44px;padding:0 7px;border:1px solid #434954;background:#14171d;border-radius:6px;font:650 16px/1 "Segoe UI",sans-serif;}
  #flight-hud .flight-settings button {width:85px;height:44px;padding:0;box-shadow:none;border:1px solid #414954;border-radius:6px;background:#303640;color:#f4f4f6;font:650 14px/1 "Yu Gothic UI",sans-serif;}
  #flight-hud .flight-settings button::before {content:none;}
  #flight-hud .flight-wallet {width:max-content;min-width:94px;max-width:85%;padding-left:17px;padding-right:6px;white-space:nowrap;font-size:11px;}
  #flight-play {left:auto;top:auto;bottom:3%;right:2%;width:max(44px,11.2%);}
}
.play-area:is([data-current-game="mines"],[data-current-game="highlow"]) {
  --originals-field:#17151e;
  --accent:#b99bff;
  grid-template-columns:clamp(235px,24%,310px) minmax(0,1fr);
  background:var(--originals-field);border-color:#38343f;
}
.play-area:is([data-current-game="mines"],[data-current-game="highlow"]) :is(.canvas-frame,.stake) {display:none;}
.play-area:is([data-current-game="mines"],[data-current-game="highlow"]) .stage {
  align-content:center;min-height:clamp(390px,36vw,510px);padding:clamp(12px,2.5vw,34px);
  background:var(--originals-field);
}
.play-area:is([data-current-game="mines"],[data-current-game="highlow"]) .controls {
  padding:clamp(14px,1.6vw,24px);background:#221f2a;border-color:#393340;
}
.play-area:is([data-current-game="mines"],[data-current-game="highlow"]) #actions {gap:16px;}
.play-area:is([data-current-game="mines"],[data-current-game="highlow"]) #common-stake {gap:6px;}
.play-area:is([data-current-game="mines"],[data-current-game="highlow"]) .stake-input {
  display:flex;align-items:center;gap:2px;padding:3px;background:#14131a;border:1px solid #49434f;border-radius:7px;
}
.play-area:is([data-current-game="mines"],[data-current-game="highlow"]) .stake-input:focus-within {border-color:#b99bff;}
.play-area:is([data-current-game="mines"],[data-current-game="highlow"]) #base-stake {
  min-width:0;height:36px;background:transparent;border:0;color:#faf9fc;font-weight:650;font-variant-numeric:tabular-nums;
}
.play-area:is([data-current-game="mines"],[data-current-game="highlow"]) .stake-input button {
  width:35px;height:32px;flex:none;padding:0;border:0;border-radius:4px;background:#322e3c;color:#eeeaf3;font-weight:650;
}
.play-area:is([data-current-game="mines"],[data-current-game="highlow"]) #play {
  min-height:46px;border:0;background:#7839dc;color:white;
}
.play-area:is([data-current-game="mines"],[data-current-game="highlow"]) #play:hover:not(:disabled) {background:#884be9;}
.play-area:is([data-current-game="mines"],[data-current-game="highlow"]).round-in-progress #play {display:none;}
@media(max-width:710px) {
  .play-area:is([data-current-game="mines"],[data-current-game="highlow"]) {grid-template-columns:minmax(0,1fr);}
  .play-area:is([data-current-game="mines"],[data-current-game="highlow"]) .stage {min-height:0;padding:16px 12px;}
  .play-area:is([data-current-game="mines"],[data-current-game="highlow"]) #actions {gap:10px;}
}
#owo-mines,#owo-highlow {width:100%;min-width:0;}
.play-area:is([data-current-game="mines"],[data-current-game="highlow"]) .result-panel:has(#status:empty) {display:none;}
.controls button:not(#play):not(#collect):not(#reset):not([aria-pressed="true"]) { border-color:#3b404b; }
.controls #reset { color:#a8afba;font-size:.74rem; }
.play-area[data-current-game="dice"] { grid-template-columns:minmax(220px,24%) minmax(0,1fr);background:#131419; }
.play-area[data-current-game="dice"] .controls { background:#15171c;padding:clamp(14px,1.6vw,23px); }
.play-area[data-current-game="dice"] .stage { background:#131419;min-height:clamp(370px,39vw,540px);align-content:stretch;padding:0; }
.play-area[data-current-game="dice"] .dice-board { display:grid;grid-template-rows:auto minmax(120px,1fr) auto;align-self:stretch;width:100%;max-width:none;padding:17px clamp(16px,3.5vw,53px) 27px; }
.play-area[data-current-game="dice"] .roll-history { justify-content:flex-end;gap:5px;min-height:25px; }
.play-area[data-current-game="dice"] .roll-history li { align-self:start;background:#333741;color:#f0f1f5;font-weight:700; }
.play-area[data-current-game="dice"] .roll-history li[data-win="true"] { background:#47d48e;color:#10271b; }
.play-area[data-current-game="dice"] .dice-rail { align-self:center;margin:33px 0 26px;padding:0 12px;border:4px solid #2b2f3a;border-radius:8px;background:#111319; }
.dice-track {position:relative;}
.play-area[data-current-game="dice"] .dice-rail input {margin:0;width:100%;height:33px;background:transparent;}
.dice-rail input::-webkit-slider-runnable-track {height:7px;background:linear-gradient(to right,var(--left) var(--mark),var(--right) var(--mark));border-radius:4px;}
.dice-rail input::-webkit-slider-thumb {margin-top:-8.5px;width:16px;height:24px;}
.dice-rail input::-moz-range-track {height:7px;background:linear-gradient(to right,var(--left) var(--mark),var(--right) var(--mark));border-radius:4px;}
.dice-rail input::-moz-range-thumb {box-sizing:border-box;width:16px;height:24px;}
#dice-boundary {position:absolute;bottom:calc(100% + 7px);transform:translateX(-50%);display:none;padding:4px 9px;background:#e5defc;border-radius:5px;color:#231e34;font-size:.81rem;font-weight:700;font-variant-numeric:tabular-nums;pointer-events:none;}
.dice-track:is(.dragging,:has(input:focus-visible)) #dice-boundary {display:block;}
.dice-track:is(.dragging,:has(input:focus-visible)) .roll-bubble {visibility:hidden;}
.play-area[data-current-game="dice"] .scale-labels { position:absolute;top:100%;left:0;right:0;margin:0;padding:9px 0 0;border:0;background:transparent; }
.play-area[data-current-game="dice"] .roll-bubble { font-size:1rem; }
.play-area[data-current-game="dice"] .dice-metrics { gap:12px; }
.play-area[data-current-game="dice"] .dice-metrics dt { margin-bottom:4px; }
.play-area[data-current-game="dice"] .dice-metrics label { color:#c9cbd4;font-size:.82rem;font-weight:650; }
.play-area[data-current-game="dice"] .dice-metrics dd { padding:4px 10px;margin:0;background:#22252d;border:1px solid #363b44;border-radius:6px;color:#b6bbca; }
.play-area[data-current-game="dice"] .dice-metrics dd input { height:34px;color:#fff;font-weight:650;font-variant-numeric:tabular-nums; }
form #dice-modes:not([hidden]) { padding:3px;display:flex;gap:2px;border-radius:6px;background:#242730; }
#dice-modes button { flex:1;white-space:nowrap;min-height:35px;padding:4px 2px;border:0;border-radius:4px;background:transparent;color:#b8bdc6;font-size:.78rem; }
#dice-modes button[aria-pressed="true"] { background:#393741;color:#fff; }
#dice-modes button:hover:not(:disabled) { color:white; }
.play-area[data-current-game="dice"] #actions { gap:16px; }
form #dice-set:not([hidden]) { gap:5px; }
#dice-set label,#common-stake>label { color:#ccd0d8;font-size:.82rem;font-weight:600; }
#dice-profit { display:block;border:1px solid #353a42;background:#13151a;border-radius:6px;padding:8px 11px;color:#e2e9e6;font-variant-numeric:tabular-nums; }
#dice-rolls-field,#dice-stops { margin-top:8px; }
#dice-stop { color:#e0d8ff;background:#292533; }
.play-area[data-current-game="dice"] #play { background:#795dea;border-color:#866bf1; }
.play-area[data-current-game="dice"] #play:hover:not(:disabled) { background:#8a6ff3; }
.play-area[data-current-game="dice"] .stake-input { grid-template-columns:minmax(0,1fr) auto auto; }
.play-area[data-current-game="dice"] .result-panel { margin-top:17px; }
@media(max-width:710px){
  .wrap{padding-inline:12px}.bar-row{min-height:51px}.game-heading{margin-bottom:12px}main{padding-top:16px}
  .play-area[data-current-game="dice"] {display:flex;flex-direction:column}
  .play-area[data-current-game="dice"] .stage {min-height:265px}
  .play-area[data-current-game="dice"] .controls {padding:13px;border:0;border-top:1px solid #343943}
  .play-area[data-current-game="dice"] .dice-board{padding:12px 12px 14px}
  .play-area[data-current-game="dice"] .dice-metrics{gap:6px}
  .play-area[data-current-game="dice"] .dice-metrics label{font-size:.69rem}
  .play-area[data-current-game="dice"] .dice-metrics dd{padding-inline:4px;font-size:.75rem}
  .play-area[data-current-game="dice"] .dice-metrics dd input{height:30px}
  .play-area[data-current-game="dice"] #actions{gap:10px}
  .play-area[data-current-game="dice"] #status{min-height:0}
  .play-area[data-current-game="dice"] .roll-history{min-height:21px}
}
@media(max-width:480px){
  .game-heading {gap:4px}.heading {font-size:1.28rem;}
  .screen-actions {gap:1px}.screen-actions button {min-width:34px;padding-inline:4px;}
  #open-guide span {position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;}
  .game-picker summary {font-size:.73rem;padding:6px 9px;}
  .wallet-menu summary {gap:6px}.balance-label {font-size:.72rem;}
  .bar .lobby-link {font-size:23px;gap:6px;}
  .play-area[data-current-game="dice"] .dice-rail input {height:38px;}
}

  .roulette-readout { display: none; }
#play-area[data-current-game="roulette"] {
  display: flex;
  flex-direction: column;
  background: #14161b;
  border-color: #33363e;
}
#play-area[data-current-game="roulette"] .stage {
  display: grid;
  grid-template-columns: minmax(220px, .85fr) minmax(260px, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  padding: 20px clamp(12px, 4vw, 60px) 25px;
  gap: 14px clamp(20px, 5vw, 86px);
  background: #14161b;
}
#play-area[data-current-game="roulette"] .canvas-frame {
  grid-area: 1 / 1;
  justify-self: end;
  width: clamp(255px, 25vw, 340px);
  max-width: 100%;
  margin: 0;
  border-radius: 50%;
}
#play-area[data-current-game="roulette"] canvas { border-radius: 50%; }
#play-area[data-current-game="roulette"] .controls { padding: 0 18px; background: #171a20; border: 0; }
#play-area[data-current-game="roulette"] .controls :is(.stake, #actions) { display: none; }
#play-area[data-current-game="roulette"] .result-panel {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; padding: 9px 0; border: 0;
}
#play-area[data-current-game="roulette"] #status { min-height: 0; }
#play-area[data-current-game="roulette"] #reset { margin: 0; }
#play-area[data-current-game="roulette"] #roulette-outcome { display: none; }
#play-area[data-current-game="roulette"] .roulette-readout {
  grid-area: 1 / 2; display: grid; align-content: center; justify-self: start;
  width: min(100%, 330px); min-width: 0; gap: 16px; color: #e8eaf0;
}
.roulette-total { display: grid; gap: 2px; }
.roulette-total > span, .roulette-history > span { color: #b8beca; font-size: .87rem; font-weight: 600; }
.roulette-total strong { font: 750 clamp(2rem, 3vw, 2.8rem)/1.15 "Segoe UI",sans-serif; font-variant-numeric: tabular-nums; }
.roulette-total small { font-size: .98rem; color: #bfc4cf; }
.roulette-readout #chip-list {
  display: flex; flex-wrap: wrap; gap: 5px; margin: 0; padding: 0; max-height: 72px;
  color: #e7ebf0; list-style: none; overflow: auto;
}
.roulette-readout #chip-list:empty { display: none; }
.roulette-readout #chip-list li { display: flex; gap: 7px; align-items: baseline; padding: 2px 7px; background: #2a2e36; border-radius: 3px; font-size: .84rem; }
.roulette-readout #chip-list strong { color: #ebcf91; font-weight: 700; }
.roulette-settlement { display: flex; align-items: center; gap: 12px; }
.roulette-settlement > div { display: grid; font-size: .83rem; color: #bdc2cc; }
.roulette-settlement strong { color: #f7f7fa; font-size: 1.27rem; }
.roulette-settlement[data-won="true"] strong { color: #8ce6af; }
.roulette-winning-pocket { display: grid; place-items: center; min-width: 49px; min-height: 49px; padding-inline: 5px; border-radius: 5px; color: white; font: 750 1.6rem/1 "Segoe UI",sans-serif; }
.roulette-history ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 5px 0 0; padding: 0; }
.roulette-history li { min-width: 27px; text-align: center; padding: 3px 5px; border-radius: 3px; color: white; font: 700 .84rem/1.35 "Segoe UI",sans-serif; }
.roulette-readout [data-tone="red"] { background: #ad334d; }
.roulette-readout [data-tone="black"] { background: #343943; }
.roulette-readout [data-tone="green"] { background: #22794e; }
#roulette-felt {
  --upright: 0; --table-gap: 3px;
  grid-area: 2 / 1 / auto / -1; width: min(100%, 1120px); margin: 0 auto;
}
.roulette-toolbar {
  display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 12px 15px;
  border: 1px solid #343840; border-radius: 9px; background: #1c2027;
}
#roulette-set:not([hidden]) {
  flex: 1; display: grid; grid-template-areas: "mode label" "mode chips";
  grid-template-columns: minmax(160px, 265px) minmax(130px, 1fr); gap: 0 20px;
}
#roulette-set > label { grid-area: mode; display: grid; align-content: end; gap: 3px; font-size: .81rem; color: #d3d7df; }
#roulette-set #inside-kind { width: 100%; min-width: 0; height: 43px; padding: 0 8px; color: #fff; border: 1px solid #4c515d; border-radius: 5px; background: #20242c; font-size: .95rem; }
#roulette-set .chip-label { grid-area: label; color: #d3d7df; font-size: .81rem; }
#roulette-set #chip-values { grid-area: chips; position: static; display: flex; flex-wrap:wrap; align-items: center; gap: 9px; }
#roulette-set #chip-unit {width:9.5ch;min-width:9ch;height:35px;padding:2px 5px;font-variant-numeric:tabular-nums;appearance:textfield;}
#roulette-set #chip-unit::-webkit-inner-spin-button { appearance:none; }
#roulette-set #chip-values button {
  --chip-face: #7150ad; display: grid; place-items: center; width: 45px; min-width: 45px; height: 45px; min-height: 45px;
  padding: 0; border: 3px dashed #f5eee8; border-radius: 50%; background: var(--chip-face); color: white;
  box-shadow: inset 0 0 0 2px var(--chip-face), inset 0 0 0 3px #ffffff56; font-size: .79rem;
}
#roulette-set #chip-values button:nth-child(2) { --chip-face: #21658d; }
#roulette-set #chip-values button:nth-child(3) { --chip-face: #137655; }
#roulette-set #chip-values button[aria-pressed="true"] { outline: 2px solid #f5d983; outline-offset: 2px; }
.roulette-toolbar .roulette-spin { flex: 0 1 130px; width: 100%; height: 47px; border-radius: 7px; border: 1px solid #a16cff; background: #7034db; color: white; font-weight: 750; font-size: 1.05rem; }
.roulette-toolbar .roulette-spin:disabled { opacity: 1; color: #d2c9df; background: #4c4164; border-color: #625471; }
#roulette-felt .bet-actions { display: flex; align-items: center; justify-content: end; gap: 6px; margin: 12px 0 6px; }
#roulette-felt .bet-actions strong { margin-right: auto; color: #e9eaf0; font-size: 1rem; font-weight: 700; }
#roulette-felt .bet-actions button { min-height: 32px; padding: 3px 9px; border: 1px solid #3d424d; color: #d4d9e3; font-size: .85rem; background: #20242a; }
#roulette-felt .bet-actions button:disabled { color: #9ba3b0; background: #1a1d22; }
#roulette-felt .roulette-grid, #roulette-felt :is(#zero-pockets,#number-pockets,#column-pockets,#outside-pockets) { gap: var(--table-gap); }
#roulette-felt .roulette-grid { grid-template-columns: minmax(34px,.95fr) minmax(0,12fr) minmax(36px,1fr); }
#roulette-felt :is(.roulette-grid,#outside-pockets) button {
  display: grid; place-items: center; min-height: 48px; padding: 1px 2px;
  border: 1px solid #444954; border-radius: 4px; background: #292d35; color: #fff;
  font: 700 clamp(.99rem,1.45vw,1.28rem)/1.1 "Segoe UI","Yu Gothic UI",sans-serif; font-variant-numeric: tabular-nums;
}
#roulette-felt :is(.roulette-grid,#outside-pockets) [data-tone="red"] { background: #ad334e; border-color: #cd5369; }
#roulette-felt :is(.roulette-grid,#outside-pockets) [data-tone="green"] { background: #227a52; border-color: #369d70; }
#roulette-felt #column-pockets button, #roulette-felt #outside-pockets button { color: #eef0f5; font-size: .97rem; }
#roulette-felt #outside-pockets { width: calc(100% * 12 / 13.95 - 1px); margin: var(--table-gap) 0 0 calc(100% * .95 / 13.95 + 1px); }
#roulette-felt button:disabled { opacity: 1; cursor: default; }
#roulette-felt :is(.roulette-grid,#outside-pockets) button[data-unavailable] {
  color: #9b9fa8; background: #20242a; border: 1px dashed #424750;
}
#roulette-felt .roulette-grid button.last-pocket { outline: 2px solid #f2d37e; outline-offset: -3px; }
#roulette-felt :is(.roulette-grid,#outside-pockets) button:is(.covered,:hover):not(:disabled) { box-shadow: inset 0 0 0 2px #e5d9ad; }
#roulette-felt #inside-chips span, #roulette-felt button[data-chip]::after {
  display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 3px; color: white;
  border: 2px dashed #f9efe2; border-radius: 50%; background: #7250a1; box-shadow: 0 1px 3px #13121ace; font: 750 11px/1 "Segoe UI",sans-serif;
}
#roulette-felt #inside-chips span[data-size="5"], #roulette-felt button[data-chip-size="5"]::after { background: #21658d; }
#roulette-felt #inside-chips span[data-size="10"], #roulette-felt button[data-chip-size="10"]::after { background: #137655; }
#roulette-felt button[data-chip]::after { top: 1px; right: 1px; }
@media (min-width: 701px) {
  #play-area[data-current-game="roulette"] .stage {
    grid-template-columns: minmax(180px,.84fr) minmax(272px,1.16fr);
    gap: 6px clamp(18px,3.5vw,60px);
    padding-block: clamp(10px,1.8vh,20px) 14px;
  }
  #play-area[data-current-game="roulette"] .canvas-frame { width: clamp(175px,min(25vw,36vh),340px); }
  #play-area[data-current-game="roulette"] .roulette-readout {
    width: min(100%,510px); grid-template-columns: 1fr auto; gap: 10px 14px;
  }
  .roulette-total { grid-area: 1 / 1; }
  .roulette-settlement { grid-area: 1 / 2; }
  .roulette-history { grid-area: 2 / 1 / auto / -1; display: flex; gap: 10px; align-items: center; }
  .roulette-history ol { margin: 0; }
  .roulette-readout #chip-list { grid-area: 3 / 1 / auto / -1; max-height: 52px; }
  .roulette-readout .roulette-toolbar {
    grid-area: 4 / 1 / auto / -1; display: grid; grid-template-columns: minmax(0,1fr) auto;
    padding: 12px; gap: clamp(8px,1.4vw,20px);
  }
  .roulette-readout #roulette-set:not([hidden]) {
    grid-template-areas: "mode" "chips"; grid-template-columns: minmax(0,1fr); gap: 8px;
  }
  .roulette-readout #roulette-set > label {
    grid-template-columns: auto minmax(0,1fr); align-items:center; gap: 8px; white-space: nowrap;
  }
  .roulette-readout #roulette-set #inside-kind { height:36px; }
  .roulette-readout #roulette-set .chip-label { display:none; }
  .roulette-readout .roulette-spin { min-width: 75px; padding-inline: 12px; }
  #roulette-felt .bet-actions { margin-top: 0; }
}
@media (min-width: 701px) and (max-width: 950px) {
  .roulette-readout .roulette-toolbar { padding: 8px; gap: 8px; }
  .roulette-readout #chip-values { gap: 6px; }
  .roulette-readout #chip-values button { width: 37px; height: 37px; min-width: 37px; min-height: 37px; }
  .roulette-readout .roulette-spin { min-width: 58px; padding-inline: 6px; }
}
@media (max-width: 700px) {
  #play-area[data-current-game="roulette"] .stage { grid-template-columns: minmax(112px,1.5fr) minmax(107px,1fr); gap: 12px 12px; padding: 12px 9px 16px; }
  #play-area[data-current-game="roulette"] .canvas-frame { width: clamp(186px,54vw,250px); }
  #play-area[data-current-game="roulette"] .roulette-readout { gap: 8px; grid-template-columns:minmax(0,1fr); }
  .roulette-total strong { font-size:clamp(1.1rem,5.2vw,1.8rem); }
  .roulette-winning-pocket { min-height: 34px; min-width: 34px; font-size: 1.2rem; }
  .roulette-settlement { display:grid; grid-template-columns:auto 1fr; gap:3px 6px; }
  .roulette-settlement > div { display:contents; }
  .roulette-settlement > div > span { color:#bdc2cc; font-size:.8rem; }
  .roulette-settlement strong { grid-column:1 / -1; font-size:clamp(.9rem,3.7vw,1.15rem); white-space:nowrap; }
  .roulette-history li { min-width: 23px; font-size: .75rem; }
  .roulette-toolbar { gap: 8px; padding: 8px; align-items: end; }
  #roulette-set:not([hidden]) { grid-template-columns: minmax(0,1fr); grid-template-areas: "mode" "chips"; row-gap: 7px; }
  #roulette-set > label { font-size: .76rem; }
  #roulette-set #inside-kind { height: 35px; font-size: .88rem; }
  #roulette-set .chip-label { display: none; }
  #roulette-set #chip-values { gap: 9px; }
  #roulette-set #chip-values button { width: 39px; height: 39px; min-width: 39px; min-height: 39px; }
  #roulette-felt .roulette-spin { flex-basis: 78px; height: 42px; }
}
@media (max-width: 700px) and (orientation: portrait) {
  #roulette-felt { --upright: 1; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)) minmax(41px,.67fr) minmax(48px,.75fr); gap: var(--table-gap); }
  #roulette-felt .roulette-toolbar, #roulette-felt .bet-actions { grid-column: 1/-1; }
  #roulette-felt .roulette-toolbar { grid-row: 1; }
  #roulette-felt .bet-actions { grid-row: 2; margin: 6px 0 2px; }
  #roulette-felt .roulette-grid, #roulette-felt #number-pockets, #roulette-felt #outside-pockets { display: contents; }
  #roulette-felt #zero-pockets { grid-area: 3/1/4/4; display: grid; grid-template-columns: 1fr 1fr; }
  #roulette-felt #zero-pockets [data-pocket="00"] { grid-row: auto; }
  #roulette-felt #number-pockets button { grid-column: calc(4 - var(--row)); grid-row: calc(var(--col) + 3); }
  #roulette-felt #column-pockets { grid-area: 16/1/17/4; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); direction: rtl; }
  #roulette-felt #outside-pockets button { grid-column: 4; grid-row: span 4; }
  #roulette-felt #outside-pockets [data-bet="dozen1"] { grid-row: 4/span 4; }
  #roulette-felt #outside-pockets [data-bet="dozen2"] { grid-row: 8/span 4; }
  #roulette-felt #outside-pockets [data-bet="dozen3"] { grid-row: 12/span 4; }
  #roulette-felt #outside-pockets button:nth-child(n+4) { grid-column: 5; }
  #roulette-felt #outside-pockets [data-bet="low"] { grid-row: 4/span 2; }
  #roulette-felt #outside-pockets [data-bet="even"] { grid-row: 6/span 2; }
  #roulette-felt #outside-pockets [data-bet="red"] { grid-row: 8/span 2; }
  #roulette-felt #outside-pockets [data-bet="black"] { grid-row: 10/span 2; }
  #roulette-felt #outside-pockets [data-bet="odd"] { grid-row: 12/span 2; }
  #roulette-felt #outside-pockets [data-bet="high"] { grid-row: 14/span 2; }
  #roulette-felt :is(.roulette-grid,#outside-pockets) button { min-height: 41px; }
  #roulette-felt #outside-pockets button { font-size: .83rem; }
}

