:root {
  color-scheme: dark;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --sidebar-width: 220px;
  --sidebar-collapsed-width: 76px;
  --electric-green: #08df00;
  --cyan: #59ceff;
  --mint: #56f9c2;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  overflow: hidden;
  background: #020702 url("images/background.png") center / cover fixed no-repeat;
}

button {
  font: inherit;
}

.app-shell {
  --current-sidebar-width: var(--sidebar-width);
  display: grid;
  grid-template-columns: var(--current-sidebar-width) minmax(0, 1fr);
  column-gap: 29px;
  min-height: 100vh;
  padding-right: 30px;
  transition: grid-template-columns 360ms cubic-bezier(0.22, 0.8, 0.2, 1);
}

.app-shell.menu-collapsed {
  --current-sidebar-width: var(--sidebar-collapsed-width);
}

.sidebar {
  position: relative;
  z-index: 2;
  width: var(--current-sidebar-width);
  min-height: 100vh;
  overflow: visible;
  padding-top: 0;
  background: linear-gradient(112deg, rgba(7, 220, 0, 0.98) 0%, rgba(2, 144, 91, 0.97) 100%);
  transition: width 360ms cubic-bezier(0.22, 0.8, 0.2, 1);
}

.brand-logo {
  position: absolute;
  top: -51px;
  left: 6px;
  width: 160px;
  height: 160px;
  object-fit: contain;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.menu-toggle {
  position: absolute;
  top: 11px;
  right: 8px;
  display: grid;
  width: 44px;
  height: 34px;
  place-content: center;
  gap: 4px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  background: rgba(0, 46, 30, 0.13);
  outline: none;
}

.menu-toggle span {
  display: block;
  width: 42px;
  height: 8px;
  border-radius: 5px;
  background: #168b72;
  transition: width 260ms ease, transform 260ms ease, opacity 180ms ease;
}

.menu-collapsed .menu-toggle {
  right: 16px;
}

.menu-collapsed .menu-toggle span {
  width: 34px;
  height: 6px;
}

.profile {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding-top: 68px;
  transition: opacity 180ms ease, transform 260ms ease;
}

.avatar-orb {
  display: grid;
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  overflow: hidden;
  place-items: center;
  border: 2px solid rgba(165, 49, 0, 0.85);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #0bff00 0 20%, #04c900 37%, #068b0b 61%, #7a4100 100%);
  box-shadow: 0 0 10px rgba(255, 115, 0, 0.65), inset 0 0 9px rgba(0, 255, 0, 0.8);
}

.avatar-orb.has-spherical {
  border-color: rgba(111, 255, 193, 0.9);
  background: rgba(0, 38, 23, 0.88);
  box-shadow: 0 0 14px rgba(48, 255, 145, 0.45);
}

.avatar-orb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.account-name {
  max-width: calc(100% - 48px);
  margin-top: 8px;
  overflow: hidden;
  padding: 3px 8px 4px;
  border-radius: 9px;
  background: linear-gradient(100deg, #60d9ff, #56f4b6);
  color: #d72814;
  font-size: 14px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.packcash-balance {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
  padding: 4px 9px;
  border: 1px solid rgba(167, 255, 210, 0.38);
  border-radius: 999px;
  background: rgba(0, 54, 31, 0.56);
  color: #eafff1;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 10px;
  line-height: 1;
}

.packcash-balance span {
  color: #a8f4ce;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.packcash-balance strong {
  color: #ffe66a;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: 12px;
}

.packcash-balance strong.cash-balance-receiving,
.spherical-packcash-balance strong.cash-balance-receiving {
  color: #fff6a6;
  text-shadow: 0 0 14px rgba(255, 230, 106, 0.85);
  animation: packcash-receive 360ms ease-in-out infinite alternate;
}

.packcash-balance strong.cash-balance-pulse,
.spherical-packcash-balance strong.cash-balance-pulse {
  animation: packcash-pulse 460ms cubic-bezier(0.2, 0.8, 0.25, 1);
}

.cash-bill-fly {
  position: fixed;
  z-index: 1200;
  display: grid;
  width: 42px;
  height: 24px;
  place-items: center;
  border: 1px solid #9dffb8;
  border-radius: 4px;
  background: linear-gradient(135deg, #baffcb, #3edb78 48%, #15964d);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), 0 0 12px rgba(66, 255, 116, 0.45);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(var(--cash-rotation)) scale(0.65);
}

.cash-bill-fly::before {
  position: absolute;
  inset: 3px 5px;
  border: 1px solid rgba(0, 89, 41, 0.55);
  border-radius: 50%;
  content: "";
}

.cash-bill-fly::after {
  position: relative;
  color: #075a2b;
  content: "$";
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 15px;
  line-height: 1;
}

.cash-bill-fly.is-flying {
  animation: cash-bill-flight 720ms cubic-bezier(0.24, 0.72, 0.2, 1) var(--cash-delay) forwards;
}

@keyframes cash-bill-flight {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.55) rotate(var(--cash-rotation)); }
  12% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(var(--cash-rotation)); }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--cash-dx)), calc(-50% + var(--cash-dy))) scale(0.28) rotate(calc(var(--cash-rotation) + 360deg));
  }
}

@keyframes packcash-receive {
  from { transform: scale(1); }
  to { transform: scale(1.13); }
}

@keyframes packcash-pulse {
  0% { transform: scale(1); }
  42% { color: #fff6a6; text-shadow: 0 0 15px rgba(255, 230, 106, 0.95); transform: scale(1.22); }
  100% { transform: scale(1); }
}

.navigation {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  margin-top: 37px;
  padding-left: 26px;
}

.navigation-scroll {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 14px;
  width: calc(100% + 28px);
  max-height: calc(100vh - 220px);
  max-height: max(70px, calc(100dvh - 220px));
  padding-right: 28px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-color: rgba(185, 255, 216, 0.45) transparent;
  scrollbar-width: thin;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 40px;
  flex: 0 0 auto;
  gap: 4px;
  padding: 3px 4px 3px 3px;
  overflow: visible;
  border: 0;
  border-radius: 11px;
  background: rgba(176, 219, 220, 0.5);
  color: #030a0b;
  text-align: left;
  cursor: pointer;
  transform-origin: left center;
  transition:
    width 360ms cubic-bezier(0.22, 0.8, 0.2, 1),
    height 300ms cubic-bezier(0.22, 0.8, 0.2, 1),
    border-radius 220ms ease,
    background 220ms ease,
    transform 220ms cubic-bezier(0.22, 0.8, 0.2, 1),
    box-shadow 220ms ease;
}

.nav-item:hover,
.nav-item:focus-visible {
  z-index: 1;
  background: rgba(199, 242, 239, 0.76);
  box-shadow: 0 4px 12px rgba(0, 50, 30, 0.18);
  outline: none;
  transform: scale(1.055);
}

.nav-item.is-active {
  width: calc(100% + 28px);
  height: 88px;
  margin-right: -28px;
  padding: 5px 7px 5px 3px;
  background: linear-gradient(105deg, #59cfff, #56fac1);
}

.nav-item.is-active:hover,
.nav-item.is-active:focus-visible {
  background: linear-gradient(105deg, #6ed7ff, #6effce);
}

.nav-label {
  min-width: 0;
  overflow: hidden;
  font-size: 20px;
  font-weight: 950;
  letter-spacing: -0.055em;
  line-height: 1;
  text-overflow: clip;
  white-space: nowrap;
}

.nav-item.is-active .nav-label {
  font-size: 24px;
}

.nav-item img {
  display: block;
  width: 39px;
  height: 39px;
  flex: 0 0 auto;
  object-fit: contain;
  transition: width 220ms ease, height 220ms ease, transform 220ms ease;
}

.nav-item.is-active img {
  width: 54px;
  height: 54px;
}

.nav-item:hover img,
.nav-item:focus-visible img {
  transform: scale(1.08);
}

.menu-collapsed .profile {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-8px) scale(0.94);
}

.menu-collapsed .brand-logo {
  opacity: 0;
}

.menu-collapsed .navigation {
  align-items: center;
  margin-top: 62px;
  padding: 0 10px;
}

.menu-collapsed .navigation-scroll {
  align-items: center;
  gap: 10px;
  width: 100%;
  max-height: calc(100vh - 80px);
  max-height: max(70px, calc(100dvh - 80px));
  padding: 0;
}

.menu-collapsed .nav-item,
.menu-collapsed .nav-item.is-active {
  justify-content: center;
  width: 56px;
  height: 46px;
  margin: 0;
  padding: 3px;
  border-radius: 12px;
}

.menu-collapsed .nav-item.is-active {
  height: 60px;
}

.menu-collapsed .nav-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.menu-collapsed .nav-item img,
.menu-collapsed .nav-item.is-active img {
  width: 39px;
  height: 39px;
}

.main-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: calc(100vh - 60px);
  margin: 29px 0 31px;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(108deg, rgba(5, 226, 0, 0.82) 0%, rgba(0, 132, 79, 0.83) 100%);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.13);
  backdrop-filter: blur(1px);
}

.page-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 73.5%;
  min-height: 39px;
  margin: 10px auto 0;
  padding: 2px 12px 3px;
  background: linear-gradient(100deg, #61caff 0%, #56ffc0 100%);
  color: #030708;
  text-align: center;
}

.page-heading h1 {
  margin: 0;
  font-size: clamp(18px, 2.05vw, 26px);
  font-weight: 950;
  letter-spacing: -0.035em;
  line-height: 1;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 250ms cubic-bezier(0.22, 0.8, 0.2, 1), transform 250ms cubic-bezier(0.22, 0.8, 0.2, 1);
}

.page-heading h1.is-fading {
  opacity: 0;
  transform: translateY(5px);
}

.page-space {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 24px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 250ms cubic-bezier(0.22, 0.8, 0.2, 1), transform 250ms cubic-bezier(0.22, 0.8, 0.2, 1);
}

.page-space.is-fading {
  opacity: 0;
  transform: translateY(5px);
}

.page-space,
.page-space button,
.page-space input,
.page-space textarea {
  font-family: "Trebuchet MS", Arial, sans-serif;
}

.creator-wrap {
  width: min(100%, 1080px);
  min-width: 0;
  margin: 0 auto;
  color: #f1fff5;
}

.creator-intro {
  margin: 0 0 16px;
  color: #e4ffe9;
  font-size: 15px;
  line-height: 1.45;
}

.creator-form {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(255px, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 18px;
}

.editor-card,
.question-card,
.quiz-card {
  border: 1px solid rgba(154, 255, 206, 0.32);
  border-radius: 15px;
  background: rgba(3, 24, 16, 0.86);
  box-shadow: 0 12px 30px rgba(0, 28, 12, 0.18);
  color: #effff4;
}

.editor-card {
  min-width: 0;
  padding: 19px;
}

.editor-card-heading,
.questions-heading-row,
.question-card-heading,
.quiz-topline,
.quiz-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-kicker {
  display: block;
  margin-bottom: 5px;
  color: #69f3c4;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 0.14em;
  line-height: 1.2;
}

.editor-card h2,
.questions-heading-row h2 {
  margin: 0 0 17px;
  color: #fff;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: 20px;
  line-height: 1.15;
}

.questions-editor {
  min-width: 0;
}

.questions-heading-row {
  flex-wrap: wrap;
  margin: 2px 1px 12px;
}

.questions-heading-row > div {
  min-width: 0;
}

.questions-heading-row .add-question-button {
  white-space: nowrap;
}

.question-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.questions-heading-row h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 0;
}

.question-total {
  display: inline-grid;
  min-width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: rgba(87, 242, 194, 0.2);
  color: #72f6c7;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0 0 15px;
  color: #eafff1;
  font-size: 13px;
  font-weight: 700;
}

.form-field > span:first-child {
  line-height: 1.2;
}

.form-field input,
.form-field textarea,
.answer-input-wrap input {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(174, 255, 213, 0.27);
  border-radius: 9px;
  outline: 0;
  background: rgba(8, 35, 25, 0.92);
  color: #f5fff7;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.form-field input,
.answer-input-wrap input {
  height: 40px;
  padding: 8px 11px;
}

.form-field textarea {
  min-height: 84px;
  resize: none;
  padding: 10px 11px;
}

.question-prompt-field textarea {
  min-height: 68px;
}

.form-field input:focus,
.form-field textarea:focus,
.answer-input-wrap input:focus {
  border-color: #6af3c4;
  box-shadow: 0 0 0 3px rgba(106, 243, 196, 0.14);
}

.form-field input::placeholder,
.form-field textarea::placeholder,
.answer-input-wrap input::placeholder {
  color: #8ca99a;
}

.cover-field {
  margin-bottom: 0;
}

.cover-upload-row {
  display: flex;
  align-items: center;
  min-width: 0;
  flex-wrap: wrap;
  gap: 12px;
}

.cover-preview {
  display: grid;
  width: 106px;
  height: 82px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(161, 255, 205, 0.3);
  border-radius: 9px;
  background: #13241c;
}

.cover-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.cover-upload-controls {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 7px;
  flex: 1 1 100px;
  min-width: 0;
}

.cover-file-name,
.field-hint {
  color: #b7d4c0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.cover-file-name {
  overflow-wrap: anywhere;
}

.field-hint {
  display: block;
  margin-top: 8px;
}

.visually-hidden-file,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.secondary-action,
.primary-action,
.text-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif !important;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.015em;
  line-height: 1.1;
  transition: transform 150ms ease, filter 150ms ease, opacity 150ms ease;
}

.secondary-action:hover,
.primary-action:hover,
.text-action:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.secondary-action:focus-visible,
.primary-action:focus-visible,
.text-action:focus-visible,
.pack-actions button:focus-visible,
.quiz-option:focus-visible {
  outline: 3px solid rgba(111, 246, 200, 0.62);
  outline-offset: 2px;
}

.primary-action {
  min-height: 42px;
  padding: 0 17px;
  border-radius: 11px;
  background: linear-gradient(100deg, #57ceff, #5ef6c3);
  color: #05120c;
  box-shadow: 0 5px 15px rgba(43, 183, 133, 0.17);
}

.secondary-action {
  min-height: 35px;
  padding: 0 12px;
  border: 1px solid rgba(112, 244, 198, 0.34);
  border-radius: 9px;
  background: rgba(61, 182, 136, 0.16);
  color: #caffea;
}

.file-picker {
  cursor: pointer;
}

.text-action {
  min-height: 28px;
  padding: 3px 5px;
  background: transparent;
  color: #79f4ca;
  font-size: 10px;
}

.text-action:disabled,
.secondary-action:disabled,
.primary-action:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.question-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bulk-import-card {
  min-width: 0;
  margin: 0 0 13px;
  padding: 16px;
  border: 1px solid rgba(114, 246, 199, 0.42);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(8, 57, 39, 0.96), rgba(3, 25, 18, 0.96));
  box-shadow: 0 10px 25px rgba(0, 20, 10, 0.2);
}

.bulk-import-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.bulk-import-topline h3 {
  margin: 0;
  color: #f3fff7;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: 17px;
}

.bulk-import-copy,
.bulk-preview-hint,
.bulk-preview-summary,
.bulk-preview-more {
  margin: 8px 0;
  color: #c6e5d2;
  font-size: 12px;
  line-height: 1.5;
}

.bulk-import-copy code {
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(104, 243, 195, 0.12);
  color: #8ff7d0;
  font-family: Consolas, monospace;
}

.bulk-import-example {
  max-width: 100%;
  margin: 10px 0;
  padding: 11px 13px;
  overflow-x: auto;
  border: 1px solid rgba(154, 255, 206, 0.17);
  border-radius: 9px;
  background: rgba(0, 9, 6, 0.48);
  color: #e2fff0;
  font: 12px/1.5 Consolas, "Courier New", monospace;
  white-space: pre;
}

.bulk-import-label {
  display: block;
  margin: 12px 0 6px;
  color: #eafff1;
  font-size: 12px;
  font-weight: 700;
}

.bulk-import-textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 155px;
  max-width: 100%;
  padding: 11px 12px;
  resize: vertical;
  border: 1px solid rgba(174, 255, 213, 0.27);
  border-radius: 9px;
  outline: 0;
  background: rgba(8, 35, 25, 0.92);
  color: #f5fff7;
  font: 13px/1.5 Consolas, "Courier New", monospace;
}

.bulk-import-textarea:focus {
  border-color: #6af3c4;
  box-shadow: 0 0 0 3px rgba(106, 243, 196, 0.14);
}

.bulk-import-textarea::placeholder {
  color: #8ca99a;
}

.bulk-import-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 10px;
}

.bulk-import-results {
  margin-top: 13px;
  padding-top: 10px;
  border-top: 1px solid rgba(154, 255, 206, 0.17);
}

.bulk-preview-summary strong {
  color: #78f3c5;
}

.bulk-preview-list {
  display: grid;
  max-height: 330px;
  margin: 8px 0 0;
  padding: 0 4px 0 25px;
  overflow: auto;
  gap: 8px;
}

.bulk-preview-question {
  padding: 9px 11px;
  border: 1px solid rgba(154, 255, 206, 0.16);
  border-radius: 9px;
  background: rgba(1, 16, 10, 0.4);
  color: #eafff1;
  font-size: 12px;
  line-height: 1.45;
}

.bulk-preview-question > strong {
  display: block;
  overflow-wrap: anywhere;
}

.bulk-preview-question ol {
  margin: 5px 0 0;
  padding-left: 25px;
  color: #bed8c8;
}

.bulk-preview-question .is-preview-correct,
.bulk-preview-question .is-preview-correct::marker {
  color: #74f1bc;
  font-weight: 700;
}

.bulk-preview-issue {
  margin: 6px 0 0;
  color: #ffd979;
  font-size: 11px;
}

.bulk-import-question-note {
  margin: 11px 0 0;
  padding: 8px 10px;
  border: 1px solid rgba(255, 217, 121, 0.34);
  border-radius: 8px;
  background: rgba(104, 72, 13, 0.16);
  color: #ffe7a6;
  font-size: 11px;
  line-height: 1.45;
}

.bulk-preview-more {
  margin-bottom: 0;
}

.question-card {
  min-width: 0;
  padding: 15px;
}

.question-card-heading {
  margin-bottom: 11px;
}

.question-card-heading h3 {
  margin: 0;
  color: #8af6ce;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: 15px;
}

.question-card .form-field {
  margin-bottom: 12px;
}

.answer-options {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.answer-options legend {
  width: 100%;
  margin-bottom: 8px;
  color: #eafff1;
  font-size: 12px;
  font-weight: 700;
}

.answer-options legend span {
  margin-left: 6px;
  color: #9fbdaa;
  font-size: 11px;
  font-weight: 500;
}

.answer-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.answer-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 7px;
}

.correct-answer-control {
  position: relative;
  display: grid;
  width: 28px;
  height: 36px;
  place-items: center;
  cursor: pointer;
}

.correct-answer-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.radio-face {
  display: block;
  width: 17px;
  height: 17px;
  border: 2px solid #80a895;
  border-radius: 50%;
  background: #0c241a;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.correct-answer-control input:checked + .radio-face {
  border-color: #6bf2c2;
  background: radial-gradient(circle, #6bf2c2 0 42%, transparent 48%);
  box-shadow: 0 0 0 3px rgba(107, 242, 194, 0.12);
}

.correct-answer-control input:focus-visible + .radio-face {
  outline: 2px solid #d8fff0;
  outline-offset: 3px;
}

.answer-input-wrap {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 7px;
}

.answer-letter {
  width: 17px;
  flex: 0 0 17px;
  color: #73eebf;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: 11px;
  text-align: center;
}

.answer-input-wrap input {
  height: 36px;
}

.remove-answer-button {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid rgba(155, 201, 174, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: #c5e6d1;
  font-size: 19px;
  cursor: pointer;
}

.remove-answer-button:disabled {
  cursor: not-allowed;
  opacity: 0.3;
}

.add-answer-button {
  margin-top: 4px;
}

.creator-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid rgba(154, 255, 206, 0.27);
  border-radius: 12px;
  background: rgba(3, 24, 16, 0.76);
}

.creator-footer p {
  min-width: 0;
  flex: 1 1 180px;
  margin: 0;
  color: #bbd8c4;
  font-size: 11px;
  line-height: 1.4;
}

.create-pack-button {
  flex: 0 0 auto;
}

.empty-packs {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  min-height: min(52vh, 420px);
  padding: 20px;
  color: #effff3;
  text-align: center;
}

.empty-packs img {
  width: 70px;
  height: 70px;
  margin-bottom: 13px;
  object-fit: contain;
  filter: drop-shadow(0 0 13px rgba(23, 255, 0, 0.3));
}

.empty-packs h2,
.quiz-result h2 {
  margin: 0 0 8px;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(19px, 2.2vw, 25px);
}

.empty-packs p,
.quiz-result p {
  max-width: 420px;
  margin: 0 0 18px;
  color: #dbf8e5;
  font-size: 14px;
  line-height: 1.5;
}

.app-notice {
  width: min(100%, 760px);
  margin: 0 0 15px;
  padding: 11px 14px;
  border: 1px solid rgba(108, 246, 192, 0.38);
  border-radius: 10px;
  background: rgba(19, 91, 63, 0.45);
  color: #d6ffea;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
}

.packs-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
}

.packs-toolbar p {
  margin: 0;
  color: #e4ffe9;
  font-size: 13px;
  font-weight: 700;
}

.compact-action {
  min-height: 34px;
  padding: 0 12px;
  font-size: 11px;
}

.packs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 220px));
  align-items: start;
  gap: 20px;
  padding: 2px;
}

.collection-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
}

.collection-heading h2 {
  margin: 0;
  color: #effff3;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(19px, 2vw, 25px);
}

.collection-heading p {
  margin: 0;
  color: #dcf7e4;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 13px;
  text-align: right;
}

.spherical-collection-heading {
  position: sticky;
  top: 0;
  z-index: 5;
  align-items: center;
  margin: -8px -8px 16px;
  padding: 9px 8px;
  border: 1px solid rgba(117, 255, 187, 0.14);
  border-radius: 12px;
  background: linear-gradient(105deg, rgba(2, 60, 31, 0.96), rgba(2, 48, 37, 0.96));
  box-shadow: 0 8px 20px rgba(0, 20, 12, 0.18);
  backdrop-filter: blur(10px);
}

.spherical-packcash-balance {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 230, 106, 0.58);
  border-radius: 12px;
  background: linear-gradient(105deg, rgba(3, 82, 42, 0.94), rgba(4, 52, 39, 0.94));
  box-shadow: 0 0 20px rgba(43, 255, 106, 0.12), inset 0 0 14px rgba(128, 255, 187, 0.06);
  color: #f4fff6;
}

.spherical-packcash-balance span {
  color: #a8f4ce;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 0.06em;
}

.spherical-packcash-balance strong {
  color: #ffe66a;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(15px, 2vw, 19px);
  font-variant-numeric: tabular-nums;
}

.crate-grid,
.spherical-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 225px), 1fr));
  align-items: stretch;
  gap: 16px;
  min-width: 0;
}

.crate-card,
.spherical-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(154, 255, 206, 0.36);
  border-radius: 15px;
  background: rgba(3, 24, 16, 0.84);
  box-shadow: 0 12px 30px rgba(0, 28, 12, 0.18);
  color: #effff4;
}

.crate-card-top {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  margin-bottom: 12px;
}

.crate-card-image {
  display: block;
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  object-fit: contain;
}

.crate-card h2,
.spherical-card h2 {
  margin: 0 0 5px;
  color: #f4fff6;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.crate-card-top p,
.spherical-card p {
  margin: 0;
  color: #b9d9c5;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 12px;
}

.crate-price {
  margin: 0 0 10px;
  color: #ffe66a;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: 13px;
}

.crate-contents {
  margin: 0 0 13px;
  border-top: 1px solid rgba(154, 255, 206, 0.18);
  border-bottom: 1px solid rgba(154, 255, 206, 0.18);
  color: #d9f5e1;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 12px;
}

.crate-contents summary {
  padding: 9px 0;
  color: #8ef2c7;
  cursor: pointer;
  font-weight: 700;
}

.crate-content-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0 0 11px;
  list-style: none;
}

.crate-content-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.rarity-tag {
  flex: 0 0 auto;
  color: #c9d7cd;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: 9px;
  text-transform: uppercase;
}

.rarity-common { color: #c5d7cb; }
.rarity-uncommon { color: #71f1a3; }
.rarity-rare { color: #64caff; }
.rarity-epic { color: #d498ff; }
.rarity-legendary { color: #ffe36a; }
.rarity-unknown { color: #ff68ed; text-shadow: 0 0 10px rgba(98, 220, 255, 0.8); }

.crate-open-button,
.spherical-equip-button,
.spherical-sell-button,
.spherical-sell-duplicates-button {
  width: 100%;
}

.crate-quantity-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 9px;
}

.crate-quantity-option {
  min-width: 0;
  min-height: 34px;
  border: 1px solid rgba(112, 244, 198, 0.36);
  border-radius: 9px;
  background: rgba(61, 182, 136, 0.14);
  color: #caffea;
  cursor: pointer;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: 12px;
  transition: transform 150ms ease, background 150ms ease, color 150ms ease;
}

.crate-quantity-option:hover,
.crate-quantity-option:focus-visible {
  transform: translateY(-1px);
  outline: 2px solid rgba(111, 246, 200, 0.62);
  outline-offset: 2px;
}

.crate-quantity-option:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.crate-quantity-option[aria-pressed="true"] {
  border-color: transparent;
  background: linear-gradient(100deg, #57ceff, #5ef6c3);
  color: #05120c;
}

.crate-quantity-hint {
  margin: -3px 0 9px;
  color: #b9d9c5;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 10px;
  line-height: 1.35;
}

.spherical-equip-button.is-equipped {
  border: 1px solid rgba(255, 230, 106, 0.55);
  background: rgba(255, 230, 106, 0.16);
  color: #ffe66a;
  cursor: default;
}

.spherical-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.spherical-card-image {
  display: block;
  width: 100%;
  height: 142px;
  object-fit: contain;
  filter: drop-shadow(0 7px 14px rgba(0, 0, 0, 0.3));
}

.spherical-card .rarity-tag {
  align-self: flex-start;
}

.spherical-duplicate-count {
  align-self: flex-start;
  padding: 5px 8px;
  border: 1px solid rgba(111, 246, 200, 0.38);
  border-radius: 999px;
  background: rgba(91, 242, 194, 0.14);
  color: #9fffdc;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.spherical-card .spherical-value {
  margin-top: auto;
  color: #ffe66a;
  font-weight: 700;
}

.spherical-sell-duplicates-button {
  border-color: rgba(255, 230, 106, 0.38);
  background: rgba(255, 230, 106, 0.13);
  color: #ffe99a;
}

.spherical-crate-section {
  margin-top: 23px;
}

.spherical-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 11px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(183, 255, 214, 0.28);
}

.spherical-section-heading h3 {
  margin: 0;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.spherical-section-heading > span {
  color: #c2e5cf;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 12px;
}

.collection-status {
  min-height: 20px;
  margin: 0 0 12px;
  color: #aef5ce;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 13px;
}

body.crate-opening-active,
body.sale-confirmation-open {
  overflow: hidden;
}

.sale-confirm-overlay {
  position: fixed;
  z-index: 1100;
  inset: 0;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 18px;
  background: rgba(0, 8, 4, 0.78);
  backdrop-filter: blur(5px);
  animation: crate-overlay-enter 180ms ease-out both;
}

.sale-confirm-dialog {
  width: min(100%, 500px);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid rgba(155, 255, 207, 0.54);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(5, 178, 17, 0.98), rgba(0, 91, 64, 0.99));
  box-shadow: 0 24px 75px rgba(0, 0, 0, 0.56), 0 0 30px rgba(0, 255, 70, 0.2);
  color: #f2fff5;
}

.sale-confirm-dialog h2 {
  margin: 6px 0 16px;
  color: #fff;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(20px, 5vw, 26px);
  line-height: 1.2;
}

.sale-confirm-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 13px;
  border: 1px solid rgba(181, 255, 212, 0.32);
  border-radius: 13px;
  background: rgba(0, 35, 22, 0.62);
}

.sale-confirm-item img {
  display: block;
  width: 92px;
  height: 92px;
  flex: 0 0 92px;
  object-fit: contain;
}

.sale-confirm-item h3 {
  margin: 4px 0;
  color: #fff;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: 17px;
  overflow-wrap: anywhere;
}

.sale-confirm-item p {
  margin: 0;
  color: #d8efdf;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 13px;
}

.sale-confirm-item p strong {
  color: #ffe66a;
}

.sale-confirm-note {
  margin: 13px 0 16px;
  color: #e1f6e7;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.4;
}

.sale-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.sale-confirm-actions button {
  min-height: 42px;
  padding: 0 13px;
  border: 0;
  border-radius: 10px;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: 11px;
  cursor: pointer;
}

.sale-cancel-button {
  background: rgba(214, 244, 225, 0.23);
  color: #f2fff5;
}

.sale-confirm-button {
  background: linear-gradient(105deg, #ff8d57, #ec4646);
  color: #fff;
  box-shadow: 0 4px 12px rgba(112, 10, 10, 0.24);
}

.sale-confirm-actions button:hover,
.sale-confirm-actions button:focus-visible {
  filter: brightness(1.1);
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 2px;
}

.crate-opening-overlay {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 20px;
  background: rgba(0, 8, 4, 0.82);
  backdrop-filter: blur(5px);
  animation: crate-overlay-enter 220ms ease-out both;
}

.crate-opening-overlay::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: radial-gradient(circle at 50% 44%, rgba(73, 255, 124, 0.12), transparent 42%);
  content: "";
  opacity: 0;
  pointer-events: none;
}

.crate-burst {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.crate-opening-dialog {
  position: relative;
  z-index: 2;
  width: min(100%, 520px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 25px 30px 27px;
  border: 1px solid rgba(122, 255, 191, 0.6);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(6, 222, 8, 0.96), rgba(0, 112, 75, 0.98));
  box-shadow: 0 22px 90px rgba(0, 0, 0, 0.56), 0 0 40px rgba(0, 255, 61, 0.22);
  color: #f2fff5;
  text-align: center;
}

.crate-opening-dialog.has-batch {
  width: min(100%, 780px);
}

.crate-opening-dialog > .section-kicker {
  color: #aeffd2;
}

.crate-opening-dialog h2 {
  margin: 6px 0 4px;
  color: #fff;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(21px, 5vw, 30px);
}

.crate-opening-status {
  min-height: 20px;
  margin: 0;
  color: #e0ffea;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 14px;
}

.crate-opening-stage {
  position: relative;
  display: grid;
  height: 205px;
  margin: 10px 0 4px;
  place-items: center;
}

.crate-opening-overlay.rarity-common.is-revealing .crate-opening-stage::before,
.crate-opening-overlay.rarity-common.is-revealing .crate-opening-stage::after {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  content: "";
  pointer-events: none;
}

.crate-opening-overlay.rarity-common.is-revealing .crate-opening-stage::before {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(233, 249, 238, 0.84);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(224, 255, 232, 0.7), inset 0 0 14px rgba(224, 255, 232, 0.35);
  animation: common-impact-ring 850ms cubic-bezier(0.12, 0.65, 0.3, 1) both;
}

.crate-opening-overlay.rarity-common.is-revealing .crate-opening-stage::after {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 250, 0.92), rgba(231, 244, 235, 0.36) 35%, transparent 72%);
  animation: common-core-flash 520ms ease-out both;
}

.crate-opening-overlay.rarity-common.is-revealing .crate-opening-dialog {
  animation: common-impact-thump 470ms cubic-bezier(0.18, 0.75, 0.28, 1) both;
}

.crate-opening-image {
  display: block;
  width: min(66vw, 230px);
  height: 180px;
  object-fit: contain;
  filter: drop-shadow(0 14px 16px rgba(0, 30, 12, 0.48)) drop-shadow(0 0 15px rgba(110, 255, 69, 0.54));
  transform-origin: center;
}

.crate-opening-overlay.is-shaking .crate-opening-image {
  animation: crate-rattle 110ms ease-in-out infinite;
}

.crate-opening-overlay.is-shaking .crate-opening-stage {
  animation: crate-stage-pulse 650ms ease-in-out infinite alternate;
}

.crate-opening-overlay.is-revealing .crate-opening-image {
  animation: crate-burst-away 600ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.crate-opening-reward[hidden],
.crate-opening-continue[hidden] {
  display: none !important;
}

.crate-opening-reward {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 14px auto 18px;
  padding: 14px;
  border: 1px solid rgba(187, 255, 216, 0.44);
  border-radius: 15px;
  background: rgba(1, 44, 25, 0.68);
  text-align: left;
}

.crate-opening-reward > img {
  display: block;
  width: 112px;
  height: 112px;
  flex: 0 0 112px;
  object-fit: contain;
  filter: drop-shadow(0 7px 14px rgba(0, 0, 0, 0.35));
}

.crate-opening-reward h3 {
  margin: 5px 0;
  color: #fff;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(16px, 4vw, 21px);
  overflow-wrap: anywhere;
}

.crate-opening-reward p {
  margin: 0;
  color: #ffe66a;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.crate-opening-reward-batch {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 10px;
  max-height: min(42vh, 390px);
  overflow-y: auto;
  text-align: left;
}

.crate-opening-reward-card {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(187, 255, 216, 0.26);
  border-radius: 11px;
  background: rgba(2, 34, 22, 0.72);
}

.crate-opening-reward-card > img {
  display: block;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  object-fit: contain;
}

.crate-opening-reward-card > div {
  min-width: 0;
}

.crate-opening-reward-card h3 {
  margin: 4px 0;
  font-size: 12px;
}

.crate-opening-reward-card p {
  font-size: 10px;
}

.crate-opening-continue {
  width: min(100%, 270px);
  margin-top: 5px;
}

.crate-opening-overlay.has-error .crate-opening-status {
  color: #fff1b8;
}

.crate-opening-overlay.rarity-uncommon.is-revealing::before {
  animation: uncommon-flash 900ms ease-out both;
}

.crate-opening-overlay.rarity-common.is-revealing::before {
  animation: common-screen-flash 560ms ease-out both;
}

.crate-opening-overlay.rarity-rare.is-revealing::before {
  animation: rare-flash 950ms ease-out both;
}

.crate-opening-overlay.rarity-epic.is-revealing::before {
  animation: epic-flash 1100ms ease-out both;
}

.crate-opening-overlay.rarity-legendary.is-revealing::before {
  animation: legendary-screen-flash 1150ms ease-out both;
}

.crate-opening-overlay.rarity-unknown.is-revealing::before {
  animation: unknown-screen-flash 5000ms ease-out both;
}

.crate-opening-overlay.rarity-unknown.is-revealing .crate-burst {
  z-index: 3;
}

.unknown-reveal-title {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: none;
  place-items: center;
  color: #fff;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(58px, 15vw, 205px);
  font-weight: 1000;
  letter-spacing: -0.075em;
  line-height: 0.9;
  text-align: center;
  -webkit-text-stroke: clamp(2px, 0.7vw, 9px) #7f25db;
  text-shadow: 0 0 8px #fff, 0 0 24px #93f4ff, 0 0 54px #ff3fd1, 0 0 100px #9d3cff;
  transform-origin: center;
}

.crate-opening-overlay.rarity-unknown.is-revealing .unknown-reveal-title {
  display: grid;
  animation: unknown-title-hit 5000ms cubic-bezier(0.15, 0.7, 0.2, 1) both;
}

.crate-opening-overlay.is-revealing .loot-particle {
  position: absolute;
  top: 44%;
  left: 50%;
  display: block;
  width: 17px;
  height: 17px;
  opacity: 0;
  transform-origin: center;
}

.crate-opening-overlay.rarity-common.is-revealing .loot-particle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(248, 255, 250, 0.74), rgba(211, 228, 217, 0.55) 29%, rgba(149, 176, 158, 0.34) 57%, transparent 77%);
  filter: blur(4px);
  animation: crate-smoke-puff 1550ms cubic-bezier(0.15, 0.6, 0.22, 1) both;
}

.crate-opening-overlay.rarity-common.is-revealing .loot-particle:nth-child(n + 17) {
  display: none;
}

.crate-opening-overlay.rarity-common.is-revealing .loot-particle:nth-child(4n + 1) { width: 54px; height: 54px; }
.crate-opening-overlay.rarity-common.is-revealing .loot-particle:nth-child(4n + 2) { width: 88px; height: 88px; }
.crate-opening-overlay.rarity-common.is-revealing .loot-particle:nth-child(4n + 3) { width: 68px; height: 68px; }
.crate-opening-overlay.rarity-common.is-revealing .loot-particle:nth-child(4n + 4) { width: 102px; height: 102px; }

.crate-opening-overlay.rarity-uncommon.is-revealing .loot-particle,
.crate-opening-overlay.rarity-rare.is-revealing .loot-particle,
.crate-opening-overlay.rarity-epic.is-revealing .loot-particle,
.crate-opening-overlay.rarity-legendary.is-revealing .loot-particle {
  background: #78ff8c;
  box-shadow: 0 0 14px currentColor, 0 0 30px currentColor;
  animation: loot-spark-burst 1000ms cubic-bezier(0.12, 0.65, 0.3, 1) both;
}

.crate-opening-overlay.rarity-uncommon.is-revealing .loot-particle:nth-child(n + 15),
.crate-opening-overlay.rarity-rare.is-revealing .loot-particle:nth-child(n + 23),
.crate-opening-overlay.rarity-epic.is-revealing .loot-particle:nth-child(n + 33),
.crate-opening-overlay.rarity-legendary.is-revealing .loot-particle:nth-child(n + 53) {
  display: none;
}

.crate-opening-overlay.rarity-uncommon.is-revealing .loot-particle {
  color: #7cff93;
  border-radius: 50%;
}

.crate-opening-overlay.rarity-rare.is-revealing .loot-particle {
  color: #72d9ff;
  background: #72d9ff;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.crate-opening-overlay.rarity-epic.is-revealing .loot-particle {
  color: #d09aff;
  background: #d09aff;
  clip-path: polygon(50% 0, 62% 34%, 100% 35%, 69% 57%, 81% 96%, 50% 72%, 19% 96%, 31% 57%, 0 35%, 38% 34%);
}

.crate-opening-overlay.rarity-legendary.is-revealing .loot-particle {
  color: #ffe36a;
  width: 12px;
  height: 23px;
  background: linear-gradient(180deg, #fff6b5, #ffc82f);
}

.crate-opening-overlay.rarity-unknown.is-revealing .loot-particle {
  width: 17px;
  height: 24px;
  border-radius: 3px;
  background: linear-gradient(180deg, #fff, #ff61dd 45%, #77edff);
  box-shadow: 0 0 14px #ff61dd, 0 0 28px #77edff;
  animation: loot-spark-burst 1600ms cubic-bezier(0.12, 0.65, 0.3, 1) 3 both;
}

.crate-opening-overlay.rarity-unknown.is-revealing .loot-particle:nth-child(3n + 1) {
  background: linear-gradient(180deg, #fff8a3, #ff5cdc);
}

.crate-opening-overlay.rarity-unknown.is-revealing .loot-particle:nth-child(3n + 2) {
  background: linear-gradient(180deg, #bafcff, #6b64ff);
}

.loot-particle:nth-child(12n + 1) { --loot-x: -43vw; --loot-y: -24vh; }
.loot-particle:nth-child(12n + 2) { --loot-x: -30vw; --loot-y: 15vh; }
.loot-particle:nth-child(12n + 3) { --loot-x: -18vw; --loot-y: -38vh; }
.loot-particle:nth-child(12n + 4) { --loot-x: -8vw; --loot-y: 31vh; }
.loot-particle:nth-child(12n + 5) { --loot-x: 8vw; --loot-y: -34vh; }
.loot-particle:nth-child(12n + 6) { --loot-x: 17vw; --loot-y: 24vh; }
.loot-particle:nth-child(12n + 7) { --loot-x: 30vw; --loot-y: -22vh; }
.loot-particle:nth-child(12n + 8) { --loot-x: 43vw; --loot-y: 10vh; }
.loot-particle:nth-child(12n + 9) { --loot-x: -36vw; --loot-y: 1vh; }
.loot-particle:nth-child(12n + 10) { --loot-x: -22vw; --loot-y: 37vh; }
.loot-particle:nth-child(12n + 11) { --loot-x: 24vw; --loot-y: 36vh; }
.loot-particle:nth-child(12n + 12) { --loot-x: 38vw; --loot-y: -36vh; }

.crate-opening-overlay.rarity-common.is-revealing .loot-particle:nth-child(16n + 1) { --loot-x: -10vw; --loot-y: -10vh; }
.crate-opening-overlay.rarity-common.is-revealing .loot-particle:nth-child(16n + 2) { --loot-x: 9vw; --loot-y: -12vh; }
.crate-opening-overlay.rarity-common.is-revealing .loot-particle:nth-child(16n + 3) { --loot-x: -20vw; --loot-y: 4vh; }
.crate-opening-overlay.rarity-common.is-revealing .loot-particle:nth-child(16n + 4) { --loot-x: 18vw; --loot-y: 3vh; }
.crate-opening-overlay.rarity-common.is-revealing .loot-particle:nth-child(16n + 5) { --loot-x: -13vw; --loot-y: 15vh; }
.crate-opening-overlay.rarity-common.is-revealing .loot-particle:nth-child(16n + 6) { --loot-x: 14vw; --loot-y: 16vh; }
.crate-opening-overlay.rarity-common.is-revealing .loot-particle:nth-child(16n + 7) { --loot-x: -25vw; --loot-y: -11vh; }
.crate-opening-overlay.rarity-common.is-revealing .loot-particle:nth-child(16n + 8) { --loot-x: 26vw; --loot-y: -8vh; }
.crate-opening-overlay.rarity-common.is-revealing .loot-particle:nth-child(16n + 9) { --loot-x: -31vw; --loot-y: -4vh; }
.crate-opening-overlay.rarity-common.is-revealing .loot-particle:nth-child(16n + 10) { --loot-x: 32vw; --loot-y: -3vh; }
.crate-opening-overlay.rarity-common.is-revealing .loot-particle:nth-child(16n + 11) { --loot-x: -28vw; --loot-y: 14vh; }
.crate-opening-overlay.rarity-common.is-revealing .loot-particle:nth-child(16n + 12) { --loot-x: 29vw; --loot-y: 16vh; }
.crate-opening-overlay.rarity-common.is-revealing .loot-particle:nth-child(16n + 13) { --loot-x: -5vw; --loot-y: 23vh; }
.crate-opening-overlay.rarity-common.is-revealing .loot-particle:nth-child(16n + 14) { --loot-x: 7vw; --loot-y: 24vh; }
.crate-opening-overlay.rarity-common.is-revealing .loot-particle:nth-child(16n + 15) { --loot-x: -20vw; --loot-y: 21vh; }
.crate-opening-overlay.rarity-common.is-revealing .loot-particle:nth-child(16n + 16) { --loot-x: 21vw; --loot-y: 22vh; }

.loot-particle:nth-child(4n + 1) { animation-delay: 0ms !important; }
.loot-particle:nth-child(4n + 2) { animation-delay: 35ms !important; }
.loot-particle:nth-child(4n + 3) { animation-delay: 70ms !important; }
.loot-particle:nth-child(4n + 4) { animation-delay: 105ms !important; }

.loot-lightning-bolts,
.loot-confetti-field {
  position: absolute;
  inset: 0;
}

.loot-lightning,
.loot-confetti {
  position: absolute;
  opacity: 0;
}

.crate-opening-overlay.rarity-legendary.is-revealing .loot-lightning {
  top: -8%;
  left: 8%;
  width: clamp(42px, 8vw, 96px);
  height: 116%;
  background: linear-gradient(90deg, transparent 0 36%, #fffbd4 37% 48%, #ffe35d 49% 57%, transparent 58%);
  clip-path: polygon(37% 0, 72% 0, 56% 29%, 86% 29%, 22% 100%, 42% 52%, 12% 52%);
  filter: drop-shadow(0 0 13px #ffeb75) drop-shadow(0 0 28px #9ceeff);
  animation: legendary-lightning 900ms ease-out both;
}

.crate-opening-overlay.rarity-legendary.is-revealing .loot-lightning:nth-child(2) { left: 23%; animation-delay: 80ms; transform: scaleX(-1); }
.crate-opening-overlay.rarity-legendary.is-revealing .loot-lightning:nth-child(3) { left: 39%; animation-delay: 180ms; }
.crate-opening-overlay.rarity-legendary.is-revealing .loot-lightning:nth-child(4) { left: 54%; animation-delay: 30ms; transform: scaleX(-1); }
.crate-opening-overlay.rarity-legendary.is-revealing .loot-lightning:nth-child(5) { left: 69%; animation-delay: 140ms; }
.crate-opening-overlay.rarity-legendary.is-revealing .loot-lightning:nth-child(6) { left: 84%; animation-delay: 60ms; transform: scaleX(-1); }
.crate-opening-overlay.rarity-legendary.is-revealing .loot-lightning:nth-child(7) { left: 95%; animation-delay: 210ms; }

.crate-opening-overlay.rarity-legendary.is-revealing .loot-confetti {
  top: -18px;
  left: 8%;
  width: 9px;
  height: 16px;
  background: linear-gradient(135deg, #fff2a0 0 35%, #66ffd0 36% 68%, #c98cff 69%);
  animation: legendary-confetti 1750ms cubic-bezier(0.15, 0.7, 0.25, 1) both;
}

.crate-opening-overlay.rarity-unknown.is-revealing .loot-lightning {
  top: -8%;
  left: 8%;
  width: clamp(50px, 9vw, 124px);
  height: 116%;
  background: linear-gradient(90deg, transparent 0 35%, #fff 36% 42%, #fa63ff 43% 53%, #7efaff 54% 61%, transparent 62%);
  clip-path: polygon(37% 0, 72% 0, 56% 29%, 86% 29%, 22% 100%, 42% 52%, 12% 52%);
  filter: drop-shadow(0 0 14px #fff) drop-shadow(0 0 30px #ff56e4) drop-shadow(0 0 56px #55eaff);
  animation: unknown-lightning 1550ms ease-in-out 3 both;
}

.crate-opening-overlay.rarity-unknown.is-revealing .loot-lightning:nth-child(2) { left: 23%; animation-delay: 90ms; transform: scaleX(-1); }
.crate-opening-overlay.rarity-unknown.is-revealing .loot-lightning:nth-child(3) { left: 39%; animation-delay: 180ms; }
.crate-opening-overlay.rarity-unknown.is-revealing .loot-lightning:nth-child(4) { left: 54%; animation-delay: 35ms; transform: scaleX(-1); }
.crate-opening-overlay.rarity-unknown.is-revealing .loot-lightning:nth-child(5) { left: 69%; animation-delay: 145ms; }
.crate-opening-overlay.rarity-unknown.is-revealing .loot-lightning:nth-child(6) { left: 84%; animation-delay: 65ms; transform: scaleX(-1); }
.crate-opening-overlay.rarity-unknown.is-revealing .loot-lightning:nth-child(7) { left: 95%; animation-delay: 215ms; }

.crate-opening-overlay.rarity-unknown.is-revealing .loot-confetti {
  top: -18px;
  left: 8%;
  width: 11px;
  height: 20px;
  background: linear-gradient(135deg, #fff 0 22%, #ff4fd8 23% 48%, #ffe66a 49% 72%, #65f5ff 73%);
  box-shadow: 0 0 12px rgba(196, 89, 255, 0.7);
  animation: unknown-confetti 1650ms cubic-bezier(0.15, 0.7, 0.25, 1) 3 both;
}

.loot-confetti:nth-child(9n + 1) { left: 4%; animation-delay: 0ms; }
.loot-confetti:nth-child(9n + 2) { left: 16%; animation-delay: 70ms; }
.loot-confetti:nth-child(9n + 3) { left: 28%; animation-delay: 130ms; }
.loot-confetti:nth-child(9n + 4) { left: 40%; animation-delay: 35ms; }
.loot-confetti:nth-child(9n + 5) { left: 52%; animation-delay: 110ms; }
.loot-confetti:nth-child(9n + 6) { left: 64%; animation-delay: 180ms; }
.loot-confetti:nth-child(9n + 7) { left: 76%; animation-delay: 20ms; }
.loot-confetti:nth-child(9n + 8) { left: 88%; animation-delay: 95ms; }
.loot-confetti:nth-child(9n + 9) { left: 97%; animation-delay: 150ms; }

.crate-opening-overlay.has-reward .crate-opening-reward {
  animation: spherical-reward-reveal 440ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes crate-overlay-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes crate-rattle {
  0%, 100% { transform: translateX(0) rotate(0); }
  25% { transform: translateX(-5px) rotate(-2deg); }
  75% { transform: translateX(5px) rotate(2deg); }
}

@keyframes crate-stage-pulse {
  from { filter: drop-shadow(0 0 0 rgba(98, 255, 93, 0)); }
  to { filter: drop-shadow(0 0 18px rgba(98, 255, 93, 0.65)); }
}

@keyframes common-impact-ring {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.28); }
  14% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(4.4); }
}

@keyframes common-core-flash {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.25); }
  16% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(2.2); }
}

@keyframes common-impact-thump {
  0%, 100% { transform: scale(1); }
  23% { transform: scale(1.035); }
  48% { transform: scale(0.985); }
  70% { transform: scale(1.012); }
}

@keyframes common-screen-flash {
  0%, 100% { opacity: 0; }
  15% { opacity: 0.3; background: radial-gradient(circle at 50% 44%, rgba(247, 255, 248, 0.72), rgba(215, 234, 220, 0.25) 27%, transparent 63%); }
  38% { opacity: 0.04; }
}

@keyframes crate-burst-away {
  0% { opacity: 1; transform: scale(1) rotate(0); }
  48% { opacity: 1; transform: scale(1.16) rotate(-4deg); }
  100% { opacity: 0; transform: scale(0.62) rotate(8deg); }
}

@keyframes crate-smoke-puff {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.2); }
  14% { opacity: 0.92; }
  46% { opacity: 0.78; }
  100% { opacity: 0; transform: translate(calc(var(--loot-x) - 50%), calc(var(--loot-y) - 50%)) scale(1.9); }
}

@keyframes loot-spark-burst {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.2) rotate(0); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(var(--loot-x) - 50%), calc(var(--loot-y) - 50%)) scale(1.25) rotate(240deg); }
}

@keyframes uncommon-flash {
  0%, 100% { opacity: 0; }
  14% { opacity: 0.28; }
  38% { opacity: 0.06; }
}

@keyframes rare-flash {
  0%, 100% { opacity: 0; }
  12% { opacity: 0.44; background: radial-gradient(circle at 50% 44%, rgba(83, 207, 255, 0.58), transparent 48%); }
  45% { opacity: 0.06; }
}

@keyframes epic-flash {
  0%, 100% { opacity: 0; }
  10% { opacity: 0.62; background: radial-gradient(circle at 50% 44%, rgba(186, 98, 255, 0.7), transparent 56%); }
  36% { opacity: 0.12; }
  55% { opacity: 0.34; }
}

@keyframes legendary-screen-flash {
  0%, 100% { opacity: 0; }
  9% { opacity: 0.98; background: radial-gradient(circle at 50% 44%, #fffbd0, rgba(255, 225, 79, 0.75) 24%, rgba(34, 255, 135, 0.3) 55%, transparent 78%); }
  28% { opacity: 0.12; }
  44% { opacity: 0.58; background: radial-gradient(circle at 50% 44%, #fff, rgba(255, 225, 79, 0.55) 27%, transparent 72%); }
}

@keyframes unknown-screen-flash {
  0%, 100% { opacity: 0; }
  4% { opacity: 1; background: radial-gradient(circle at 50% 44%, #fff, rgba(255, 80, 232, 0.84) 21%, rgba(93, 235, 255, 0.56) 51%, transparent 82%); }
  12% { opacity: 0.14; }
  19% { opacity: 0.78; background: radial-gradient(circle at 50% 44%, #fff8ba, rgba(180, 61, 255, 0.7) 31%, transparent 75%); }
  29% { opacity: 0.12; }
  41% { opacity: 0.62; background: radial-gradient(circle at 50% 44%, #fff, rgba(85, 234, 255, 0.62) 29%, transparent 75%); }
  53% { opacity: 0.08; }
  64% { opacity: 0.52; background: radial-gradient(circle at 50% 44%, #fff, rgba(255, 56, 211, 0.54) 30%, transparent 77%); }
  76% { opacity: 0.1; }
  86% { opacity: 0.34; }
}

@keyframes legendary-lightning {
  0%, 100% { opacity: 0; }
  12%, 28% { opacity: 1; }
  19%, 42% { opacity: 0.12; }
  52% { opacity: 0.8; }
}

@keyframes unknown-lightning {
  0%, 100% { opacity: 0; }
  10%, 32% { opacity: 1; }
  20%, 42% { opacity: 0.08; }
  56% { opacity: 0.92; }
  74% { opacity: 0.13; }
  85% { opacity: 0.72; }
}

@keyframes legendary-confetti {
  0% { opacity: 0; transform: translateY(-5vh) rotate(0deg); }
  12% { opacity: 1; }
  100% { opacity: 0.05; transform: translateY(118vh) rotate(780deg) translateX(24px); }
}

@keyframes unknown-confetti {
  0% { opacity: 0; transform: translateY(-5vh) rotate(0deg); }
  9% { opacity: 1; }
  100% { opacity: 0.1; transform: translateY(118vh) rotate(920deg) translateX(34px); }
}

@keyframes unknown-title-hit {
  0%, 100% { opacity: 0; transform: scale(2.8) rotate(-7deg); }
  5% { opacity: 1; transform: scale(0.65) rotate(4deg); }
  10% { opacity: 1; transform: scale(1.14) rotate(-2deg); }
  16% { opacity: 0.94; transform: scale(1) rotate(0); }
  27% { opacity: 1; transform: scale(1.045) rotate(1deg); }
  37% { opacity: 0.82; transform: scale(1) rotate(-1deg); }
  52% { opacity: 1; transform: scale(1.025) rotate(0); }
  67% { opacity: 0.86; transform: scale(1) rotate(1deg); }
  80% { opacity: 1; transform: scale(1.025) rotate(0); }
  91% { opacity: 0.45; transform: scale(0.96) rotate(-1deg); }
}

@keyframes spherical-reward-reveal {
  from { opacity: 0; transform: translateY(18px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.pack-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 262px;
  padding: 0 9px 0;
  overflow: hidden;
  border: 1px solid rgba(154, 255, 206, 0.5);
  border-radius: 13px;
  background: linear-gradient(145deg, #07d700 0%, #03925c 100%);
  box-shadow: 0 12px 24px rgba(0, 30, 12, 0.24);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.pack-card:hover {
  box-shadow: 0 16px 30px rgba(0, 30, 12, 0.32);
  transform: translateY(-3px);
}

.pack-cap {
  height: 40px;
  flex: 0 0 40px;
  margin: 0 -9px;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(100deg, #03c800, #007d4e);
}

.pack-trim {
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  height: 15px;
  overflow: hidden;
}

.pack-trim span {
  width: 0;
  height: 0;
  flex: 0 0 auto;
  border-right: 9px solid transparent;
  border-bottom: 14px solid #65ebc0;
  border-left: 9px solid transparent;
  filter: drop-shadow(0 1px 1px rgba(1, 87, 53, 0.5));
}

.pack-cover {
  height: 124px;
  flex: 0 0 124px;
  margin: 0 -9px;
  overflow: hidden;
  background: #565656;
}

.pack-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.pack-card-title {
  display: -webkit-box;
  min-height: 43px;
  margin: 0 -4px;
  overflow: hidden;
  padding: 8px 3px 2px;
  color: #030a05;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.05;
  text-align: center;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pack-question-count {
  margin: 0 0 7px;
  color: rgba(0, 34, 18, 0.8);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.pack-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin: auto 0 10px;
}

.pack-actions button,
.discover-play-button {
  min-width: 0;
  height: 38px;
  border: 0;
  border-radius: 11px;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: 16px;
  font-weight: 950;
  cursor: pointer;
  transition: filter 150ms ease, transform 150ms ease;
}

.pack-actions button:hover,
.discover-play-button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.pack-edit-button {
  background: #00572e;
  color: #f1fff3;
}

.pack-play-button {
  background: #ffdc4b;
  color: #111006;
}

.pack-trim-bottom {
  align-items: flex-end;
  height: 14px;
  margin: 0 -9px;
  transform: rotate(180deg);
}

.quiz-card,
.quiz-result {
  width: min(100%, 720px);
  margin: 8px auto;
  padding: clamp(18px, 4vw, 30px);
}

.quiz-topline {
  margin-bottom: 18px;
}

.quiz-progress {
  color: #c7e5d2;
  font-size: 13px;
  font-weight: 700;
}

.quiz-card h2 {
  margin: 0 0 21px;
  color: #fff;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(20px, 3vw, 29px);
  line-height: 1.25;
}

.quiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.quiz-option {
  display: flex;
  align-items: center;
  min-height: 50px;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(182, 255, 216, 0.22);
  border-radius: 11px;
  background: rgba(13, 48, 32, 0.92);
  color: #f1fff5;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease;
}

.quiz-option:hover:not(:disabled) {
  border-color: #63edbd;
  background: rgba(25, 83, 56, 0.95);
}

.quiz-option > span {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  place-items: center;
  border-radius: 8px;
  background: rgba(99, 237, 189, 0.17);
  color: #a3f5d1;
  font-weight: 900;
}

.quiz-option.is-correct {
  border-color: #68f2a4;
  background: rgba(26, 126, 69, 0.8);
}

.quiz-option.is-incorrect {
  border-color: #ff7777;
  background: rgba(125, 42, 42, 0.75);
}

.quiz-feedback {
  min-height: 23px;
  margin: 14px 0 0;
  color: #a5ffd3;
  font-size: 14px;
  font-weight: 700;
}

.quiz-actions {
  margin-top: 12px;
}

.quiz-result {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  min-height: 310px;
  text-align: center;
}

.auth-screen[hidden],
.app-shell[hidden] {
  display: none !important;
}

.auth-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: auto;
  padding: 24px;
  background: rgba(0, 12, 5, 0.2);
}

.auth-card {
  position: relative;
  width: min(100%, 760px);
  min-height: min(84vh, 560px);
  padding: 10px clamp(20px, 5.3vw, 40px) 25px;
  overflow: hidden;
  border: 1px solid rgba(38, 255, 117, 0.25);
  border-radius: 13px;
  background:
    linear-gradient(133deg, transparent 0 24%, rgba(57, 255, 62, 0.11) 24.2% 49%, transparent 49.2%),
    linear-gradient(42deg, transparent 0 59%, rgba(82, 255, 180, 0.08) 59.2% 78%, transparent 78.2%),
    linear-gradient(112deg, rgba(4, 221, 0, 0.96) 0%, rgba(0, 133, 79, 0.96) 100%);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4), 0 0 28px rgba(2, 231, 0, 0.14);
  color: #030807;
}

.auth-brand {
  display: flex;
  width: min(100%, 430px);
  height: 108px;
  margin: 0 auto 12px;
  overflow: hidden;
}

.auth-brand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
}

.auth-mode-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 12px;
  padding: 6px;
  border: 0;
  border-radius: 13px;
  background: #565656;
}

.auth-mode-toggle button {
  min-height: 51px;
  border: 0;
  border-radius: 11px;
  background: rgba(40, 129, 155, 0.9);
  color: #050c0c;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(12px, 2vw, 18px);
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease, filter 160ms ease;
}

.auth-mode-toggle button:hover {
  filter: brightness(1.08);
}

.auth-mode-toggle button.is-selected {
  background: linear-gradient(100deg, #65d1ff, #58f6bf);
  color: #040b0b;
}

.auth-card h1 {
  margin: 0 0 14px;
  color: #020807;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(24px, 5vw, 37px);
  font-weight: 950;
  letter-spacing: -0.035em;
  text-align: center;
  text-transform: uppercase;
}

.auth-form {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
  color: #06100a;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.auth-field input {
  width: 100%;
  height: 43px;
  padding: 9px 13px;
  border: 2px solid rgba(0, 59, 42, 0.38);
  border-radius: 10px;
  outline: none;
  background: rgba(226, 255, 239, 0.84);
  color: #06120c;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 15px;
}

.auth-field input:focus {
  border-color: #4cc8ff;
  box-shadow: 0 0 0 3px rgba(64, 191, 255, 0.22);
}

.auth-field input::placeholder {
  color: #527262;
}

.auth-message {
  min-height: 18px;
  margin: 1px 0 6px;
  color: #651e0e;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.4;
}

.auth-submit {
  width: 100%;
  min-height: 80px;
  margin-top: auto;
  border-radius: 12px;
  color: #02090a;
  font-size: clamp(24px, 5vw, 36px);
  letter-spacing: -0.025em;
}

.auth-storage-note {
  margin: 11px 0 0;
  color: rgba(0, 37, 21, 0.84);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}

.auth-join-link {
  display: block;
  margin: 12px 0 2px;
  color: #06462b;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: 11px;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-join-link:hover {
  color: #002315;
}

.account-layout {
  display: grid;
  grid-template-columns: minmax(210px, 0.75fr) minmax(0, 1.25fr);
  align-items: start;
  gap: 18px;
  width: min(100%, 960px);
  margin: 0 auto;
  color: #effff4;
}

.profile-character-card,
.account-form {
  padding: 20px;
}

.profile-character-card h2,
.account-form h2 {
  margin: 0 0 15px;
  color: #fff;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: 20px;
}

.character-slot {
  display: grid;
  width: min(100%, 190px);
  aspect-ratio: 1;
  margin: 4px auto 14px;
  overflow: hidden;
  place-items: center;
  border: 2px dashed rgba(149, 233, 179, 0.48);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.13);
}

.character-slot.has-spherical {
  border-style: solid;
  border-color: rgba(111, 255, 193, 0.78);
  background: radial-gradient(circle, rgba(0, 45, 25, 0.75), rgba(0, 0, 0, 0.28));
  box-shadow: 0 0 23px rgba(40, 255, 122, 0.2), inset 0 0 22px rgba(36, 255, 114, 0.12);
}

.character-slot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.34));
}

.character-slot-mark {
  color: rgba(209, 245, 220, 0.55);
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: 56px;
}

.profile-character-card p {
  margin: 0;
  color: #bdd9c7;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.profile-character-choose {
  width: 100%;
  margin-top: 15px;
}

.account-form .form-field small {
  color: #9fbcaa;
  font-size: 11px;
  font-weight: 500;
}

.account-password-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.account-message {
  min-height: 19px;
  margin: 0 0 10px;
  color: #9af1bd;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 13px;
}

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

.logout-action {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 139, 139, 0.38);
  border-radius: 11px;
  background: rgba(116, 34, 34, 0.35);
  color: #ffd1d1;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: 11px;
  cursor: pointer;
}

.game-modes-body {
  overflow: auto;
  min-height: 100vh;
}

.game-mode-shell {
  display: flex;
  flex-direction: column;
  width: min(100%, 1320px);
  min-height: 100vh;
  gap: 14px;
  margin: 0 auto;
  padding: 22px 30px 30px;
}

.game-mode-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  gap: 12px;
}

.game-mode-topbar a {
  color: #e7fff0;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: 12px;
  text-decoration: none;
}

.game-mode-topbar a:hover {
  color: #73f4c4;
}

.game-brand {
  position: relative;
  display: block;
  width: 220px;
  min-width: 220px;
  height: 52px;
  overflow: hidden;
}

.game-brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
  filter: drop-shadow(0 2px 8px rgba(31, 255, 108, 0.22));
}

.game-mode-topbar a.game-brand:hover {
  filter: brightness(1.08);
}

.game-account-link {
  display: inline-flex;
  min-height: 37px;
  align-items: center;
  justify-content: center;
  max-width: 240px;
  padding: 0 13px;
  border: 1px solid rgba(115, 243, 194, 0.35);
  border-radius: 10px;
  background: rgba(0, 25, 16, 0.68);
  color: #dffff0 !important;
  overflow-wrap: anywhere;
}

.mode-topbar-account {
  color: #d4f3df;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 13px;
}

.mode-topbar-avatar {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(166, 255, 210, 0.42);
  border-radius: 50%;
  background: radial-gradient(circle, #14ed16 0 23%, #056b2b 70%);
}

.mode-topbar-avatar.has-spherical {
  background: rgba(0, 42, 24, 0.85);
  box-shadow: 0 0 12px rgba(48, 255, 145, 0.35);
}

.mode-topbar-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mode-topbar-packcash {
  padding: 8px 11px;
  border: 1px solid rgba(255, 230, 106, 0.35);
  border-radius: 999px;
  background: rgba(3, 24, 16, 0.68);
  color: #ffe66a;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: 11px;
  white-space: nowrap;
}

.mode-topbar-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.game-mode-panel {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: min(680px, calc(100vh - 115px));
  overflow: hidden;
  border-radius: 13px;
  background: linear-gradient(108deg, rgba(5, 226, 0, 0.82) 0%, rgba(0, 132, 79, 0.83) 100%);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(1px);
}

.game-mode-panel > .page-heading {
  flex: 0 0 auto;
}

.game-mode-content {
  flex: 1 1 auto;
  overflow: auto;
  padding: 24px;
  color: #effff4;
  font-family: "Trebuchet MS", Arial, sans-serif;
}

.back-link {
  display: inline-block;
  margin-bottom: 18px;
  color: #052012;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: 12px;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.mode-pack-summary {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 780px;
  margin-bottom: 26px;
  padding: 15px;
  border: 1px solid rgba(154, 255, 206, 0.32);
  border-radius: 14px;
  background: rgba(3, 24, 16, 0.82);
}

.mode-pack-cover {
  width: 150px;
  height: 105px;
  flex: 0 0 150px;
  overflow: hidden;
  border-radius: 9px;
  background: #555;
}

.mode-pack-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mode-pack-summary h2,
.mode-picker-heading h2 {
  margin: 0 0 7px;
  color: #fff;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: 21px;
}

.mode-pack-summary p {
  margin: 4px 0;
  color: #c5e6d0;
  font-size: 13px;
}

.mode-pack-description {
  max-width: 500px;
}

.mode-picker-heading {
  margin-bottom: 12px;
}

.mode-picker-heading p {
  margin: 0;
  color: #e4ffe9;
  font-size: 14px;
}

.mode-placeholder {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 780px;
  min-height: 104px;
  padding: 17px;
  border: 1px dashed rgba(177, 255, 215, 0.48);
  border-radius: 14px;
  background: rgba(3, 24, 16, 0.52);
}

.mode-placeholder-mark {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border: 1px solid rgba(119, 243, 194, 0.5);
  border-radius: 14px;
  color: #7cf3c7;
  font-size: 28px;
  font-weight: 700;
}

.mode-placeholder h3 {
  margin: 0 0 4px;
  color: #f1fff5;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: 15px;
}

.mode-placeholder p {
  margin: 0;
  color: #bbd8c4;
  font-size: 13px;
}

.classic-mode-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 17px;
  max-width: 820px;
  padding: 19px;
  border: 1px solid rgba(141, 255, 197, 0.4);
  border-radius: 15px;
  background: rgba(3, 24, 16, 0.78);
  box-shadow: 0 12px 28px rgba(0, 24, 11, 0.18);
}

.classic-mode-mark {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 1px solid rgba(116, 255, 198, 0.5);
  border-radius: 16px;
  background: linear-gradient(145deg, #77efd1, #5acbff);
  color: #052417;
  font-size: 30px;
}

.classic-mode-copy h3 {
  margin: 4px 0 5px;
  color: #fff;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: 20px;
}

.classic-mode-copy p {
  max-width: 540px;
  margin: 0;
  color: #c8e8d3;
  font-size: 13px;
  line-height: 1.5;
}

.classic-host-button {
  min-height: 48px;
  padding: 0 18px;
  font-size: 12px;
  white-space: nowrap;
}

.classic-host-button:disabled,
.live-host-actions button:disabled,
.live-entry-form button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.classic-mode-message {
  grid-column: 2 / -1;
  min-height: 17px;
  margin: -8px 0 0;
  color: #a9ffd0;
  font-size: 12px;
}

.coming-soon-pill {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(93, 230, 179, 0.18);
  color: #9af1cb;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.live-game-body {
  overflow-y: auto;
}

.live-game-content {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 34px);
}

.live-loading {
  padding: 56px 15px;
  color: #082a19;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: 18px;
  text-align: center;
}

.live-hero,
.live-section,
.live-question-card {
  margin: 0 auto 18px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(159, 255, 203, 0.27);
  border-radius: 16px;
  background: rgba(2, 30, 17, 0.84);
  box-shadow: 0 12px 28px rgba(0, 27, 13, 0.18);
}

.live-hero {
  text-align: center;
}

.live-hero h2,
.live-question-card h2 {
  margin: 8px 0 9px;
  color: #f5fff8;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(23px, 4vw, 35px);
  line-height: 1.18;
}

.live-hero p,
.live-question-card > p {
  margin: 7px 0 0;
  color: #c6e9d1;
  font-size: 14px;
  line-height: 1.5;
}

.live-game-code {
  display: inline-block;
  margin: 10px auto 8px;
  padding: 7px 20px;
  border: 1px solid rgba(108, 246, 207, 0.46);
  border-radius: 13px;
  background: linear-gradient(100deg, #72d4f6, #56efc5);
  color: #031b16;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(36px, 7vw, 62px);
  letter-spacing: 0.12em;
  line-height: 1.1;
  text-shadow: 0 1px rgba(255, 255, 255, 0.32);
}

.live-join-url {
  display: table;
  margin: 12px auto 0;
  padding: 8px 13px;
  border: 1px solid rgba(154, 255, 205, 0.18);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.22);
  color: #aef5c8;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.live-section-heading,
.live-game-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
  color: #d8ffe2;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: 12px;
}

.live-section-heading h2 {
  margin: 4px 0 0;
  color: #fff;
  font-size: 21px;
}

.live-game-status {
  min-height: 43px;
  padding: 0 14px;
  border: 1px solid rgba(122, 255, 195, 0.3);
  border-radius: 12px;
  background: rgba(0, 34, 18, 0.84);
}

.live-countdown {
  color: #ffe46a;
  font-size: 18px;
  white-space: nowrap;
}

.game-countdown-screen {
  display: grid;
  min-height: min(68vh, 620px);
  place-content: center;
  justify-items: center;
  padding: clamp(20px, 5vw, 54px);
  overflow: hidden;
  border: 1px solid rgba(128, 255, 191, 0.5);
  border-radius: 22px;
  background: radial-gradient(circle at 50% 42%, rgba(46, 255, 122, 0.24), transparent 48%), linear-gradient(140deg, rgba(3, 52, 30, 0.94), rgba(0, 26, 22, 0.96));
  box-shadow: 0 0 42px rgba(35, 255, 95, 0.17), inset 0 0 30px rgba(91, 255, 162, 0.06);
  color: #effff4;
  text-align: center;
}

.game-countdown-screen .section-kicker {
  color: #a7ffd0;
}

.game-countdown-screen h2 {
  margin: 9px 0 0;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(18px, 4vw, 27px);
}

.game-start-countdown-number {
  display: grid;
  min-width: 1.2em;
  min-height: 1.2em;
  place-items: center;
  margin: 7px 0;
  color: #5bff88;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(110px, 25vw, 220px);
  line-height: 1;
  text-shadow: 0 0 24px rgba(62, 255, 109, 0.78), 0 0 72px rgba(62, 255, 109, 0.45);
}

.game-start-countdown-number.is-popping {
  animation: game-countdown-pop 650ms cubic-bezier(0.16, 0.82, 0.24, 1) both;
}

.game-countdown-screen > p {
  margin: 5px 0 0;
  color: #c4ecd2;
  font-size: 14px;
}

@keyframes game-countdown-pop {
  0% { opacity: 0; transform: scale(1.55); filter: blur(7px); }
  50% { opacity: 1; transform: scale(0.92); filter: blur(0); }
  72% { transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}

.podium-overlay {
  position: fixed;
  z-index: 1500;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 18px;
  background: rgba(0, 8, 4, 0.86);
  backdrop-filter: blur(8px);
  animation: crate-overlay-enter 220ms ease-out both;
}

.podium-confetti {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.podium-confetti i {
  position: absolute;
  top: -28px;
  left: var(--confetti-left);
  width: 9px;
  height: 15px;
  border-radius: 2px;
  background: hsl(var(--confetti-hue) 96% 62%);
  opacity: 0;
  transform: rotate(0deg);
}

.podium-overlay.is-celebrating .podium-confetti i {
  animation: podium-confetti-fall var(--confetti-duration) var(--confetti-delay) cubic-bezier(0.18, 0.65, 0.32, 1) both;
}

@keyframes podium-confetti-fall {
  0% { opacity: 0; transform: translate3d(-20px, -5vh, 0) rotate(0deg); }
  10% { opacity: 1; }
  100% { opacity: 0.85; transform: translate3d(34px, 110vh, 0) rotate(820deg); }
}

.podium-dialog {
  position: relative;
  z-index: 2;
  width: min(100%, 850px);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  padding: clamp(18px, 4vw, 34px);
  border: 1px solid rgba(129, 255, 188, 0.62);
  border-radius: 22px;
  background: radial-gradient(circle at 50% 0, rgba(42, 227, 99, 0.22), transparent 43%), linear-gradient(145deg, #063b24, #032319 58%, #061b18);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.58), 0 0 44px rgba(29, 255, 109, 0.2);
  color: #f3fff6;
  text-align: center;
}

.podium-dialog h2 {
  margin: 7px 0 4px;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(28px, 5vw, 42px);
}

.podium-announcer {
  min-height: 24px;
  margin: 0;
  color: #b5f8ca;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(14px, 2.5vw, 19px);
}

.podium-stage {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: clamp(5px, 2vw, 16px);
  min-height: 305px;
  margin: 14px 0 18px;
  padding: 0 clamp(2px, 2vw, 20px);
}

.podium-place {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transform: translateY(26px) scale(0.94);
  transition: opacity 420ms ease, transform 520ms cubic-bezier(0.18, 0.84, 0.22, 1);
}

.podium-place.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.podium-player {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-height: 128px;
  margin-bottom: 9px;
  color: #effff4;
  font-family: "Trebuchet MS", Arial, sans-serif;
}

.podium-player .live-avatar {
  width: 57px;
  height: 57px;
  border-width: 2px;
  box-shadow: 0 0 17px rgba(103, 255, 169, 0.3);
}

.podium-player > strong {
  max-width: 100%;
  overflow: hidden;
  color: #fff;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(11px, 2.4vw, 16px);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.podium-player > span:not(.live-avatar) {
  color: #d2edda;
  font-size: 11px;
}

.podium-player > small {
  color: #ffe66a;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: 9px;
}

.podium-empty-player {
  min-height: 128px;
  margin-bottom: 9px;
  color: rgba(214, 241, 221, 0.42);
  font-size: 12px;
}

.podium-step {
  display: grid;
  height: 100px;
  place-items: start center;
  padding-top: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  box-shadow: inset 0 10px 24px rgba(255, 255, 255, 0.12), 0 -10px 30px rgba(0, 0, 0, 0.16);
  color: rgba(5, 20, 15, 0.9);
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(18px, 4vw, 27px);
}

.podium-place-3 .podium-step { height: 94px; background: linear-gradient(135deg, #e7a477, #9e5632); }
.podium-place-2 .podium-step { height: 132px; background: linear-gradient(135deg, #f1f5f4, #91a9a5); }
.podium-place-1 .podium-step { height: 174px; background: linear-gradient(135deg, #fff092, #e5a912); }
.podium-place-1.is-revealed { filter: drop-shadow(0 0 20px rgba(255, 219, 72, 0.28)); }

.podium-cash-reward {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 0 auto 14px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 230, 106, 0.46);
  border-radius: 13px;
  background: rgba(0, 32, 21, 0.68);
}

.podium-personal-reward {
  transition: opacity 350ms ease, transform 350ms ease;
}

.podium-personal-reward.is-hidden {
  opacity: 0;
  transform: translateY(8px);
}

.podium-cash-earned,
.podium-cash-balance {
  display: grid;
  gap: 4px;
}

.podium-cash-earned span,
.podium-cash-balance span {
  color: #b5f3cd;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.podium-reward-amount,
.podium-cash-balance strong {
  color: #ffe66a;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: 15px;
}

.podium-cash-balance strong {
  font-size: 20px;
}

.podium-cash-balance strong.cash-balance-pulse {
  animation: packcash-pulse 460ms cubic-bezier(0.2, 0.8, 0.25, 1);
}

.podium-guest-reward {
  margin: 0 0 14px;
  color: #c1e3cb;
  font-size: 12px;
}

.podium-continue {
  width: min(100%, 280px);
}

.podium-coin-fly {
  position: fixed;
  z-index: 1600;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 2px solid #fff3a2;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 25%, #fff7ad, #ffc927 54%, #d88608);
  box-shadow: 0 0 12px rgba(255, 215, 74, 0.62);
  color: #775008;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.6);
}

.podium-coin-fly::after { content: "P"; }

.podium-coin-fly.is-flying {
  animation: podium-coin-flight 850ms cubic-bezier(0.24, 0.72, 0.2, 1) var(--coin-delay) forwards;
}

@keyframes podium-coin-flight {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.55) rotate(0deg); }
  12% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(80deg); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--coin-dx)), calc(-50% + var(--coin-dy))) scale(0.28) rotate(620deg); }
}

.live-cash-award {
  margin-left: auto;
  color: #ffe66a;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: 10px;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .podium-overlay { padding: 10px; }
  .podium-dialog { max-height: calc(100vh - 20px); padding: 16px 12px; }
  .podium-stage { min-height: 265px; gap: 4px; padding: 0; }
  .podium-player { min-height: 108px; }
  .podium-player .live-avatar { width: 46px; height: 46px; }
  .podium-empty-player { min-height: 108px; }
  .podium-place-3 .podium-step { height: 75px; }
  .podium-place-2 .podium-step { height: 103px; }
  .podium-place-1 .podium-step { height: 137px; }
  .podium-cash-reward { gap: 10px 16px; padding: 10px; }
  .podium-reward-amount { font-size: 13px; }
}

.live-roster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
  gap: 8px;
}

.live-roster-player,
.live-leaderboard li {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(151, 232, 177, 0.15);
  border-radius: 11px;
  background: rgba(5, 17, 12, 0.48);
  color: #f3fff6;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 14px;
}

.live-roster-player > span:nth-child(2),
.live-leader-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-player-identity {
  display: grid;
  gap: 2px;
}

.live-player-identity strong,
.live-player-identity small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-player-identity strong {
  color: #f3fff6;
  font-size: 13px;
}

.live-player-identity small {
  color: #a9cdb5;
  font-size: 10px;
}

.live-roster-player b {
  margin-left: auto;
  color: #ffe66a;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: 12px;
}

.live-roster-player.is-you,
.live-leaderboard li.is-you {
  border-color: rgba(98, 236, 197, 0.52);
  background: rgba(39, 171, 125, 0.22);
}

.live-avatar {
  display: inline-block;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: var(--ball-color, #19ed2b);
  background: radial-gradient(circle at 35% 28%, #fff 0 4%, var(--ball-color, #19ed2b) 23%, color-mix(in srgb, var(--ball-color, #19ed2b) 65%, #00170a) 100%);
  box-shadow: 0 0 10px rgba(100, 255, 148, 0.2);
}

.live-avatar-image {
  background: rgba(0, 28, 15, 0.9);
}

.live-roster .live-avatar:not(.live-avatar-image),
.live-leaderboard .live-avatar:not(.live-avatar-image) {
  background: var(--ball-color, #19ed2b);
  box-shadow: none;
}

.avatar-choice .live-avatar:not(.live-avatar-image) {
  background: var(--ball-color, #19ed2b);
  box-shadow: none;
}

.game-ball-green { --ball-color: #19ed2b; }
.game-ball-blue { --ball-color: #28a8ff; }
.game-ball-red { --ball-color: #ff4b55; }
.game-ball-yellow { --ball-color: #ffe44d; }
.game-ball-purple { --ball-color: #be70ff; }
.game-ball-orange { --ball-color: #ff9b36; }
.game-ball-spherical { --ball-color: #16f18c; }

.live-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.live-empty-state,
.live-muted-note {
  margin: 0;
  color: #b8d9c4;
  font-size: 13px;
  line-height: 1.5;
}

.live-host-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 18px;
}

.live-host-actions > p,
.live-status-message {
  min-height: 19px;
  margin: 0;
  color: #a8f4c2;
  font-size: 13px;
}

.live-host-actions .primary-action {
  min-height: 48px;
  padding: 0 20px;
}

.live-question-card {
  padding-top: clamp(24px, 5vw, 44px);
  padding-bottom: clamp(24px, 5vw, 44px);
  text-align: center;
}

.live-question-card h2 {
  max-width: 840px;
  margin: 11px auto 23px;
}

.live-answer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  max-width: 900px;
  margin: 0 auto;
}

.live-answer-option {
  display: flex;
  align-items: center;
  min-height: 76px;
  gap: 13px;
  padding: 13px 17px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  color: #081311;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(13px, 2vw, 18px);
  line-height: 1.3;
  text-align: left;
  transition: transform 140ms ease, filter 140ms ease, border-color 140ms ease;
}

button.live-answer-option {
  cursor: pointer;
}

button.live-answer-option:not(:disabled):hover {
  z-index: 1;
  transform: scale(1.025);
  filter: brightness(1.08);
}

button.live-answer-option:disabled {
  cursor: default;
}

.live-answer-option > span:first-child {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  place-items: center;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.15);
}

.answer-color-0 { background: #ff777a; }
.answer-color-1 { background: #5ec4ff; }
.answer-color-2 { background: #ffd654; }
.answer-color-3 { background: #8ce7ad; }

.live-answer-option.is-your-answer {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.22), 0 0 20px rgba(255, 255, 255, 0.18);
}

.live-answer-option.is-correct-answer {
  border-color: #7dff9a;
  box-shadow: 0 0 0 2px rgba(102, 255, 127, 0.22), 0 0 18px rgba(89, 255, 119, 0.2);
}

.live-answer-option.is-wrong-answer {
  border-color: #ff7380;
  box-shadow: 0 0 0 2px rgba(255, 77, 101, 0.24), 0 0 18px rgba(255, 77, 101, 0.22);
}

.study-question-card .study-feedback {
  min-height: 1.5em;
}

.study-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.study-mode-mark {
  font-size: 25px;
}

.live-answer-option.is-other-answer {
  filter: saturate(0.55) brightness(0.72);
}

.live-question-card > .live-status-message {
  margin-top: 17px;
}

.live-leaderboard {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.live-leaderboard li {
  min-height: 53px;
  font-size: 15px;
}

.live-leaderboard li.is-leader {
  border-color: rgba(255, 225, 94, 0.45);
  background: rgba(113, 82, 8, 0.2);
}

.live-leaderboard li strong {
  margin-left: auto;
  color: #ffe66a;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: 14px;
}

.live-rank {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.11);
  color: #dff8e6;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: 12px;
}

.live-back-button {
  display: flex;
  width: fit-content;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  margin: 20px auto 0;
  padding: 0 18px;
  text-decoration: none;
}

.live-entry-form {
  display: grid;
  width: min(100%, 460px);
  gap: 10px;
  margin: 23px auto 0;
  text-align: left;
}

.live-entry-form label {
  color: #e0f5e6;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: 12px;
}

.live-entry-form input {
  width: 100%;
  min-height: 57px;
  padding: 11px 15px;
  border: 1px solid rgba(146, 242, 179, 0.48);
  border-radius: 11px;
  outline: none;
  background: rgba(0, 0, 0, 0.38);
  color: white;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: 19px;
  text-align: center;
}

.live-entry-form input:focus {
  border-color: #69edd0;
  box-shadow: 0 0 0 3px rgba(82, 240, 201, 0.18);
}

#game-code-input {
  font-size: 30px;
  letter-spacing: 0.17em;
}

.live-entry-form .primary-action {
  min-height: 53px;
  margin-top: 3px;
}

.live-form-error {
  min-height: 16px;
  margin: 0;
  color: #ffbdbd;
  font-size: 13px;
}

.live-text-button {
  border: 0;
  background: transparent;
  color: #aef5ce;
  font: 700 12px "Trebuchet MS", Arial, sans-serif;
  text-align: center;
  text-decoration: underline;
  cursor: pointer;
}

.inline-game-code {
  padding: 3px 8px;
  border-radius: 6px;
  background: #73e6ca;
  color: #062319;
  letter-spacing: 0.08em;
}

.avatar-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 9px;
  margin-top: 13px;
}

.avatar-choice {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 58px;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid rgba(152, 232, 177, 0.22);
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.24);
  color: #eaffef;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.avatar-choice:hover {
  transform: translateY(-2px);
  border-color: rgba(111, 255, 195, 0.62);
}

.avatar-choice.is-selected {
  border-color: #63efc6;
  background: rgba(26, 160, 115, 0.32);
  box-shadow: 0 0 0 2px rgba(91, 239, 190, 0.13);
}

.avatar-choice:disabled {
  transform: none;
  cursor: default;
}

.avatar-choice > span:last-child {
  display: grid;
  min-width: 0;
  gap: 3px;
  overflow-wrap: anywhere;
}

.avatar-choice small {
  color: #9bc9ab;
}

.live-muted-note + .avatar-choice-grid {
  margin-top: 13px;
}

.live-status-message:empty {
  display: none;
}

.live-content-enter {
  animation: live-view-enter 360ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.auth-fields-enter {
  animation: live-view-enter 300ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.app-shell:not([hidden]) .main-panel {
  animation: live-view-enter 430ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.game-mode-panel {
  animation: live-view-enter 430ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.audio-music-toggle {
  position: fixed;
  z-index: 900;
  right: 16px;
  bottom: 15px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(126, 247, 195, 0.5);
  border-radius: 999px;
  background: rgba(1, 26, 16, 0.92);
  box-shadow: 0 5px 22px rgba(0, 0, 0, 0.3);
  color: #c8ffe1;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 0.04em;
  cursor: pointer;
  animation: live-view-enter 260ms ease-out both;
}

.audio-music-toggle[aria-pressed="true"] {
  background: linear-gradient(100deg, #66d8f5, #62edc1);
  color: #03231a;
}

@keyframes live-view-enter {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  :root {
    --sidebar-width: 196px;
    --sidebar-collapsed-width: 68px;
  }

  .app-shell {
    column-gap: 16px;
    padding-right: 16px;
  }

  .navigation {
    padding-left: 16px;
  }

  .navigation-scroll {
    width: calc(100% + 18px);
    padding-right: 18px;
  }

  .nav-item {
    width: 100%;
  }

  .nav-item.is-active {
    width: calc(100% + 18px);
    margin-right: -18px;
  }

  .nav-label {
    font-size: 17px;
  }

  .nav-item.is-active .nav-label {
    font-size: 21px;
  }

  .nav-item img {
    width: 34px;
    height: 34px;
  }

  .nav-item.is-active img {
    width: 48px;
    height: 48px;
  }

  .main-panel {
    height: calc(100vh - 32px);
    margin: 16px 0;
  }

  .page-space {
    padding: 18px;
  }

  .creator-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .editor-card {
    padding: 16px;
  }
}

@media (max-width: 520px) {
  .spherical-collection-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .spherical-packcash-balance {
    align-self: flex-end;
    margin-top: -4px;
  }

  .app-shell {
    --current-sidebar-width: var(--sidebar-collapsed-width);
    column-gap: 12px;
    padding-right: 12px;
  }

  .app-shell.menu-expanded {
    --current-sidebar-width: var(--sidebar-collapsed-width);
  }

  .sidebar {
    min-height: 100vh;
    width: var(--sidebar-collapsed-width);
  }

  .menu-expanded .sidebar {
    width: 192px;
  }

  .main-panel {
    height: calc(100vh - 24px);
    margin: 12px 0;
    border-radius: 10px;
  }

  .page-space {
    padding: 12px;
  }

  .page-heading {
    width: 86%;
    min-height: 36px;
    margin-top: 8px;
  }

  .menu-collapsed .navigation {
    margin-top: 62px;
  }

  .menu-collapsed .navigation-scroll {
    gap: 8px;
    max-height: calc(100vh - 80px);
    max-height: max(70px, calc(100dvh - 80px));
  }

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

  .pack-card {
    width: min(100%, 270px);
  }

  .quiz-options {
    grid-template-columns: 1fr;
  }

  .creator-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .cover-upload-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-password-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .game-mode-shell {
    gap: 10px;
    padding: 12px;
  }

  .game-mode-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .mode-topbar-links {
    width: 100%;
    justify-content: space-between;
  }

  .game-mode-panel {
    min-height: calc(100vh - 105px);
  }

  .game-mode-content {
    padding: 14px;
  }

  .mode-pack-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .mode-pack-cover {
    width: 100%;
    height: 140px;
    flex-basis: auto;
  }

  .mode-placeholder {
    align-items: flex-start;
    flex-direction: column;
  }

  .coming-soon-pill {
    margin-left: 0;
  }

  .mode-topbar-account {
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .crate-opening-overlay {
    padding: 12px;
  }

  .crate-opening-dialog {
    max-height: calc(100vh - 24px);
    padding: 19px 16px 20px;
  }

  .crate-opening-stage {
    height: 165px;
  }

  .crate-opening-image {
    height: 150px;
  }

  .crate-opening-reward {
    gap: 11px;
    padding: 10px;
  }

  .crate-opening-reward > img {
    width: 90px;
    height: 90px;
    flex-basis: 90px;
  }

  .sale-confirm-overlay {
    padding: 12px;
  }

  .sale-confirm-dialog {
    padding: 18px;
  }

  .sale-confirm-actions {
    gap: 7px;
  }

  .sale-confirm-actions button {
    flex: 1 1 0;
    padding: 0 7px;
    font-size: 9px;
  }

  .auth-card {
    padding: 24px 20px 20px;
  }
}

@media (max-width: 760px) {
  .classic-mode-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .classic-host-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .classic-mode-message {
    grid-column: 1 / -1;
    margin-top: -5px;
  }

  .live-section-heading,
  .live-game-status {
    flex-wrap: wrap;
  }
}

@media (max-width: 520px) {
  .live-game-body .game-mode-topbar {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }

  .live-game-body .game-brand,
  .live-game-body .game-brand img {
    width: 150px;
    min-width: 150px;
    height: 38px;
  }

  .live-game-body .game-account-link {
    max-width: 175px;
    min-height: 35px;
    padding: 0 8px;
    font-size: 10px;
  }

  .live-game-content {
    padding: 12px;
  }

  .live-hero,
  .live-section,
  .live-question-card {
    margin-bottom: 12px;
    padding: 17px 14px;
  }

  .live-game-status {
    justify-content: space-between;
    gap: 5px 10px;
    font-size: 9px;
  }

  .live-answer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .live-answer-option {
    min-height: 60px;
    padding: 10px;
  }

  .live-host-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .live-host-actions .primary-action {
    width: 100%;
  }

  .live-game-code {
    padding: 7px 12px;
    font-size: 39px;
  }

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

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

.public-pack-toggle {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 20px;
  padding: 13px;
  border: 1px solid rgba(133, 244, 188, 0.28);
  border-radius: 12px;
  background: rgba(20, 77, 51, 0.43);
  cursor: pointer;
}

.public-pack-toggle input {
  position: absolute;
  top: 13px;
  left: 13px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.public-pack-check {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  place-items: center;
  border: 2px solid rgba(187, 241, 203, 0.65);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.2);
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.public-pack-check::after {
  width: 10px;
  height: 6px;
  border-bottom: 2px solid #002c1a;
  border-left: 2px solid #002c1a;
  content: "";
  opacity: 0;
  transform: rotate(-45deg) translateY(-1px);
}

.public-pack-toggle input:checked + .public-pack-check {
  border-color: #56f2c1;
  background: linear-gradient(120deg, #70caff, #55ffc2);
  transform: scale(1.04);
}

.public-pack-toggle input:checked + .public-pack-check::after {
  opacity: 1;
}

.public-pack-toggle input:focus-visible + .public-pack-check {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.public-pack-copy,
.preference-toggle > span:first-child {
  display: grid;
  gap: 4px;
}

.public-pack-copy strong,
.preference-toggle strong {
  color: #f3fff6;
  font-size: 13px;
}

.public-pack-copy small,
.preference-toggle small {
  color: #bad9c6;
  font-size: 11px;
  line-height: 1.4;
}

.discover-page {
  width: min(100%, 1060px);
  margin: 0 auto;
  color: #effff4;
}

.discover-intro {
  margin: 0 0 16px;
}

.discover-intro h2,
.account-preferences-card h2 {
  margin: 4px 0 6px;
  color: #fff;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(20px, 2.4vw, 27px);
}

.discover-intro p {
  margin: 0;
  color: #c4e6d0;
  font-size: 13px;
}

.discover-search-form {
  display: flex;
  gap: 10px;
  margin: 18px 0 12px;
}

.discover-search-form input {
  min-width: 0;
  min-height: 42px;
  flex: 1;
  padding: 0 14px;
  border: 1px solid rgba(139, 239, 190, 0.45);
  border-radius: 11px;
  outline: none;
  background: rgba(0, 25, 14, 0.72);
  color: #fff;
  font-size: 14px;
}

.discover-search-form input:focus {
  border-color: #62edc2;
  box-shadow: 0 0 0 3px rgba(98, 237, 194, 0.14);
}

.discover-status {
  min-height: 18px;
  margin: 0 0 12px;
  color: #b9dcc7;
  font-size: 12px;
}

.discover-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  align-items: stretch;
  gap: 16px;
}

.discover-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(117, 240, 171, 0.4);
  border-radius: 15px;
  background: linear-gradient(150deg, rgba(0, 103, 44, 0.82), rgba(0, 47, 31, 0.92));
  box-shadow: 0 10px 26px rgba(0, 22, 10, 0.23);
}

.discover-card-cover {
  display: grid;
  aspect-ratio: 16 / 9;
  place-items: center;
  overflow: hidden;
  background: rgba(0, 20, 10, 0.55);
}

.discover-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.discover-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 13px 14px 8px;
}

.discover-card-content h3 {
  overflow: hidden;
  margin: 0;
  color: #fff;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discover-byline {
  margin: 4px 0 10px;
  color: #8cf3be;
  font-size: 11px;
  font-weight: 700;
}

.discover-description {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 12px;
  color: #d4e9db;
  font-size: 12px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.discover-question-count {
  margin-top: auto;
  color: #a9ccb7;
  font-size: 10px;
}

.discover-play-button {
  min-height: 38px;
  margin: 0;
}

.discover-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 13px 13px;
}

.discover-view-button {
  min-height: 38px;
  padding: 0 8px;
  font-size: 10px;
}

.discover-pack-detail {
  width: min(100%, 980px);
  margin: 0 auto;
}

.discover-pack-hero {
  display: grid;
  grid-template-columns: minmax(180px, 34%) minmax(0, 1fr);
  gap: 22px;
  margin: 18px 0 22px;
  padding: 18px;
  border: 1px solid rgba(117, 240, 171, 0.4);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(0, 91, 43, 0.82), rgba(0, 40, 28, 0.92));
}

.discover-pack-hero > img {
  width: 100%;
  max-height: 250px;
  aspect-ratio: 16 / 10;
  border-radius: 11px;
  object-fit: cover;
}

.discover-pack-hero h2 {
  margin: 7px 0;
  color: #fff;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(22px, 4vw, 34px);
}

.discover-pack-hero p {
  margin: 7px 0;
  color: #d4e9db;
  line-height: 1.5;
}

.discover-detail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0;
}

.discover-detail-heading h3 {
  margin: 0;
  color: #effff4;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
}

.discover-question-list {
  display: grid;
  gap: 11px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.discover-question-list > li {
  padding: 15px 17px;
  border: 1px solid rgba(117, 240, 171, 0.28);
  border-radius: 12px;
  background: rgba(0, 33, 21, 0.72);
  color: #eaffef;
}

.discover-question-list h4 {
  margin: 0 0 10px;
  font-size: 15px;
}

.discover-question-list ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 6px 18px;
  margin: 0;
  padding-left: 20px;
  color: #b9dcc7;
  font-size: 13px;
}

.account-preferences-card {
  grid-column: 1 / -1;
  padding: 20px;
}

.account-preferences-card h2 {
  margin-bottom: 12px;
  font-size: 20px;
}

.preference-toggle {
  position: relative;
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 0;
  border-top: 1px solid rgba(162, 226, 183, 0.14);
  cursor: pointer;
}

.preference-toggle input {
  position: absolute;
  top: 50%;
  right: 0;
  width: 48px;
  height: 28px;
  margin: 0;
  opacity: 0;
  transform: translateY(-50%);
  cursor: pointer;
}

.preference-switch {
  position: relative;
  width: 48px;
  height: 27px;
  flex: 0 0 48px;
  border: 1px solid rgba(174, 212, 188, 0.48);
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.35);
  transition: background 150ms ease, border-color 150ms ease;
}

.preference-switch::before {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #c7d9cd;
  content: "";
  transition: transform 150ms ease, background 150ms ease;
}

.preference-toggle input:checked + .preference-switch {
  border-color: rgba(104, 255, 194, 0.85);
  background: linear-gradient(100deg, #38baf2, #45edaa);
}

.preference-toggle input:checked + .preference-switch::before {
  background: #fff;
  transform: translateX(21px);
}

.preference-toggle input:focus-visible + .preference-switch {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.preference-status {
  min-height: 16px;
  margin: 8px 0 0;
  color: #8ff2b9;
  font-size: 11px;
}

.propack-no-animations *,
.propack-no-animations *::before,
.propack-no-animations *::after {
  scroll-behavior: auto !important;
  transition-duration: 0.01ms !important;
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
}

@media (max-width: 600px) {
  .discover-search-form {
    align-items: stretch;
  }

  .discover-search-form .primary-action {
    min-width: 76px;
    padding: 0 10px;
  }

  .account-preferences-card {
    grid-column: auto;
  }
}

.game-modes-body.smash-fullscreen-mode {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  background: #03150d;
}

.smash-fullscreen-mode .game-mode-shell {
  position: fixed;
  inset: 0;
  display: block;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  margin: 0;
  padding: 0;
}

.smash-fullscreen-mode .game-mode-topbar,
.smash-fullscreen-mode .game-mode-panel > .page-heading {
  display: none;
}

.smash-fullscreen-mode .game-mode-panel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 0;
}

.smash-fullscreen-mode .game-mode-content {
  position: relative;
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  padding: 0;
}

.smash-fullscreen-ui {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 0;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 8px;
  padding: 10px 14px;
}

.smash-fullscreen-ui .smash-live-heading {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto auto auto auto;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.smash-fullscreen-ui .smash-live-heading h2 {
  margin: 1px 0 2px;
  font-size: clamp(16px, 2.3vw, 22px);
}

.smash-fullscreen-ui .smash-live-heading p {
  font-size: 10px;
}

.smash-fullscreen-ui .smash-live-score {
  min-width: 62px;
}

.smash-fullscreen-ui .smash-live-score strong {
  font-size: 19px;
}

.smash-question-launch {
  min-height: 39px;
  padding: 0 14px;
  border: 1px solid rgba(129, 255, 196, 0.78);
  border-radius: 11px;
  background: linear-gradient(110deg, #71d4ff, #52f7bd);
  color: #032216;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(65, 255, 177, 0.22);
}

.smash-fullscreen-toggle,
.smash-player-time {
  display: inline-flex;
  min-height: 39px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid rgba(129, 255, 196, 0.42);
  border-radius: 11px;
  background: rgba(1, 30, 18, 0.8);
  color: #e9fff1;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: 9px;
  font-weight: 900;
  white-space: nowrap;
}

.smash-fullscreen-toggle {
  cursor: pointer;
}

.smash-fullscreen-toggle:hover,
.smash-fullscreen-toggle:focus-visible {
  border-color: #73ffd0;
  box-shadow: 0 0 14px rgba(84, 255, 190, 0.24);
}

.smash-player-time b,
.smash-time-remaining b {
  color: #ffe66a;
  font-size: 15px;
}

.smash-fullscreen-ui .smash-energy-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
  padding: 8px 12px;
}

.smash-fullscreen-ui .smash-energy-label {
  min-width: 100px;
  margin: 0;
  gap: 12px;
}

.smash-energy-label b {
  color: #ffe66a;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: 20px;
  line-height: 1;
}

.smash-fullscreen-ui .smash-energy-notice {
  flex: 1;
  margin: 0;
  text-align: right;
}

.smash-energy-notice {
  margin: 6px 0 0;
  color: #ffe66a;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 0.035em;
  text-align: center;
  text-shadow: 0 0 12px rgba(255, 168, 47, 0.52);
}

.smash-energy-notice[hidden] {
  display: none !important;
}

.smash-fullscreen-ui .smash-arena-frame {
  min-height: 0;
  height: 100%;
  margin: 0;
}

.smash-fullscreen-ui .smash-canvas,
.smash-host-fullscreen .smash-canvas {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}

.smash-fullscreen-ui .smash-controls-hint {
  margin: 0;
  font-size: 10px;
}

.smash-question-overlay {
  position: absolute;
  z-index: 5;
  inset: 0;
  display: grid;
  overflow-y: auto;
  place-items: center;
  padding: 20px;
  background: rgba(0, 11, 6, 0.78);
  backdrop-filter: blur(7px);
}

.smash-question-overlay[hidden] {
  display: none !important;
}

.smash-question-dialog {
  width: min(100%, 600px);
  max-height: 100%;
  overflow-y: auto;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(100, 248, 189, 0.58);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(4, 55, 34, 0.98), rgba(2, 24, 18, 0.99));
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.52), 0 0 34px rgba(44, 255, 146, 0.13);
}

.smash-question-dialog > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.smash-question-dialog > header h2 {
  margin: 4px 0 0;
  color: #f4fff7;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(20px, 4vw, 28px);
}

.smash-question-close {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border: 1px solid rgba(180, 231, 199, 0.32);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.22);
  color: #f3fff6;
  font-size: 25px;
  cursor: pointer;
}

.smash-question-prompt {
  margin: 0 0 14px;
  color: #f1fff5;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(16px, 3vw, 22px);
  line-height: 1.35;
}

.smash-question-body > p:not(.smash-question-prompt) {
  color: #bfe4cc;
  font-size: 12px;
  line-height: 1.5;
}

.smash-question-body .smash-answer-status {
  min-height: 20px;
  margin-top: 12px;
}

.smash-next-question {
  min-height: 42px;
  margin-top: 6px;
  padding: 0 18px;
}

.smash-host-fullscreen {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 8px;
  padding: 10px 14px;
}

.smash-host-topline {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto auto;
  align-items: center;
  gap: 10px 18px;
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid rgba(113, 246, 173, 0.36);
  border-radius: 14px;
  background: linear-gradient(105deg, rgba(2, 64, 34, 0.96), rgba(0, 37, 27, 0.96));
  box-shadow: 0 10px 24px rgba(0, 19, 9, 0.22);
  color: #effff4;
}

.smash-host-brand {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.smash-host-brand > strong {
  overflow: hidden;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(14px, 1.6vw, 20px);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.smash-host-live-stats {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.smash-host-stat {
  display: grid;
  min-width: 70px;
  align-content: center;
  gap: 3px;
  padding: 7px 10px;
  border: 1px solid rgba(151, 248, 190, 0.24);
  border-radius: 10px;
  background: rgba(0, 17, 10, 0.42);
}

.smash-host-stat small {
  color: #a7d9b6;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.smash-host-stat b {
  color: #ffe66a;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.1;
}

.smash-host-topline small {
  color: #a9d4b7;
  font-size: 10px;
}

.smash-host-topline p {
  grid-column: 1 / -1;
  min-height: 14px;
  margin: 0;
  color: #ffc0b7;
  font-size: 10px;
}

.smash-host-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.smash-host-mode-tag {
  padding: 7px 9px;
  border: 1px solid rgba(112, 248, 187, 0.38);
  border-radius: 999px;
  background: rgba(71, 233, 158, 0.11);
  color: #bdf9d0;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.smash-host-actions .logout-action {
  min-height: 38px;
  padding: 0 13px;
  font-size: 9px;
}

.smash-host-play-button {
  min-height: 48px;
  padding: 0 20px;
}

.smash-host-play-button:disabled {
  opacity: 0.72;
  cursor: default;
}

.smash-host-footer > .section-kicker {
  min-width: 150px;
}

.smash-host-footer > .section-kicker small {
  display: block;
  margin-top: 4px;
  color: #a9d4b7;
  font-size: 8px;
  letter-spacing: 0.02em;
}

.smash-host-fullscreen > .smash-arena-frame {
  min-height: 0;
  height: 100%;
  margin: 0;
}

.smash-host-footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 38px;
}

.smash-host-scores {
  display: flex;
  min-width: 0;
  gap: 7px;
  overflow-x: auto;
  padding: 3px 0;
}

.smash-host-score-pill {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid rgba(135, 240, 176, 0.25);
  border-radius: 10px;
  background: rgba(0, 31, 18, 0.85);
  color: #f2fff5;
  font-size: 10px;
}

.smash-host-score-pill small {
  color: #8debb2;
}

.smash-host-score-pill strong {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.smash-host-score-pill b {
  color: #ffe66a;
}

@media (max-width: 600px) {
  .smash-fullscreen-ui {
    gap: 6px;
    padding: 7px;
  }

  .smash-fullscreen-ui .smash-live-heading {
    gap: 6px;
  }

  .smash-fullscreen-ui .smash-live-heading p {
    display: none;
  }

  .smash-question-launch {
    min-height: 34px;
    padding: 0 9px;
    font-size: 9px;
  }

  .smash-fullscreen-ui .smash-live-heading {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-rows: auto auto;
  }

  .smash-fullscreen-ui .smash-live-heading > div:first-child {
    grid-column: 1;
    grid-row: 1;
  }

  .smash-fullscreen-ui .smash-live-score {
    grid-column: 2;
    grid-row: 1;
  }

  .smash-player-time {
    grid-column: 3;
    grid-row: 1;
  }

  .smash-fullscreen-toggle {
    grid-column: 2;
    grid-row: 2;
  }

  .smash-question-launch {
    grid-column: 3;
    grid-row: 2;
  }

  .smash-fullscreen-toggle,
  .smash-player-time {
    min-height: 34px;
    padding: 0 7px;
    font-size: 8px;
  }

  .smash-player-time b {
    font-size: 12px;
  }

  .smash-fullscreen-ui .smash-controls-hint {
    font-size: 8px;
  }

  .smash-host-fullscreen {
    gap: 6px;
    padding: 7px;
  }

  .smash-host-topline small {
    display: none;
  }

  .smash-host-topline {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
    padding: 8px;
  }

  .smash-host-brand small,
  .smash-host-mode-tag {
    display: none;
  }

  .smash-host-live-stats {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(62px, 1fr));
    gap: 5px;
  }

  .smash-host-stat {
    min-width: 0;
    padding: 5px 7px;
  }

  .smash-host-stat small {
    display: block;
    font-size: 7px;
  }

  .smash-host-stat b {
    font-size: 14px;
  }

  .smash-host-actions {
    grid-column: 2;
    grid-row: 1;
    gap: 5px;
  }

  .smash-host-actions .smash-question-launch,
  .smash-host-actions .logout-action {
    min-height: 32px;
    padding: 0 8px;
    font-size: 8px;
  }

  .smash-host-topline > p {
    grid-row: 3;
  }

  .smash-host-footer {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .smash-host-footer > .section-kicker {
    min-width: 0;
  }

  .smash-host-footer > .section-kicker small {
    display: none;
  }

  .smash-host-lobby-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .smash-host-lobby-actions .smash-host-play-button {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .discover-pack-hero {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 13px;
  }

  .discover-pack-hero > img {
    max-height: 200px;
  }

  .discover-detail-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .discover-detail-heading .pack-play-button {
    min-height: 42px;
  }
}

.smash-mode-card {
  margin-top: 16px;
}

.smash-mode-under-development {
  border-color: rgba(170, 182, 174, 0.38);
  background: rgba(16, 27, 20, 0.82);
}

.smash-mode-under-development .smash-mode-mark {
  filter: grayscale(1);
  border-color: rgba(185, 194, 188, 0.4);
  background: linear-gradient(145deg, #89938c, #59635d);
  color: #17201a;
}

.smash-mode-under-development .classic-host-button:disabled {
  border-color: #77817a;
  background: linear-gradient(145deg, #6e7871, #4e5852);
  color: #d4dad6;
  opacity: 1;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.smash-mode-mark {
  background: linear-gradient(145deg, #87ff75, #29cf83);
  color: #06371c;
  font-size: 24px;
  text-shadow: 2px 2px rgba(0, 39, 18, 0.22);
}

.smash-mode-copy p {
  max-width: 570px;
}

.smash-host-settings > p {
  margin: 0 0 15px;
  color: #c6e9d1;
  font-size: 13px;
  line-height: 1.45;
}

#smash-settings-form > label {
  display: block;
  margin-bottom: 7px;
  color: #eaffef;
  font-size: 12px;
  font-weight: 700;
}

.smash-settings-row {
  display: flex;
  max-width: 390px;
  gap: 10px;
}

.smash-settings-row input {
  width: 120px;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid rgba(131, 242, 183, 0.45);
  border-radius: 10px;
  background: rgba(0, 12, 7, 0.55);
  color: #fff;
  font-size: 15px;
}

.smash-settings-row .secondary-action {
  min-height: 40px;
  padding: 0 17px;
}

.smash-host-message {
  min-height: 18px;
  margin: 8px 0 0;
  color: #a6f6c5;
  font-size: 12px;
}

.smash-live-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto 14px;
  color: #f1fff5;
}

.smash-live-heading h2 {
  margin: 4px 0 4px;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(20px, 3vw, 28px);
}

.smash-live-heading p {
  margin: 0;
  color: #c1e6ce;
  font-size: 12px;
}

.smash-live-score {
  display: grid;
  min-width: 90px;
  justify-items: end;
  gap: 2px;
}

.smash-live-score span {
  color: #afe8c1;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.smash-live-score strong {
  color: #ffe66a;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: 24px;
}

.smash-energy-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 auto 14px;
  padding: 13px 16px;
  border: 1px solid rgba(105, 247, 177, 0.35);
  border-radius: 13px;
  background: rgba(2, 28, 16, 0.83);
  color: #effff4;
}

.smash-energy-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  font-size: 11px;
}

.smash-energy-label > strong {
  color: #9cf4bd;
  letter-spacing: 0.1em;
}

.smash-energy-label b {
  color: #ffe66a;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: 20px;
  line-height: 1;
}

.smash-arena-frame {
  overflow: hidden;
  border: 2px solid rgba(95, 255, 143, 0.78);
  border-radius: 14px;
  background: #06170f;
  box-shadow: 0 0 22px rgba(20, 255, 79, 0.18), 0 14px 32px rgba(0, 0, 0, 0.25);
}

.smash-canvas {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.smash-controls-hint {
  margin: 10px 2px 16px;
  color: #c8e8d3;
  font-size: 11px;
  line-height: 1.55;
  text-align: center;
}

.smash-controls-hint strong {
  color: #7ef2b4;
  font-size: 10px;
  letter-spacing: 0.06em;
}

.smash-controls-hint span {
  padding: 0 5px;
  color: #73ab87;
}

.smash-question-panel {
  margin: 0 auto 16px;
  padding: clamp(15px, 2.5vw, 22px);
  border: 1px solid rgba(117, 221, 255, 0.45);
  border-radius: 15px;
  background: linear-gradient(140deg, rgba(3, 47, 43, 0.9), rgba(3, 29, 29, 0.92));
  color: #f3fff7;
}

.smash-question-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.smash-question-topline > strong {
  color: #ffe66a;
  font-size: 12px;
}

#smash-question-content h2 {
  margin: 10px 0 12px;
  color: #fff;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(16px, 2.3vw, 22px);
}

.smash-answer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.smash-answer-grid .live-answer-option {
  min-height: 48px;
  text-align: left;
}

.smash-answer-grid .live-answer-option:disabled {
  opacity: 0.7;
  cursor: default;
}

.smash-answer-status {
  min-height: 18px;
  margin: 10px 0 0;
  color: #b8edca;
  font-size: 11px;
}

.smash-score-section {
  margin-top: 15px;
}

.smash-host-arena-section .live-section-heading {
  align-items: center;
}

.smash-host-code {
  margin-bottom: 14px;
}

.smash-host-arena-section .smash-controls-hint {
  margin-bottom: 0;
}

.smash-host-roster {
  margin-top: 14px;
}

@media (max-width: 600px) {
  .smash-live-heading {
    align-items: flex-start;
  }

  .smash-live-score strong {
    font-size: 20px;
  }

  .smash-answer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .smash-controls-hint {
    font-size: 9px;
  }
}
.propack-loading-overlay[hidden] {
  display: none !important;
}

.propack-loading-overlay {
  position: fixed;
  z-index: 12000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 12, 6, 0.76);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 180ms ease;
}

.propack-loading-overlay.is-visible {
  opacity: 1;
}

.propack-loading-card {
  width: min(420px, 90vw);
  padding: 18px 22px 16px;
  border: 1px solid rgba(116, 255, 181, 0.34);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(1, 74, 38, 0.96), rgba(1, 34, 23, 0.98));
  box-shadow: 0 20px 70px rgba(0, 255, 73, 0.17), inset 0 0 24px rgba(0, 255, 99, 0.06);
  text-align: center;
}

.propack-loading-logo {
  display: block;
  width: min(350px, 78vw);
  height: 82px;
  margin: 0 auto 10px;
  object-fit: cover;
  object-position: center 50%;
  filter: drop-shadow(0 0 15px rgba(0, 255, 51, 0.25));
  animation: propack-logo-pulse 1.6s ease-in-out infinite alternate;
}

.propack-loading-track {
  position: relative;
  height: 48px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;
  background: linear-gradient(180deg, #606060, #484848);
  box-shadow: inset 0 3px 9px rgba(0, 0, 0, 0.35);
}

.propack-loading-pack {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #d2d2d2;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: 20px;
  letter-spacing: 0.13em;
}

.propack-loading-pro {
  --pro-width: 88px;
  position: absolute;
  top: 4px;
  left: 6px;
  display: grid;
  width: var(--pro-width);
  height: 38px;
  place-items: center;
  border-radius: 7px;
  background: linear-gradient(135deg, #15ef22, #00bd52);
  box-shadow: 0 0 16px rgba(14, 255, 45, 0.52);
  color: #07301a;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: 18px;
  letter-spacing: 0.04em;
  animation: propack-loader-slide 1.35s ease-in-out infinite alternate;
}

.propack-loading-caption {
  display: block;
  margin-top: 11px;
  color: #a9f8ca;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 0.22em;
}

@keyframes propack-loader-slide {
  from { left: 6px; }
  to { left: calc(100% - var(--pro-width) - 6px); }
}

@keyframes propack-logo-pulse {
  from { transform: scale(0.985); }
  to { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .propack-loading-overlay,
  .propack-loading-logo,
  .propack-loading-pro {
    animation: none;
    transition: none;
  }
}

.clash-mode-mark {
  color: #071e10;
  background: linear-gradient(145deg, #baff54, #4cf6a7 55%, #48d8ff);
  text-shadow: 0 1px 0 rgba(255,255,255,.45);
}

.game-modes-body.clash-fullscreen-mode {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  background: #03150d;
}

.clash-fullscreen-mode .game-mode-shell {
  position: fixed;
  inset: 0;
  display: block;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  margin: 0;
  padding: 0;
}

.clash-fullscreen-mode .game-mode-topbar,
.clash-fullscreen-mode .game-mode-panel > .page-heading { display: none; }

.clash-fullscreen-mode .game-mode-panel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 0;
}

.clash-fullscreen-mode .game-mode-content {
  position: relative;
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  padding: 0;
}

.clash-player-shell {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 8px;
  padding: clamp(8px, 1.3vw, 16px);
  color: #effff4;
}

.clash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.clash-title h1 { margin: 3px 0; color: white; font: 900 clamp(18px, 2.4vw, 26px)/1.1 "Arial Black", Arial, sans-serif; }
.clash-title p { margin: 0; color: #bce8c9; font-size: 11px; }
.clash-player-stats { display: flex; align-items: center; justify-content: flex-end; gap: clamp(6px, 1vw, 13px); }
.clash-stat { display: grid; min-width: 62px; gap: 2px; padding: 8px 10px; border: 1px solid rgba(128,255,175,.25); border-radius: 10px; background: rgba(2,27,16,.8); text-align: center; }
.clash-stat small { color: #a3e2b8; font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.clash-stat strong { color: #fff; font-size: 17px; }
.clash-stat-energy strong { color: #bafc64; }
.clash-fullscreen-button { min-height: 38px; padding: 0 12px; border: 1px solid rgba(121,255,177,.54); border-radius: 9px; background: rgba(1,30,18,.86); color: #dcffea; font-size: 9px; font-weight: 900; cursor: pointer; }
.clash-arena-frame { min-width: 0; min-height: 0; overflow: hidden; border: 2px solid rgba(91,255,130,.8); border-radius: 14px; background: #053a27; box-shadow: 0 0 22px rgba(20,255,79,.17); }
.clash-canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.clash-controls { margin: 0; color: #bde8ca; font-size: 10px; text-align: center; }
.clash-controls strong { color: #77f4ad; }
.clash-modal-layer { position: absolute; z-index: 5; inset: 0; display: grid; place-items: center; overflow-y: auto; padding: 20px; background: rgba(0,12,7,.76); backdrop-filter: blur(8px); }
.clash-modal-layer[hidden] { display: none !important; }
.clash-choice-dialog { width: min(720px, 100%); padding: clamp(20px, 4vw, 32px); border: 1px solid rgba(113,255,170,.58); border-radius: 20px; background: linear-gradient(140deg, rgba(4,119,44,.96), rgba(0,70,63,.97)); box-shadow: 0 22px 70px rgba(0,0,0,.48), 0 0 30px rgba(27,255,95,.15); }
.clash-choice-dialog h2 { margin: 7px 0 8px; color: white; font: 900 clamp(23px, 4vw, 34px)/1.08 "Arial Black", Arial, sans-serif; }
.clash-choice-dialog > p { margin: 0 0 19px; color: #d5f5df; font-size: 13px; }
.clash-power-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.clash-power-card { display: flex; min-height: 150px; flex-direction: column; align-items: flex-start; gap: 10px; padding: 15px; border: 1px solid rgba(152,255,199,.42); border-radius: 14px; background: rgba(3,34,21,.82); color: white; text-align: left; cursor: pointer; transition: transform 150ms ease, border-color 150ms ease, background 150ms ease; }
.clash-power-card:hover { transform: translateY(-3px); border-color: #75ffb2; background: rgba(4,54,30,.96); }
.clash-power-card strong { font-size: 15px; }
.clash-power-card small { color: #c3e9d0; font-size: 11px; line-height: 1.45; }
.clash-power-badge { padding: 4px 7px; border-radius: 999px; background: rgba(111,240,183,.16); color: #9bffd2; font-size: 8px; font-weight: 900; letter-spacing: .06em; }
.clash-question-answers { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
.clash-question-answers .live-answer-option { min-height: 48px; text-align: left; }
.clash-question-feedback { min-height: 20px; margin: 10px 0; color: #e2ffeb; font-size: 12px; }
.clash-game-over { text-align: center; }
.clash-game-over .primary-action { margin-top: 10px; }

.clash-host-hero { max-width: 900px; }
.clash-host-hero > p { max-width: 660px; }
.clash-host-lobby-actions { flex-wrap: wrap; }
.clash-host-active { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px 20px; }
.clash-host-active .section-kicker, .clash-host-active h2, .clash-host-active p { grid-column: 1; }
.clash-host-active .clash-host-actions { grid-column: 2; grid-row: 1 / span 3; }
.clash-host-actions { display: flex; align-items: center; gap: 12px; color: #c9f4d7; font-size: 11px; }
.clash-host-actions strong { display: block; margin-top: 4px; color: white; font-size: 23px; letter-spacing: .16em; }
.clash-host-roster { display: grid; gap: 8px; }
.clash-host-player { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 13px; border: 1px solid rgba(104,255,159,.25); border-radius: 12px; background: rgba(3,31,19,.76); }
.clash-host-player > div { display: flex; min-width: 0; align-items: center; gap: 10px; }
.clash-host-player .live-avatar { width: 40px; height: 40px; flex: 0 0 40px; }
.clash-host-player > div > span { display: grid; min-width: 0; gap: 4px; }
.clash-host-player strong { overflow: hidden; color: white; text-overflow: ellipsis; white-space: nowrap; }
.clash-host-player small, .clash-host-player b small { color: #a8dcbc; font-size: 9px; font-weight: 700; }
.clash-host-player > b { display: grid; flex: 0 0 auto; gap: 3px; color: #c5ff67; text-align: right; font-size: 12px; }
.clash-host-hint { color: #bfebcc; font-size: 11px; }

@media (max-width: 760px) {
  .clash-mode-card { grid-template-columns: auto minmax(0,1fr); }
  .clash-mode-card .classic-host-button, .clash-mode-card .classic-mode-message { grid-column: 1 / -1; width: 100%; }
  .clash-player-shell { gap: 6px; padding: 6px; }
  .clash-topbar { align-items: flex-start; flex-wrap: wrap; }
  .clash-title { flex: 1 1 100%; }
  .clash-player-stats { width: 100%; justify-content: space-between; }
  .clash-stat { min-width: 0; flex: 1 1 0; padding: 6px 5px; }
  .clash-fullscreen-button { min-height: 34px; padding: 0 8px; }
  .clash-power-grid { grid-template-columns: 1fr; }
  .clash-power-card { min-height: 82px; }
  .clash-question-answers { grid-template-columns: 1fr; }
  .clash-host-active { grid-template-columns: minmax(0,1fr); }
  .clash-host-active .clash-host-actions { grid-column: 1; grid-row: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .clash-power-card { transition: none; }
}
