/* SideKwest brand layer for David's arena app. Loaded AFTER assets/style.css. Visual only.
 * Same system as the landing page (sidekwest.online): Montserrat, black italic uppercase headlines,
 * black / #F7FFF8 / #3EF747 / #FF0543, diamond pattern, sticker buttons (black outline + hard shadow),
 * playing-card game tiles with role art. Delete this file to get the original look back. */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,500;0,600;0,700;0,800;0,900;1,800;1,900&display=swap");

:root {
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Montserrat", "Arial Black", system-ui, sans-serif;
  --radius: 20px;
  --ink: #000;
  --sk-diamond: linear-gradient(45deg, rgba(247,255,248,.03) 25%, transparent 25%, transparent 75%, rgba(247,255,248,.03) 75%),
                linear-gradient(45deg, rgba(247,255,248,.03) 25%, transparent 25%, transparent 75%, rgba(247,255,248,.03) 75%);
}
body { font-family: var(--font); font-weight: 500; background-color: #000;
  background-image: var(--sk-diamond); background-size: 44px 44px; background-position: 0 0, 22px 22px; background-attachment: fixed; }

/* headlines: black italic uppercase, like the landing page */
h1, .play-title, .page-head h1 { font-family: var(--display); font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: -.01em; line-height: .95; }
h1 { font-size: clamp(30px, 5.2vw, 52px); }
.play-title { font-size: clamp(34px, 6vw, 64px) !important; }
.play-title span { color: var(--lime) !important; }
h2, .panel-title h2 { font-family: var(--display); font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: .01em; }
h3 { font-weight: 800; }

/* logo (approved files, see sidekwest.js) */
.brand .sk-k { width: 34px; height: 34px; object-fit: contain; }
.brand .sk-word { height: 20px; width: auto; display: inline-block; }
.topbar .brand .sk-word { height: 18px; }
@media (min-width: 768px) { .side .brand .sk-word { display: none; } }
@media (min-width: 1100px) { .side .brand .sk-word { display: inline-block; height: 17px; } .side .brand .sk-k { width: 30px; height: 30px; } }

/* nav: bolder, italic labels, lime active state */
.side, .tabbar, .topbar { background: #000; }
.side-link, .tabbar a { font-weight: 800; letter-spacing: .02em; }
.side-link.on { background: var(--white); color: #000 !important; }
.side-link.on svg { color: #000 !important; }
.tabbar a.on::before { background: var(--lime); }
.tabbar a.on svg { color: var(--lime); }

/* panels: ink outline + soft hard-shadow */
.panel { background: #0b0b0b; border: 2px solid rgba(247,255,248,.14); box-shadow: 6px 6px 0 rgba(247,255,248,.05); }
.panel-title { border-bottom: 2px solid rgba(247,255,248,.1); }

/* main call to action = sticker button */
.cta { font-family: var(--display) !important; font-weight: 900 !important; font-style: italic; text-transform: uppercase;
  border: 4px solid var(--ink) !important; box-shadow: 0 7px 0 var(--ink), 0 0 50px rgba(255,5,67,.35) !important; border-radius: 999px !important; }
.cta:active { transform: translateY(5px) !important; box-shadow: 0 2px 0 var(--ink) !important; }
.cta small { font-style: normal; text-transform: none; }
.btn, .pl-btn, .btn-auth { font-weight: 800; border-radius: 999px; }
.pl-btn { border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink); font-style: italic; text-transform: uppercase; }
.pl-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }

/* our vector icons in place of the game line icons */
img.sk-ico { width: 28px; height: 28px; object-fit: contain; filter: drop-shadow(0 2px 0 rgba(0,0,0,.6)); }

/* ---------- home: game tiles become playing cards ---------- */
.gtiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 640px) { .gtiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1300px) { .gtiles { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.gtile.sk-card { background: var(--white); color: #000; border: 4px solid var(--ink); border-radius: 18px;
  box-shadow: 0 6px 0 #9aa39c, 0 16px 34px rgba(0,0,0,.5); transition: transform .3s cubic-bezier(.2,.9,.3,1.3); }
.gtile.sk-card:hover { transform: translateY(-6px) rotate(-1.5deg); background: var(--white); border-color: var(--ink); }
.gtile.sk-card .gt-link { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 10px 12px; color: #000; min-height: 0; }
.gtile.sk-card .sk-art { display: block; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 3px var(--ink); background: #000; }
.gtile.sk-card .sk-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gtile.sk-card:hover .sk-art img { transform: scale(1.06); }
.gtile.sk-card .ico { position: absolute; top: 18px; left: 18px; width: 38px; height: 38px; border-radius: 50%; background: var(--ink) !important; border: 2px solid var(--white); }
.gtile.sk-card .ico img.sk-ico { width: 24px; height: 24px; }
.gtile.sk-card .gt-txt { align-items: center; text-align: center; }
.gtile.sk-card .sk-role { font: italic 900 clamp(15px, 1.6vw, 20px)/1 var(--display); text-transform: uppercase; color: #000; }
.gtile.sk-card .gt-txt b { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(0,0,0,.6); }
.gtile.sk-card .gt-txt .q { font-size: 12px; color: rgba(0,0,0,.55); }
.gtile.sk-card .gt-txt .q.has { color: #12a019; }
.gtile.sk-card .gt-go { display: none; }
.gtile.sk-card .gt-info { top: 16px; right: 16px; color: var(--white); background: var(--ink); width: 38px; height: 38px; border: 2px solid var(--white); }
.gtile.sk-card .gt-info::before { display: none; }
.gtile.sk-card .gt-rule { padding: 0 12px 12px; color: rgba(0,0,0,.75); font-weight: 600; text-align: left; }
.gtile.sk-card .gt-rule a { color: #c4002f; font-weight: 800; }
.gtile.sk-card[data-g="kills"] .ico, .gtile.sk-card .ico { color: var(--white); }

/* ---------- play page: game picker rows get a role portrait ---------- */
.pl-game { border: 2px solid rgba(247,255,248,.14) !important; border-radius: 16px !important; }
.pl-game[aria-pressed="true"] { border-color: var(--lime) !important; box-shadow: 0 0 0 2px var(--lime), 0 0 30px rgba(62,247,71,.25); }
.pl-game .top { align-items: center; }
.pl-game .sk-face { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; object-position: 50% 20%; border: 2px solid var(--ink); box-shadow: 0 0 0 2px rgba(247,255,248,.25); flex: none; }
.pl-game .top > img.sk-ico { display: none; }
.pl-game .nm .sk-role { display: block; font: italic 900 17px/1.05 var(--display); text-transform: uppercase; color: var(--white); }
.pl-game .nm { font-weight: 700; }
.pl-levels button[aria-pressed="true"] { background: var(--lime) !important; color: #000 !important; }

/* leaderboard + misc */
.rank, .num { font-family: var(--display); font-style: italic; font-weight: 900; }
.live-strip { border: 2px solid rgba(247,255,248,.14); border-radius: 999px; }
.chip { font-weight: 800; }
a { color: var(--lime); }

/* narrow side nav (768-1099px): heavier font needs a smaller label */
@media (min-width: 768px) and (max-width: 1099px) { .side-link { font-size: 10px; letter-spacing: 0; } }

/* every heading in the same voice, even where the base sheet forces lowercase */
h1, h2 { text-transform: uppercase !important; }

/* ---------- "i" = flip the card: the rule shows on the card's back, over the art ---------- */
.gtile.sk-card { perspective: 1200px; }
.gtile.sk-card .gt-rule:not([hidden]) {
  position: absolute; inset: 0; z-index: 3; margin: 0; border-radius: 14px;
  display: flex; flex-direction: column; justify-content: flex-start; gap: 10px;
  padding: 64px 16px 16px; color: var(--white); font-size: 13.5px; font-weight: 600; line-height: 1.45; text-align: left;
  background-color: #000; background-image: var(--sk-diamond); background-size: 30px 30px; background-position: 0 0, 15px 15px;
  box-shadow: inset 0 0 0 3px var(--lime);
  transform-origin: center; animation: sk-flip .45s cubic-bezier(.2,.8,.2,1);
}
@keyframes sk-flip { from { transform: rotateY(-90deg); opacity: .2; } to { transform: rotateY(0); opacity: 1; } }
.gtile.sk-card .gt-rule:not([hidden])::before {
  content: attr(data-role) "\A" attr(data-game) " · " attr(data-len); white-space: pre-line;
  position: absolute; top: 14px; left: 16px; right: 60px;
  font: italic 900 20px/1.05 var(--display); text-transform: uppercase; color: var(--white);
}
.gtile.sk-card .gt-rule:not([hidden])::first-line { }
.gtile.sk-card .gt-rule .sk-rule-actions { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.gtile.sk-card .gt-rule a { color: var(--white); }
.gtile.sk-card .gt-rule .sk-rule-actions a, .gtile.sk-card .gt-rule > a {
  display: flex; align-items: center; justify-content: center; min-height: 40px; border-radius: 999px; text-decoration: none !important;
  font: italic 900 12.5px var(--display); text-transform: uppercase; letter-spacing: .02em;
}
.gtile.sk-card .gt-rule > a { order: 9; border: 2px solid rgba(247,255,248,.4); }
.gtile.sk-card .gt-rule .sk-play { order: 10; background: var(--lime); color: #000 !important; border: 3px solid #000; box-shadow: 0 4px 0 rgba(62,247,71,.35); }
.gtile.sk-card .gt-rule > a, .gtile.sk-card .gt-rule .sk-play { flex: none; }
.gtile.sk-card .gt-rule:not([hidden]) { justify-content: flex-start; }
.gtile.sk-card .gt-rule .sk-spacer { flex: 1; order: 8; }
/* the "i" sits above the back and turns into a close button */
.gtile.sk-card .gt-info { z-index: 4; font-size: 0; }
.gtile.sk-card .gt-info::after { content: "i"; font: italic 900 17px/1 var(--display); color: var(--white); }
.gtile.sk-card .gt-info[aria-expanded="true"] { background: var(--lime); border-color: #000; }
.gtile.sk-card .gt-info[aria-expanded="true"]::after { content: "✕"; font-style: normal; font-size: 15px; color: #000; }
.gtile.sk-card .gt-info .sr-only { font-size: 12px; }

/* card back: title in the flow (no overlap), lowercase i */
.gtile.sk-card .gt-rule:not([hidden]) { padding: 16px 16px 16px; }
.gtile.sk-card .gt-rule:not([hidden])::before { position: static; display: block; margin: 0 46px 6px 0; font-size: 19px; color: var(--white); }
.gtile.sk-card .gt-rule:not([hidden])::before { text-shadow: 0 2px 0 #000; }
.gtile.sk-card .gt-info::after { text-transform: none; }

/* ---------- deck: one swipeable row of cards ---------- */
.gtiles.sk-row { display: flex !important; grid-template-columns: none; gap: 14px; overflow-x: auto; overflow-y: visible;
  scroll-snap-type: x mandatory; scroll-padding: 0 4px; padding: 14px 4px 22px; margin: 0 -4px; scrollbar-width: none; overscroll-behavior-x: contain; }
.gtiles.sk-row::-webkit-scrollbar { display: none; }
.gtiles.sk-row .gtile.sk-card { flex: 0 0 clamp(196px, 46vw, 250px); scroll-snap-align: center; }
.gtiles.sk-row .gtile.sk-hide { display: none; }

/* search bar + arrows */
.sk-deck-ui.sk-top { display: flex; gap: 10px; align-items: center; margin: 16px 0 2px; }
.sk-search { flex: 1; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border-radius: 999px;
  background: #0b0b0b; border: 2px solid rgba(247,255,248,.18); box-shadow: 0 4px 0 rgba(247,255,248,.06); }
.sk-search:focus-within { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(62,247,71,.2); }
.sk-search img { width: 22px; height: 22px; }
.sk-search input { flex: 1; min-width: 0; height: 100%; background: transparent; border: 0; outline: 0; color: var(--white);
  font: 700 15px var(--font); }
.sk-search input::placeholder { color: rgba(247,255,248,.45); }
.sk-arrows { display: none; gap: 8px; }
@media (min-width: 768px) { .sk-arrows { display: flex; } }
.sk-arrow { width: 52px; height: 52px; border-radius: 50%; border: 3px solid #000; background: var(--white); color: #000;
  font: 900 30px/1 var(--display); cursor: pointer; box-shadow: 0 4px 0 #000; padding-bottom: 4px; }
.sk-arrow:active { transform: translateY(3px); box-shadow: 0 1px 0 #000; }
.sk-none { color: var(--muted); font-weight: 700; text-align: center; padding: 30px 0; }

/* random battle */
.sk-deck-ui.sk-bottom { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 4px 0 8px; }
.sk-random { display: inline-flex; align-items: center; gap: 10px; height: 60px; padding: 0 34px; border-radius: 999px; cursor: pointer;
  background: var(--white); color: #000; border: 4px solid #000; box-shadow: 0 6px 0 #000, 0 0 40px rgba(247,255,248,.15);
  font: italic 900 18px var(--display); text-transform: uppercase; letter-spacing: .02em; }
.sk-random img { width: 30px; height: 30px; }
.sk-random:active { transform: translateY(5px); box-shadow: 0 1px 0 #000; }
.sk-random.spinning img { animation: sk-rot .5s linear infinite; }
.sk-random[disabled] { cursor: default; opacity: .85; }
@keyframes sk-rot { to { transform: rotate(360deg); } }
.sk-go { display: inline-flex; align-items: center; height: 52px; padding: 0 28px; border-radius: 999px; text-decoration: none !important;
  background: var(--lime); color: #000 !important; border: 3px solid #000; box-shadow: 0 5px 0 #000, 0 0 40px rgba(62,247,71,.45);
  font: italic 900 16px var(--display); text-transform: uppercase; animation: sk-pop .5s cubic-bezier(.2,1.6,.4,1); }
.sk-go[hidden] { display: none; }
@keyframes sk-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* spin highlight + the picked card */
.gtile.sk-card.sk-spin { transform: translateY(-10px) scale(1.03); box-shadow: 0 0 0 4px var(--pink), 0 0 40px rgba(255,5,67,.6), 0 6px 0 #9aa39c; transition: none; }
.gtile.sk-card.sk-picked { transform: translateY(-12px) scale(1.05); box-shadow: 0 0 0 4px var(--lime), 0 0 60px rgba(62,247,71,.7), 0 6px 0 #9aa39c;
  animation: sk-land .6s cubic-bezier(.2,1.6,.4,1); }
@keyframes sk-land { 0% { transform: translateY(-12px) scale(.9) rotate(-4deg); } 100% { transform: translateY(-12px) scale(1.05); } }

/* bigger cards on desktop so the row is a real carousel; arrows only when it can scroll */
.gtiles.sk-row .gtile.sk-card { flex: 0 0 clamp(200px, 46vw, 300px); }
.sk-deck-ui.sk-top.sk-fits .sk-arrows { display: none; }
.gtiles.sk-row { padding-top: 28px; padding-bottom: 30px; }
/* the card row must not widen its grid column (grid items default to min-width:auto) */
.play-grid > section, .play-grid > * { min-width: 0; }
.gtiles.sk-row { max-width: 100%; }

/* ===================== Dota-style picker (replaces the plain row) ===================== */
.play-grid > section .find-wrap { display: none !important; }          /* "Play now" removed: Random battle replaces it */
.gtiles.sk-row { --cw: clamp(190px, 52vw, 270px); gap: 0; padding: 34px calc(50% - var(--cw) / 2) 38px; margin: 0;
  scroll-snap-type: x mandatory; perspective: none; }
.gtiles.sk-row .gtile.sk-card { flex: 0 0 var(--cw); scroll-snap-align: center; transition: transform .14s ease-out, filter .14s ease-out, box-shadow .2s; will-change: transform; }
.gtiles.sk-row .gtile.sk-card:hover { background: var(--white); }
.gtiles.sk-row .gtile.sk-card .gt-txt, .gtiles.sk-row .gtile.sk-card .gt-info { transition: opacity .2s; }
.gtiles.sk-row .gtile.sk-card:not(.sk-center) .gt-info { opacity: 0; pointer-events: none; }
.gtiles.sk-row .gtile.sk-card:not(.sk-center) { cursor: pointer; }
.gtiles.sk-row .gtile.sk-card.sk-center { box-shadow: 0 0 0 4px var(--lime), 0 0 70px rgba(62,247,71,.55), 0 6px 0 #9aa39c; }
.gtiles.sk-row .gtile.sk-card.sk-landed { animation: sk-landed 1s ease-out; }
@keyframes sk-landed { 0% { box-shadow: 0 0 0 10px var(--pink), 0 0 120px rgba(255,5,67,.9); } 100% { box-shadow: 0 0 0 4px var(--lime), 0 0 70px rgba(62,247,71,.55), 0 6px 0 #9aa39c; } }
.sk-deck-ui.sk-top .sk-arrows { display: none !important; }

/* arrows + dots under the cards */
.sk-deck-ui.sk-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin: -18px 0 14px; }
.sk-nav .sk-arrow { width: 44px; height: 44px; font-size: 26px; }
.sk-dots { display: flex; gap: 8px; }
.sk-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(247,255,248,.25); transition: all .2s; }
.sk-dots i.on { width: 26px; border-radius: 999px; background: var(--lime); }

/* lock-in bar: what you picked + Play it + Random battle (the main button now) */
.sk-deck-ui.sk-lock { display: grid; grid-template-columns: auto 1fr auto; gap: 10px 12px; align-items: center;
  padding: 12px; border-radius: 22px; background: #0b0b0b; border: 2px solid rgba(247,255,248,.16); box-shadow: 6px 6px 0 rgba(247,255,248,.05); }
.sk-lock-label { grid-column: 1 / -1; font: 800 11px var(--font); letter-spacing: .2em; text-transform: uppercase; color: var(--lime); padding-left: 4px; }
.sk-lock-pick { display: flex; align-items: center; gap: 12px; min-width: 0; grid-column: 1 / 3; }
.sk-lock-face { width: 54px; height: 54px; border-radius: 12px; object-fit: cover; object-position: 50% 18%; border: 2px solid #000; box-shadow: 0 0 0 2px var(--lime); }
.sk-lock-pick span { display: flex; flex-direction: column; min-width: 0; }
.sk-lock-role { font: italic 900 22px/1 var(--display); text-transform: uppercase; }
.sk-lock-game { color: var(--muted); font-weight: 700; font-size: 13px; margin-top: 3px; }
.sk-lock-play { grid-column: 3; display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--lime); color: #000 !important; border: 3px solid #000; box-shadow: 0 4px 0 #000; text-decoration: none !important;
  font: italic 900 15px var(--display); text-transform: uppercase; white-space: nowrap; }
.sk-lock .sk-random { grid-column: 1 / -1; justify-self: stretch; justify-content: center; height: 64px; font-size: 20px;
  background: var(--pink); color: var(--white); box-shadow: 0 6px 0 #000, 0 0 50px rgba(255,5,67,.45); }
@media (min-width: 900px) {
  .sk-deck-ui.sk-lock { grid-template-columns: auto 1fr auto auto; }
  .sk-lock-pick { grid-column: 1 / 3; }
  .sk-lock .sk-random { grid-column: 4; height: 56px; font-size: 17px; padding: 0 26px; }
}
.sk-deck-ui.sk-bottom { display: none; }

/* card positions are measured from the row */
.gtiles.sk-row { position: relative; }

/* ---------- design pass: the last old-look bits ---------- */
body { font-size: 15px; letter-spacing: .005em; }
.muted, .page-head p, .foot { font-weight: 600; }
.panel-title h2 { font-size: 15px; letter-spacing: .03em; }
.panel-title a { font-weight: 800; color: var(--lime); }
.stats .num, .stat .num, .stats b, .stat b { font-family: var(--display); font-style: italic; font-weight: 900; }
.mini-lb .rank, .lb td:first-child { font-family: var(--display); font-style: italic; font-weight: 900; color: var(--lime); }
.newbie { border: 2px dashed rgba(62,247,71,.45) !important; border-radius: 999px !important; font-weight: 800; }
.newbie:hover { border-style: solid !important; background: rgba(62,247,71,.06); }
.live-strip { background: #0b0b0b; font-weight: 700; }
.chip, .tag-prov { border-radius: 999px; }
.seg, .tabs-seg { border-radius: 999px; }
.foot { letter-spacing: .02em; }
img[src*="googleusercontent"], .avatar, .me img { border-radius: 50%; box-shadow: 0 0 0 2px var(--lime); }

/* ---------- smooth carousel: no transitions fighting the per-frame transform, no repainting filters ---------- */
.gtiles.sk-row { -webkit-overflow-scrolling: touch; scroll-behavior: smooth; }
.gtiles.sk-row .gtile.sk-card { transition: box-shadow .2s ease !important; will-change: transform; transform-origin: 50% 60%;
  backface-visibility: hidden; filter: none !important; }
.gtiles.sk-row .gtile.sk-card:hover { transition: box-shadow .2s ease !important; }
.gtiles.sk-row .gtile.sk-card::after { content: ""; position: absolute; inset: -4px; border-radius: 20px; background: #000;
  opacity: var(--dim, 0); pointer-events: none; z-index: 6; }
.gtiles.sk-row .gtile.sk-card .sk-art img { transition: none; }
.gtiles.sk-row .gtile.sk-card:hover .sk-art img { transform: none; }

/* ---------- no overlaps ---------- */
/* lock-in bar: row 1 = who you picked, row 2 = the two buttons side by side, at every width */
.sk-deck-ui.sk-lock, .sk-deck-ui.sk-lock { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
.sk-lock-label { grid-column: 1 / -1 !important; }
.sk-lock-pick { grid-column: 1 / -1 !important; min-width: 0; }
.sk-lock-pick span { min-width: 0; }
.sk-lock-role, .sk-lock-game { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk-lock-play { grid-column: 1 !important; width: 100%; height: 56px !important; min-width: 0; padding: 0 12px !important; overflow: hidden; text-overflow: ellipsis; }
.sk-lock .sk-random { grid-column: 2 !important; width: 100%; height: 56px !important; min-width: 0; padding: 0 12px !important; font-size: 16px !important; white-space: nowrap; }
@media (max-width: 420px) { .sk-lock-play, .sk-lock .sk-random { font-size: 13px !important; } .sk-lock .sk-random img { width: 22px; height: 22px; } }
/* David's Bug pill: bottom-right, so it never covers Sign in in the sidebar */
.gfbug-btn { left: auto !important; right: max(14px, env(safe-area-inset-right)) !important; }
.gfbug-box { left: auto !important; right: max(14px, env(safe-area-inset-right)) !important; }

/* ---------- home: ONE column at every width (Tim). Nothing on the right: the live match, stats and top players sit below the picker. ---------- */
body.play .play-grid { grid-template-columns: minmax(0, 1fr) !important; max-width: 1040px; margin: 0 auto; }
@media (min-width: 900px) {
  body.play .rail { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
  body.play .rail > .panel { margin: 0 !important; }
}

/* ---------- Tim: no lock-in panel. Green Play right under the card, red Random battle under the arrows with dice ---------- */
.sk-deck-ui.sk-lock { display: none !important; }
.sk-deck-ui.sk-playwrap { display: flex; justify-content: center; margin: -26px 0 18px; position: relative; z-index: 120; }
.sk-play-main { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: min(300px, 80%); height: 62px; padding: 0 30px;
  border-radius: 999px; background: var(--lime); color: #000 !important; border: 4px solid #000; text-decoration: none !important;
  box-shadow: 0 7px 0 #000, 0 0 50px rgba(62,247,71,.5); font: italic 900 20px var(--display); text-transform: uppercase; letter-spacing: .01em; white-space: nowrap; }
.sk-play-main span { font-style: normal; font-size: 16px; }
.sk-play-main:active { transform: translateY(5px); box-shadow: 0 2px 0 #000; }
.sk-play-main.sk-soon { background: var(--white, #F7FFF8); color: #000; }
.sk-play-main.sk-bump { animation: sk-bump .35s cubic-bezier(.2,1.6,.4,1); }
@keyframes sk-bump { from { transform: scale(.92); } to { transform: scale(1); } }
.sk-deck-ui.sk-nav { margin: 0 0 8px; }

.sk-deck-ui.sk-randwrap { position: relative; display: flex; justify-content: center; padding-top: 46px; margin: 4px 0 18px; }
.sk-randwrap .sk-random { position: relative; z-index: 1; min-width: min(360px, 90%); height: 70px; justify-content: center; font-size: 22px !important;
  background: var(--pink) !important; color: var(--white) !important; border: 4px solid #000 !important; box-shadow: 0 8px 0 #000, 0 0 60px rgba(255,5,67,.5) !important; }
.sk-randwrap .sk-random[disabled] { opacity: 1; filter: saturate(.85); }

/* dice sitting on top of the button; thrown + tumbling while the cards roll */
.sk-dice { position: absolute; top: 0; left: 50%; transform: translateX(-50%); display: flex; gap: 18px; z-index: 2; pointer-events: none; }
.sk-die { width: 44px; height: 44px; border-radius: 10px; background: var(--white); border: 3px solid #000; box-shadow: 0 4px 0 #000;
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); padding: 5px; gap: 1px;
  animation: sk-idle 2.4s ease-in-out infinite; }
.sk-die:nth-child(2) { animation-delay: -1.2s; }
.sk-die b { width: 8px; height: 8px; border-radius: 50%; place-self: center; }
.sk-die b.on { background: #000; }
.sk-die:nth-child(1) b.on { background: var(--pink); }
@keyframes sk-idle { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-5px) rotate(6deg); } }
.sk-die.rolling { animation: sk-throw .75s cubic-bezier(.3,.6,.3,1) infinite; }
.sk-die:nth-child(2).rolling { animation-duration: .65s; animation-direction: reverse; }
@keyframes sk-throw {
  0% { transform: translate(0, 0) rotate(0); }
  25% { transform: translate(-14px, -58px) rotate(160deg) scale(1.1); }
  50% { transform: translate(10px, -20px) rotate(300deg); }
  75% { transform: translate(-6px, -40px) rotate(470deg) scale(1.05); }
  100% { transform: translate(0, 0) rotate(720deg); }
}
.sk-die.landed { animation: sk-land .5s cubic-bezier(.2,1.8,.4,1); }
@keyframes sk-land { 0% { transform: translateY(-30px) rotate(-40deg); } 60% { transform: translateY(3px) rotate(6deg); } 100% { transform: translateY(0) rotate(0); } }
@media (prefers-reduced-motion: reduce) { .sk-die, .sk-die.rolling { animation: none; } }

/* ===================== home, bottom: "Arena right now" ===================== */
@media (min-width: 900px) {
  body.play .rail { grid-template-columns: 1fr 1fr !important; grid-template-areas: "head head" "stats stats" "live lb"; gap: 14px !important; align-items: stretch !important; margin-top: 10px; }
  body.play .rail::before { content: "Arena right now"; grid-area: head; font: italic 900 26px/1 var(--display); text-transform: uppercase; color: var(--white); margin: 6px 0 2px; }
  body.play #stats { grid-area: stats; }
  body.play #live-card { grid-area: live; }
  body.play #mini-lb { grid-area: lb; }
}
body.play .rail > .panel { display: flex; flex-direction: column; border-radius: 22px; }

/* stats: one slim bar of big numbers */
body.play #stats { display: grid !important; grid-template-columns: repeat(3, 1fr); padding: 0; overflow: hidden; }
body.play #stats .stat { display: flex; align-items: baseline; justify-content: center; gap: 10px; padding: 16px 10px; border: 0 !important; }
body.play #stats .stat + .stat { border-left: 2px solid rgba(247,255,248,.1) !important; }
body.play #stats .stat b { font: italic 900 34px/1 var(--display); color: var(--white); }
body.play #stats .stat:first-child b { color: var(--lime); }
body.play #stats .stat span { font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* last match: a real face-off */
body.play #live-card .livecard { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 16px 18px 18px; text-decoration: none !important; }
body.play #live-card .livecard > .muted { font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: 12px !important; color: var(--muted); text-align: center; }
body.play #live-card .vs { display: grid !important; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; }
body.play #live-card .vs .p { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; text-align: center; }
body.play #live-card .vs .p .avatar { width: 54px !important; height: 54px !important; font-size: 22px !important; border: 3px solid #000; box-shadow: 0 0 0 2px var(--lime); }
body.play #live-card .vs .p:last-child .avatar { box-shadow: 0 0 0 2px var(--pink); }
body.play #live-card .vs .nm { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: italic 900 15px var(--display); text-transform: uppercase; color: var(--white); }
body.play #live-card .vs .sc { font: italic 900 40px/1 var(--display); color: var(--white); white-space: nowrap; }
body.play #live-card .vs .sc .faint { color: var(--muted); }
body.play #live-card .livecard > div:last-child { text-align: center; margin-top: 2px !important; }

/* top players */
body.play #mini-lb .row { padding: 12px 18px; }
body.play #mini-lb .row .nm { font-weight: 800; }
body.play #mini-lb .row .rk { font: italic 900 16px var(--display); color: var(--lime); width: 22px; }
body.play #mini-lb .empty { flex: 1; display: grid; place-items: center; }

/* "New here?" = solid sticker banner, not a dashed line */
body.play .newbie { display: flex; align-items: center; gap: 14px; padding: 14px 18px !important; margin-top: 6px; border-radius: 20px !important;
  border: 3px solid #000 !important; background: var(--white) !important; color: #000 !important; box-shadow: 0 5px 0 #000;
  font: italic 900 16px var(--display); text-transform: uppercase; text-decoration: none !important; }
body.play .newbie svg.i { width: 30px; height: 30px; padding: 5px; border-radius: 50%; background: #000; color: var(--lime) !important; }
body.play .newbie .go { margin-left: auto; background: var(--lime) !important; color: #000 !important; }
body.play .newbie:hover { background: var(--lime) !important; transform: translateY(-2px); }

/* card back: the gameplay loop between the title and the rule */
.gtile.sk-card .gt-rule:not([hidden]) { overflow: hidden; gap: 8px; }
.gtile.sk-card .gt-rule .sk-rule-clip { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; flex: none;
  border: 2px solid #000; box-shadow: 0 0 0 2px var(--lime); background: #111; }
.gtile.sk-card .gt-rule:not([hidden])::before { font-size: 17px !important; margin-bottom: 2px !important; }
.gtile.sk-card .gt-rule:not([hidden]) { font-size: 12.5px !important; line-height: 1.4 !important; }
.gtile.sk-card .gt-rule .sk-rule-clip { aspect-ratio: 2 / 1; }
.gtile.sk-card .gt-rule:not([hidden]) { padding: 14px 14px 14px !important; gap: 7px !important; }
.gtile.sk-card .gt-rule > a { min-height: 36px !important; }

/* Home, Tim 27.11: no "no match live / N today" bar and no search box while there are only a few games */
body.play #live-strip, .live-strip { display: none !important; }
.sk-search { display: none !important; }

/* ---------- Play page: Kwests (ex Rooms). Who plays first: pictures + VS, then Watch / Fight. */
.gfr-title { font-style: italic; text-transform: uppercase !important; }
.gfr-room { border-radius: 20px; }
.gfr-head .gfr-name { font: 900 italic 15px var(--display); text-transform: uppercase; }
.sk-fighters { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #F7FFF8; color: #000; border: 2.5px solid #000; border-radius: 16px;
  box-shadow: 0 4px 0 #000; padding: 10px 12px; margin: 0 0 12px; }
.sk-who { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 220px; }
.sk-f { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sk-f.r { flex-direction: row-reverse; text-align: right; margin-left: auto; }
.sk-f b { font: 900 italic 15px var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk-f small { font: 700 12px var(--font); color: #666; }
.sk-face-of .avatar { border: 2.5px solid #000; box-shadow: 0 0 0 2px #F7FFF8, 0 0 0 4px #000; border-radius: 50%; object-fit: cover; display: grid; place-items: center; color: #000; font-weight: 900; }
.sk-vs { font: 900 italic 12px var(--display); background: #FF0543; color: #fff; border: 2px solid #000; border-radius: 999px; padding: 3px 8px; flex: none; }
.sk-acts { display: flex; gap: 8px; margin-left: auto; }
.sk-btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 16px; border-radius: 999px; border: 2.5px solid #000; box-shadow: 0 3px 0 #000;
  font: 900 italic 12.5px var(--display); text-transform: uppercase; text-decoration: none !important; white-space: nowrap; }
.sk-btn.watch { background: #fff; color: #000; }
.sk-btn.fight { background: #3EF747; color: #000; }
.sk-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #000; }
.gfr-search ul { display: none !important; }
.gfr-search h3 { font: 900 italic 15px var(--display) !important; color: #F7FFF8 !important; letter-spacing: 0 !important; }
.sk-waiting { display: grid; gap: 8px; }
.sk-wait-row { display: flex; align-items: center; gap: 12px; background: #0d0d0d; border: 1.5px solid #232323; border-radius: 16px; padding: 10px 12px; }
.sk-wait-row .sk-face-of .avatar { box-shadow: 0 0 0 2px #0d0d0d, 0 0 0 4px #3EF747; }
.sk-wt { flex: 1; min-width: 0; }
.sk-wt b { display: block; font: 900 italic 15px var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk-wt small { font: 700 12px var(--font); color: #999; }
@media (max-width: 560px) { .sk-acts { width: 100%; } .sk-acts .sk-btn { flex: 1; } }
