/* ==========================================================================
   Esports betting - palette-native base stylesheet
   All custom selectors and CSS variables use the frame98313- prefix.
   Mobile-first canvas: 320-430px. Wider screens keep the mobile canvas.
   ========================================================================== */

:root {
  --frame98313-bg: #141414;
  --frame98313-bg-elev: #1b1b24;
  --frame98313-surface: #20202c;
  --frame98313-card: #2a2a38;
  --frame98313-card-hi: #33334a;
  --frame98313-line: #353548;
  --frame98313-line-soft: #2c2c3c;
  --frame98313-text: #EEEEEE;
  --frame98313-text-muted: #bcbccc;
  --frame98313-text-dim: #8a8a9c;
  --frame98313-blue: #1E90FF;
  --frame98313-blue-soft: #ADD8E6;
  --frame98313-violet: #9400D3;
  --frame98313-slate: #6A5ACD;
  --frame98313-grad: linear-gradient(135deg, #9400D3 0%, #6A5ACD 52%, #1E90FF 100%);
  --frame98313-grad-soft: linear-gradient(135deg, rgba(148,0,211,0.22), rgba(30,144,255,0.22));
  --frame98313-grad-line: linear-gradient(90deg, #9400D3, #1E90FF);
  --frame98313-radius: 14px;
  --frame98313-radius-sm: 10px;
  --frame98313-radius-lg: 18px;
  --frame98313-shadow: 0 10px 26px rgba(0,0,0,0.45);
  --frame98313-shadow-float: 0 14px 36px rgba(0,0,0,0.55);
  --frame98313-header-h: 56px;
  --frame98313-bottomnav-h: 70px;
  --frame98313-maxw: 430px;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--frame98313-bg);
  color: var(--frame98313-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: var(--frame98313-header-h);
  padding-bottom: calc(var(--frame98313-bottomnav-h) + 14px);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a {
  color: var(--frame98313-blue-soft);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.frame98313-wrap {
  width: 100%;
  max-width: var(--frame98313-maxw);
  margin: 0 auto;
  padding: 0 14px;
}

/* ==========================================================================
   Header - LOGO-led action bar
   ========================================================================== */

.frame98313-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--frame98313-header-h);
  z-index: 60;
  background: linear-gradient(180deg, rgba(20,20,28,0.98), rgba(20,20,28,0.92));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--frame98313-line-soft);
}

.frame98313-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--frame98313-grad-line);
  opacity: 0.85;
}

.frame98313-header-inner {
  height: 100%;
  max-width: var(--frame98313-maxw);
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.frame98313-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1;
  min-width: 0;
}

.frame98313-brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--frame98313-grad-soft);
  border: 1px solid var(--frame98313-line);
  flex-shrink: 0;
}

.frame98313-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.frame98313-brand-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: var(--frame98313-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.frame98313-brand-tag {
  font-size: 10px;
  color: var(--frame98313-blue-soft);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.frame98313-head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.frame98313-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.frame98313-btn-primary {
  background: var(--frame98313-grad);
  color: #fff;
  box-shadow: 0 6px 16px rgba(106,90,205,0.4);
}

.frame98313-btn-primary:active { transform: scale(0.96); }

.frame98313-btn-ghost {
  background: rgba(238,238,238,0.08);
  color: var(--frame98313-text);
  border: 1px solid var(--frame98313-line);
}

.frame98313-btn-ghost:active { transform: scale(0.96); }

.frame98313-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(238,238,238,0.06);
  border: 1px solid var(--frame98313-line);
  color: var(--frame98313-text);
}

.frame98313-icon-btn svg { width: 20px; height: 20px; }

.frame98313-icon-btn:active { transform: scale(0.94); }

/* ==========================================================================
   Side drawer menu
   ========================================================================== */

.frame98313-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
  z-index: 70;
}

.frame98313-scrim-show {
  opacity: 1;
  visibility: visible;
}

.frame98313-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 82%;
  max-width: 320px;
  background: var(--frame98313-bg-elev);
  border-left: 1px solid var(--frame98313-line);
  box-shadow: var(--frame98313-shadow-float);
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
  z-index: 80;
  overflow-y: auto;
  padding: 18px 16px calc(var(--frame98313-bottomnav-h) + 24px);
}

.frame98313-drawer-open { transform: translateX(0); }

.frame98313-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.frame98313-drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.frame98313-drawer-brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--frame98313-line);
}

.frame98313-drawer-brand b {
  font-size: 15px;
  color: var(--frame98313-text);
}

.frame98313-drawer-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.frame98313-drawer-cta .frame98313-btn {
  width: 100%;
  min-height: 40px;
}

.frame98313-drawer-title {
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--frame98313-text-dim);
  margin: 14px 4px 8px;
}

.frame98313-drawer-nav {
  display: flex;
  flex-direction: column;
}

.frame98313-drawer-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 10px;
  color: var(--frame98313-text);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.frame98313-drawer-nav a:hover { text-decoration: none; }

.frame98313-drawer-nav a span.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--frame98313-grad);
  flex-shrink: 0;
}

.frame98313-drawer-nav a.active {
  background: var(--frame98313-grad-soft);
  border-color: var(--frame98313-line);
}

.frame98313-drawer-note {
  margin-top: 16px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(173,216,230,0.08);
  border: 1px solid var(--frame98313-line-soft);
  font-size: 12px;
  color: var(--frame98313-text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   Hero carousel
   ========================================================================== */

.frame98313-hero {
  margin: 12px 0 6px;
}

.frame98313-carousel {
  position: relative;
  border-radius: var(--frame98313-radius-lg);
  overflow: hidden;
  box-shadow: var(--frame98313-shadow);
  background: var(--frame98313-surface);
}

.frame98313-carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.frame98313-slide {
  position: relative;
  flex: 0 0 100%;
  display: block;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
}

.frame98313-slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.frame98313-slide-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 14px 16px;
  background: linear-gradient(180deg, rgba(20,20,20,0) 0%, rgba(20,20,20,0.85) 100%);
  text-align: left;
  pointer-events: none;
}

.frame98313-slide-title {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 2px;
}

.frame98313-slide-sub {
  font-size: 11px;
  color: var(--frame98313-blue-soft);
  margin: 0;
}

.frame98313-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 4;
}

.frame98313-carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(238,238,238,0.4);
  transition: width 0.25s ease, background 0.25s ease;
  padding: 0;
}

.frame98313-dot-active {
  width: 20px;
  border-radius: 4px;
  background: var(--frame98313-grad-line);
}

/* Hero quick action strip */
.frame98313-hero-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.frame98313-strip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 4px;
  border-radius: var(--frame98313-radius-sm);
  background: var(--frame98313-card);
  border: 1px solid var(--frame98313-line-soft);
  font-size: 11px;
  color: var(--frame98313-text);
  font-weight: 600;
  text-align: center;
}

.frame98313-strip-item span.ico {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--frame98313-grad-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.frame98313-strip-item span.ico svg { width: 18px; height: 18px; }

/* ==========================================================================
   Section primitives
   ========================================================================== */

.frame98313-section {
  margin: 22px 0 0;
}

.frame98313-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
}

.frame98313-section-head .bar {
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: var(--frame98313-grad-line);
  flex-shrink: 0;
}

.frame98313-section-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--frame98313-text);
  letter-spacing: 0.2px;
}

.frame98313-section-head .more {
  margin-left: auto;
  font-size: 12px;
  color: var(--frame98313-blue-soft);
  font-weight: 600;
}

.frame98313-intro {
  margin: 14px 0 0;
  padding: 14px;
  border-radius: var(--frame98313-radius);
  background: var(--frame98313-card);
  border: 1px solid var(--frame98313-line-soft);
}

.frame98313-intro h1 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--frame98313-text);
}

.frame98313-intro p {
  margin: 0 0 8px;
  color: var(--frame98313-text-muted);
  font-size: 14px;
}

.frame98313-intro p:last-child { margin-bottom: 0; }

/* ==========================================================================
   Game grid - compact mobile layout (4 cols at 320px)
   ========================================================================== */

.frame98313-games {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.frame98313-game {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  background: var(--frame98313-card);
  border: 1px solid var(--frame98313-line-soft);
  border-radius: var(--frame98313-radius-sm);
  overflow: hidden;
  text-align: center;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.frame98313-game:active {
  transform: scale(0.96);
  border-color: var(--frame98313-slate);
}

.frame98313-game-img {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #0e0e16;
  overflow: hidden;
}

.frame98313-game-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.frame98313-game-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
}

.frame98313-game-name {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--frame98313-text);
  padding: 5px 4px 6px;
  line-height: 1.25;
  min-height: 30px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.frame98313-game-tag {
  position: absolute;
  top: 5px;
  left: 5px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--frame98313-grad);
  color: #fff;
  z-index: 2;
}

.frame98313-game-tag.hot { background: linear-gradient(135deg, #ff5a3c, #9400D3); }

/* Category banner inside game area */
.frame98313-cat-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 10px;
  padding: 10px 12px;
  border-radius: var(--frame98313-radius);
  background: var(--frame98313-grad-soft);
  border: 1px solid var(--frame98313-line);
}

.frame98313-cat-banner .ico {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--frame98313-grad);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.frame98313-cat-banner .ico svg { width: 18px; height: 18px; color: #fff; }

.frame98313-cat-banner .txt h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--frame98313-text);
}

.frame98313-cat-banner .txt p {
  margin: 1px 0 0;
  font-size: 11px;
  color: var(--frame98313-text-muted);
}

/* ==========================================================================
   Info / content modules
   ========================================================================== */

.frame98313-module {
  margin: 18px 0 0;
  padding: 14px;
  border-radius: var(--frame98313-radius);
  background: var(--frame98313-card);
  border: 1px solid var(--frame98313-line-soft);
}

.frame98313-module h2 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--frame98313-text);
  line-height: 1.35;
}

.frame98313-module h3 {
  margin: 12px 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--frame98313-blue-soft);
}

.frame98313-module p {
  margin: 0 0 8px;
  color: var(--frame98313-text-muted);
  font-size: 13.5px;
  line-height: 1.65;
}

.frame98313-module p:last-child { margin-bottom: 0; }

.frame98313-module ul {
  margin: 4px 0 8px;
  padding-left: 18px;
  color: var(--frame98313-text-muted);
  font-size: 13.5px;
}

.frame98313-module ul li { margin-bottom: 4px; }

.frame98313-module a.inline-link {
  color: var(--frame98313-blue-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* FAQ list */
.frame98313-faq {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.frame98313-faq details {
  border: 1px solid var(--frame98313-line-soft);
  border-radius: var(--frame98313-radius-sm);
  background: var(--frame98313-bg-elev);
  padding: 10px 12px;
}

.frame98313-faq summary {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--frame98313-text);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 18px;
}

.frame98313-faq summary::-webkit-details-marker { display: none; }

.frame98313-faq summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--frame98313-blue);
  font-size: 18px;
  font-weight: 700;
}

.frame98313-faq details[open] summary::after { content: '-'; }

.frame98313-faq details p {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--frame98313-text-muted);
  line-height: 1.6;
}

/* Entity grid */
.frame98313-entity {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 6px;
}

.frame98313-entity-card {
  padding: 10px;
  border-radius: var(--frame98313-radius-sm);
  background: var(--frame98313-bg-elev);
  border: 1px solid var(--frame98313-line-soft);
}

.frame98313-entity-card b {
  display: block;
  font-size: 12.5px;
  color: var(--frame98313-text);
  margin-bottom: 3px;
}

.frame98313-entity-card span {
  font-size: 11.5px;
  color: var(--frame98313-text-muted);
  line-height: 1.5;
}

/* Steps */
.frame98313-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.frame98313-step {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px;
  border-radius: var(--frame98313-radius-sm);
  background: var(--frame98313-bg-elev);
  border: 1px solid var(--frame98313-line-soft);
}

.frame98313-step .num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--frame98313-grad);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.frame98313-step .body {
  font-size: 13px;
  color: var(--frame98313-text-muted);
  line-height: 1.55;
}

.frame98313-step .body b { color: var(--frame98313-text); }

/* CTA block */
.frame98313-cta-block {
  margin: 18px 0 0;
  padding: 16px;
  border-radius: var(--frame98313-radius-lg);
  background: var(--frame98313-grad);
  color: #fff;
  text-align: center;
  box-shadow: var(--frame98313-shadow);
}

.frame98313-cta-block h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 800;
}

.frame98313-cta-block p {
  margin: 0 0 12px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.92);
}

.frame98313-cta-block .frame98313-btn {
  background: #fff;
  color: var(--frame98313-violet);
  min-height: 40px;
  padding: 0 22px;
  font-size: 14px;
}

/* ==========================================================================
   Expanded footer (homepage only) - horizontal shortcuts
   ========================================================================== */

.frame98313-xfooter {
  margin: 22px 0 0;
  padding: 16px;
  border-radius: var(--frame98313-radius);
  background: var(--frame98313-bg-elev);
  border: 1px solid var(--frame98313-line-soft);
}

.frame98313-xfooter-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.frame98313-xfooter-brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--frame98313-line);
}

.frame98313-xfooter-brand p {
  margin: 0;
  font-size: 12px;
  color: var(--frame98313-text-muted);
  line-height: 1.55;
}

.frame98313-xfooter-title {
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--frame98313-text-dim);
  margin: 14px 0 8px;
}

.frame98313-xfooter-dir {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.frame98313-xfooter-dir a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 10px;
  border-radius: var(--frame98313-radius-sm);
  background: var(--frame98313-card);
  border: 1px solid var(--frame98313-line-soft);
  color: var(--frame98313-text);
  font-size: 12px;
  font-weight: 600;
}

.frame98313-xfooter-dir a svg { width: 14px; height: 14px; color: var(--frame98313-blue-soft); }

.frame98313-xfooter-dir a:hover { text-decoration: none; border-color: var(--frame98313-slate); }

.frame98313-xfooter-promo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.frame98313-xfooter-promo button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px;
  border-radius: var(--frame98313-radius-sm);
  background: var(--frame98313-grad-soft);
  border: 1px solid var(--frame98313-line);
  color: var(--frame98313-text);
  font-size: 12px;
  font-weight: 700;
  text-align: left;
}

.frame98313-xfooter-promo button svg { width: 14px; height: 14px; color: var(--frame98313-blue-soft); }

.frame98313-xfooter-disclaim {
  margin: 14px 0 0;
  padding: 10px;
  border-radius: var(--frame98313-radius-sm);
  background: rgba(173,216,230,0.06);
  border: 1px dashed var(--frame98313-line);
  font-size: 11px;
  color: var(--frame98313-text-dim);
  line-height: 1.55;
}

/* ==========================================================================
   Universal footer (copyright only)
   ========================================================================== */

.frame98313-footer {
  margin: 22px 0 0;
  padding: 14px;
  text-align: center;
  font-size: 11px;
  color: var(--frame98313-text-dim);
  line-height: 1.6;
  border-top: 1px solid var(--frame98313-line-soft);
}

.frame98313-footer b { color: var(--frame98313-text-muted); }

/* ==========================================================================
   Bottom navigation - center raised
   ========================================================================== */

.frame98313-bottomnav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: var(--frame98313-maxw);
  height: var(--frame98313-bottomnav-h);
  background: linear-gradient(180deg, rgba(20,20,28,0.98), rgba(20,20,28,1));
  border-top: 1px solid var(--frame98313-line);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  z-index: 55;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.frame98313-bottomnav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--frame98313-grad-line);
  opacity: 0.7;
}

.frame98313-navitem {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 100%;
  padding: 0 2px;
  color: var(--frame98313-text-muted);
  font-size: 10px;
  font-weight: 600;
  background: none;
  border: none;
  transition: color 0.2s ease;
}

.frame98313-navitem svg { width: 22px; height: 22px; }

.frame98313-navitem .frame98313-nav-ico {
  width: 36px;
  height: 30px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.22s ease, transform 0.22s ease;
}

.frame98313-navitem.active {
  color: var(--frame98313-text);
}

.frame98313-navitem.active .frame98313-nav-ico {
  background: var(--frame98313-grad-soft);
  border: 1px solid var(--frame98313-line);
}

/* Indicator sliding bar */
.frame98313-nav-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 20%;
  height: 3px;
  background: var(--frame98313-grad-line);
  border-radius: 0 0 4px 4px;
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
  opacity: 0;
}

.frame98313-navitem.active .frame98313-nav-indicator {
  opacity: 1;
}

/* Center raised button */
.frame98313-navcenter {
  position: relative;
}

.frame98313-navcenter .frame98313-nav-ico {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--frame98313-grad);
  box-shadow: 0 6px 18px rgba(106,90,205,0.55);
  margin-top: -22px;
  border: 3px solid var(--frame98313-bg);
}

.frame98313-navcenter .frame98313-nav-ico svg {
  width: 24px;
  height: 24px;
  color: #fff;
}

.frame98313-navcenter span {
  margin-top: 2px;
  color: var(--frame98313-blue-soft);
  font-weight: 700;
}

.frame98313-navitem:active .frame98313-nav-ico { transform: scale(0.92); }

/* ==========================================================================
   Back-to-top button
   ========================================================================== */

.frame98313-top-btn {
  position: fixed;
  right: 14px;
  bottom: calc(var(--frame98313-bottomnav-h) + 14px);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--frame98313-card);
  border: 1px solid var(--frame98313-line);
  color: var(--frame98313-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 45;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  box-shadow: var(--frame98313-shadow);
}

.frame98313-top-btn svg { width: 20px; height: 20px; }

.frame98313-top-btn-show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ==========================================================================
   Reveal animation
   ========================================================================== */

.frame98313-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.frame98313-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive tweaks - keep mobile canvas on wider screens
   ========================================================================== */

@media (min-width: 375px) {
  .frame98313-games { gap: 10px; }
  .frame98313-game-name { font-size: 11.5px; }
}

@media (min-width: 430px) {
  .frame98313-games { grid-template-columns: repeat(5, 1fr); }
}

@media (min-width: 600px) {
  /* Lock the mobile canvas; do not expand to desktop width */
  body { padding-left: env(safe-area-inset-left, 0); padding-right: env(safe-area-inset-right, 0); }
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
