﻿:root {
  color-scheme: dark;
  --bg-0: #06080f;
  --bg-1: #0b1020;
  --bg-2: #151b2d;
  --panel: rgba(20, 26, 42, 0.78);
  --panel-strong: rgba(18, 24, 40, 0.95);
  --stroke: rgba(255, 255, 255, 0.08);
  --stroke-strong: rgba(255, 255, 255, 0.16);
  --text: #eef2fb;
  --muted: #a7b1c9;
  --accent: #d4b07a;
  --accent-2: #bb7d37;
  --accent-3: #f0d6b0;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Manrope", system-ui, sans-serif;
  background: radial-gradient(circle at 20% 20%, rgba(63, 70, 95, 0.25), transparent 50%),
    radial-gradient(circle at 80% 10%, rgba(77, 62, 38, 0.25), transparent 45%),
    linear-gradient(145deg, #0a0d18 0%, #0b1120 40%, #0b0f1b 100%);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  isolation: isolate;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: -20%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background: radial-gradient(circle at 30% 30%, rgba(214, 176, 122, 0.22), transparent 45%),
    radial-gradient(circle at 70% 20%, rgba(120, 150, 210, 0.18), transparent 50%),
    radial-gradient(circle at 60% 70%, rgba(255, 220, 180, 0.12), transparent 50%);
  animation: float 20s ease-in-out infinite;
}

body::after {
  opacity: 0.2;
  animation-duration: 28s;
  animation-direction: reverse;
}

.stage {
  width: min(1200px, 96vw);
  position: relative;
  z-index: 1;
}

.launcher {
  background: linear-gradient(140deg, rgba(20, 26, 42, 0.85), rgba(11, 14, 24, 0.95));
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 20px 22px 22px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  z-index: 1;
}

.launcher::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 300px at 20% 10%, rgba(255, 216, 166, 0.12), transparent 60%),
    radial-gradient(400px 200px at 80% 10%, rgba(164, 188, 255, 0.15), transparent 60%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
  pointer-events: none;
  z-index: 0;
}

.launcher::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.18'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  opacity: 0.28;
  pointer-events: none;
  z-index: 1;
}

.fx {
  position: absolute;
  inset: -40px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.8;
}

.fx .particle {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.25), transparent 40%),
    radial-gradient(1px 1px at 60% 20%, rgba(255, 230, 190, 0.25), transparent 40%),
    radial-gradient(2px 2px at 80% 70%, rgba(200, 220, 255, 0.2), transparent 45%),
    radial-gradient(1px 1px at 40% 80%, rgba(255, 255, 255, 0.18), transparent 45%);
  background-size: 220px 220px;
  animation: drift 36s linear infinite;
  opacity: 0.6;
}

.fx .layer-2 {
  background-size: 320px 320px;
  animation-duration: 52s;
  opacity: 0.45;
}

.fx .layer-3 {
  background-size: 180px 180px;
  animation-duration: 68s;
  opacity: 0.35;
}

.fx .aurora {
  position: absolute;
  inset: -10%;
  background: radial-gradient(circle at 10% 30%, rgba(214, 176, 122, 0.2), transparent 55%),
    radial-gradient(circle at 70% 10%, rgba(120, 160, 220, 0.18), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(255, 210, 170, 0.16), transparent 60%);
  filter: blur(22px);
  animation: float 18s ease-in-out infinite;
  opacity: 0.6;
}

.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Cinzel", serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sigil {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #f6e3c1, #b88740 60%, #5a3b1a 100%);
  box-shadow: 0 0 18px rgba(214, 176, 122, 0.4);
  position: relative;
}

.sigil::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.brand-sub {
  font-size: 10px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.26em;
}

.brand-main {
  font-size: 18px;
  font-weight: 700;
}

.menu {
  display: flex;
  justify-content: center;
  gap: 18px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  overflow-x: auto;
  scrollbar-width: none;
}

.menu::-webkit-scrollbar {
  display: none;
}

.menu a {
  text-decoration: none;
  color: inherit;
  padding-bottom: 4px;
  position: relative;
  white-space: nowrap;
}

.menu a.active,
.menu a:hover {
  color: var(--text);
}

.menu a.active::after,
.menu a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-toggle {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--stroke-strong);
  background: rgba(12, 16, 28, 0.8);
  color: var(--accent-3);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(214, 176, 122, 0.6);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: rgba(12, 16, 28, 0.75);
  color: var(--accent-3);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.icon-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(214, 176, 122, 0.5);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.notifications-btn {
  position: relative;
}

.notifications-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #e57373;
  color: white;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notifications-popup {
  position: fixed;
  top: 70px;
  right: 60px;
  width: 340px;
  max-height: 400px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(160deg, rgba(18, 24, 40, 0.98), rgba(9, 12, 20, 0.98));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  z-index: 1000;
}

.notifications-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-3);
}

.mark-all-read-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 10px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.2s;
}

.mark-all-read-btn:hover {
  color: var(--accent-3);
}

.notifications-list {
  max-height: 320px;
  overflow-y: auto;
}

.notification-item {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  padding-right: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: background 0.2s;
}

.notification-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.notification-item.unread {
  background: rgba(214, 176, 122, 0.05);
}

.notification-item.unread::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-3);
  flex-shrink: 0;
  margin-top: 6px;
}

.notification-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(214, 176, 122, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notification-icon svg {
  width: 18px;
  height: 18px;
  color: var(--accent-3);
}

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-delete {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s, color 0.2s;
}

.notification-item:hover .notification-delete {
  opacity: 1;
}

.notification-delete:hover {
  background: rgba(200, 80, 80, 0.2);
  color: #e57373;
}

.notification-delete svg {
  width: 14px;
  height: 14px;
}

.notification-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.notification-message {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.notification-time {
  font-size: 10px;
  color: rgba(167, 177, 201, 0.6);
  margin-top: 4px;
}

.notifications-empty {
  padding: 30px 14px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(11, 15, 24, 0.7);
}

.profile-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.profile-link:focus-visible {
  outline: 2px solid rgba(214, 176, 122, 0.7);
  outline-offset: 2px;
}

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: linear-gradient(135deg, #7a92b8, #2f3b56);
  position: relative;
  overflow: hidden;
}

.avatar::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

#user-avatar-img {
  border-radius: 10px;
}

.profile-name {
  font-size: 13px;
  font-weight: 600;
}

.profile-meta {
  font-size: 11px;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: 2.1fr 1.1fr;
  grid-template-rows: 300px 190px 190px 110px;
  gap: 18px;
  margin-top: 18px;
  position: relative;
  z-index: 2;
}

.hero {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.35);
  background: rgba(9, 12, 22, 0.7);
}

.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 240px at 20% 20%, rgba(255, 230, 180, 0.16), transparent 65%);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 1;
}

.hero-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.hero-track::-webkit-scrollbar {
  display: none;
}

.hero-slide {
  position: relative;
  min-width: 100%;
  padding: 28px;
  scroll-snap-align: start;
  background:
    linear-gradient(110deg, rgba(15, 19, 32, 0.92) 10%, rgba(23, 29, 46, 0.86) 45%, rgba(18, 22, 36, 0.96) 75%),
    radial-gradient(600px 360px at 70% 0%, var(--hero-warm, rgba(255, 214, 162, 0.3)), transparent 60%),
    radial-gradient(320px 240px at 20% 10%, var(--hero-cool, rgba(115, 133, 170, 0.4)), transparent 60%);
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  isolation: isolate;
}

.hero-hit {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
}

.hero-link {
  position: relative;
  z-index: 3;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.08) 45%, transparent 60%);
  transform: translateX(-40%);
  animation: sheen 18s linear infinite;
  pointer-events: none;
  z-index: 1;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='340' viewBox='0 0 600 340'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop stop-color='%23ffffff' stop-opacity='0.12' offset='0'/%3E%3Cstop stop-color='%23ffffff' stop-opacity='0' offset='1'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 240 C120 160 220 220 360 150 C460 100 540 110 600 60' stroke='url(%23g)' stroke-width='1.4' fill='none'/%3E%3Cpath d='M0 280 C140 230 240 260 380 200 C480 150 560 150 600 120' stroke='url(%23g)' stroke-width='1.2' fill='none'/%3E%3Ccircle cx='410' cy='85' r='48' fill='%23ffffff' fill-opacity='0.04'/%3E%3Ccircle cx='470' cy='120' r='34' fill='%23ffffff' fill-opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.7;
  pointer-events: none;
}

.hero-slide.accent-2 {
  --hero-warm: rgba(175, 208, 255, 0.28);
  --hero-cool: rgba(255, 212, 176, 0.32);
}

.hero-slide.accent-3 {
  --hero-warm: rgba(220, 190, 120, 0.32);
  --hero-cool: rgba(140, 170, 210, 0.3);
}

.hero-content {
  max-width: 56%;
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-3);
  margin-bottom: 14px;
}

.hero-tag::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  font-family: "Cinzel", serif;
  font-size: 26px;
  line-height: 1.2;
  margin-bottom: 14px;
}

.hero p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.ghost {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--stroke-strong);
  background: transparent;
  color: var(--text);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ghost:hover {
  transform: translateY(-1px);
  border-color: rgba(214, 176, 122, 0.6);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
}

.hero-date {
  color: var(--muted);
  font-size: 11px;
}

.hero-figure {
  position: absolute;
  right: 10px;
  bottom: -10px;
  width: 46%;
  height: 100%;
  background:
    radial-gradient(200px 260px at 50% 20%, rgba(255, 230, 205, 0.35), transparent 65%),
    linear-gradient(180deg, rgba(80, 95, 130, 0.2), rgba(16, 20, 35, 0.85) 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='340' viewBox='0 0 360 340'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop stop-color='%23f0d6b0' stop-opacity='0.55' offset='0'/%3E%3Cstop stop-color='%23818bb5' stop-opacity='0.15' offset='1'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M205 50c30 8 55 36 52 76-2 38-23 62-52 65-33 4-63-19-66-55-3-39 18-94 66-86Z' fill='url(%23a)'/%3E%3Cpath d='M100 260c38-60 74-76 108-78 44-2 84 18 106 62 18 36 6 78-24 88-50 16-160-12-190-72Z' fill='%23b68b4b' fill-opacity='0.25'/%3E%3Cpath d='M120 110c30 30 30 80 12 120-12 28-32 46-52 62' stroke='%23f3e0c4' stroke-opacity='0.2' stroke-width='4' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 0.9;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.35));
  animation: float 14s ease-in-out infinite;
}

.figure-ring {
  position: absolute;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  right: 90px;
  top: 40px;
  box-shadow: 0 0 30px rgba(255, 220, 170, 0.2);
  animation: pulse 8s ease-in-out infinite;
}

.figure-bloom {
  position: absolute;
  width: 140px;
  height: 140px;
  right: 20px;
  top: 10px;
  background: radial-gradient(circle, rgba(255, 190, 200, 0.55), transparent 65%);
  filter: blur(1px);
  animation: pulse 6s ease-in-out infinite;
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: rgba(12, 16, 28, 0.75);
  color: var(--accent-3);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hero-nav:hover {
  transform: translateY(-50%) scale(1.05);
  border-color: rgba(214, 176, 122, 0.6);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.hero-nav.prev {
  left: 12px;
}

.hero-nav.next {
  right: 12px;
}

.hero-nav svg {
  width: 18px;
  height: 18px;
}

.hero-dots {
  position: absolute;
  bottom: 14px;
  left: 20px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-dot.active {
  background: linear-gradient(135deg, #f0d6b0, #c48a44);
  border-color: transparent;
  box-shadow: 0 0 10px rgba(214, 176, 122, 0.45);
  transform: scale(1.1);
}

.panel {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  padding: 18px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.panel:hover {
  transform: translateY(-2px);
  border-color: rgba(214, 176, 122, 0.35);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.panel-filter {
  font-size: 11px;
  background: rgba(13, 18, 32, 0.7);
  border: 1px solid var(--stroke);
  border-radius: 8px;
  padding: 6px 10px;
  color: var(--text);
}

.panel-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
}

.panel-body::-webkit-scrollbar {
  width: 6px;
}

.panel-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}

.panel-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 10px;
  border-radius: 12px;
  background: rgba(10, 14, 26, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffe4b5, #a9713c);
  margin-top: 6px;
}

.panel-title {
  font-size: 13px;
  font-weight: 600;
}

.panel-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.4;
}

.panel-badge {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.panel-footer {
  display: flex;
  gap: 10px;
}

.panel-btn {
  flex: 1;
  padding: 8px 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  border-radius: 8px;
  border: 1px solid var(--stroke-strong);
  background: rgba(10, 14, 26, 0.6);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.panel-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(214, 176, 122, 0.6);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
}

.card {
  padding: 16px;
  border-radius: 16px;
  background: var(--panel-strong);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(214, 176, 122, 0.35);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.news {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
}

.rewards {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.card h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: var(--accent-3);
}

.card-pill {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--accent);
}

.card-list {
  display: grid;
  gap: 12px;
}

.card-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.card-link {
  text-decoration: none;
  color: inherit;
}

.card-link:hover .row-title {
  color: var(--accent-3);
}

.row-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, #c7a375, #5d3b1a);
  opacity: 0.8;
  display: grid;
  place-items: center;
  position: relative;
}

.row-icon::after {
  content: "";
  width: 16px;
  height: 16px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.45));
  opacity: 0.9;
}

.card-row:nth-child(1) .row-icon::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%23f7e4c4' d='M7 3h10l1 3H6l1-3Zm-1 5h12v11a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2V8Zm2 2v9h8v-9H8Z'/%3E%3C/svg%3E");
}

.card-row:nth-child(2) .row-icon::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%23f7e4c4' d='M6 2h9l3 4v16H6V2Zm2 2v16h8V7h-3V4H8Z'/%3E%3C/svg%3E");
}

.card-row:nth-child(3) .row-icon::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%23f7e4c4' d='M12 2 4 5v6c0 5 3.4 9.6 8 11 4.6-1.4 8-6 8-11V5l-8-3Zm0 4 4 1.5V11c0 3.1-1.8 6-4 7.4-2.2-1.4-4-4.3-4-7.4V7.5L12 6Z'/%3E%3C/svg%3E");
}

.row-title {
  font-size: 13px;
  font-weight: 600;
}

.row-sub {
  font-size: 11px;
  color: var(--muted);
}

.reward-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.reward {
  background: rgba(11, 15, 26, 0.65);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.reward-icon {
  width: 30px;
  height: 30px;
  margin: 0 auto 6px;
  border-radius: 8px;
  background: linear-gradient(145deg, #f0d6b0, #926535);
  display: grid;
  place-items: center;
  position: relative;
}

.reward-icon::after {
  content: "";
  width: 16px;
  height: 16px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.35));
  opacity: 0.95;
}

.reward:nth-child(1) .reward-icon::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%232c1b0c' d='M12 2 6 12h4l-2 10 10-14h-5l2-6Z'/%3E%3C/svg%3E");
}

.reward:nth-child(2) .reward-icon::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%232c1b0c' d='M12 2C8 2 5 5 5 9c0 5 7 11 7 11s7-6 7-11c0-4-3-7-7-7Zm0 9a2 2 0 1 1 0-4 2 2 0 0 1 0 4Z'/%3E%3C/svg%3E");
}

.reward:nth-child(3) .reward-icon::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%232c1b0c' d='M6 3h9l3 4v14H6V3Zm2 2v14h8V8h-3V5H8Z'/%3E%3C/svg%3E");
}

.reward:nth-child(4) .reward-icon::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%232c1b0c' d='m12 2 6 9-6 11L6 11 12 2Zm0 4-3 5 3 5 3-5-3-5Z'/%3E%3C/svg%3E");
}

.reward-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.reward-sub {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}

.reward-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.reward-status {
  font-size: 11px;
  color: var(--muted);
}

.carousel {
  grid-column: 1 / -1;
  grid-row: 3 / 4;
  padding: 14px;
  border-radius: 16px;
  background: rgba(13, 18, 32, 0.82);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.carousel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(200px 120px at 10% 0%, rgba(214, 176, 122, 0.12), transparent 70%);
  pointer-events: none;
}

.carousel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.carousel-title {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-3);
}

.carousel-controls {
  display: flex;
  gap: 8px;
}

.carousel-nav {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--stroke);
  background: rgba(12, 16, 28, 0.85);
  color: var(--accent-3);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.carousel-nav svg {
  width: 16px;
  height: 16px;
}

.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 12px) / 2);
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 6px;
  position: relative;
  z-index: 1;
}

.carousel-track::-webkit-scrollbar {
  height: 6px;
}

.carousel-track::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.carousel-track::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #c79a5e, #f0d6b0);
  border-radius: 999px;
}

.carousel-card {
  position: relative;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(110deg, rgba(15, 19, 32, 0.92) 10%, rgba(23, 29, 46, 0.86) 45%, rgba(18, 22, 36, 0.96) 75%),
    radial-gradient(300px 200px at 70% 0%, rgba(255, 214, 162, 0.25), transparent 60%),
    radial-gradient(180px 140px at 20% 10%, rgba(115, 133, 170, 0.3), transparent 60%);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  scroll-snap-align: start;
  padding: 14px;
  min-height: 170px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  text-decoration: none;
  display: block;
}

.carousel-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(160px 90px at 80% 10%, rgba(214, 176, 122, 0.18), transparent 65%);
  opacity: 0.7;
  pointer-events: none;
}

.carousel-card.active,
.carousel-card:hover {
  border-color: rgba(214, 176, 122, 0.5);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

.story-content {
  position: relative;
  z-index: 2;
  max-width: 70%;
  display: grid;
  gap: 6px;
}

.story-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--accent-3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.story-tag::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
}

.story-title {
  font-family: "Cinzel", serif;
  font-size: 16px;
  line-height: 1.2;
}

.story-desc {
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
}

.story-date {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.story-figure {
  position: absolute;
  right: -10px;
  bottom: -12px;
  width: 55%;
  height: 100%;
  background:
    radial-gradient(140px 170px at 50% 20%, rgba(255, 230, 205, 0.28), transparent 65%),
    linear-gradient(180deg, rgba(80, 95, 130, 0.18), rgba(16, 20, 35, 0.85) 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='220' viewBox='0 0 260 220'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop stop-color='%23f0d6b0' stop-opacity='0.45' offset='0'/%3E%3Cstop stop-color='%23818bb5' stop-opacity='0.12' offset='1'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M150 28c20 6 38 28 36 58-2 30-16 46-36 50-22 4-42-16-44-42-2-28 14-72 44-66Z' fill='url(%23a)'/%3E%3Cpath d='M70 170c28-44 56-58 82-60 32-2 62 14 78 48 13 28 4 58-18 66-38 12-122-8-142-54Z' fill='%23b68b4b' fill-opacity='0.22'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 0.85;
  animation: float 16s ease-in-out infinite;
}

.carousel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.carousel-hint {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.carousel-bar {
  width: 160px;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}

.carousel-bar span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  background: linear-gradient(90deg, #c79a5e, #f0d6b0);
  transition: transform 0.2s ease, width 0.2s ease;
}

.download-wrap {
  grid-column: 1 / -1;
  grid-row: 4 / 5;
  padding: 12px 16px;
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(20, 26, 42, 0.95), rgba(12, 16, 28, 0.92));
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.6fr auto;
  gap: 18px;
  align-items: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.download-wrap:hover {
  transform: translateY(-2px);
  border-color: rgba(214, 176, 122, 0.35);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.download-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.download-percent {
  color: var(--accent-3);
  font-weight: 600;
}

.download-version {
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(214, 176, 122, 0.2);
  color: var(--accent-3);
  font-weight: 600;
  font-size: 10px;
  border: 1px solid rgba(214, 176, 122, 0.3);
}

.download-status-text {
  font-size: 12px;
  color: var(--text);
  margin-bottom: 8px;
}

.download-status-detail {
  color: var(--muted);
}

.download-play-section {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.update-badge {
  padding: 6px 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(214, 176, 122, 0.3), rgba(196, 138, 68, 0.2));
  color: var(--accent-3);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border: 1px solid rgba(214, 176, 122, 0.4);
  animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.btn-update {
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px solid rgba(214, 176, 122, 0.5);
  background: linear-gradient(135deg, rgba(214, 176, 122, 0.25), rgba(196, 138, 68, 0.15));
  color: var(--accent-3);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-update:hover {
  background: linear-gradient(135deg, rgba(214, 176, 122, 0.35), rgba(196, 138, 68, 0.25));
  border-color: rgba(214, 176, 122, 0.7);
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.download-progress {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin: 6px 0 8px;
}

.download-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #c79a5e, #f0d6b0);
  box-shadow: 0 0 12px rgba(214, 176, 122, 0.4);
}

.download-details {
  display: flex;
  gap: 18px;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.download-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.download-tools {
  display: flex;
  gap: 8px;
  align-items: center;
}

.mini-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: rgba(12, 16, 28, 0.75);
  color: var(--accent-3);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.mini-icon:hover {
  transform: translateY(-1px);
  border-color: rgba(214, 176, 122, 0.5);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
}

.mini-icon svg {
  width: 16px;
  height: 16px;
}

.download-chip {
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.play {
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, #f0d6b0, #c48a44 60%, #7a4e23);
  color: #2c1b0c;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  animation: pulse 5s ease-in-out infinite;
}

.play:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.4);
  filter: brightness(1.05);
}

.progress-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 15, 0.75);
  backdrop-filter: blur(4px);
}

.progress-modal-content {
  position: relative;
  width: 420px;
  max-width: 90vw;
  background: linear-gradient(160deg, rgba(18, 24, 40, 0.98), rgba(9, 12, 20, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.progress-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-3);
}

.progress-modal-close {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 16, 28, 0.8);
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.progress-modal-close:hover {
  border-color: rgba(214, 176, 122, 0.5);
  color: var(--accent-3);
}

.progress-modal-close svg {
  width: 14px;
  height: 14px;
}

.progress-modal-body {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.progress-modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(214, 176, 122, 0.2), rgba(196, 138, 68, 0.1));
  border: 1px solid rgba(214, 176, 122, 0.3);
  display: grid;
  place-items: center;
  color: var(--accent-3);
}

.progress-modal-icon svg {
  width: 28px;
  height: 28px;
}

.progress-modal-icon.spinning svg {
  animation: spin 2s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.progress-modal-status {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
}

.progress-modal-progress {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress-modal-bar {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.progress-modal-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #c79a5e, #f0d6b0);
  box-shadow: 0 0 12px rgba(214, 176, 122, 0.5);
  transition: width 0.3s ease;
}

.progress-modal-percent {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-3);
  min-width: 40px;
  text-align: right;
}

.progress-modal-detail {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

.progress-modal-log {
  width: 100%;
  max-height: 120px;
  overflow-y: auto;
  padding: 12px;
  border-radius: 10px;
  background: rgba(8, 12, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 10px;
  font-family: "Consolas", "Monaco", monospace;
  color: var(--muted);
  line-height: 1.6;
}

.progress-modal-log::-webkit-scrollbar {
  width: 6px;
}

.progress-modal-log::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}

.progress-modal-log .log-entry {
  padding: 2px 0;
}

.progress-modal-log .log-entry.success {
  color: #81c784;
}

.progress-modal-log .log-entry.error {
  color: #e57373;
}

.progress-modal-log .log-entry.info {
  color: var(--accent-3);
}

.progress-modal-footer {
  padding: 14px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: center;
}

.progress-modal-cancel {
  padding: 8px 24px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(12, 16, 28, 0.8);
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.progress-modal-cancel:hover {
  border-color: rgba(200, 80, 80, 0.5);
  color: #e57373;
}

.dashboard-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 15, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 20;
}

.dashboard-backdrop.show {
  opacity: 1;
  pointer-events: all;
}

.dashboard {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(420px, 94vw);
  background: linear-gradient(160deg, rgba(18, 24, 40, 0.98), rgba(9, 12, 20, 0.98));
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: -20px 0 40px rgba(0, 0, 0, 0.45);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
}

.dashboard.open {
  transform: translateX(0);
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent-3);
}

.dash-title {
  font-weight: 600;
}

.dash-close {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--stroke);
  background: rgba(12, 16, 28, 0.85);
  color: var(--text);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  cursor: pointer;
}

.dash-body {
  overflow-y: auto;
  display: grid;
  gap: 16px;
  padding-right: 4px;
}

.dash-section {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px;
  background: rgba(11, 15, 26, 0.7);
  display: grid;
  gap: 10px;
}

.dash-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-3);
}

.dash-list {
  display: grid;
  gap: 10px;
}

.dash-item {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px;
  background: rgba(9, 12, 20, 0.8);
  display: grid;
  gap: 8px;
}

.dash-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.dash-remove {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 4px 8px;
  background: rgba(20, 24, 38, 0.85);
  color: var(--text);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
}

.dash-field {
  display: grid;
  gap: 6px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.dash-field input,
.dash-field textarea,
.dash-field select {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 12, 20, 0.9);
  color: var(--text);
  padding: 8px;
  font-size: 12px;
  font-family: "Manrope", system-ui, sans-serif;
}

.dash-field textarea {
  min-height: 70px;
  resize: vertical;
}

.dash-add {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--stroke-strong);
  background: rgba(15, 19, 32, 0.8);
  color: var(--text);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  cursor: pointer;
}

.dash-actions {
  display: grid;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dash-save,
.dash-reset,
.dash-export {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--stroke-strong);
  background: rgba(12, 16, 28, 0.85);
  color: var(--text);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  cursor: pointer;
}

.dash-import {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  background: rgba(12, 16, 28, 0.6);
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  cursor: pointer;
}

.dash-import input {
  display: none;
}

.dash-note {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-40px, 20px, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes float {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(20px, -20px, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0.9;
  }
}

@keyframes sheen {
  0% {
    transform: translateX(-40%);
  }
  50% {
    transform: translateX(20%);
  }
  100% {
    transform: translateX(60%);
  }
}

@media (max-width: 1024px) {
  .grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .hero,
  .panel,
  .news,
  .rewards,
  .carousel,
  .download-wrap {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .hero-content {
    max-width: 70%;
  }

  .download-wrap {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .download-actions {
    justify-items: start;
  }
}

@media (max-width: 768px) {
  .topbar {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .menu {
    justify-content: flex-start;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-figure,
  .story-figure {
    opacity: 0.4;
  }

  .reward-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .carousel-track {
    grid-auto-columns: 100%;
  }

  .download-details {
    flex-direction: column;
    gap: 6px;
  }

  .download-tools {
    flex-wrap: wrap;
  }

  .play {
    width: 100%;
  }
}
