﻿/* Casino: same bay + fonts as the rest of the site, but flat panels instead of old-Windows windows. */
body.casino {
  --panel: rgba(18, 11, 58, .9);
  --panel-2: rgba(42, 26, 110, .92);
  --line: rgba(255, 255, 255, .14);
  --text: #f4efff;
  --muted: #b9addf;
  color: var(--text);
  display: flex; flex-direction: column;
  background-attachment: scroll;
}

/* flat buttons (override the bevelled site buttons) */
.casino .btn { box-shadow: none; border-radius: 10px; background: #efe9ff; color: var(--ink); padding: 11px 16px; font-weight: 700;
               transition: transform .1s, background-color .15s; }
.casino .btn:hover { background: #fff; transform: translateY(-1px); }
.casino .btn:active { transform: translateY(1px); padding: 11px 16px; box-shadow: none; }
.casino .btn.hot { background: var(--pink); color: #fff; }
.casino .btn.hot:hover { background: #ff79b3; }
.casino .btn.gold { background: var(--gold); color: var(--ink); }
.casino .btn.gold:hover { background: #ffe57a; }
.casino .btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--line); }
.casino .btn.ghost:hover { background: rgba(255,255,255,.08); }
.casino .btn.small { padding: 7px 10px; font-size: 14px; border-radius: 8px; }
.casino .btn:disabled { opacity: .55; cursor: default; transform: none; }
.casino input { border-radius: 10px; box-shadow: none; background: #f7f3ff; }

/* ---- name tags (shop cosmetics). .nt wraps a player's name anywhere it's shown ---- */
.nt { font-weight: 700; text-decoration: none; color: inherit; white-space: nowrap; }
a.nt:hover { text-decoration: underline; }
.nt-bubblegum { color: #ff8cc6; }
.nt-mint { color: #7dffb9; }
.nt-lilac { color: #c9a8ff; }
.nt-sunset, .nt-ocean, .nt-gold, .nt-rainbow, .nt-vapor { -webkit-background-clip: text; background-clip: text; color: transparent; }
.nt-sunset { background-image: linear-gradient(90deg, #ffd84d, #ff5fa2 60%, #8b6cff); }
.nt-ocean { background-image: linear-gradient(90deg, #3ee6ff, #4d7dff 60%, #4dff8f); }
.nt-arcade { font-family: var(--display); font-weight: 400; color: #ffd84d; text-shadow: 2px 2px 0 #ff5fa2; letter-spacing: .02em; }
.nt-slime { color: #7dff6a; text-shadow: 0 2px 0 #2a8a2a, 0 4px 0 rgba(42, 138, 42, .45); }
.nt-neon { color: #fff; text-shadow: 0 0 4px #ff5fa2, 0 0 10px #ff5fa2, 0 0 18px #ff2a8a; }
.nt-gold { background-image: linear-gradient(100deg, #b8791d 0%, #ffe57a 30%, #fff6c8 45%, #e0a400 60%, #ffd84d 100%); }
.nt-rainbow { background-image: linear-gradient(90deg, #ff4d6d, #ffd84d, #4dff8f, #3ee6ff, #8b6cff, #ff4d6d); background-size: 200% 100%;
              animation: nt-slide 3s linear infinite; }
@keyframes nt-slide { to { background-position: -200% 0; } }
.nt-glitch { color: #fff; text-shadow: 2px 0 #ff2a6d, -2px 0 #2affea; animation: nt-glitch 1.8s steps(1) infinite; }
@keyframes nt-glitch { 0%, 88% { text-shadow: 2px 0 #ff2a6d, -2px 0 #2affea; } 90% { text-shadow: -3px 1px #ff2a6d, 3px -1px #2affea; } 94% { text-shadow: 3px -1px #ff2a6d, -3px 1px #2affea; } }
.nt-vapor { font-family: var(--display); font-weight: 400; letter-spacing: .08em; background-image: linear-gradient(180deg, #fff 0%, #c9f4ff 45%, #ff7ad1 55%, #8b6cff 100%);
            filter: drop-shadow(1px 1px 0 #2c1a8f); }
.nt-vapor::after { content: " ✦"; color: #ffe57a; -webkit-text-fill-color: #ffe57a; }
@media (prefers-reduced-motion: reduce) { .nt-rainbow, .nt-glitch { animation: none; } }
.mini-badges { display: inline-flex; gap: 3px; vertical-align: -3px; margin-left: 5px; }
.mini-badges img { width: 16px; height: 16px; }

/* ---- top bar ---- */
.ctop { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap;
        padding: 12px clamp(12px, 3vw, 28px); background: rgba(12, 7, 40, .82); border-bottom: 2px solid rgba(255, 95, 162, .5); }
.ctop .left, .ctop .right { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.crumb { color: var(--muted); text-decoration: none; font-weight: 500; }
.crumb:hover { color: #fff; }
.chips { display: inline-flex; align-items: center; gap: 8px; background: #10241a; color: #7dff9b; border-radius: 10px;
         padding: 7px 12px; font: 700 18px/1 ui-monospace, Consolas, monospace; }
.chips::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--gold);
                 box-shadow: inset 0 0 0 3px #e0a400, inset 0 0 0 5px var(--gold); }
#streak { color: var(--gold); font-size: 13px; font-weight: 500; }
.friends-btn { position: relative; }
#friends-badge { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--gold);
                 color: var(--ink); font: 700 12px/20px var(--body); text-align: center; padding: 0 5px; }
.me-name { color: var(--muted); font-size: 14px; }

.guest-note { display: none; margin: 18px auto 16px; max-width: 560px; text-align: center; background: var(--panel); border-radius: 14px; padding: 18px; }
.guest .guest-note, [data-auth="0"] .guest-note { display: block; }
.guest .needs-login, [data-auth="0"] .needs-login { display: none !important; }
.offline-note { display: none; position: fixed; left: 50%; top: 70px; transform: translateX(-50%); z-index: 40; background: var(--gold);
                color: var(--ink); padding: 8px 14px; border-radius: 10px; font-weight: 500; }
.offline .offline-note { display: block; }

/* ---- friends drawer ---- */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 100%); z-index: 30; overflow-y: auto;
          background: #150c45; border-left: 2px solid var(--pink); padding: 16px; box-shadow: -10px 0 0 rgba(10, 5, 30, .35); }
.drawer h2 { display: flex; justify-content: space-between; align-items: center; margin: 0 0 12px; font: 400 24px var(--display); color: #fff; }
.drawer h3 { margin: 18px 0 8px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.drawer .hint { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.drawer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.drawer li { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--panel-2); border-radius: 10px; padding: 8px 10px; }
.drawer li.empty { display: block; background: none; color: var(--muted); font-size: 14px; padding: 4px 0; }
.drawer .who { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 9px; align-items: center; }
.drawer .who > .av, .drawer .who > .av-wrap { grid-row: span 2; }
/* round profile pictures next to names */
.av { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; display: inline-grid; place-items: center;
      background: var(--panel-2); border: 2px solid rgba(255, 255, 255, .7); }
.av.none { background: linear-gradient(135deg, #ff5fb4, #7a5cff); color: #fff; font: 700 15px var(--body); }
.av-wrap { position: relative; width: 34px; height: 34px; }
.av-wrap .dot { position: absolute; right: -1px; bottom: -1px; border: 2px solid var(--panel); width: 12px; height: 12px; }
.drawer .who small { grid-column: 2; color: var(--muted); font-size: 12px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #5a4f86; }
.dot.on { background: #4dff8f; }
.acts { display: flex; gap: 6px; flex: none; }
.tag { font-size: 12px; color: #4dff8f; }

/* ---- toasts ---- */
#toasts { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 50; display: grid; gap: 8px; width: min(440px, calc(100% - 24px)); }
.toast { display: flex; align-items: center; gap: 10px; background: #fff; color: var(--ink); border-radius: 12px; padding: 10px 12px;
         box-shadow: 4px 4px 0 var(--pink); font-weight: 500; }
.toast span { flex: 1; }
.toast-x { border: 0; background: none; font-size: 20px; cursor: pointer; color: var(--ink); }

/* ---- lobby ---- */
.lobby { flex: 1; width: min(1180px, 100%); margin: 0 auto; padding: clamp(16px, 3vh, 28px) clamp(12px, 3vw, 28px) 40px; }
.lobby-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.lobby-head h1 { margin: 0; font: 400 clamp(46px, 7vw, 96px)/.9 var(--display); color: var(--gold);
                 text-shadow: 4px 4px 0 var(--pink), 8px 8px 0 var(--title-a); }
.lobby-head p { margin: 8px 0 0; color: #fff; font-weight: 500; text-shadow: 2px 2px 0 var(--title-a); }
.house { display: flex; align-items: center; gap: 10px; }
.house img { width: clamp(60px, 7vw, 92px); height: auto; }
.house img:nth-child(2) { margin-top: -18px; }

.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 14px; }
.games .game .art { aspect-ratio: 16 / 10; }
.games .game .art img.gicon { width: 38%; }
.games .game h2 { font-size: 19px; }
.games .game p { font-size: 13px; }
.gsec { margin: 18px 0 10px; font: 400 22px var(--display); color: #fff; text-shadow: 2px 2px 0 var(--title-a); }
.game { display: flex; flex-direction: column; background: var(--panel); border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--text);
        transition: transform .15s; }
a.game:hover { transform: translateY(-4px); }
a.game:hover .art { filter: saturate(1.2); }
.game .art { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; }
.game .art img { width: 100%; height: 100%; object-fit: cover; }
.game .art .emo { font-size: 64px; line-height: 1; }
.game .art img.gicon { width: 46%; height: auto; object-fit: contain; filter: drop-shadow(4px 4px 0 rgba(12, 7, 40, .35)); transition: transform .2s; }
a.game:hover .art img.gicon { transform: rotate(-5deg) scale(1.06); }
.lobby-links { display: flex; gap: 8px; flex-wrap: wrap; }
.lobby-links .btn img { vertical-align: -4px; }
.game .info { padding: 12px 14px 14px; display: grid; gap: 4px; }
.game h2 { margin: 0; font: 400 22px/1.05 var(--display); }
.game p { margin: 0; font-size: 14px; color: var(--muted); }
.game .status { position: absolute; top: 10px; left: 10px; font: 700 12px/1 var(--body); letter-spacing: .06em; text-transform: uppercase;
                padding: 6px 8px; border-radius: 6px; background: rgba(12, 7, 40, .85); color: var(--muted); }
.game.live .status { background: #4dff8f; color: var(--ink); }
.game.live { box-shadow: 0 0 0 2px #4dff8f; }
.game .art img.face { object-fit: contain; padding: 12px 12px 0; align-self: end; }
.bg-felt { background: #1d6b45; } .bg-pink { background: #ff5fa2; } .bg-cyan { background: #19b8e8; } .bg-gold { background: #ffcc33; }
.bg-violet { background: #7a3cc4; } .bg-red { background: #d8344d; } .bg-navy { background: #2c1a8f; } .bg-teal { background: #14a38a; }
.bg-orange { background: #ff8a3d; } .bg-lilac { background: #c4a2ff; }

.lobby-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.mystrip { display: flex; gap: 8px; flex-wrap: wrap; min-height: 50px; min-width: min(100%, 340px); } /* filled after load; keep its space */
.mystrip span { background: var(--panel); border-radius: 10px; padding: 7px 12px; display: grid; }
.mystrip small { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mystrip b { font: 700 16px ui-monospace, Consolas, monospace; color: #fff; }
.mystrip b.up { color: #7dff9b; } .mystrip b.down { color: #ff8aa8; }
.ticker { display: flex; align-items: center; gap: 12px; background: rgba(12, 7, 40, .9); border-radius: 12px; padding: 8px 12px;
          margin-bottom: 14px; overflow: hidden; border: 2px solid var(--gold); }
.ticker > b { font: 400 14px var(--display); color: var(--gold); flex: none; }
.ticker-items { display: flex; gap: 22px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; font-size: 14px; }
.ticker-items b { color: #fff; }
.rules { margin-top: 22px; background: var(--panel); border-radius: 16px; padding: 16px 18px; display: grid; gap: 6px; font-size: 15px; color: var(--muted); }
.rules b { color: #fff; }

@media (max-width: 640px) {
  .games { grid-template-columns: 1fr 1fr; gap: 10px; }
  .game h2 { font-size: 18px; }
  .game p { display: none; }
  .game .art .emo { font-size: 46px; }
  .house { display: none; }
  .ctop { padding: 10px 12px; }
  .me-name { display: none; }
}

.session { font-size: 13px; font-weight: 700; }
.session.up { color: #4dff8f; }
.session.down { color: #ff8aa8; }


/* ---- online now (lobby) ---- */
.online-now { margin: 0 0 16px; background: var(--panel); border-radius: 14px; padding: 10px 14px; }
.online-now h3 { margin: 0 0 8px; font: 400 16px var(--display); color: #fff; display: flex; align-items: center; gap: 8px; }
.online-now h3 .dot { display: inline-block; }
.online-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; min-height: 42px; }
.online-list li { display: flex; align-items: center; gap: 7px; background: var(--panel-2); border-radius: 22px; padding: 4px 12px 4px 4px; min-width: 0; max-width: 100%; }
.online-list li > span { display: grid; min-width: 0; line-height: 1.15; }
.online-list li .nt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.online-list small { color: var(--muted); font-size: 11px; }
.online-list .empty { background: none; padding: 0; color: var(--muted); }

/* ---- case-only name tags ---- */
.nt-frost { color: #dff8ff; text-shadow: 0 0 6px #6fd8ff, 1px 1px 0 #2b7bbf; }
.nt-ember, .nt-holo, .nt-stardust { -webkit-background-clip: text; background-clip: text; color: transparent; }
.nt-ember { background-image: linear-gradient(0deg, #d8202a, #ff7a1a 35%, #ffe27a 55%, #ff7a1a 75%, #d8202a); background-size: 100% 300%;
            animation: nt-ember 1.6s linear infinite; }
@keyframes nt-ember { to { background-position: 0 -300%; } }
.nt-holo { background-image: linear-gradient(115deg, #d9d9e8, #7ff3ff 20%, #ff9bf0 40%, #e9ff9b 60%, #9bb4ff 80%, #d9d9e8); background-size: 300% 100%;
           animation: nt-slide 4s linear infinite; }
/* sparkly glitter: white specks drift over a sliding blue/purple/pink gradient, plus a twinkling star */
.nt-stardust { position: relative;
  background-image: radial-gradient(circle at 25% 30%, #fff 0 .9px, transparent 1.6px), radial-gradient(circle at 70% 65%, #fff 0 .8px, transparent 1.5px),
                    radial-gradient(circle at 45% 85%, #e6f0ff 0 .7px, transparent 1.3px),
                    linear-gradient(90deg, #4d8bff, #9b5cff 25%, #ff5fd2 50%, #9b5cff 75%, #4d8bff);
  background-size: 13px 11px, 17px 15px, 10px 14px, 200% 100%;
  animation: nt-stardust 3s linear infinite; filter: drop-shadow(0 0 3px rgba(155, 92, 255, .75)); }
@keyframes nt-stardust { to { background-position: 13px -22px, -17px 15px, 20px 28px, -200% 0; } }
.nt-stardust::after { content: "✦"; position: absolute; top: -.55em; right: -.6em; font-size: .7em; color: #fff; -webkit-text-fill-color: #fff;
  text-shadow: 0 0 6px #ff5fd2, 0 0 10px #4d8bff; animation: nt-twinkle 1.4s ease-in-out infinite; }
@keyframes nt-twinkle { 0%, 100% { opacity: .2; transform: scale(.6) rotate(0); } 50% { opacity: 1; transform: scale(1.1) rotate(45deg); } }

/* ---- profile frames (ring drawn around the picture) ---- */
.avf { position: relative; display: inline-grid; flex: none; border-radius: 50%; }
.avf > .av { border-color: transparent; }
.avf::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; pointer-events: none; border: 3px solid transparent; }
.fr-pink::after { border-color: #ff5fb4; box-shadow: 0 0 0 1px #fff inset; }
.fr-sky::after { border: 3px dashed #3ee6ff; }
.fr-gold::after { border: 4px double #ffd84d; box-shadow: 0 0 6px rgba(255, 216, 77, .6); }
.fr-neon::after { border-color: #ff5fa2; box-shadow: 0 0 6px #ff5fa2, 0 0 12px #ff2a8a, inset 0 0 6px #ff5fa2; animation: fr-pulse 1.8s ease-in-out infinite; }
@keyframes fr-pulse { 50% { box-shadow: 0 0 2px #ff5fa2, 0 0 5px #ff2a8a, inset 0 0 2px #ff5fa2; } }
.fr-rainbow::after, .fr-stardust::after { border: 0; padding: 3px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: fr-spin 3s linear infinite; }
.fr-rainbow::after { background: conic-gradient(#ff4d6d, #ffd84d, #4dff8f, #3ee6ff, #8b6cff, #ff4d6d); }
.fr-stardust::after { background: conic-gradient(#4d8bff, #9b5cff, #ff5fd2, #fff, #4d8bff, #9b5cff, #ff5fd2, #4d8bff);
  filter: drop-shadow(0 0 4px #9b5cff); }
.fr-stardust::before { content: "✦"; position: absolute; z-index: 1; top: -6px; right: -4px; font-size: 12px; line-height: 1; color: #fff;
  text-shadow: 0 0 6px #ff5fd2; animation: nt-twinkle 1.4s ease-in-out infinite; pointer-events: none; }
@keyframes fr-spin { to { transform: rotate(1turn); } }
.pf-frame.fr-rainbow::after, .pf-frame.fr-stardust::after { padding: 6px; }
.pf-frame.fr-stardust::before { font-size: 22px; top: -4px; right: 2px; }
@media (prefers-reduced-motion: reduce) { .nt-ember, .nt-holo, .nt-stardust, .nt-stardust::after, .avf::after, .avf::before { animation: none; } }
.prog { position: relative; display: block; height: 14px; margin-top: 5px; border-radius: 7px; background: rgba(0, 0, 0, .35); overflow: hidden; }
.prog i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--pink), var(--gold)); border-radius: 7px; }
.prog em { position: relative; display: block; font: 700 10px/14px var(--body); font-style: normal; text-align: center; color: #fff; text-shadow: 0 1px 2px #000; }

/* ticker shows from the start (with a placeholder) so the games below don't jump when wins load */
.ticker { min-height: 38px; }
.ticker-items .wait { color: var(--muted); }
/* Logged in, the bar's right side (chips, daily, streak, friends, name) fills in after loading and is
   ~650px wide. Below 1100px it would wrap onto a second line late and shove the page down, so give it
   its own line from the first frame. */
@media (max-width: 1100px) {
  [data-auth="1"] .ctop .right { flex-basis: 100%; min-height: 32px; }
}
@media (max-width: 760px) { [data-auth="1"] .ctop .right { min-height: 70px; } }   /* two lines once filled */
@media (max-width: 520px) { [data-auth="1"] .ctop .right { min-height: 108px; } }  /* three lines on phones */

/* ---- refinement pass ---- */
/* A soft tint over the bay: same picture, but text on top of it stays readable. Painted once with the background. */
body.casino { background-image: linear-gradient(rgba(10, 6, 36, .44), rgba(10, 6, 36, .44)), url("/shared/img/bay-wide.png?v=f2c9a5cc52"); }
html.night body.casino { background-image: linear-gradient(rgba(5, 3, 22, .44), rgba(5, 3, 22, .44)), url("/shared/img/bay-night-wide.png?v=5bf7f8c50b"); }
@media (max-aspect-ratio: 4/5) {
  body.casino { background-image: linear-gradient(rgba(10, 6, 36, .44), rgba(10, 6, 36, .44)), url("/shared/img/bay-tall.png?v=9253cda582"); }
  html.night body.casino { background-image: linear-gradient(rgba(5, 3, 22, .44), rgba(5, 3, 22, .44)), url("/shared/img/bay-night-tall.png?v=be00a4046b"); }
}

.hero { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: end; gap: 12px 20px; margin-bottom: 16px; }
.hero h1 { margin: 0; font: 400 clamp(46px, 6.4vw, 84px)/.9 var(--display); color: var(--gold); text-shadow: 4px 4px 0 var(--pink), 8px 8px 0 var(--title-a); }
.hero-title p { margin: 10px 0 0; color: #fff; font-weight: 500; }
.hero-side { display: grid; justify-items: end; gap: 10px; }
.hero .house img { width: 68px; height: auto; }
.hero .lobby-links { flex-wrap: nowrap; }
.hero .lobby-links .btn { padding: 9px 12px; white-space: nowrap; }
.hero .mystrip { min-height: 50px; min-width: 0; justify-content: flex-end; }
.hero .lobby-links { justify-content: flex-end; }

.lob-jp { display: grid; grid-template-columns: auto 1.5fr 1.2fr 1fr 1fr; align-items: center; gap: 8px 18px; padding: 10px 16px; margin-bottom: 10px; text-decoration: none;
          color: var(--text); background: var(--panel); border-radius: 14px; box-shadow: inset 0 0 0 2px rgba(255, 216, 77, .55); transition: box-shadow .15s; }
.lob-jp:hover { box-shadow: inset 0 0 0 2px var(--gold); }
.lj-label { display: inline-flex; align-items: center; gap: 8px; font: 400 15px var(--display); color: var(--gold); white-space: nowrap; }
.lj { display: grid; min-width: 0; }
.lj small { font: 700 11px var(--body); letter-spacing: .1em; color: var(--c); }
.lj b { font: 700 clamp(15px, 1.9vw, 22px) ui-monospace, Consolas, monospace; color: #fff; }
.lj.grand { --c: #ffd84d; } .lj.major { --c: #ff5fa2; } .lj.minor { --c: #3ee6ff; } .lj.mini { --c: #4dff8f; }

.pulse { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 10px; margin-bottom: 16px; }
.guest .pulse, [data-auth="0"] .pulse { grid-template-columns: 1fr; }
.pulse .online-now { display: flex; align-items: center; gap: 12px; margin: 0; padding: 7px 12px; min-width: 0; }
.pulse .online-now h3 { margin: 0; font-size: 14px; white-space: nowrap; }
.pulse .online-list { flex-wrap: nowrap; overflow: hidden; min-height: 36px; align-items: center; }
.pulse .online-list li { flex: none; }
.pulse .ticker { margin: 0; border: 0; background: var(--panel); border-radius: 14px; min-height: 50px; }

.feat { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.fcard { position: relative; overflow: hidden; display: grid; align-content: end; min-height: 196px; padding: 16px 18px; border-radius: 18px; text-decoration: none; color: #fff; transition: transform .15s; }
.fcard:hover { transform: translateY(-3px); }
.fcard h2 { margin: 0; font: 400 clamp(22px, 2.2vw, 28px)/1 var(--display); text-shadow: 3px 3px 0 rgba(12, 7, 40, .55); position: relative; }
.fcard p { margin: 6px 0 0; font-size: 14px; font-weight: 500; line-height: 1.3; position: relative; }
.f-tag { position: absolute; top: 12px; left: 14px; font: 700 11px/1 var(--body); letter-spacing: .07em; text-transform: uppercase; padding: 6px 8px; border-radius: 6px; background: rgba(12, 7, 40, .82); color: #fff; }
.f-art { position: absolute; right: 12px; top: 10px; width: 92px; transition: transform .2s; }
.f-art img { display: block; width: 100%; height: auto; filter: drop-shadow(5px 5px 0 rgba(12, 7, 40, .35)); }
.fcard:hover .f-art { transform: rotate(-5deg) scale(1.05); }
.f-slots { background: #ff5fa2; } .f-bj { background: #1d6b45; } .f-rl { background: #d8344d; } .f-poker { background: #2c1a8f; } .f-crash { background: #0e7ea3; }

.favs { margin-top: 8px; }
.favs[hidden] { display: none; }
.fav-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.fav { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 10px 14px; background: var(--panel); border-radius: 12px; color: #fff; text-decoration: none; min-width: 0; }
.fav:hover { background: var(--panel-2); }
.fav b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.fav small { flex: none; font: 700 12px ui-monospace, Consolas, monospace; }
.fav small.up { color: #7dff9b; } .fav small.down { color: #ff8aa8; }

.tabs-row { display: flex; align-items: center; justify-content: space-between; gap: 8px 14px; flex-wrap: wrap; margin: 16px 0 10px; }
.tabs-row .gsec { margin: 0; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs button { border: 0; border-radius: 9px; padding: 8px 12px; background: var(--panel); color: var(--muted); font: 700 14px var(--body); cursor: pointer; }
.tabs button:hover { color: #fff; }
.tabs button[aria-pressed="true"] { background: var(--gold); color: var(--ink); }

.lobby .games { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.games .game .art { aspect-ratio: 16 / 8; }
.games .game .art img.gicon { width: 31%; height: auto; }
.game[hidden] { display: none; }
.game.live { box-shadow: none; }
.game.live .status { background: rgba(12, 7, 40, .82); color: #fff; font-size: 11px; }
.game .info { padding: 10px 14px 13px; }

details.rules { display: block; margin-top: 18px; padding: 12px 18px; }
details.rules summary { cursor: pointer; font: 400 16px var(--display); color: #fff; }
details.rules p { margin: 10px 0 0; }

@media (max-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1fr) auto; }
  .hero-side { grid-column: 1 / -1; justify-items: start; }
  .hero .lobby-links { flex-wrap: wrap; }
  .hero .mystrip, .hero .lobby-links { justify-content: flex-start; }
  .lobby .games { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fav-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .pulse { grid-template-columns: minmax(0, 1fr); }
  .feat { grid-template-columns: 1fr 1fr; }
  .f-slots { grid-column: 1 / -1; }
  .fcard { min-height: 132px; padding: 12px 14px; }
  .fcard h2 { font-size: 21px; }
  .fcard p { display: none; }
  .f-slots p { display: block; }
  .f-art { width: 66px; right: 10px; top: 8px; }
  .f-slots .f-art { width: 92px; }
  .lob-jp { grid-template-columns: 1fr 1fr; padding: 10px 12px; }
  .lj-label { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .lobby .games { grid-template-columns: 1fr 1fr; }
  .hero { display: block; }
  .hero-side { margin-top: 12px; justify-items: stretch; }
  .game.live .status, .f-bj .f-tag, .f-rl .f-tag { display: none; }
  .games .game .art img.gicon { width: 38%; }
  .tabs { gap: 4px; }
  .tabs button { padding: 7px 8px; font-size: 13px; }
  .fav { flex-direction: column; gap: 1px; padding: 8px 12px; }
  .fav b { max-width: 100%; }
  .hero .mystrip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
  .hero .mystrip span { padding: 5px 7px; min-width: 0; }
  .hero .mystrip small { font-size: 9px; letter-spacing: .03em; white-space: nowrap; }
  .hero .mystrip b { font-size: 11px; overflow: hidden; text-overflow: ellipsis; }
  .hero .lobby-links { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .hero .lobby-links .btn { text-align: center; padding: 9px 8px; font-size: 15px; }
}
@media (max-width: 520px) {
  #streak, .session { display: none; }
  [data-auth="1"] .ctop .right { min-height: 70px; }
  .chips { font-size: 16px; padding: 6px 10px; }
}

/* ---- site-wide extras ---- */
.pop-host { position: relative; }
.top-sound { min-width: 34px; }
.pop { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); z-index: 35; width: 230px; display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: #150c45; box-shadow: 0 0 0 2px var(--pink); }
.pop-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--text); }
.pop-row input[type=range] { width: 100px; }
.drawer.left { right: auto; left: 0; border-left: 0; border-right: 2px solid var(--pink); box-shadow: 10px 0 0 rgba(10, 5, 30, .35); }
.game-list a { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 500; min-width: 0; flex: 1; }
.game-list a:hover { color: var(--gold); }
.pin { border: 0; background: none; color: var(--muted); font-size: 19px; line-height: 1; cursor: pointer; padding: 2px 4px; }
.pin.on { color: var(--gold); }
.lounge-dlg { border: 0; border-radius: 16px; padding: 18px; width: min(480px, calc(100% - 24px)); background: #160c38; color: var(--text); }
.lounge-dlg::backdrop { background: rgba(5, 3, 20, .72); }
.lounge-dlg h2 { margin: 0 0 8px; font: 400 22px var(--display); color: var(--gold); }
.lounge-dlg textarea { width: 100%; font: 400 16px var(--body); padding: 10px; border: 0; border-radius: 10px; background: #f7f3ff; color: var(--ink); resize: vertical; box-sizing: border-box; }
.row-end { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.up-tag { display: inline-block; font: 700 11px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; padding: 4px 7px; border-radius: 6px; background: var(--gold); color: var(--ink); }
#fw-box { position: fixed; left: 12px; bottom: 12px; z-index: 28; display: grid; gap: 4px; pointer-events: none; }
.fw { max-width: 260px; padding: 4px 9px; border-radius: 8px; background: rgba(12, 7, 40, .82); color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tier { margin-left: 6px; font: 700 11px var(--body); text-decoration: none; padding: 2px 6px; border-radius: 5px; background: rgba(255, 255, 255, .1); color: var(--tc, #fff); }
.t-bronze { --tc: #e0a070; } .t-silver { --tc: #d6dcec; } .t-gold { --tc: #ffd84d; } .t-platinum { --tc: #9ff0e4; } .t-diamond { --tc: #8fd0ff; }
.credits { margin: 14px 0 0; text-align: center; font-size: 12px; color: var(--muted); }
.credits a { color: inherit; }
#page-title a { color: inherit; text-decoration: none; }
@media (max-width: 520px) { .me-name { display: none; } }
.card-pin { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border: 0; border-radius: 8px; background: rgba(12, 7, 40, .6); color: rgba(255, 255, 255, .55); font-size: 16px; line-height: 1; cursor: pointer; }
.card-pin:hover { color: #fff; }
.card-pin.on { color: var(--gold); }

/* ---- new frames: painted once; only Slot Reels and Hot or Cold move, and only by rotating or fading ---- */
.fr-sun::after { border: 0; padding: 4px; background: conic-gradient(#ffd84d, #ff7a3d, #ff5fa2, #ff7a3d, #ffd84d);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.fr-palms::after { border: 3px solid #1fbf8f; }
.fr-palms::before { content: ""; position: absolute; z-index: 1; right: -7px; bottom: -3px; width: 46%; height: 62%; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 32'%3E%3Cpath d='M13 12c-1 7-1 13-3 20h4c1-7 1-13 1-20z' fill='%23a5612f'/%3E%3Cpath d='M14 12C10 6 5 6 1 10c5-1 9 0 13 2zm0 0c1-6 6-9 10-7-5 0-8 3-10 7zm0 0c4-3 8-2 10 2-3-2-7-3-10-2zM14 12C11 8 7 2 12 0c-1 4 0 8 2 12z' fill='%231fbf8f'/%3E%3C/svg%3E") center / contain no-repeat; }
.fr-reels::after { border: 0; padding: 4px; background: repeating-conic-gradient(#d8344d 0 22.5deg, #fff 22.5deg 45deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: fr-spin 8s linear infinite; }
.fr-neonsign::after { border: 2px solid #ff5fa2; box-shadow: 0 0 0 2px #12082e, 0 0 0 4px #3ee6ff; }
.fr-chipstack::after { border: 5px dashed #ffd84d; box-shadow: 0 0 0 2px #b8791d; }
.fr-flames::after { border: 0; padding: 4px; background: conic-gradient(#ffd84d, #ff7a1a, #d8202a, #ff7a1a, #ffd84d, #ff7a1a, #d8202a, #ffd84d);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: fr-spin 4s linear infinite; }
.fr-rain::after { border: 3px dashed #6fb6ff; box-shadow: 0 0 0 1px #2b5fa8; }
.fr-jackpot::after { border: 5px double #ffd84d; box-shadow: 0 0 0 2px #d8344d; }
.fr-jackpot::before { content: "★"; position: absolute; z-index: 1; top: -8px; left: 50%; margin-left: -7px; font-size: 14px; line-height: 1; color: #ffd84d; text-shadow: 0 1px 0 #7a4b00; pointer-events: none; }
.fr-highroller::after { border: 4px solid #12082e; box-shadow: 0 0 0 2px #ffd84d; }
.fr-busted::after { border: 3px dashed #8d8d9c; }
.fr-clubgold::after { border: 4px solid #ffd84d; box-shadow: inset 0 0 0 1px #b8791d; }
.fr-clubplat::after { border: 4px solid #9ff0e4; box-shadow: inset 0 0 0 1px #3a8f84; }
.fr-clubdiamond::after { border: 4px solid #8fd0ff; box-shadow: 0 0 0 2px #fff, inset 0 0 0 1px #3f7fb8; }
@media (prefers-reduced-motion: reduce) { .fr-reels::after, .fr-flames::after { animation: none; } }

/* ---- chip designs ---- */
.chips::before, .chip-face { background: var(--cf, var(--gold)); box-shadow: inset 0 0 0 3px var(--ce, #e0a400), inset 0 0 0 5px var(--cf, var(--gold)); }
[data-chip="ruby"] { --cf: #ff6b81; --ce: #b3122f; } [data-chip="emerald"] { --cf: #5be6a1; --ce: #0e8a54; } [data-chip="sapphire"] { --cf: #6fb6ff; --ce: #1f4fb0; }
[data-chip="onyx"] { --cf: #3a3550; --ce: #ffd84d; } [data-chip="neon"] { --cf: #12082e; --ce: #ff5fa2; } [data-chip="galaxy"] { --cf: #8b6cff; --ce: #3ee6ff; }
.chip-face { display: block; width: 58px; height: 58px; border-radius: 50%; box-shadow: inset 0 0 0 9px var(--ce, #e0a400), inset 0 0 0 14px var(--cf, var(--gold)); }
body[data-chip]:not([data-chip="classic"]) .pchip { box-shadow: inset 0 0 0 3px var(--ce); }

/* full-screen bonus card */
.fx-stage { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(5, 3, 20, .8); }
.fx-card { width: min(460px, 100%); padding: 26px 22px; border-radius: 20px; text-align: center; color: #fff; background: #160c38; box-shadow: inset 0 0 0 4px var(--sc), 0 0 0 4px #0c0728; animation: fx-card .32s ease-out; }
@keyframes fx-card { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.fx-card small { display: block; font: 700 12px var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--sc); }
.fx-card h2 { margin: 8px 0; font: 400 clamp(30px, 7vw, 46px)/1 var(--display); color: var(--sc); }
.fx-card p { margin: 8px 0 0; font-size: 16px; }
.fx-total { display: block; margin: 10px 0; font: 700 clamp(34px, 8vw, 54px)/1 ui-monospace, Consolas, monospace; color: #fff; }
.fx-go { margin-top: 16px; min-width: 150px; padding: 12px 22px; border: 0; border-radius: 12px; background: var(--sc); color: #12082e; font: 700 17px var(--body); cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .fx-card { animation: none; } }
.fr-form::after { border: 0; padding: 4px; background: conic-gradient(#ff7a1a 0 50%, #6fb6ff 50% 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }

/* update notes: one dot per change, joined by a dotted line */
.up-points { list-style: none; margin: 12px 0 0; padding: 0 0 0 6px; display: grid; gap: 0; }
.up-points li { position: relative; padding: 0 0 12px 22px; line-height: 1.4; color: var(--text); font-size: 15px; }
.up-points li::before { content: ""; position: absolute; left: 0; top: .42em; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(255, 216, 77, .22); }
.up-points li::after { content: ""; position: absolute; left: 4px; top: calc(.42em + 14px); bottom: -2px; border-left: 2px dotted rgba(255, 255, 255, .34); }
.up-points li:last-child { padding-bottom: 0; }
.up-points li:last-child::after { display: none; }
.up-tag.tag-fixed { background: #3ee6ff; }
.up-tag.tag-odds { background: var(--pink); color: #fff; }
@media (max-width: 1100px) { .feat { grid-template-columns: 1fr 1fr; } .f-slots { grid-column: 1 / -1; } }
