:root {
  --bg: #061225;
  --panel: rgba(9, 28, 55, 0.72);
  --panel-strong: rgba(5, 18, 36, 0.88);
  --line: rgba(161, 211, 255, 0.2);
  --line-strong: rgba(161, 211, 255, 0.38);
  --text: #f4f9ff;
  --muted: #a7bfd6;
  --soft: #d4e9ff;
  --accent: #3fd1ff;
  --accent-2: #7dd86f;
  --accent-3: #ffd36a;
  --accent-4: #ff65d8;
  --violet: #8e7bff;
  --danger: #ff7d90;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  color: var(--text);
  background: var(--bg);
  letter-spacing: 0;
}

body[data-screen="login"] {
  background-image:
    radial-gradient(circle at 75% 54%, rgba(2, 11, 26, 0.22), rgba(2, 11, 26, 0) 34%),
    linear-gradient(90deg, rgba(3, 11, 24, 0.02), rgba(3, 11, 24, 0.08) 46%, rgba(3, 11, 24, 0.24) 78%),
    url("/assets/images/bg-login-desktop.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

body[data-screen="app"] {
  background-image: linear-gradient(180deg, rgba(4, 13, 28, 0.4), rgba(4, 13, 28, 0.9)), url("/assets/images/bg-dashboard-desktop.png");
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

a {
  color: inherit;
}

.app-root {
  min-height: 100vh;
}

.login-layout {
  min-height: 100vh;
  position: relative;
  width: min(1480px, calc(100% - 28px));
  margin: 0 auto;
  padding: clamp(118px, 18vh, 172px) 0 46px;
}

.brand-block {
  max-width: 650px;
  padding: 18px 0 20px;
  margin-left: 0;
  padding-top: clamp(18px, 3vh, 34px);
}

.brand-name {
  position: relative;
  display: inline-block;
  margin: 0;
  color: #fffdf3;
  background: none;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: #fffdf3;
  -webkit-text-stroke: 2px rgba(1, 8, 22, 0.78);
  font-family: "Trebuchet MS", "Segoe UI Black", "Arial Black", system-ui, sans-serif;
  font-weight: 900;
  font-size: clamp(2.25rem, 3.55vw, 4.2rem);
  line-height: 1.03;
  letter-spacing: 0;
  text-shadow: 0 5px 0 rgba(2, 10, 28, 0.54), 0 18px 48px rgba(0, 0, 0, 0.98), 0 0 28px rgba(49, 244, 255, 0.45), 0 0 46px rgba(255, 211, 106, 0.22);
}

.brand-name::after {
  content: "";
  position: absolute;
  left: 4px;
  bottom: -14px;
  width: min(250px, 58%);
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(49, 244, 255, 0.98), rgba(140, 255, 114, 0.9), rgba(255, 92, 225, 0));
  box-shadow: 0 0 22px rgba(49, 244, 255, 0.42);
}

.brand-subtitle {
  margin: 20px 0 0;
  max-width: 620px;
  color: #ffffff;
  font-size: 1.2rem;
  line-height: 1.55;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.82), 0 0 16px rgba(49, 244, 255, 0.28);
}

.principle-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.principle-strip span,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(3, 14, 30, 0.48);
  color: var(--soft);
  backdrop-filter: blur(16px);
  white-space: nowrap;
}

.principle-strip span {
  border-color: rgba(49, 244, 255, 0.68);
  background: linear-gradient(135deg, rgba(5, 95, 145, 0.9), rgba(30, 32, 103, 0.84));
  color: #ffffff;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.42), 0 0 18px rgba(49, 244, 255, 0.18), inset 0 0 24px rgba(95, 226, 255, 0.12);
}

.principle-strip span:nth-child(2) {
  border-color: rgba(140, 255, 114, 0.64);
  background: linear-gradient(135deg, rgba(16, 125, 91, 0.9), rgba(22, 72, 151, 0.84));
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.42), 0 0 18px rgba(140, 255, 114, 0.16), inset 0 0 24px rgba(140, 255, 114, 0.1);
}

.principle-strip span:nth-child(3) {
  border-color: rgba(255, 92, 225, 0.66);
  background: linear-gradient(135deg, rgba(95, 49, 174, 0.92), rgba(10, 112, 152, 0.84));
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.42), 0 0 18px rgba(255, 92, 225, 0.16), inset 0 0 24px rgba(255, 92, 225, 0.1);
}

.login-card,
.topbar,
.metric,
.game-card,
.utility-card,
.panel,
.feedback,
.result-band,
.table-wrap,
.admin-pane,
.form-grid,
.question-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  border-radius: var(--radius);
}

.login-card {
  position: absolute;
  top: clamp(292px, 42vh, 370px);
  left: clamp(610px, 46vw, 780px);
  width: min(470px, calc(100vw - 28px));
  padding: 22px;
  margin-top: 0;
}

.login-card-head {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 5px;
  margin-bottom: 18px;
  border: 1px solid rgba(161, 211, 255, 0.18);
  border-radius: 8px;
  background: rgba(2, 10, 22, 0.38);
}

.mode-tab {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #cfe6fb;
  background: transparent;
  font-weight: 800;
}

.mode-tab.active {
  border-color: rgba(63, 209, 255, 0.56);
  color: #ffffff;
  background: linear-gradient(135deg, rgba(30, 154, 218, 0.94), rgba(42, 81, 214, 0.9));
  box-shadow: 0 12px 24px rgba(22, 103, 210, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.mode-tab:not(.active):hover {
  border-color: rgba(161, 211, 255, 0.28);
  background: rgba(17, 58, 105, 0.48);
}

.mode-tab svg {
  width: 18px;
  height: 18px;
}

.login-card .form {
  gap: 12px;
  margin-top: 16px;
}

.login-card .field {
  gap: 6px;
}

.login-card input {
  min-height: 42px;
}

.join-box {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.join-box summary {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(125, 216, 111, 0.42);
  border-radius: 8px;
  color: #f5fff6;
  background: linear-gradient(135deg, rgba(23, 125, 91, 0.78), rgba(58, 58, 160, 0.72));
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.join-box summary::-webkit-details-marker {
  display: none;
}

.join-box:not([open]) > .form {
  display: none;
}

.login-card h2,
.panel h2,
.admin-pane h2,
.view-title h1 {
  margin: 0;
  font-size: 1.35rem;
}

.muted {
  color: var(--muted);
}

.form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: var(--soft);
  font-size: 0.9rem;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(2, 10, 22, 0.68);
  color: var(--text);
  padding: 10px 12px;
  outline: none;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(63, 209, 255, 0.16);
}

.btn,
.icon-btn,
.answer-btn,
.tab-btn,
.segment-btn {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: linear-gradient(180deg, rgba(20, 52, 92, 0.92), rgba(6, 22, 46, 0.86));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  font-weight: 700;
}

.btn:hover,
.icon-btn:hover,
.answer-btn:hover,
.tab-btn:hover,
.segment-btn:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: linear-gradient(180deg, rgba(34, 82, 136, 0.98), rgba(8, 30, 62, 0.94));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn.primary {
  border-color: rgba(63, 209, 255, 0.58);
  background: linear-gradient(135deg, #20b3e6, #2b58e8);
  box-shadow: 0 14px 26px rgba(22, 103, 210, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn.success {
  border-color: rgba(125, 216, 111, 0.54);
  background: linear-gradient(135deg, #16a67e, #52af42);
  box-shadow: 0 14px 26px rgba(28, 154, 104, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.btn.warning {
  border-color: rgba(255, 211, 106, 0.54);
  color: #181202;
  background: linear-gradient(135deg, #ffd36a, #f0a63a);
}

.btn.ghost {
  background: rgba(2, 10, 22, 0.38);
}

.btn.danger {
  border-color: rgba(255, 125, 144, 0.58);
  background: rgba(120, 34, 51, 0.82);
}

.btn svg,
.icon-btn svg,
.tab-btn svg {
  width: 18px;
  height: 18px;
}

.alert {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 125, 144, 0.34);
  color: #ffdbe1;
  background: rgba(80, 18, 32, 0.62);
}

.success-note {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(125, 216, 111, 0.32);
  color: #defadc;
  background: rgba(21, 72, 52, 0.5);
}

.shell {
  width: min(1340px, calc(100% - 28px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 0 44px;
}

.topbar {
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(245px, auto) minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  position: sticky;
  top: 12px;
  z-index: 20;
  background:
    linear-gradient(120deg, rgba(7, 24, 48, 0.92), rgba(9, 31, 62, 0.78)),
    radial-gradient(circle at 18% 0%, rgba(63, 209, 255, 0.2), transparent 30%);
}

.brand-mini {
  display: grid;
  grid-template-columns: 38px auto;
  gap: 10px;
  align-items: center;
}

.brand-mini strong {
  font-size: 1.1rem;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(63, 209, 255, 0.28);
  object-fit: cover;
}

.nav {
  display: flex;
  min-width: 0;
  flex-wrap: nowrap;
  gap: 7px;
  justify-content: center;
  overflow-x: auto;
  padding: 3px;
  scrollbar-width: none;
}

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

.tab-btn,
.segment-btn {
  min-height: 38px;
  display: inline-flex;
  position: relative;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 10px;
  color: var(--soft);
  white-space: nowrap;
}

.nav .tab-btn {
  min-height: 43px;
  padding: 9px 12px;
  overflow: hidden;
  border-color: rgba(161, 211, 255, 0.28);
  background:
    linear-gradient(135deg, rgba(20, 80, 132, 0.74), rgba(11, 28, 62, 0.9)),
    radial-gradient(circle at 50% 0%, rgba(63, 209, 255, 0.2), transparent 56%);
  color: #eaf6ff;
  font-weight: 850;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 12px 28px rgba(0, 0, 0, 0.18);
}

.nav .tab-btn::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  opacity: 0.72;
}

.nav .tab-btn:hover {
  border-color: rgba(63, 209, 255, 0.56);
  background:
    linear-gradient(135deg, rgba(28, 118, 182, 0.88), rgba(18, 45, 104, 0.92)),
    radial-gradient(circle at 50% 0%, rgba(63, 209, 255, 0.28), transparent 58%);
}

.nav .tab-btn[data-nav="missions"]::before {
  background: linear-gradient(90deg, #8e7bff, #ff65d8);
}

.nav .tab-btn[data-nav="stores"]::before {
  background: linear-gradient(90deg, #7dd86f, #3fd1ff);
}

.nav .tab-btn[data-nav="leaderboard"]::before {
  background: linear-gradient(90deg, #ffd36a, #ff65d8);
}

.nav .tab-btn[data-nav="profile"]::before {
  background: linear-gradient(90deg, #3fd1ff, #8e7bff);
}

.nav .tab-btn[data-nav="admin"] {
  border-color: rgba(255, 211, 106, 0.42);
  background:
    linear-gradient(135deg, rgba(93, 63, 176, 0.78), rgba(13, 45, 91, 0.92)),
    radial-gradient(circle at 50% 0%, rgba(255, 211, 106, 0.22), transparent 58%);
}

.nav .tab-btn[data-nav="admin"]::before {
  background: linear-gradient(90deg, #ffd36a, #8e7bff, #ff65d8);
}

.tab-btn.active,
.segment-btn.active {
  border-color: rgba(63, 209, 255, 0.62);
  color: #ffffff;
  background: linear-gradient(135deg, rgba(29, 154, 218, 0.95), rgba(53, 88, 218, 0.9));
  box-shadow: 0 10px 26px rgba(37, 118, 220, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.nav .tab-btn.active {
  border-color: rgba(123, 233, 255, 0.72);
  background:
    linear-gradient(135deg, rgba(26, 180, 226, 0.98), rgba(56, 91, 231, 0.94)),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.2), transparent 58%);
  box-shadow: 0 18px 34px rgba(32, 118, 218, 0.34), 0 0 24px rgba(63, 209, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.nav-badge {
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  color: #140719;
  background: linear-gradient(135deg, #ffd36a, #ff65d8);
  font-size: 0.76rem;
  font-weight: 900;
  box-shadow: 0 0 18px rgba(255, 101, 216, 0.34);
}

.user-chip {
  display: grid;
  grid-template-columns: 42px auto auto;
  gap: 10px;
  align-items: center;
}

.avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 1.35rem;
}

.photo-avatar,
.mini-avatar {
  overflow: hidden;
  padding: 0;
}

.photo-avatar img,
.mini-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.mini-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 1.05rem;
}

.list-avatar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.list-avatar-row > div:last-child {
  min-width: 0;
}

.user-chip small,
.brand-mini small,
.metric span,
.game-card p,
.utility-card p,
.panel p {
  color: var(--muted);
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
}

.view {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.view-title {
  display: grid;
  gap: 8px;
  max-width: 820px;
  position: relative;
  padding-left: 18px;
}

.view-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2), var(--accent-4));
  box-shadow: 0 0 22px rgba(63, 209, 255, 0.4);
}

.view-title h1 {
  color: transparent;
  background: linear-gradient(100deg, #ffffff, #67e7ff 38%, #adff7d 70%, #ffd36a);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: clamp(1.65rem, 2.7vw, 2.65rem);
  line-height: 1.06;
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.48);
}

.view-title p {
  color: #d8eeff;
  font-size: 1.02rem;
  line-height: 1.55;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
  gap: 12px;
}

.metric {
  min-height: 88px;
  padding: 14px;
  display: grid;
  gap: 6px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(8, 31, 63, 0.86), rgba(10, 21, 48, 0.8)),
    radial-gradient(circle at 90% 20%, rgba(63, 209, 255, 0.18), transparent 34%);
}

.metric::after {
  content: "";
  position: absolute;
  inset: auto 12px 10px auto;
  width: 50px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0.72;
}

.metric:nth-child(2)::after {
  background: linear-gradient(90deg, var(--accent-3), var(--accent-4));
}

.metric:nth-child(3)::after,
.metric.highlight::after {
  background: linear-gradient(90deg, var(--accent-2), var(--accent-3));
}

.metric:nth-child(4)::after {
  background: linear-gradient(90deg, var(--violet), var(--accent));
}

.metric strong {
  font-size: 1.58rem;
  letter-spacing: 0;
}

.metric span {
  color: #c8e4ff;
  font-weight: 700;
}

.game-section {
  display: grid;
  gap: 12px;
}

.game-section + .game-section {
  margin-top: 8px;
}

.game-section-head {
  align-items: end;
  padding: 0 2px;
}

.game-section-head h2 {
  margin: 2px 0 0;
  font-size: clamp(1.45rem, 2.2vw, 2.25rem);
}

.game-section-head .eyebrow {
  margin: 0;
  color: #8deeff;
}

.game-section-head > span {
  min-width: 34px;
  min-height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(126, 242, 164, 0.34);
  border-radius: 999px;
  color: #c9ff9c;
  background: rgba(20, 89, 58, 0.42);
  font-weight: 900;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.game-card {
  min-height: 336px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(8, 28, 58, 0.88), rgba(4, 14, 31, 0.94)),
    radial-gradient(circle at 20% 0%, rgba(63, 209, 255, 0.2), transparent 35%);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(63, 209, 255, 0.46);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42), 0 0 34px rgba(63, 209, 255, 0.12);
}

.game-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-4));
  z-index: 2;
}

.game-card:nth-child(3n + 2)::before {
  background: linear-gradient(90deg, var(--accent-3), var(--accent-4), var(--violet));
}

.game-card:nth-child(3n + 3)::before {
  background: linear-gradient(90deg, var(--accent-2), var(--accent), var(--accent-3));
}

.game-visual {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(26, 120, 190, 0.82), rgba(68, 186, 156, 0.58));
}

.game-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.24s ease, filter 0.24s ease;
}

.game-card:hover .game-visual img {
  transform: scale(1.04);
  filter: saturate(1.12) contrast(1.05);
}

.visual-fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  padding: 16px;
  text-align: center;
  color: white;
  background:
    linear-gradient(135deg, rgba(12, 75, 125, 0.88), rgba(40, 151, 120, 0.76)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 18px);
}

.game-visual.missing .visual-fallback {
  display: grid;
}

.game-visual.missing img {
  display: none;
}

.game-body {
  display: grid;
  gap: 10px;
  padding: 14px;
  align-content: start;
}

.game-body .pill {
  justify-self: start;
  max-width: 100%;
  border-color: rgba(63, 209, 255, 0.44);
  background:
    linear-gradient(135deg, rgba(21, 165, 223, 0.34), rgba(48, 91, 222, 0.26)),
    rgba(2, 10, 22, 0.58);
  color: #7be9ff;
  font-weight: 900;
  text-shadow: 0 0 16px rgba(63, 209, 255, 0.36);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 22px rgba(63, 209, 255, 0.12);
}

.game-body .pill svg {
  color: #ffffff;
  filter: drop-shadow(0 0 7px rgba(123, 233, 255, 0.42));
}

.game-card:nth-child(4n + 2) .game-body .pill {
  border-color: rgba(125, 216, 111, 0.44);
  background:
    linear-gradient(135deg, rgba(24, 165, 119, 0.34), rgba(74, 104, 222, 0.26)),
    rgba(2, 10, 22, 0.58);
  color: #a8ff88;
  text-shadow: 0 0 16px rgba(125, 216, 111, 0.34);
}

.game-card:nth-child(4n + 3) .game-body .pill {
  border-color: rgba(255, 101, 216, 0.44);
  background:
    linear-gradient(135deg, rgba(132, 99, 255, 0.34), rgba(224, 70, 186, 0.26)),
    rgba(2, 10, 22, 0.58);
  color: #ff9fed;
  text-shadow: 0 0 16px rgba(255, 101, 216, 0.34);
}

.game-card:nth-child(4n + 4) .game-body .pill {
  border-color: rgba(255, 211, 106, 0.46);
  background:
    linear-gradient(135deg, rgba(217, 152, 49, 0.34), rgba(39, 92, 229, 0.26)),
    rgba(2, 10, 22, 0.58);
  color: #ffd979;
  text-shadow: 0 0 16px rgba(255, 211, 106, 0.34);
}

.game-body h3,
.utility-card h3,
.question-card h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.22;
}

.game-body h3 {
  color: #ffffff;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.game-body p,
.utility-card p {
  margin: 0;
  line-height: 1.45;
}

.game-body p {
  color: #bdd4e8;
}

.game-card .btn {
  margin: 0 14px 14px;
  justify-self: stretch;
  align-self: end;
  width: auto;
  max-width: calc(100% - 28px);
}

.game-card:nth-child(4n + 1) .btn.primary {
  background: linear-gradient(135deg, #14aee5, #315ee8);
}

.game-card:nth-child(4n + 2) .btn.primary {
  border-color: rgba(125, 216, 111, 0.52);
  background: linear-gradient(135deg, #15a883, #4c68de);
}

.game-card:nth-child(4n + 3) .btn.primary {
  border-color: rgba(255, 101, 216, 0.48);
  background: linear-gradient(135deg, #7a65ff, #e046ba);
}

.game-card:nth-child(4n + 4) .btn.primary {
  border-color: rgba(255, 211, 106, 0.5);
  background: linear-gradient(135deg, #d99831, #275ce5);
}

.utility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.utility-card {
  min-height: 150px;
  display: grid;
  align-content: space-between;
  gap: 10px;
  padding: 16px;
}

.game-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 16px;
  align-items: start;
}

.question-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  gap: 14px;
  padding: clamp(14px, 2vw, 22px);
  border-color: rgba(63, 209, 255, 0.28);
  background:
    radial-gradient(circle at 86% 0%, rgba(255, 101, 216, 0.16), transparent 34%),
    radial-gradient(circle at 0% 18%, rgba(63, 209, 255, 0.2), transparent 36%),
    linear-gradient(135deg, rgba(5, 18, 38, 0.94), rgba(8, 27, 58, 0.82)),
    var(--panel);
}

.question-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(90deg, rgba(5, 18, 38, 0.94), rgba(5, 18, 38, 0.74) 48%, rgba(5, 18, 38, 0.88)),
    var(--game-art);
  background-size: cover;
  background-position: center;
  opacity: 0.34;
  filter: saturate(1.12) contrast(1.06);
}

.question-card > * {
  position: relative;
  z-index: 1;
}

.game-stage-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(161, 211, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(5, 24, 50, 0.76), rgba(24, 39, 92, 0.62)),
    radial-gradient(circle at 78% 0%, rgba(255, 211, 106, 0.14), transparent 42%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.game-back {
  min-width: 96px;
}

.game-stage-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.game-stage-copy span,
.question-meta {
  color: #8deeff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.game-stage-copy strong {
  overflow: hidden;
  color: #ffffff;
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-stage-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.game-counter,
.game-timer {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 211, 106, 0.42);
  border-radius: 999px;
  color: #fff8db;
  background:
    linear-gradient(135deg, rgba(217, 152, 49, 0.32), rgba(47, 91, 218, 0.28)),
    rgba(2, 10, 22, 0.54);
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 20px rgba(255, 211, 106, 0.12);
}

.game-counter b {
  color: #ffd979;
  font-size: 1.35rem;
  line-height: 1;
}

.game-counter small {
  color: #d9ecff;
  font-weight: 800;
}

.game-art-banner {
  min-height: 92px;
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 9px;
  margin-top: 12px;
  border: 1px solid rgba(125, 216, 111, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(3, 13, 27, 0.72), rgba(9, 40, 78, 0.58)),
    radial-gradient(circle at 88% 0%, rgba(255, 211, 106, 0.16), transparent 44%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.game-art-banner img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.game-art-banner div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.game-art-banner span {
  color: #8deeff;
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.game-art-banner strong {
  color: #f8fbff;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1.1;
}

.game-question-anchor {
  scroll-margin-top: 10px;
}

.progress {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(161, 211, 255, 0.12);
}

.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  box-shadow: 0 0 18px rgba(125, 216, 111, 0.34);
  transition: width 0.24s ease;
}

.question-intro {
  display: grid;
  gap: 8px;
  padding: clamp(14px, 2vw, 20px);
  border: 1px solid rgba(161, 211, 255, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(2, 10, 22, 0.62), rgba(9, 47, 88, 0.36)),
    radial-gradient(circle at 100% 0%, rgba(125, 216, 111, 0.14), transparent 38%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.question-meta {
  margin: 0;
}

.question-card h2 {
  margin: 0;
  max-width: 940px;
  color: #ffffff;
  font-size: clamp(1.35rem, 2.5vw, 2.35rem);
  line-height: 1.16;
  text-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
}

.answers {
  display: grid;
  gap: 12px;
}

.answer-btn {
  position: relative;
  min-height: 64px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 13px 14px;
  border-color: rgba(161, 211, 255, 0.24);
  background:
    linear-gradient(135deg, rgba(7, 33, 69, 0.9), rgba(10, 24, 53, 0.84)),
    radial-gradient(circle at 100% 0%, rgba(63, 209, 255, 0.12), transparent 42%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 12px 28px rgba(0, 0, 0, 0.18);
  text-align: left;
  line-height: 1.4;
}

.answer-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, rgba(63, 209, 255, 0.16), rgba(255, 211, 106, 0.1), transparent);
  transition: opacity 0.18s ease;
}

.answer-btn:hover::after {
  opacity: 1;
}

.answer-letter {
  width: 42px;
  height: 42px;
  display: grid;
  position: relative;
  z-index: 1;
  place-items: center;
  border-radius: 999px;
  color: #061225;
  background: linear-gradient(135deg, #7be9ff, #ffd979);
  font-weight: 950;
  box-shadow: 0 0 20px rgba(123, 233, 255, 0.22);
}

.answer-text {
  position: relative;
  z-index: 1;
  color: #eaf6ff;
  font-weight: 750;
}

.answer-btn.correct {
  border-color: rgba(125, 216, 111, 0.74);
  background:
    linear-gradient(135deg, rgba(30, 135, 80, 0.86), rgba(14, 62, 78, 0.8)),
    radial-gradient(circle at 100% 0%, rgba(125, 216, 111, 0.2), transparent 42%);
}

.answer-btn.wrong {
  border-color: rgba(255, 125, 144, 0.7);
  background:
    linear-gradient(135deg, rgba(135, 39, 61, 0.86), rgba(64, 28, 72, 0.82)),
    radial-gradient(circle at 100% 0%, rgba(255, 125, 144, 0.18), transparent 42%);
}

.feedback {
  margin-top: 14px;
  padding: 14px;
  display: grid;
  gap: 10px;
}

.feedback.good {
  border-color: rgba(125, 216, 111, 0.5);
}

.feedback.bad {
  border-color: rgba(255, 211, 106, 0.45);
}

.side-panel,
.panel {
  padding: 16px;
}

.side-panel {
  display: grid;
  gap: 12px;
  align-content: start;
}

.score-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.timer-pill {
  border-color: rgba(255, 211, 106, 0.42);
  background: linear-gradient(135deg, rgba(32, 79, 126, 0.76), rgba(81, 55, 141, 0.62));
}

.timer-pill.urgent {
  border-color: rgba(255, 125, 144, 0.72);
  color: #fff2f4;
  background: linear-gradient(135deg, rgba(158, 38, 66, 0.88), rgba(102, 44, 136, 0.76));
}

.timer-panel {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 211, 106, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(6, 26, 55, 0.82), rgba(26, 35, 74, 0.76)),
    radial-gradient(circle at 90% 0%, rgba(255, 211, 106, 0.18), transparent 36%);
}

.timer-panel span {
  color: #d7ebff;
  font-size: 0.9rem;
}

.timer-panel strong {
  font-size: 1.75rem;
  line-height: 1;
}

.timer-panel.urgent {
  border-color: rgba(255, 125, 144, 0.6);
  background:
    linear-gradient(135deg, rgba(91, 24, 42, 0.86), rgba(41, 26, 75, 0.82)),
    radial-gradient(circle at 90% 0%, rgba(255, 125, 144, 0.2), transparent 36%);
}

.timer-bar {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.timer-bar span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-2), var(--accent-3), var(--accent-4));
  transition: width 0.2s linear;
}

.result-band {
  padding: 18px;
  display: grid;
  gap: 14px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--soft);
  font-size: 0.85rem;
  text-transform: uppercase;
}

.player-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.player-link:hover strong {
  color: #7be9ff;
}

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

.segments {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pagination-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.pagination-bar > span,
.list-count {
  color: var(--muted);
  font-weight: 800;
}

.missions-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 16px;
  align-items: stretch;
}

.daily-mission-card,
.duel-create-card {
  display: grid;
  gap: 14px;
  align-content: start;
}

.duel-mode-tabs {
  width: 100%;
}

.duel-manual-fields {
  display: grid;
  gap: 10px;
}

.daily-mission-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 211, 106, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(8, 31, 63, 0.9), rgba(10, 21, 48, 0.82));
}

.mission-status {
  min-height: 42px;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 211, 106, 0.42);
  border-radius: 999px;
  color: #fff1bf;
  background: rgba(113, 76, 22, 0.42);
  font-weight: 900;
}

.mission-status.done {
  border-color: rgba(125, 216, 111, 0.48);
  color: #defadc;
  background: rgba(28, 112, 72, 0.5);
}

.duel-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.duel-card {
  display: grid;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(8, 31, 63, 0.74), rgba(4, 14, 31, 0.72)),
    radial-gradient(circle at 0% 0%, rgba(63, 209, 255, 0.12), transparent 34%);
}

.duel-head {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.duel-head small {
  display: block;
  margin-top: 3px;
}

.duel-score {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.duel-score span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid rgba(161, 211, 255, 0.2);
  border-radius: 999px;
  background: rgba(2, 10, 22, 0.42);
}

.duel-score b {
  color: #ffd979;
}

.status-pill.expired {
  border-color: rgba(161, 211, 255, 0.34);
  background: rgba(42, 54, 72, 0.72);
}

.pair-board {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.pair-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.95fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(161, 211, 255, 0.22);
  border-radius: 8px;
  background: rgba(2, 10, 22, 0.44);
}

.pair-row.correct {
  border-color: rgba(125, 216, 111, 0.62);
  background: rgba(30, 112, 72, 0.46);
}

.pair-row.wrong {
  border-color: rgba(255, 125, 144, 0.62);
  background: rgba(113, 32, 50, 0.42);
}

.pair-row small {
  grid-column: 1 / -1;
  color: #ffdbe1;
}

.pair-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.pair-left b {
  width: 30px;
  height: 30px;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  color: #061225;
  background: linear-gradient(135deg, #7be9ff, #a8ff88);
}

.pair-submit {
  justify-self: start;
  margin-top: 12px;
}

.stores-layout {
  display: grid;
  grid-template-columns: minmax(260px, 330px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.stores-sidebar,
.store-detail {
  display: grid;
  gap: 14px;
}

.section-head,
.store-detail-head,
.player-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.section-head h2,
.store-detail-head h2 {
  margin: 0;
}

.section-head span {
  min-width: 34px;
  min-height: 28px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(63, 209, 255, 0.34);
  border-radius: 999px;
  color: #7be9ff;
  background: rgba(6, 35, 68, 0.72);
  font-weight: 900;
}

.store-switch-list {
  display: grid;
  gap: 8px;
}

.store-switch {
  width: 100%;
  min-height: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid rgba(161, 211, 255, 0.18);
  border-radius: 8px;
  color: var(--text);
  background: rgba(2, 10, 22, 0.38);
  text-align: left;
}

.store-switch span,
.player-card-head span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.store-switch small,
.player-card-head small,
.top-player small,
.breakdown-row small,
.recent-session small {
  color: var(--muted);
}

.store-switch b {
  color: #ffd979;
  white-space: nowrap;
}

.store-switch.active {
  border-color: rgba(63, 209, 255, 0.56);
  background:
    linear-gradient(135deg, rgba(21, 165, 223, 0.34), rgba(48, 91, 222, 0.26)),
    rgba(2, 10, 22, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 24px rgba(63, 209, 255, 0.12);
}

.eyebrow {
  margin: 0 0 4px;
  color: #7be9ff;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.store-detail-head {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.store-detail-head p {
  margin: 0;
}

.top-player {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 211, 106, 0.42);
  border-radius: 8px;
  color: #fff8db;
  background: linear-gradient(135deg, rgba(113, 76, 22, 0.68), rgba(26, 69, 126, 0.62));
  text-align: left;
}

.top-player svg {
  color: #ffd979;
}

.store-roster {
  display: grid;
}

.player-card {
  display: grid;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.player-card:last-child {
  border-bottom: 0;
}

.player-card-head {
  width: 100%;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.player-card-head > svg {
  color: #7be9ff;
}

.player-card-head:hover strong {
  color: #7be9ff;
}

.player-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-left: 48px;
}

.player-card-stats span,
.rank-badges span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid rgba(161, 211, 255, 0.2);
  border-radius: 999px;
  color: #dff3ff;
  background: rgba(2, 10, 22, 0.42);
  font-size: 0.88rem;
  font-weight: 700;
}

.player-card-stats b {
  color: #a8ff88;
}

.empty-state {
  min-height: 120px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

.player-profile-view {
  gap: 16px;
}

.player-hero {
  background:
    radial-gradient(circle at 0% 0%, rgba(63, 209, 255, 0.18), transparent 38%),
    linear-gradient(135deg, rgba(8, 31, 63, 0.9), rgba(10, 21, 48, 0.82));
}

.player-hero-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.player-hero h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.05;
}

.player-hero p {
  margin: 5px 0 0;
}

.profile-avatar {
  width: 92px;
  height: 92px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(63, 209, 255, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 2.2rem;
  box-shadow: 0 0 28px rgba(63, 209, 255, 0.14);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.rank-badges span:first-child {
  border-color: rgba(255, 211, 106, 0.42);
  color: #fff1bf;
  background: rgba(113, 76, 22, 0.44);
}

.leaderboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.leaderboard-panel {
  display: grid;
  gap: 14px;
}

.podium-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.podium-card {
  min-width: 0;
  display: grid;
  justify-items: start;
  gap: 7px;
  padding: 14px;
  border: 1px solid rgba(161, 211, 255, 0.2);
  border-radius: 8px;
  color: #f8fbff;
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 210, 94, 0.18), transparent 42%),
    linear-gradient(145deg, rgba(7, 29, 61, 0.92), rgba(4, 15, 35, 0.84));
  font: inherit;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.podium-card.place-1 {
  border-color: rgba(255, 215, 105, 0.62);
  background:
    radial-gradient(circle at 15% 8%, rgba(255, 215, 105, 0.34), transparent 44%),
    linear-gradient(145deg, rgba(65, 44, 12, 0.86), rgba(7, 29, 61, 0.84));
}

.podium-card.place-2 {
  border-color: rgba(167, 227, 255, 0.42);
}

.podium-card.place-3 {
  border-color: rgba(255, 157, 92, 0.42);
}

.podium-card strong {
  max-width: 100%;
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.podium-card small,
.podium-card em {
  color: #c3d6ec;
  font-style: normal;
  font-weight: 700;
}

.podium-card b {
  color: #ffe48d;
  font-size: 1.2rem;
}

.podium-medal,
.store-medal {
  min-width: 38px;
  min-height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff1bf;
  font-weight: 950;
}

.compact-table {
  max-height: none;
}

.profile-info-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.2fr) minmax(260px, 1fr);
  gap: 16px;
  align-items: start;
}

.detail-list dl {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
}

.detail-list dl div {
  display: grid;
  gap: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.detail-list dt {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.detail-list dd {
  margin: 0;
  color: #f8fbff;
  font-weight: 900;
}

.breakdown-list,
.recent-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.breakdown-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.breakdown-row > span {
  color: #a8ff88;
  font-weight: 900;
}

.tiny-bar {
  grid-column: 1 / -1;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
}

.tiny-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
}

.recent-session {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.recent-session span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #7be9ff;
  font-size: 0.84rem;
  font-weight: 800;
}

.profile-layout,
.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 16px;
}

.photo-panel {
  min-height: 420px;
}

.photo-workspace {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.crop-frame {
  width: min(260px, 100%);
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid rgba(63, 209, 255, 0.38);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 35%, rgba(63, 209, 255, 0.22), transparent 42%),
    rgba(2, 10, 22, 0.72);
  box-shadow: inset 0 0 36px rgba(63, 209, 255, 0.1), 0 18px 36px rgba(0, 0, 0, 0.28);
}

.crop-image {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
  transform: translate(-50%, -50%) scale(1);
}

.crop-empty {
  display: grid;
  gap: 8px;
  place-items: center;
  color: var(--soft);
}

.crop-empty svg {
  width: 34px;
  height: 34px;
}

.photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.photo-actions label {
  cursor: pointer;
}

.crop-controls {
  display: grid;
  gap: 10px;
  max-width: 520px;
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.profile-icon-option {
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(2, 10, 22, 0.5);
  color: var(--text);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
}

.profile-icon-option.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(63, 209, 255, 0.14);
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.toolbar.between {
  justify-content: space-between;
}

.admin-pane,
.form-grid {
  padding: 16px;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.three-col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

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

.list-item {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(3, 13, 27, 0.52);
}

.application-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.application-head > div {
  display: grid;
  gap: 4px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: #f7fbff;
  background: rgba(31, 105, 180, 0.62);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill.pending {
  border-color: rgba(255, 211, 106, 0.5);
  background: rgba(122, 83, 24, 0.68);
}

.status-pill.approved {
  border-color: rgba(125, 216, 111, 0.48);
  background: rgba(28, 112, 72, 0.68);
}

.status-pill.active {
  border-color: rgba(63, 209, 255, 0.48);
  background: rgba(25, 92, 145, 0.68);
}

.status-pill.completed {
  border-color: rgba(125, 216, 111, 0.48);
  background: rgba(28, 112, 72, 0.68);
}

.status-pill.rejected {
  border-color: rgba(255, 125, 144, 0.48);
  background: rgba(120, 34, 51, 0.68);
}

.item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent-2);
}

.status-dot.off::before {
  background: var(--danger);
}

.loader {
  min-height: 100vh;
  display: grid;
  place-items: center;
  color: var(--soft);
}

@media (max-width: 1180px) {
  .game-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 860px) {
  body[data-screen="login"] {
    background-image:
      linear-gradient(180deg, rgba(3, 11, 24, 0.06), rgba(3, 11, 24, 0.34)),
      url("/assets/images/bg-login-mobile.png");
  }

  body[data-screen="app"] {
    background-image: linear-gradient(180deg, rgba(4, 13, 28, 0.2), rgba(4, 13, 28, 0.92)), url("/assets/images/bg-dashboard-mobile.png");
  }

  .login-layout,
  .game-shell,
  .profile-layout,
  .admin-grid,
  .missions-grid,
  .stores-layout,
  .profile-info-grid {
    grid-template-columns: 1fr;
  }

  .login-layout {
    position: static;
    padding-top: 38px;
  }

  .brand-block {
    padding: 16px;
    margin-left: 0;
    padding-top: 16px;
    transform: none;
  }

  .login-card {
    position: static;
    width: auto;
    margin-top: 34px;
  }

  .topbar {
    position: static;
    grid-template-columns: 1fr;
  }

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

  .user-chip {
    grid-template-columns: 42px 1fr auto;
  }

  .game-grid,
  .utility-grid,
  .result-grid,
  .podium-grid {
    grid-template-columns: 1fr;
  }

  .game-card {
    min-height: 0;
    grid-template-rows: auto auto auto;
  }

  .game-visual {
    aspect-ratio: 4 / 3;
    min-height: 0;
    background:
      linear-gradient(135deg, rgba(6, 21, 45, 0.95), rgba(8, 37, 75, 0.86)),
      radial-gradient(circle at 50% 0%, rgba(63, 209, 255, 0.24), transparent 52%);
  }

  .game-visual img {
    object-fit: cover;
    transform: scale(1.015);
  }

  .game-card:hover .game-visual img {
    transform: scale(1.035);
  }

  .game-card .btn {
    width: auto;
    max-width: calc(100% - 28px);
  }

  .game-stage-head {
    grid-template-columns: 1fr;
  }

  .game-back {
    min-width: 0;
    justify-self: start;
  }

  .game-stage-meta {
    width: 100%;
    justify-content: stretch;
  }

  .game-counter,
  .game-timer {
    flex: 1;
  }

  .question-card {
    padding: 12px;
  }

  .game-art-banner {
    min-height: 72px;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 9px;
    padding: 7px;
    margin-top: 10px;
  }

  .game-art-banner strong {
    font-size: 1rem;
  }

  .store-detail-head,
  .player-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .rank-badges {
    justify-content: flex-start;
  }

  .pair-row {
    grid-template-columns: 1fr;
  }

  .duel-head {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .duel-head .status-pill {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .login-layout,
  .shell {
    width: min(100% - 18px, 100%);
  }

  .brand-name {
    font-size: 2.2rem;
  }

  .brand-subtitle {
    font-size: 1rem;
  }

  .metrics,
  .two-col,
  .three-col,
  .icon-grid {
    grid-template-columns: 1fr;
  }

  .btn,
  .tab-btn,
  .segment-btn {
    width: 100%;
  }

  .toolbar,
  .segments,
  .admin-tabs,
  .item-actions {
    width: 100%;
  }

  .store-switch {
    grid-template-columns: 1fr;
  }

  .player-card-stats {
    padding-left: 0;
  }

  .player-hero-main {
    align-items: flex-start;
    flex-direction: column;
  }

  .answer-btn {
    grid-template-columns: 38px minmax(0, 1fr);
    min-height: 68px;
    padding: 12px;
  }

  .answer-letter {
    width: 38px;
    height: 38px;
  }

  .game-card .btn {
    width: calc(100% - 28px);
    max-width: calc(100% - 28px);
    margin-right: 14px;
    margin-left: 14px;
  }
}
