@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

:root {
  /* Heuser College Palette (from heusercollege.com) */
  --heuser-navy-deep: #000F1D;
  --heuser-navy: #00172E;
  --heuser-navy-elev: #07223D;
  --heuser-navy-card: #0A2949;
  --heuser-maroon: #881A21;
  --heuser-crimson: #DA2A35;
  --heuser-crimson-hover: #EE3844;
  --heuser-gold: #F1BA63;
  --heuser-gold-deep: #AD8647;
  --heuser-ink: #252525;
  --heuser-muted: #9DB0C4;
  --heuser-surface: #F5F5F7;
  --heuser-border: rgba(220, 221, 232, 0.14);
  --heuser-border-strong: rgba(241, 186, 99, 0.35);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 10px 28px rgba(0, 8, 18, 0.45);
  --shadow-glow-gold: 0 12px 32px rgba(241, 186, 99, 0.18);
  --shadow-glow-red: 0 10px 26px rgba(218, 42, 53, 0.28);

  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
}

::selection {
  background: var(--heuser-crimson);
  color: #ffffff;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--heuser-navy-deep);
}
::-webkit-scrollbar-thumb {
  background: #173A5E;
  border-radius: 999px;
  border: 2px solid var(--heuser-navy-deep);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--heuser-crimson);
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--heuser-navy-deep);
  background-image:
    radial-gradient(ellipse 80% 50% at 15% -10%, rgba(136, 26, 33, 0.26), transparent 60%),
    radial-gradient(ellipse 65% 45% at 88% 0%, rgba(241, 186, 99, 0.11), transparent 55%),
    linear-gradient(180deg, #000F1D 0%, #001529 100%);
  background-attachment: fixed;
  color: #FFFFFF;
  font-family: var(--font-sans);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--heuser-gold);
  outline-offset: 2px;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.mono {
  font-family: var(--font-mono);
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(0, 15, 29, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--heuser-border);
}

.topbar-inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-crest {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--heuser-crimson) 0%, var(--heuser-maroon) 100%);
  border: 1.5px solid rgba(241, 186, 99, 0.55);
  display: grid;
  place-items: center;
  color: var(--heuser-gold);
  box-shadow: 0 6px 18px rgba(218, 42, 53, 0.35);
  flex-shrink: 0;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #FFFFFF;
}

.brand-sub {
  font-size: 0.78rem;
  color: var(--heuser-muted);
  font-weight: 500;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--heuser-border);
  font-size: 0.8rem;
  color: #DCE6F2;
  font-weight: 500;
}

.stat-chip strong {
  color: var(--heuser-gold);
  font-weight: 700;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.14s ease, background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.btn:active {
  transform: translateY(1px) scale(0.985);
}

.btn-primary {
  background: var(--heuser-crimson);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(218, 42, 53, 0.35);
}
.btn-primary:hover {
  background: var(--heuser-crimson-hover);
}

.btn-gold {
  background: var(--heuser-gold);
  color: var(--heuser-navy-deep);
  font-weight: 700;
}
.btn-gold:hover {
  background: #F6CA7E;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #E7EFF8;
  border-color: var(--heuser-border);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-sm {
  padding: 6px 11px;
  font-size: 0.8rem;
  border-radius: 8px;
}

/* Main Container */
.container {
  max-width: 1480px;
  margin: 0 auto;
  padding: 26px 24px 64px;
}

/* Hero Banner */
.hero {
  background: linear-gradient(125deg, var(--heuser-navy) 0%, #092441 55%, rgba(136, 26, 33, 0.45) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 92% 20%, rgba(241, 186, 99, 0.14), transparent 42%);
  pointer-events: none;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 8px 0;
  line-height: 1.12;
}

.hero-copy p {
  margin: 0;
  max-width: 66ch;
  color: #C7D6E6;
  font-size: 0.98rem;
}

.hero-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.hero-pill {
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(0, 15, 29, 0.6);
  border: 1px solid rgba(241, 186, 99, 0.28);
  font-size: 0.82rem;
  color: #F4EFE6;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-pill svg {
  color: var(--heuser-gold);
}

/* Filter Dock */
.controls-dock {
  background: rgba(7, 34, 61, 0.72);
  border: 1px solid var(--heuser-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.controls-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.search-wrap {
  position: relative;
  flex: 1 1 260px;
  min-width: 220px;
}

.search-wrap svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--heuser-muted);
  pointer-events: none;
}

.input, .select, .textarea {
  width: 100%;
  background: var(--heuser-navy-deep);
  border: 1px solid rgba(220, 221, 232, 0.18);
  color: #FFFFFF;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.9rem;
  transition: border-color 0.15s ease;
}

.search-wrap .input {
  padding-left: 38px;
}

.input:focus, .select:focus, .textarea:focus {
  border-color: var(--heuser-gold);
  outline: none;
}

.select {
  width: auto;
  min-width: 170px;
  cursor: pointer;
}

.hw-pills {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.pill-btn {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--heuser-border);
  background: rgba(0, 15, 29, 0.55);
  color: #CBD9E8;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pill-btn:hover {
  border-color: rgba(241, 186, 99, 0.5);
  color: #FFFFFF;
}

.pill-btn.active {
  background: var(--heuser-crimson);
  border-color: var(--heuser-crimson);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(218, 42, 53, 0.35);
}

.pill-btn.gold.active {
  background: var(--heuser-gold);
  border-color: var(--heuser-gold);
  color: var(--heuser-navy-deep);
  box-shadow: 0 4px 12px rgba(241, 186, 99, 0.35);
}

/* Section Headers */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 14px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.section-head .count-tag {
  font-size: 0.82rem;
  color: var(--heuser-muted);
  font-weight: 600;
}

/* Friv-style Arcade Mosaic Grid */
.arcade-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}

.arcade-grid.starred-grid {
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  margin-bottom: 28px;
}

.student-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 16px;
  padding: 15px;
  min-height: 186px;
  background: var(--tile-bg, linear-gradient(155deg, #092644 0%, #05182D 100%));
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 20px rgba(0, 8, 18, 0.42);
  overflow: hidden;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}

.student-tile:hover {
  transform: translateY(-4px) scale(1.015);
  border-color: var(--heuser-gold);
  box-shadow: 0 16px 32px rgba(0, 8, 18, 0.65), 0 0 0 1px rgba(241, 186, 99, 0.35);
}

.student-tile.is-starred {
  border-color: rgba(241, 186, 99, 0.7);
  box-shadow: var(--shadow-glow-gold);
  background: linear-gradient(145deg, rgba(136, 26, 33, 0.55) 0%, #08233E 58%, #041526 100%);
}

.tile-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.tile-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: #FFFFFF;
  background: var(--tile-accent, var(--heuser-crimson));
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.tile-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.badge-star {
  background: var(--heuser-gold);
  color: var(--heuser-navy-deep);
}

.badge-play {
  background: rgba(218, 42, 53, 0.9);
  color: #FFFFFF;
}

.badge-batch {
  background: rgba(255, 255, 255, 0.1);
  color: #D7E5F5;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.tile-body {
  margin: 12px 0 10px;
}

.tile-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.22;
  color: #FFFFFF;
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tile-id {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--heuser-muted);
  font-variant-numeric: tabular-nums;
}

.tile-star-note {
  margin-top: 6px;
  font-size: 0.76rem;
  color: var(--heuser-gold);
  font-weight: 600;
}

.tile-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hw-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  align-items: center;
  min-width: 0;
}

.hw-dot {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  font-size: 0.58rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

.hw-dot.done {
  background: var(--heuser-crimson);
  color: #FFFFFF;
}

.hw-dot.done.is-game {
  background: var(--heuser-gold);
  color: var(--heuser-navy-deep);
}

.tile-votes {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #F4EFE6;
  flex-shrink: 0;
  white-space: nowrap;
}

.tile-votes svg {
  color: var(--heuser-gold);
}

/* Student Detail Page */
.student-header {
  background: linear-gradient(130deg, var(--heuser-navy) 0%, #0A2B4C 65%, rgba(136, 26, 33, 0.45) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.student-identity {
  display: flex;
  align-items: center;
  gap: 18px;
}

.student-avatar-lg {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--heuser-crimson), var(--heuser-maroon));
  border: 2px solid var(--heuser-gold);
  box-shadow: var(--shadow-glow-red);
}

.student-identity h1 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  font-weight: 800;
  margin: 0 0 4px;
  letter-spacing: -0.025em;
}

.student-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--heuser-muted);
  font-size: 0.86rem;
}

.hw-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.hw-tab {
  background: rgba(7, 34, 61, 0.7);
  border: 1px solid var(--heuser-border);
  border-radius: 12px;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  color: #DCE7F3;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hw-tab:hover:not(:disabled) {
  border-color: var(--heuser-gold);
  background: rgba(10, 41, 73, 0.95);
}

.hw-tab.active {
  background: linear-gradient(145deg, var(--heuser-crimson), var(--heuser-maroon));
  border-color: var(--heuser-gold);
  color: #FFFFFF;
  box-shadow: var(--shadow-glow-red);
}

.hw-tab.missing {
  opacity: 0.45;
  cursor: not-allowed;
}

.hw-tab-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hw-tab-kind {
  font-size: 0.74rem;
  opacity: 0.85;
}

/* Workspace Stage */
.stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: start;
}

@media (max-width: 1060px) {
  .stage-grid {
    grid-template-columns: 1fr;
  }
}

.panel {
  background: rgba(7, 34, 61, 0.82);
  border: 1px solid var(--heuser-border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.arcade-frame-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 440px;
  background: #020812;
  border-radius: 14px;
  border: 2px solid rgba(241, 186, 99, 0.35);
  overflow: hidden;
  margin-top: 14px;
}

.arcade-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #000000;
}

.arcade-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.code-viewer {
  background: #030C17;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 16px;
  overflow: auto;
  max-height: 560px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.55;
  color: #E2ECF7;
  white-space: pre-wrap;
  word-break: break-word;
  margin-top: 12px;
}

.vote-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(155deg, rgba(136, 26, 33, 0.35), rgba(0, 23, 46, 0.9));
  border: 1px solid rgba(241, 186, 99, 0.3);
  margin-bottom: 18px;
}

.vote-btn {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--heuser-gold);
  background: rgba(241, 186, 99, 0.12);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.16s ease;
}

.vote-btn:hover {
  background: rgba(241, 186, 99, 0.25);
}

.vote-btn.voted {
  background: var(--heuser-gold);
  color: var(--heuser-navy-deep);
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
  max-height: 420px;
  overflow-y: auto;
}

.comment-item {
  background: rgba(0, 15, 29, 0.65);
  border: 1px solid var(--heuser-border);
  border-radius: 10px;
  padding: 11px 13px;
}

.comment-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--heuser-gold);
  font-weight: 700;
  margin-bottom: 4px;
}

.comment-head time {
  color: var(--heuser-muted);
  font-weight: 500;
}

.comment-body {
  font-size: 0.87rem;
  color: #EAF1F8;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Admin Panel */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.kpi-card {
  background: rgba(7, 34, 61, 0.84);
  border: 1px solid var(--heuser-border);
  border-radius: 14px;
  padding: 16px 18px;
}

.kpi-label {
  font-size: 0.78rem;
  color: var(--heuser-muted);
  font-weight: 600;
}

.kpi-val {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  margin-top: 4px;
  color: #FFFFFF;
}

.kpi-val.gold { color: var(--heuser-gold); }
.kpi-val.red { color: #FF6B74; }

.table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid var(--heuser-border);
  background: rgba(3, 18, 34, 0.86);
}

table.matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

table.matrix-table th, table.matrix-table td {
  padding: 10px 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  text-align: left;
  white-space: nowrap;
}

table.matrix-table th {
  background: var(--heuser-navy);
  color: var(--heuser-gold);
  font-family: var(--font-display);
  font-weight: 700;
  position: sticky;
  top: 0;
  z-index: 2;
}

table.matrix-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.cell-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 26px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.78rem;
}

.cell-status.ok {
  background: rgba(34, 197, 94, 0.18);
  color: #6EE7B7;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.cell-status.ok.game {
  background: rgba(241, 186, 99, 0.22);
  color: var(--heuser-gold);
  border-color: rgba(241, 186, 99, 0.45);
}

.cell-status.miss {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.25);
}

.star-toggle {
  background: transparent;
  border: 1px solid var(--heuser-border);
  border-radius: 8px;
  width: 34px;
  height: 32px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--heuser-muted);
  transition: all 0.15s ease;
}

.star-toggle.active {
  background: rgba(241, 186, 99, 0.18);
  border-color: var(--heuser-gold);
  color: var(--heuser-gold);
}

.hw-bars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.hw-bar-card {
  background: rgba(0, 15, 29, 0.65);
  border: 1px solid var(--heuser-border);
  border-radius: 10px;
  padding: 11px 13px;
}

.hw-bar-track {
  height: 7px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
}

.hw-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--heuser-crimson), var(--heuser-gold));
  border-radius: 999px;
}

.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--heuser-muted);
  border: 1px dashed var(--heuser-border);
  border-radius: 14px;
}

.toast {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background: var(--heuser-navy);
  border: 1.5px solid var(--heuser-gold);
  color: #FFFFFF;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
  z-index: 100;
  animation: fadeSlideUp 0.2s ease;
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 680px) {
  .topbar-inner, .container {
    padding-left: 14px;
    padding-right: 14px;
  }
  .topbar-inner {
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 10px;
  }
  .topbar-actions .stat-chip {
    display: none;
  }
  .hero {
    padding: 20px;
  }
  .arcade-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
  }
  .arcade-frame-wrap {
    min-height: 300px;
  }
}
