/* Small additions on top of the original compiled Tailwind CSS. */
[hidden] { display: none !important; }
@media (max-width: 767px) { [data-desktop-only] { display: none !important; } }

/* The slot props used to drift with framer-motion; `translate` leaves their inline transform alone. */
img[alt*="decoration" i] { animation: pr-float 7s ease-in-out infinite; }
img[alt*="decoration" i]:nth-of-type(2n) { animation-duration: 9s; animation-delay: -3s; }
@keyframes pr-float { 50% { translate: 0 -14px; } }
@media (prefers-reduced-motion: reduce) { img[alt*="decoration" i] { animation: none; } }

/* The original's headline sits on top of "LEADERBOARD" on phones (-mt-10 under a 36px line). */
@media (max-width: 767px) { h1.-mt-10 { margin-top: -0.25rem; } }

/* --- header (site/header.html, injected into every page by server.js) --- */
.pw-header { position: fixed; inset: 0 0 auto; z-index: 50; background: rgba(22, 19, 27, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid #2c2538; font-family: Onest, 'Onest Fallback', system-ui, sans-serif; }
.pw-bar { max-width: 1240px; height: 66px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 28px; }

.pw-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.pw-brand img { height: 46px; width: auto; transition: transform .2s; }
.pw-brand:hover img { transform: rotate(-5deg) scale(1.06); }
.pw-brand span { font: 400 19px/1 'Russo One', 'Russo One Fallback', sans-serif; color: #fff; letter-spacing: .02em; white-space: nowrap; }
.pw-brand b { color: #b98fff; font-weight: 400; }

.pw-nav { display: flex; align-items: center; gap: 2px; margin: 0 auto; }
.pw-nav > a, .pw-drop > button { position: relative; display: flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 8px;
  color: #a99cc0; font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; transition: color .15s, background .15s; }
.pw-nav > a:hover, .pw-drop > button:hover, .pw-drop > button[aria-expanded="true"] { color: #fff; background: rgba(183, 139, 255, .09); }
.pw-nav .is-active { color: #fff; }
.pw-nav .is-active::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: -16px; height: 2px; border-radius: 2px;
  background: #b78bff; box-shadow: 0 0 12px #b78bff; }

.pw-drop { position: relative; }
.pw-drop svg { transition: transform .2s; }
.pw-drop > button[aria-expanded="true"] svg { transform: rotate(180deg); }
.pw-menu { position: absolute; top: calc(100% + 12px); left: 50%; translate: -50% 0; min-width: 260px; padding: 6px; background: #1d1825;
  border: 1px solid #352c44; border-radius: 12px; box-shadow: 0 18px 44px rgba(0, 0, 0, .55); animation: pw-pop .14s ease-out; }
.pw-menu a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; color: #fff; font-weight: 700; font-size: 14px; }
.pw-menu a:hover { background: #2a2336; }
.pw-menu img { width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0; }
.pw-menu small { display: block; margin-top: 2px; color: #85779c; font-weight: 500; font-size: 12px; }
@keyframes pw-pop { from { opacity: 0; transform: translateY(-4px); } }

.pw-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.pw-icon img { width: 36px; height: 36px; border-radius: 9px; transition: transform .15s; }
.pw-icon:hover img { transform: translateY(-2px); }
.pw-cta { display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 18px; border-radius: 8px; background: #b78bff;
  color: #1d1530; font-weight: 800; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
  box-shadow: inset 1.5px 1.5px 0 #ffffff55, 0 3px 0 #5f4788; transition: background .15s, transform .1s; }
.pw-cta:hover { background: #c6a3ff; }
.pw-cta:active { transform: translateY(2px); box-shadow: inset 1.5px 1.5px 0 #ffffff55, 0 1px 0 #5f4788; }
.pw-burger { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 8px; color: #fff; }
.pw-burger:hover { background: rgba(255, 255, 255, .07); }

.pw-mobile { display: grid; gap: 4px; padding: 12px 16px 18px; border-top: 1px solid #2c2538; background: #16131b; }
.pw-mobile a { padding: 13px 14px; border-radius: 10px; color: #d7cbe8; font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.pw-mobile a.is-active { background: #2a2336; color: #fff; box-shadow: inset 3px 0 0 #b78bff; }
.pw-mobile .pw-cta { height: 46px; margin-top: 8px; color: #1d1530; }

:where(.pw-header) a:focus-visible, :where(.pw-header) button:focus-visible { outline: 2px solid #b78bff; outline-offset: 2px; }
@media (max-width: 980px) { .pw-nav { display: none; } .pw-burger { display: inline-flex; } .pw-actions { margin-left: auto; } }
@media (max-width: 480px) { .pw-bar { padding: 0 14px; gap: 12px; } .pw-brand span { display: none; } .pw-cta { padding: 0 14px; } }

/* --- Gamba / Chat switcher (site/lb-tabs.html). Same buttons as CODE / LEADERBOARD RULES below it:
   active = the blue code button, the other = the grey rules button. --- */
.pw-tabs { display: inline-flex; gap: 10px; }
.pw-tabs a { display: flex; align-items: center; justify-content: center; width: 168px; height: 40px; color: #fff; background: #544b60;
  font: 400 15px/1 "Russo One", "Russo One Fallback", sans-serif; letter-spacing: .04em;
  box-shadow: inset 1.54px 1.54px 0 #ffffff40, 0 3.08px 0 #312c38; transition: background .15s; }
.pw-tabs a:hover { background: #625770; }
.pw-tabs a:active { transform: translateY(2px); box-shadow: inset 1.54px 1.54px 0 #ffffff40, 0 1px 0 #312c38; }
.pw-tabs a.is-active { background: #88a3ff; color: #313c62; box-shadow: inset 1.54px 1.54px 0 #ffffff40, 0 3.08px 0 #5267ae; }
@media (max-width: 480px) { .pw-tabs a { width: 140px; } }

/* masked wager names: the middle of the name, blurred like the big casino boards */
.pw-blur { display: inline-block; filter: blur(.24em); opacity: .85; user-select: none; pointer-events: none; }

/* --- LIVE badge (header) --- */
.pw-live { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 6px; background: #e8264a; color: #fff;
  font: 400 13px/1 'Russo One', 'Russo One Fallback', sans-serif; letter-spacing: .08em; box-shadow: inset 1.5px 1.5px 0 #ffffff40, 0 3px 0 #8f1830; }
.pw-live-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pw-blink 1.4s ease-in-out infinite; }
@keyframes pw-blink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .pw-live-dot { animation: none; } }

/* --- home: the stream while live --- */
.pw-live-embed { max-width: 980px; margin: 0 auto 64px; padding: 0 16px; }
.pw-live-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: #fff; font: 400 18px/1.2 'Russo One', 'Russo One Fallback', sans-serif; letter-spacing: .04em; }
.pw-live-head .pw-live-dot { color: #e8264a; width: 10px; height: 10px; }
.pw-live-title { color: #85779c; font: 600 14px/1.2 Onest, 'Onest Fallback', sans-serif; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pw-live-frame { aspect-ratio: 16 / 9; border: 1px solid #2d2639; border-radius: 12px; overflow: hidden; background: #0e0c11; }
.pw-live-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* --- home: recent winners --- */
.pw-winners { max-width: 1024px; margin: 24px auto 90px; padding: 0 16px; }
.pw-winners-title { margin-bottom: 22px; text-align: center; color: #fff; font: 400 34px/1 'Russo One', 'Russo One Fallback', sans-serif; letter-spacing: .02em; }
.pw-winners-title span { color: #b78bff; }
.pw-winners-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.pw-winner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; background: #1c1626; border: 1px solid #2d2639; }
.pw-winner img { width: 26px; height: 26px; flex-shrink: 0; }
.pw-winner div { min-width: 0; }
.pw-winner b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; font: 400 15px/1.2 'Russo One', 'Russo One Fallback', sans-serif; }
.pw-winner small { display: block; margin-top: 3px; color: #6f6585; font: 700 11px/1 Onest, 'Onest Fallback', sans-serif; letter-spacing: .05em; text-transform: uppercase; }
.pw-winner > span { margin-left: auto; color: #00e8a3; font: 400 18px/1 'Russo One', 'Russo One Fallback', sans-serif; }

/* --- chat leaderboard: find your rank --- */
.pw-rank { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 28px; }
.pw-rank input { height: 40px; padding: 0 12px; border-radius: 4px; border: 1px solid #2d2639; background: #0e0c11; color: #fff; font: 600 14px Onest, 'Onest Fallback', sans-serif; }
.pw-rank input:focus { outline: none; border-color: #88a3ff; }
.pw-rank button { height: 40px; padding: 0 20px; border-radius: 4px; background: #88a3ff; color: #313c62; cursor: pointer;
  font: 400 13px/1 'Russo One', 'Russo One Fallback', sans-serif; letter-spacing: .04em; box-shadow: inset 1.54px 1.54px 0 #ffffff40, 0 3.08px 0 #5267ae; }
.pw-rank button:hover { background: #9ab4ff; }
.pw-rank button:active { transform: translateY(2px); box-shadow: inset 1.54px 1.54px 0 #ffffff40, 0 1px 0 #5267ae; }
.pw-rank-result { grid-column: 1 / -1; min-height: 20px; color: #b9add0; font: 600 14px/1.4 Onest, 'Onest Fallback', sans-serif; text-align: center; }

/* --- header: account button (filled in by server.js per request) --- */
.pw-acc-chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 4px; border-radius: 8px; background: #241e2e; border: 1px solid #352c44; color: #fff; font: 700 12.5px/1 Onest, 'Onest Fallback', sans-serif; letter-spacing: .04em; }
.pw-acc-chip:hover { background: #2d2639; }
.pw-acc-chip img { width: 28px; height: 28px; border-radius: 6px; }
.pw-acc-chip span:only-child { padding-left: 8px; }
@media (max-width: 480px) { .pw-acc-chip span { display: none; } .pw-acc-chip { padding: 0 4px; } .pw-acc-chip span:only-child { display: inline; padding: 0 6px; } }

/* --- /account --- */
.pw-acc { min-height: 100vh; padding: 120px 16px 90px; background: #16131b; color: #d7cbe8; font-family: Onest, 'Onest Fallback', sans-serif; }
.pw-acc-out { max-width: 520px; margin: 40px auto 0; text-align: center; }
.pw-acc-logo { width: 110px; margin: 0 auto 10px; }
.pw-acc-h1 { color: #fff; font: 400 46px/1 'Russo One', 'Russo One Fallback', sans-serif; }
.pw-acc-h1 span { color: #b78bff; }
.pw-acc-lead { margin: 16px 0 26px; color: #a99cc0; font-size: 16px; line-height: 1.5; }
.pw-acc-btn { display: inline-flex; align-items: center; height: 46px; padding: 0 28px; background: #53fc18; color: #0b1a05; border-radius: 4px;
  font: 400 15px/1 'Russo One', 'Russo One Fallback', sans-serif; letter-spacing: .04em; box-shadow: inset 1.54px 1.54px 0 #ffffff60, 0 3.08px 0 #2c8a0b; }
.pw-acc-btn:hover { background: #6bff38; }
.pw-acc-error { margin-top: 16px; color: #ff8fa3; font-weight: 700; }

.pw-acc-in { max-width: 980px; margin: 0 auto; display: grid; gap: 16px; }
.pw-acc-top { display: flex; align-items: center; gap: 16px; }
.pw-acc-avatar { width: 64px; height: 64px; border-radius: 12px; border: 2px solid #2d2639; }
.pw-acc-top h1 { color: #fff; font: 400 28px/1.1 'Russo One', 'Russo One Fallback', sans-serif; }
.pw-acc-top small { color: #6f6585; font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.pw-acc-logout { margin-left: auto; padding: 9px 14px; border-radius: 6px; border: 1px solid #2f2740; color: #a99cc0; font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.pw-acc-logout:hover { color: #fff; }

.pw-acc-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.pw-acc-tile { display: grid; gap: 4px; padding: 16px 18px; border-radius: 10px; background: #1c1626; border: 1px solid #2d2639; }
.pw-acc-tile small { color: #6f6585; font-weight: 800; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.pw-acc-tile b { color: #fff; font: 400 26px/1.15 'Russo One', 'Russo One Fallback', sans-serif; }
.pw-acc-tile span { color: #85779c; font-size: 12.5px; font-weight: 600; }
.pw-acc-bar { height: 6px; border-radius: 3px; background: #2d2639; overflow: hidden; }
.pw-acc-bar i { display: block; height: 100%; width: 0; background: #88a3ff; transition: width .6s; }

.pw-acc-card { padding: 18px 20px; border-radius: 10px; background: #1c1626; border: 1px solid #2d2639; }
.pw-acc-card h2 { margin-bottom: 12px; color: #fff; font: 400 17px/1 'Russo One', 'Russo One Fallback', sans-serif; letter-spacing: .03em; }
.pw-acc-row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; padding: 12px 0; border-top: 1px solid #2d2639; }
.pw-acc-row:first-of-type { border-top: 0; }
.pw-acc-row > img { width: 34px; height: 34px; border-radius: 8px; }
.pw-acc-row > div:first-of-type { display: grid; gap: 2px; min-width: 140px; margin-right: auto; }
.pw-acc-row b { color: #fff; font-size: 14px; }
.pw-acc-row span { color: #a99cc0; font-size: 13px; font-weight: 600; }
.pw-acc-small { height: 36px; padding: 0 16px; border-radius: 4px; background: #88a3ff; color: #313c62; cursor: pointer;
  font: 400 12.5px/1 'Russo One', 'Russo One Fallback', sans-serif; letter-spacing: .04em; box-shadow: inset 1.54px 1.54px 0 #ffffff40, 0 3.08px 0 #5267ae; }
.pw-acc-code { display: grid; gap: 6px; max-width: 320px; padding: 10px 12px; border-radius: 6px; background: #0e0c11; border: 1px dashed #88a3ff; color: #d7cbe8; font-size: 12.5px; font-weight: 600; }
.pw-acc-code > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pw-acc-code code { color: #fff; font: 400 20px 'Russo One', monospace; letter-spacing: .1em; user-select: all; }
.pw-acc-code .pw-acc-small { height: 30px; padding: 0 14px; }
.pw-acc-code a { color: #88a3ff; }
.pw-acc-list { display: grid; gap: 6px; }
.pw-acc-item { display: grid; grid-template-columns: 1.2fr 1fr .8fr 1.4fr; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 6px; background: #241e2e; font-size: 13.5px; }
.pw-acc-item span { color: #fff; font-weight: 700; text-transform: capitalize; }
.pw-acc-item small { color: #85779c; font-weight: 600; }
.pw-acc-item b { color: #00e8a3; font: 400 15px 'Russo One', 'Russo One Fallback', sans-serif; }
.pw-acc-item em { justify-self: end; font-style: normal; font-weight: 700; font-size: 12.5px; }
.pw-acc-empty { color: #85779c; font-size: 13.5px; font-weight: 600; }
.pw-ok, .pw-st-paid { color: #00e8a3; font-style: normal; font-weight: 700; }
.pw-warn, .pw-st-pending { color: #fed85d; font-style: normal; font-weight: 700; }
.pw-bad, .pw-st-rejected { color: #ff8fa3; font-style: normal; font-weight: 700; }
@media (max-width: 600px) { .pw-acc-item { grid-template-columns: 1fr auto; } .pw-acc-item small, .pw-acc-item em { justify-self: start; } .pw-acc-row > div:has(> .pw-acc-code) { flex: 1 1 100%; } .pw-acc-code { max-width: none; } }
