:root {
  color-scheme: dark;
  --bg: #0d111a;
  --surface: #151b27;
  --surface-soft: #101622;
  --hero-bg: #101827;
  --text: #f2f5fb;
  --muted: #a9b3c7;
  --line: #2a3345;
  --primary: #5b9dff;
  --primary-dark: #3c7fe0;
  --accent: #35d09a;
  --topbar-bg: rgba(13, 17, 26, 0.9);
  --hero-blue: rgba(91, 157, 255, 0.2);
  --hero-green: rgba(53, 208, 154, 0.14);
  --panel-glass: rgba(21, 27, 39, 0.78);
  --menu-hover: #1d2b42;
  --input-focus: rgba(91, 157, 255, 0.16);
  --delete-bg: #222c3d;
  --addon-flash: rgba(83, 166, 255, 0.72);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
}

body.dark-theme {
  color-scheme: dark;
  --bg: #0d111a;
  --surface: #151b27;
  --surface-soft: #101622;
  --hero-bg: #101827;
  --text: #f2f5fb;
  --muted: #a9b3c7;
  --line: #2a3345;
  --primary: #5b9dff;
  --primary-dark: #3c7fe0;
  --accent: #35d09a;
  --topbar-bg: rgba(13, 17, 26, 0.9);
  --hero-blue: rgba(91, 157, 255, 0.2);
  --hero-green: rgba(53, 208, 154, 0.14);
  --panel-glass: rgba(21, 27, 39, 0.78);
  --menu-hover: #1d2b42;
  --input-focus: rgba(91, 157, 255, 0.16);
  --delete-bg: #222c3d;
  --addon-flash: rgba(83, 166, 255, 0.72);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

.theme-toggle,
.profile-colors-section {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

@keyframes addonFlash {
  0%,
  100% {
    opacity: 0.18;
    filter: blur(0);
  }

  45% {
    opacity: 0.95;
    filter: blur(0.5px);
  }

  58% {
    opacity: 0.3;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
}

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

button,
input {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand,
.hero-actions,
.inline-field {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

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

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
}

.menu {
  position: relative;
}

.menu-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(24, 37, 72, 0.08);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(24, 37, 72, 0.08);
}

.theme-toggle-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
}

.menu-options {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: none;
  min-width: 190px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.menu-options.is-open {
  display: grid;
}

.menu-options a {
  padding: 11px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
}

.menu-options a:hover {
  background: var(--menu-hover);
  color: var(--primary);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  min-height: 620px;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 72px);
  background:
    linear-gradient(135deg, var(--hero-blue), transparent 38%),
    linear-gradient(315deg, var(--hero-green), transparent 42%),
    var(--hero-bg);
}

.hero-content {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  max-width: 680px;
  font-size: clamp(3rem, 7vw, 6.5rem);
}

h2 {
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.hero-copy {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.03rem, 1.7vw, 1.28rem);
  line-height: 1.7;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.google-button,
.secondary-button,
.inline-field button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.google-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  background: #fff;
  color: #202124;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(32, 33, 36, 0.08);
}

.google-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: var(--primary);
  font-weight: 800;
}

.user-menu {
  position: relative;
}

.user-menu-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(74, 111, 255, 0.22);
  overflow: hidden;
}

.user-menu-button span {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  border-radius: 50%;
  background-position: center;
  background-size: cover;
}

.user-menu-button span.has-avatar {
  color: transparent;
}

.user-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  display: none;
  width: min(280px, calc(100vw - 32px));
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}

.user-menu-panel.is-open {
  display: grid;
  gap: 8px;
}

.user-menu-panel strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu-panel span {
  color: var(--muted);
  font-size: 0.9rem;
}

.user-menu-panel a {
  margin-top: 4px;
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}

.secondary-button,
.inline-field button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  background: var(--primary);
  color: #fff;
}

.secondary-button:hover,
.inline-field button:hover {
  background: var(--primary-dark);
}

.compact-link {
  min-height: 42px;
}

.login-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.status-panel {
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-glass);
  box-shadow: var(--shadow);
}

.status-panel div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.catalog-status {
  display: grid;
  gap: 12px;
}

.catalog-status p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.catalog-status strong {
  color: var(--text);
  font-size: 1.25rem;
}

.catalog-button {
  width: 100%;
  margin-top: 8px;
}

.metric {
  display: block;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 800;
}

.compact-metric {
  font-size: clamp(2rem, 4vw, 3.35rem);
}

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

.duel-status .secondary-button {
  margin-top: 6px;
}

.status-panel p {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.workspace {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding: 42px clamp(20px, 5vw, 72px) 72px;
}

.addons-section,
.portfolio-section,
.utilities-section {
  padding: 20px clamp(20px, 5vw, 72px) 72px;
}

.addons-section {
  background: var(--surface-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-heading p:not(.eyebrow) {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.addons-panel {
  max-width: 860px;
}

.addons-page {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(40px, 6vw, 76px) clamp(20px, 5vw, 72px) 80px;
}

.addons-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle, var(--addon-flash) 0 2px, transparent 3px) 12% 18% / 180px 180px,
    radial-gradient(circle, var(--addon-flash) 0 2px, transparent 3px) 84% 24% / 220px 220px,
    radial-gradient(circle, var(--addon-flash) 0 2px, transparent 3px) 58% 82% / 190px 190px;
  animation: addonFlash 2.8s ease-in-out infinite;
}

.addons-page > * {
  position: relative;
  z-index: 1;
}

.utilities-page {
  padding: clamp(40px, 6vw, 76px) clamp(20px, 5vw, 72px) 80px;
}

.utility-menu {
  margin: 0 0 24px;
}

.utility-menu summary {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-weight: 900;
  box-shadow: 0 12px 32px rgba(24, 37, 72, 0.07);
}

.utility-menu summary::after {
  content: "Abrir";
  color: var(--primary);
  font-size: 0.86rem;
}

.utility-menu[open] summary::after {
  content: "Cerrar";
}

.utility-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.utility-option {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
}

.utility-option.is-active {
  background: var(--primary);
  color: #fff;
}

.utility-panel {
  display: none;
}

.utility-panel.is-active {
  display: grid;
}

.sound-tool {
  grid-template-columns: minmax(230px, 0.7fr) minmax(320px, 1.15fr) minmax(320px, 1fr);
  gap: 20px;
  align-items: start;
}

.manifest-tool {
  grid-template-columns: minmax(280px, 0.55fr) minmax(420px, 1.45fr);
  gap: 20px;
  align-items: start;
}

.camera-tool {
  grid-template-columns: minmax(300px, 0.65fr) minmax(420px, 1.35fr);
  gap: 20px;
  align-items: start;
}

.converter-tool {
  grid-template-columns: minmax(300px, 0.65fr) minmax(420px, 1.35fr);
  gap: 20px;
  align-items: start;
}

.obfuscator-tool {
  grid-template-columns: minmax(320px, 0.7fr) minmax(420px, 1.3fr);
  gap: 20px;
  align-items: start;
}

.hud-media-tool {
  grid-template-columns: minmax(300px, 0.6fr) minmax(340px, 0.8fr) minmax(420px, 1fr);
  gap: 20px;
  align-items: start;
}

.dvd-bounce-tool {
  grid-template-columns: minmax(300px, 0.45fr) minmax(420px, 1.55fr);
  gap: 20px;
  align-items: start;
}

.glyph-emoji-tool {
  grid-template-columns: minmax(300px, 0.5fr) minmax(420px, 1.5fr);
  gap: 20px;
  align-items: start;
}

.component-editor-tool {
  grid-template-columns: minmax(320px, 0.55fr) minmax(420px, 1.45fr);
  gap: 20px;
  align-items: start;
}

.particle-tool {
  grid-template-columns: minmax(320px, 0.62fr) minmax(340px, 0.78fr) minmax(420px, 1fr);
  gap: 20px;
  align-items: start;
}

.sound-sidebar {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(24, 37, 72, 0.07);
}

.sound-form {
  display: grid;
  gap: 10px;
}

.manifest-form {
  display: grid;
  gap: 10px;
}

.form-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px 10px;
}

.sound-form label,
.import-box label,
.manifest-form label,
.sound-output label {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.sound-form input,
.import-box input,
.category-control select,
.manifest-form input,
.manifest-form select,
.manifest-form textarea,
.sound-output textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text);
  outline: none;
}

.sound-form input,
.import-box input,
.category-control select,
.manifest-form input,
.manifest-form select {
  min-height: 46px;
  padding: 0 12px;
}

.manifest-form textarea,
.manifest-output textarea {
  min-height: 120px;
  padding: 12px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.5;
}

.manifest-output textarea {
  width: 100%;
  min-height: 560px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9rem;
}

.manifest-output-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 14px;
}

.particle-presets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.particle-texture-panel,
.particle-quick-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.particle-texture-panel > span,
.particle-quick-panel > span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.particle-texture-grid,
.particle-choice-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.particle-texture-button,
.particle-choice {
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  font-weight: 900;
}

.particle-texture-button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 8px;
  text-align: left;
}

.particle-texture-button.is-active,
.particle-choice.is-active {
  border-color: var(--primary);
  background: rgba(82, 144, 255, 0.18);
  color: #fff;
}

.particle-texture-swatch {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: radial-gradient(circle, #fff 0 10%, #50ffd8 32%, transparent 70%);
}

.particle-texture-swatch.smoke {
  background: radial-gradient(circle, rgba(255,255,255,.8), rgba(127,135,148,.65) 42%, transparent 72%);
}

.particle-texture-swatch.star {
  clip-path: polygon(50% 0, 61% 34%, 98% 35%, 68% 56%, 79% 91%, 50% 70%, 21% 91%, 32% 56%, 2% 35%, 39% 34%);
  background: #ffd86b;
}

.particle-texture-swatch.ring {
  border: 7px solid #9afcff;
  background: transparent;
}

.particle-texture-maker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px 46px;
  gap: 8px;
}

.particle-texture-maker .secondary-button {
  grid-column: span 3;
}

#particleTextureCanvas {
  width: 96px;
  height: 96px;
  justify-self: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(45deg, rgba(255,255,255,.08) 25%, transparent 25% 75%, rgba(255,255,255,.08) 75%),
    linear-gradient(45deg, rgba(255,255,255,.08) 25%, transparent 25% 75%, rgba(255,255,255,.08) 75%);
  background-position: 0 0, 8px 8px;
  background-size: 16px 16px;
}

.particles-editor-page {
  overflow: auto;
  min-height: 100vh;
  background:
    radial-gradient(circle at 28% 12%, rgba(139, 92, 246, 0.18), transparent 34%),
    radial-gradient(circle at 72% 18%, rgba(34, 211, 238, 0.14), transparent 30%),
    linear-gradient(135deg, #05070d 0%, #0a0f1c 52%, #06080f 100%);
  color: #edf7ff;
}

.particle-editor-shell {
  display: grid;
  grid-template-rows: 72px minmax(0, 1fr);
  min-height: 100vh;
}

.particle-editor-topbar {
  display: grid;
  grid-template-columns: minmax(190px, 250px) minmax(180px, 220px) minmax(220px, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 10px 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(4, 8, 18, 0.82);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(22px);
}

.particle-editor-brand {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: 1fr 1fr;
  column-gap: 12px;
  align-items: center;
  color: #fff;
  text-decoration: none;
}

.particle-editor-brand img {
  grid-row: span 2;
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(34, 211, 238, 0.38));
}

.particle-editor-brand span {
  font-size: 1rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.particle-editor-brand small,
.particle-project-name span {
  color: #91a4bd;
  font-size: 0.78rem;
  font-weight: 700;
}

.particle-project-name {
  display: grid;
  gap: 3px;
  padding: 9px 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.72);
}

.particle-project-name strong {
  color: #fff;
  font-size: 0.92rem;
}

.particle-toolbar,
.particle-toolbar-right {
  justify-content: end;
}

.particle-toolbar-right {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.particle-toolbar button,
.particle-toolbar-right button,
.particle-export-main,
.particle-viewport-tools button,
.particle-viewport-tools select,
.particle-viewport-controls button,
.particle-viewport-controls select {
  min-height: 38px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.72);
  color: #dce8f7;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.particle-toolbar button,
.particle-toolbar-right button,
.particle-export-main {
  padding: 0 12px;
}

.particle-toolbar button:hover,
.particle-toolbar-right button:hover,
.particle-export-main:hover,
.particle-viewport-tools button:hover,
.particle-viewport-controls button:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 211, 238, 0.56);
  box-shadow: 0 0 22px rgba(34, 211, 238, 0.12);
}

.particle-export-main {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(249, 115, 22, 0.18));
  border-color: rgba(34, 211, 238, 0.42);
  color: #fff;
}

.particles-editor-page .particle-editor-grid {
  display: grid;
  grid-template-columns: 280px minmax(440px, 1fr) 360px;
  grid-template-rows: minmax(620px, calc(100vh - 302px)) 214px;
  grid-template-areas:
    "presets viewport inspector"
    "timeline timeline timeline";
  gap: 8px;
  min-height: 0;
  padding: 8px;
}

.particle-presets-sidebar,
.particle-viewport-zone,
.particle-inspector,
.particle-timeline {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(5, 10, 20, 0.86));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 20px 44px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.particle-presets-sidebar {
  grid-area: presets;
  display: grid;
  grid-template-rows: auto auto auto auto auto 1fr auto;
  gap: 12px;
  min-height: 0;
  overflow: hidden;
  padding: 14px;
  border-color: rgba(168, 85, 247, 0.42);
}

.particle-sidebar-heading p,
.particle-inspector-section summary,
.particle-timeline-info strong {
  color: #67e8f9;
  font-weight: 950;
  text-transform: uppercase;
}

.particle-sidebar-heading h1 {
  margin: 3px 0 0;
  font-size: 1.25rem;
  color: #fff;
}

.particle-search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px;
  gap: 8px;
}

.particle-search-box input,
.particle-inspector input:not([type="range"]):not([type="color"]),
.particle-inspector select,
.particle-texture-maker select {
  min-height: 42px;
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  background: rgba(2, 6, 15, 0.72);
  color: #edf7ff;
  padding: 0 12px;
  outline: none;
}

.particle-search-box button,
.particle-sidebar-shortcuts button,
.particle-category-list button,
.particle-create-blank {
  min-height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.68);
  color: #dce8f7;
  cursor: pointer;
  font-weight: 850;
}

.particle-sidebar-shortcuts,
.particle-category-list {
  display: grid;
  gap: 8px;
  overflow-y: auto;
  padding-right: 2px;
}

.particle-sidebar-shortcuts button,
.particle-category-list button,
.particle-category summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.particle-category {
  min-height: 0;
}

.particle-category summary {
  cursor: pointer;
  color: #dce8f7;
  font-size: 0.88rem;
  font-weight: 900;
}

.particle-preset-stack {
  display: grid;
  gap: 8px;
  margin-top: 9px;
}

.particle-preset-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 78px;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: #fff;
  cursor: pointer;
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.particle-preset-card:hover,
.particle-preset-card.is-selected {
  transform: translateY(-1px);
  border-color: rgba(168, 85, 247, 0.74);
  box-shadow: 0 0 28px rgba(168, 85, 247, 0.2);
}

.particle-preset-card strong {
  display: block;
  font-size: 0.9rem;
}

.particle-preset-card small {
  color: #91a4bd;
  font-size: 0.76rem;
  font-weight: 800;
}

.particle-preset-preview {
  position: relative;
  width: 74px;
  height: 58px;
  overflow: hidden;
  border-radius: 10px;
  background: radial-gradient(circle, #facc15, #f97316 26%, transparent 64%), #111827;
}

.particle-preset-preview::after {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: currentColor;
  color: #fff7ad;
  filter: blur(7px);
  animation: particlePulse 1.3s ease-in-out infinite alternate;
}

.particle-preset-preview.magic {
  background: radial-gradient(circle, #e879f9, #7c3aed 36%, transparent 66%), #111827;
}

.particle-preset-preview.anime {
  background: radial-gradient(circle, #e0f2fe, #38bdf8 32%, transparent 62%), #111827;
}

.particle-preset-preview.frost {
  background: radial-gradient(circle, #dff8ff, #22d3ee 34%, transparent 66%), #111827;
}

.particle-preset-preview.ground {
  background:
    radial-gradient(circle at 50% 82%, #fff7ad 0 8%, #ff8a2a 18%, transparent 32%),
    radial-gradient(ellipse at 50% 100%, rgba(120, 60, 24, 0.95), transparent 48%),
    linear-gradient(0deg, rgba(249, 115, 22, 0.75), transparent 58%),
    #111827;
}

.particle-preset-preview.ground::before {
  content: "";
  position: absolute;
  left: 45%;
  bottom: 8px;
  width: 12px;
  height: 46px;
  border-radius: 999px;
  background: linear-gradient(#fff7ad, #fb923c 45%, transparent);
  filter: blur(3px);
  animation: particleGroundBlast 1.1s ease-in-out infinite alternate;
}

@keyframes particleGroundBlast {
  from { transform: translateY(8px) scaleY(0.65); opacity: 0.6; }
  to { transform: translateY(-7px) scaleY(1.12); opacity: 1; }
}

@keyframes particlePulse {
  from { transform: scale(0.75); opacity: 0.55; }
  to { transform: scale(1.15); opacity: 1; }
}

.particle-create-blank {
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  color: #fff;
}

.particle-viewport-zone {
  grid-area: viewport;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  min-height: 0;
  overflow: hidden;
  border-color: rgba(34, 211, 238, 0.36);
}

.particle-viewport-tools,
.particle-viewport-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 12px;
}

.particle-viewport-tools {
  justify-content: space-between;
}

.particle-viewport-tools span {
  color: #91a4bd;
  font-size: 0.86rem;
  font-weight: 800;
}

.particle-viewport-tools button,
.particle-viewport-tools select,
.particle-viewport-controls button,
.particle-viewport-controls select {
  padding: 0 12px;
}

.particle-preview-stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
  margin: 0 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  background:
    linear-gradient(rgba(34, 211, 238, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.08) 1px, transparent 1px),
    radial-gradient(circle at center, rgba(34, 211, 238, 0.08), transparent 48%),
    #090e18;
  background-size: 42px 42px, 42px 42px, auto, auto;
}

.particles-editor-page #particlePreviewCanvas {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.particle-axis-widget {
  position: absolute;
  left: 22px;
  bottom: 22px;
  display: grid;
  gap: 4px;
  font-weight: 950;
}

.particle-axis-widget span {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(2, 6, 15, 0.72);
}

.particle-axis-widget .x { color: #ff5d5d; }
.particle-axis-widget .y { color: #4ade80; }
.particle-axis-widget .z { color: #60a5fa; }

.particle-play-button {
  background: linear-gradient(135deg, #7c3aed, #22d3ee) !important;
  color: #fff !important;
}

.particles-editor-page .particle-command {
  margin: 0 12px 12px;
  border-color: rgba(34, 211, 238, 0.18);
  background: rgba(2, 6, 15, 0.58);
}

.particle-inspector {
  grid-area: inspector;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 0;
  overflow: hidden;
  border-color: rgba(249, 115, 22, 0.42);
}

.particle-inspector-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 10px;
  gap: 8px;
}

.particle-inspector-tabs button {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #91a4bd;
  cursor: pointer;
  font-weight: 900;
}

.particle-inspector-tabs .is-active {
  color: #fff;
  border-color: rgba(168, 85, 247, 0.48);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.34), rgba(34, 211, 238, 0.12));
}

.particle-inspector-form {
  min-height: 0;
  overflow-y: auto;
  padding: 0 10px 12px;
  scrollbar-width: thin;
}

.particle-inspector-section {
  margin-bottom: 8px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 12px;
  background: rgba(2, 6, 15, 0.34);
}

.particle-inspector-section summary {
  min-height: 42px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #f97316;
}

.particle-inspector-section label {
  display: block;
  margin: 10px 12px 6px;
  color: #aebed2;
  font-size: 0.82rem;
  font-weight: 850;
}

.particle-inspector-section input:not([type="range"]):not([type="color"]),
.particle-inspector-section select {
  width: calc(100% - 24px);
  margin: 0 12px 8px;
}

.particle-inspector input[type="range"] {
  width: calc(100% - 24px);
  height: 28px;
  margin: 0 12px 8px;
  accent-color: #8b5cf6;
}

.particle-color-row {
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  gap: 8px;
  align-items: end;
  padding: 0 12px 10px;
}

.particle-color-row label,
.particle-color-row select,
.particle-color-row input {
  margin: 0 !important;
}

.particle-color-row input[type="color"] {
  width: 56px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  background: transparent;
}

.particle-toggle-row {
  display: flex !important;
  gap: 10px;
  align-items: center;
  padding-bottom: 10px;
}

.particles-editor-page .particle-choice-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0 12px 12px;
}

.particles-editor-page .particle-choice,
.particles-editor-page .particle-texture-button {
  min-height: 46px;
  background: rgba(15, 23, 42, 0.68);
}

.particles-editor-page .particle-texture-panel {
  margin: 10px 12px 12px;
  background: rgba(15, 23, 42, 0.58);
}

.particle-curve-card {
  min-height: 92px;
  margin: 0 12px 12px;
  border: 1px solid rgba(168, 85, 247, 0.32);
  border-radius: 10px;
  background:
    radial-gradient(circle at 80% 22%, rgba(34, 211, 238, 0.18), transparent 26%),
    linear-gradient(145deg, transparent 48%, rgba(168, 85, 247, 0.75) 49%, transparent 51%),
    rgba(2, 6, 15, 0.72);
}

.particle-performance-mini {
  display: flex;
  justify-content: space-between;
  padding: 0 12px 12px;
}

.particle-performance-mini strong {
  color: #4ade80;
  font-size: 1.8rem;
}

.particle-timeline {
  grid-area: timeline;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 220px;
  gap: 12px;
  min-height: 0;
  padding: 12px;
  border-color: rgba(74, 222, 128, 0.28);
}

.particle-timeline-info {
  display: grid;
  align-content: start;
  gap: 10px;
}

.particle-timeline-info button {
  min-height: 38px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.particle-timeline-tracks {
  display: grid;
  gap: 8px;
  align-content: center;
  min-width: 0;
}

.particle-track {
  position: relative;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: center;
  min-height: 32px;
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 800;
}

.particle-track i {
  position: relative;
  height: 10px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.75), rgba(34, 211, 238, 0.5));
}

.particle-track b {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: #a78bfa;
  transform: translateY(-50%) rotate(45deg);
}

.particle-track.movement i { background: linear-gradient(90deg, #60a5fa, #22d3ee); }
.particle-track.scale i { background: linear-gradient(90deg, #4ade80, #86efac); }
.particle-track.color i { background: linear-gradient(90deg, #fb7185, #f97316); }

.particle-curve-editor {
  display: grid;
  gap: 8px;
}

.particle-curve-editor .particle-curve-card {
  margin: 0;
  min-height: 118px;
}

@media (max-width: 1180px) {
  .particles-editor-page {
    overflow: auto;
  }

  .particle-editor-shell {
    grid-template-rows: auto 1fr;
  }

  .particle-editor-topbar,
  .particles-editor-page .particle-editor-grid,
  .particle-timeline {
    grid-template-columns: 1fr;
  }

  .particles-editor-page .particle-editor-grid {
    grid-template-areas:
      "viewport"
      "presets"
      "inspector"
      "timeline";
    grid-template-rows: auto;
  }

  .particle-preview-stage {
    min-height: 420px;
  }
}

.particles-simple-page {
  overflow: hidden;
  min-height: 100vh;
  background: #26313a;
  color: #dbe7f1;
  font-family: Inter, system-ui, sans-serif;
}

.particle-simple-shell {
  display: grid;
  grid-template-rows: 46px minmax(0, 1fr);
  height: 100vh;
}

.particle-simple-menu {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: center;
  border-bottom: 1px solid #172028;
  background: #202a32;
}

.particle-simple-logo {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: 1fr 1fr;
  column-gap: 10px;
  align-items: center;
  height: 100%;
  padding: 0 10px;
  color: #eef6fb;
  text-decoration: none;
}

.particle-simple-logo img {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.particle-simple-logo span {
  font-size: 1.35rem;
  font-weight: 950;
  line-height: 1;
}

.particle-simple-logo small {
  color: #8fa2b2;
  font-size: 0.76rem;
  font-weight: 800;
}

.particle-simple-menu nav {
  display: flex;
  justify-content: flex-end;
  gap: 2px;
  height: 100%;
}

.particle-simple-menu nav button,
.particle-simple-menu nav a {
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border: 0;
  border-left: 1px solid rgba(0, 0, 0, 0.18);
  background: transparent;
  color: #dbe7f1;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
}

.particle-simple-menu nav button:hover,
.particle-simple-menu nav a:hover {
  background: #30404c;
}

.particle-simple-layout {
  display: grid !important;
  grid-template-columns: 380px minmax(0, 1fr);
  height: calc(100vh - 46px);
  min-height: 0;
}

.particle-simple-sidebar {
  min-height: 0;
  overflow-y: auto;
  border-right: 1px solid #172028;
  background: #25313a;
}

.particle-simple-sidebar form {
  display: grid;
}

.particle-simple-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  position: sticky;
  top: 0;
  z-index: 2;
  background: #34424d;
}

.particle-simple-tabs button {
  min-height: 48px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  color: #dbe7f1;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 850;
}

.particle-simple-tabs button:hover,
.particle-simple-tabs button.is-active {
  background: #425360;
  color: #5ce7ff;
}

.particle-simple-section {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid #172028;
}

.particle-simple-section p {
  margin: 0;
  color: #9db0bf;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
}

.particle-simple-section label,
.particle-check-row {
  color: #dbe7f1;
  font-size: 0.86rem;
  font-weight: 700;
}

.particle-simple-section input:not([type="range"]):not([type="color"]),
.particle-simple-section select {
  min-height: 36px;
  border: 1px solid #172028;
  border-radius: 4px;
  background: #1e2931;
  color: #f8fbff;
  padding: 0 10px;
}

.particle-simple-section input[type="range"] {
  width: 100%;
  accent-color: #55e6ff;
}

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

.particle-icon-row.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.particle-icon-choice,
.particle-sprite-choice {
  display: grid;
  place-items: center;
  gap: 5px;
  min-height: 68px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #dbe7f1;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 750;
  text-align: center;
}

.particle-icon-choice span {
  font-size: 1.45rem;
  color: #dbe7f1;
}

.particle-icon-choice:hover,
.particle-sprite-choice:hover,
.particle-icon-choice.is-active,
.particle-sprite-choice.is-active {
  background: #34424d;
  border-color: rgba(85, 230, 255, 0.22);
}

.particle-sprite-choice .particle-texture-swatch {
  width: 32px;
  height: 32px;
}

.particle-mini-texture-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px 38px;
  gap: 8px;
}

.particle-mini-texture-tools button {
  min-height: 34px;
  border: 1px solid #172028;
  border-radius: 4px;
  background: #34424d;
  color: #dbe7f1;
  cursor: pointer;
  font-weight: 800;
}

.particle-mini-texture-tools button:nth-last-child(-n + 2) {
  grid-column: span 3;
}

.particles-simple-page #particleTextureCanvas {
  width: 72px;
  height: 72px;
  justify-self: start;
}

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

.particle-simple-viewport {
  display: grid;
  grid-template-rows: 42px minmax(0, 1fr) auto auto;
  min-width: 0;
  min-height: 0;
  background: #27343e;
}

.particle-simple-viewport-top,
.particle-simple-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 10px;
  border-bottom: 1px solid #172028;
  color: #94a6b5;
  font-weight: 800;
}

.particle-simple-viewport-top div {
  display: flex;
  gap: 6px;
}

.particle-simple-viewport-top button {
  min-height: 30px;
  border: 1px solid #172028;
  border-radius: 4px;
  background: #34424d;
  color: #dbe7f1;
  cursor: pointer;
  font-weight: 800;
}

.particle-simple-stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background:
    linear-gradient(rgba(127, 150, 164, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 150, 164, 0.15) 1px, transparent 1px),
    #27343e;
  background-size: 48px 48px;
}

.particles-simple-page #particlePreviewCanvas {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.particles-simple-page .particle-axis-widget {
  left: 18px;
  bottom: 18px;
}

.particle-simple-bottom {
  align-items: stretch;
  gap: 10px;
  border-top: 1px solid #172028;
  border-bottom: 0;
  background: #202a32;
}

.particles-simple-page .particle-command {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.particles-simple-page .particle-command span {
  color: #94a6b5;
}

.particle-simple-bottom p {
  margin: 0;
  display: flex;
  align-items: center;
  color: #94a6b5;
  font-size: 0.84rem;
}

.particle-json-live {
  max-height: 190px;
  overflow: auto;
  border-top: 1px solid #172028;
  background: #182128;
}

.particle-json-live summary {
  min-height: 34px;
  padding: 8px 12px;
  color: #55e6ff;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.particle-json-live pre {
  margin: 0;
  padding: 0 12px 12px;
  color: #dbe7f1;
  font: 0.78rem/1.45 Consolas, "Courier New", monospace;
  white-space: pre-wrap;
}

@media (max-width: 860px) {
  .particles-simple-page {
    overflow: auto;
  }

  .particle-simple-shell,
  .particle-simple-layout {
    height: auto;
  }

  .particle-simple-menu,
  .particle-simple-layout {
    grid-template-columns: 1fr;
  }

  .particle-simple-menu nav {
    justify-content: stretch;
  }

  .particle-simple-menu nav button,
  .particle-simple-menu nav a {
    flex: 1;
    justify-content: center;
  }

  .particle-simple-sidebar {
    max-height: none;
  }

  .particle-simple-viewport {
    min-height: 560px;
  }
}

.particle-preview-panel {
  overflow: hidden;
}

#particlePreviewCanvas {
  width: 100%;
  min-height: 360px;
  border: 1px solid rgba(80, 255, 216, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 50%, rgba(80, 255, 216, 0.09), transparent 32%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(5, 8, 15, 0.98));
  box-shadow: inset 0 0 42px rgba(80, 255, 216, 0.08);
}

.particle-command {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.particle-command span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.particle-command code {
  overflow-x: auto;
  color: var(--primary);
  font-weight: 900;
}

.converter-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.converter-summary div {
  display: grid;
  gap: 4px;
  min-height: 74px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.converter-summary strong {
  font-size: 1.5rem;
}

.converter-summary span {
  color: var(--muted);
  font-weight: 800;
}

.hud-stage {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    #101622;
  background-size: 10% 10%;
}

.hud-safe-area {
  position: absolute;
  inset: 6%;
  border: 1px dashed rgba(255, 255, 255, 0.36);
}

.hud-media-box {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 60%;
  height: 34%;
  transform: translate(-50%, -50%);
  touch-action: none;
}

#hudMediaPreviewImage {
  width: 100%;
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  cursor: move;
  user-select: none;
}

.hud-resize-handle {
  position: absolute;
  display: none;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.32);
  cursor: nwse-resize;
  touch-action: none;
}

.hud-media-box.is-selected .hud-resize-handle {
  display: block;
}

.hud-resize-handle.top-left {
  top: -12px;
  left: -12px;
}

.hud-resize-handle.top-right {
  top: -12px;
  right: -12px;
  cursor: nesw-resize;
}

.hud-resize-handle.bottom-left {
  bottom: -12px;
  left: -12px;
  cursor: nesw-resize;
}

.hud-resize-handle.bottom-right {
  right: -12px;
  bottom: -12px;
}

.hud-preview-actions {
  margin-top: 14px;
}

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

.checkbox-row input {
  width: auto;
  min-height: auto;
}

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

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

.import-box {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.sound-output textarea {
  min-height: 160px;
  margin: 8px 0 14px;
  padding: 12px;
  resize: vertical;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9rem;
  line-height: 1.45;
}

#generatedDefinitions {
  min-height: 280px;
}

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

.sound-list button {
  display: grid;
  gap: 4px;
  width: 100%;
  min-height: 58px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font-weight: 800;
}

.sound-list button.is-active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--input-focus);
}

.sound-list small {
  color: var(--muted);
  font-weight: 700;
}

.sound-preview audio {
  width: 100%;
}

.category-control {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.category-control label {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.db-control {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.db-control label {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.db-control div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px;
  gap: 12px;
  align-items: center;
}

.db-control input {
  width: 100%;
}

.db-control strong {
  color: var(--accent);
  text-align: right;
}

#soundCanvas {
  display: block;
  width: 100%;
  height: 220px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, var(--surface-soft), var(--hero-bg));
}

.sound-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.patreon-page {
  padding-bottom: 80px;
}

.patreon-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 72px);
  background:
    linear-gradient(135deg, var(--hero-green), transparent 38%),
    linear-gradient(315deg, var(--hero-blue), transparent 42%),
    var(--hero-bg);
}

.patreon-workspace {
  padding-top: 42px;
}

.tierlist-section {
  padding: 10px clamp(20px, 5vw, 72px) 0;
}

.tier-podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: end;
  margin-top: 26px;
}

.tier-card,
.tier-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(24, 37, 72, 0.07);
}

.tier-toggle {
  cursor: pointer;
}

.tier-toggle:focus {
  outline: 3px solid var(--input-focus);
  outline-offset: 3px;
}

.tier-card {
  display: grid;
  gap: 8px;
  padding: 22px;
}

.first-place {
  min-height: 220px;
  border-color: rgba(31, 157, 115, 0.45);
}

.second-place {
  min-height: 180px;
}

.third-place {
  min-height: 160px;
}

.tier-rank {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tier-card h3,
.tier-row h3 {
  margin: 0;
  font-size: 1.18rem;
}

.tier-card p,
.tier-row p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.tier-card strong,
.tier-row strong {
  color: var(--text);
}

.tier-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.tier-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
}

.tier-products {
  display: none;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.tier-toggle.is-open .tier-products {
  display: grid;
}

.tier-card .tier-products {
  margin-top: 12px;
}

.tier-row .tier-products {
  grid-column: 2;
}

.tier-products li {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  font-weight: 700;
}

.tier-row > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--accent);
  font-weight: 800;
}

.addons-hero {
  max-width: 840px;
  margin-bottom: 34px;
}

.addon-zones {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.addon-zone {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-glass);
}

.zone-heading {
  margin-bottom: 18px;
}

.addon-list {
  display: grid;
  gap: 18px;
}

.addon-item {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(24, 37, 72, 0.07);
  transition:
    box-shadow 160ms ease,
    transform 160ms ease;
}

.addon-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(24, 37, 72, 0.12);
}

.addon-item.is-locked {
  opacity: 0.72;
}

.addon-item.is-locked img {
  filter: grayscale(1);
}

.addon-access-badge {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  margin-top: 10px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.addon-access-badge.is-owned {
  background: color-mix(in srgb, var(--accent) 16%, var(--surface));
  color: var(--accent);
}

.addon-access-badge.is-locked {
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
  color: var(--accent);
}

.addon-card-action {
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 900;
}

.addon-item.is-locked .addon-card-action {
  background: var(--accent);
}

.addon-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  background: var(--hero-bg);
}

.addon-item p:not(.eyebrow) {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

body.addons-catalog-page {
  --bg: #070816;
  --surface: rgba(13, 15, 34, 0.78);
  --surface-soft: rgba(19, 16, 44, 0.84);
  --text: #f9f7ff;
  --muted: #c5bfe3;
  --line: rgba(89, 226, 255, 0.22);
  --primary: #42e8ff;
  --primary-dark: #7f4dff;
  --accent: #ff4fd8;
  --topbar-bg: rgba(6, 7, 19, 0.78);
  --panel-glass: rgba(11, 13, 30, 0.72);
  --addon-flash: rgba(255, 79, 216, 0.74);
  --shadow: 0 24px 70px rgba(4, 2, 22, 0.52);
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 79, 216, 0.28), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(66, 232, 255, 0.24), transparent 30%),
    radial-gradient(circle at 48% 82%, rgba(127, 77, 255, 0.22), transparent 34%),
    #070816;
}

.addons-topbar {
  border-color: rgba(66, 232, 255, 0.18);
  box-shadow: 0 18px 60px rgba(255, 79, 216, 0.08);
}

.addons-redesign {
  min-height: calc(100vh - 73px);
  padding: clamp(24px, 4vw, 54px) clamp(16px, 4vw, 64px) 64px;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(255, 79, 216, 0.12), transparent 32%),
    linear-gradient(245deg, rgba(66, 232, 255, 0.1), transparent 38%);
}

.addons-redesign::before {
  opacity: 0.42;
  mix-blend-mode: screen;
}

.addons-redesign::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(66, 232, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 79, 216, 0.06) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at center, #000 0 55%, transparent 86%);
  animation: addonsGridDrift 18s linear infinite;
}

.addons-auth-gate {
  display: grid;
  min-height: calc(100vh - 190px);
  place-items: center;
  animation: addonsFadeUp 520ms ease both;
}

.addons-auth-card {
  position: relative;
  width: min(100%, 760px);
  padding: clamp(28px, 5vw, 54px);
  overflow: hidden;
  border: 1px solid rgba(66, 232, 255, 0.28);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 79, 216, 0.16), rgba(66, 232, 255, 0.08)),
    rgba(9, 11, 28, 0.86);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 34px 100px rgba(4, 2, 22, 0.62),
    0 0 70px rgba(255, 79, 216, 0.18);
}

.addons-auth-card::before,
.addon-mode-card::after,
.addons-catalog-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0 38%, rgba(255, 255, 255, 0.72) 48%, transparent 58% 100%);
  opacity: 0;
  transform: translateX(-80%);
}

.addons-auth-card:hover::before,
.addon-mode-card:hover::after,
.addons-catalog-card:hover::before {
  animation: addonsWhiteSweep 780ms ease;
}

.addons-auth-card h1 {
  max-width: 640px;
  font-size: clamp(2.6rem, 6vw, 5.7rem);
}

.addons-auth-card p:not(.eyebrow),
.addons-catalog-hero p {
  max-width: 690px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.addons-google-button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
  padding: 0 22px;
  border: 1px solid rgba(66, 232, 255, 0.34);
  border-radius: 12px;
  background: linear-gradient(135deg, #30dfff, #7f4dff 48%, #ff4fd8);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  box-shadow: 0 18px 44px rgba(127, 77, 255, 0.34);
}

.addons-google-button img {
  display: grid;
  width: 30px;
  height: 30px;
  padding: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  object-fit: contain;
}

.addons-auth-status {
  min-height: 24px;
  margin-top: 16px !important;
  color: #7df1ff !important;
  font-weight: 800;
}

.addons-experience {
  animation: addonsFadeUp 560ms ease both;
}

.addons-catalog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 26px;
  align-items: center;
  margin-bottom: 26px;
}

.addons-catalog-hero h1 {
  font-size: clamp(3rem, 8vw, 7.4rem);
  text-shadow:
    0 0 28px rgba(66, 232, 255, 0.24),
    0 0 42px rgba(255, 79, 216, 0.2);
}

.addons-hero-orbit {
  position: relative;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(66, 232, 255, 0.22), transparent 58%),
    conic-gradient(from 140deg, rgba(255, 79, 216, 0.9), rgba(66, 232, 255, 0.9), rgba(127, 77, 255, 0.9), rgba(255, 79, 216, 0.9));
  filter: drop-shadow(0 0 38px rgba(66, 232, 255, 0.24));
  opacity: 0.9;
  animation: addonsOrbSpin 9s linear infinite;
}

.addons-hero-orbit span {
  position: absolute;
  inset: 18%;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
}

.addons-hero-orbit span:nth-child(2) {
  inset: 32%;
  border-color: rgba(255, 79, 216, 0.42);
}

.addons-hero-orbit span:nth-child(3) {
  inset: 46%;
  border-color: rgba(66, 232, 255, 0.52);
  background: rgba(6, 7, 19, 0.82);
}

.addons-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.addons-experience.is-choosing-category .addons-mode-grid,
.addons-experience:not(:has(.addons-catalog-panel:not([hidden]))) .addons-mode-grid {
  min-height: min(58vh, 520px);
  align-items: stretch;
}

.addon-mode-card {
  position: relative;
  display: grid;
  min-height: 180px;
  align-content: end;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(66, 232, 255, 0.22);
  border-radius: 16px;
  background:
    linear-gradient(180deg, transparent 0 10%, rgba(5, 6, 18, 0.86) 78%),
    var(--mode-cover) center / cover,
    rgba(14, 16, 36, 0.74);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  box-shadow: var(--shadow);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease,
    filter 180ms ease;
}

.addons-experience.is-choosing-category .addon-mode-card,
.addons-experience:not(:has(.addons-catalog-panel:not([hidden]))) .addon-mode-card {
  min-height: clamp(300px, 42vh, 520px);
  padding: clamp(24px, 4vw, 42px);
}

.addon-mode-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 22% 22%, rgba(66, 232, 255, 0.28), transparent 32%),
    linear-gradient(135deg, rgba(255, 79, 216, 0.14), rgba(127, 77, 255, 0.1));
  opacity: 0.72;
}

.addon-mode-card:hover,
.addon-mode-card.is-active {
  transform: translateY(-4px);
  border-color: rgba(255, 79, 216, 0.74);
  box-shadow:
    0 24px 74px rgba(255, 79, 216, 0.22),
    0 0 42px rgba(66, 232, 255, 0.16);
}

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

.addon-mode-kicker {
  color: #72efff;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.addon-mode-card strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.55rem, 3vw, 2.8rem);
  line-height: 1;
}

.addon-mode-card small {
  margin-top: 10px;
  color: rgba(249, 247, 255, 0.82);
  font-weight: 800;
}

.addons-catalog-panel {
  padding: 18px;
  border: 1px solid rgba(66, 232, 255, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 79, 216, 0.08), rgba(66, 232, 255, 0.06)),
    rgba(8, 10, 26, 0.78);
  box-shadow: var(--shadow);
  animation: addonsFadeUp 360ms ease both;
}

.addons-catalog-panel[hidden] {
  display: none !important;
}

.addons-catalog-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.addons-catalog-heading h2 {
  font-size: clamp(1.65rem, 3vw, 2.8rem);
}

.addons-catalog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.addons-catalog-actions > span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(66, 232, 255, 0.28);
  border-radius: 999px;
  color: #7df1ff;
  font-weight: 900;
}

.addons-back-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(255, 79, 216, 0.42);
  border-radius: 999px;
  background: rgba(255, 79, 216, 0.12);
  color: #ffd8f6;
  cursor: pointer;
  font-weight: 900;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.addons-back-button:hover {
  transform: translateY(-2px);
  border-color: rgba(66, 232, 255, 0.72);
  box-shadow: 0 0 26px rgba(66, 232, 255, 0.18);
}

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

.addons-catalog-card {
  position: relative;
  min-height: 178px;
  overflow: hidden;
  border: 1px solid rgba(66, 232, 255, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(5, 6, 18, 0.96) 0 42%, rgba(5, 6, 18, 0.18)),
    var(--addon-cover) center / cover,
    rgba(16, 18, 42, 0.8);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
  transform: translateY(12px);
  opacity: 0;
  animation: addonsCardIn 520ms ease forwards;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.addons-catalog-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(255, 79, 216, 0.68);
  box-shadow:
    0 22px 64px rgba(255, 79, 216, 0.16),
    0 0 34px rgba(66, 232, 255, 0.12);
}

.addons-catalog-card.is-locked {
  border-color: rgba(255, 79, 216, 0.28);
}

.addons-catalog-card.is-locked .addons-catalog-art {
  filter: grayscale(1);
}

.addons-catalog-card-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  min-height: 178px;
  padding: 14px;
  background: linear-gradient(90deg, rgba(8, 10, 26, 0.98), rgba(8, 10, 26, 0.78) 48%, rgba(8, 10, 26, 0.18));
}

.addons-catalog-art {
  width: 100%;
  aspect-ratio: 1;
  align-self: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  object-fit: cover;
  background: rgba(5, 6, 18, 0.7);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3);
}

.addons-catalog-content {
  min-width: 0;
}

.addons-catalog-content h3 {
  margin: 0;
  font-size: clamp(1.05rem, 1.8vw, 1.6rem);
}

.addons-catalog-summary {
  display: -webkit-box;
  min-height: 50px;
  margin: 10px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.addons-catalog-info {
  max-height: 0;
  margin: 0;
  overflow: hidden;
  color: rgba(249, 247, 255, 0.88);
  font-size: 0.88rem;
  line-height: 1.45;
  opacity: 0;
  transition:
    max-height 220ms ease,
    margin 220ms ease,
    opacity 220ms ease;
}

.addons-catalog-card:hover .addons-catalog-info,
.addons-catalog-card:focus-within .addons-catalog-info {
  max-height: 120px;
  margin-top: 10px;
  opacity: 1;
}

.addons-catalog-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.addons-status-pill,
.addons-open-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
}

.addons-status-pill {
  border: 1px solid rgba(66, 232, 255, 0.26);
  background: rgba(66, 232, 255, 0.1);
  color: #7df1ff;
}

.addons-status-pill.is-locked {
  border-color: rgba(255, 79, 216, 0.34);
  background: rgba(255, 79, 216, 0.12);
  color: #ff8ce8;
}

.addons-open-pill {
  background: linear-gradient(135deg, #34e7ff, #ff4fd8);
  color: #fff;
}

@keyframes addonsFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes addonsCardIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes addonsWhiteSweep {
  0% {
    opacity: 0;
    transform: translateX(-80%);
  }

  18%,
  55% {
    opacity: 0.55;
  }

  100% {
    opacity: 0;
    transform: translateX(80%);
  }
}

@keyframes addonsGridDrift {
  to {
    background-position: 54px 54px;
  }
}

@keyframes addonsOrbSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 920px) {
  .addons-catalog-hero {
    grid-template-columns: 1fr;
  }

  .addons-hero-orbit {
    width: min(220px, 48vw);
    justify-self: center;
  }

  .addons-mode-grid,
  .addons-catalog-grid {
    grid-template-columns: 1fr;
  }

  .addons-experience.is-choosing-category .addons-mode-grid,
  .addons-experience:not(:has(.addons-catalog-panel:not([hidden]))) .addons-mode-grid {
    min-height: auto;
  }
}

@media (max-width: 620px) {
  .addons-redesign {
    padding-inline: 14px;
  }

  .addons-catalog-card-inner {
    grid-template-columns: 88px minmax(0, 1fr);
    min-height: 154px;
    padding: 12px;
  }

  .addons-catalog-info {
    max-height: none;
    margin-top: 8px;
    opacity: 1;
  }

  .addons-catalog-heading {
    align-items: start;
    flex-direction: column;
  }
}

.addon-detail-main {
  padding: clamp(40px, 6vw, 76px) clamp(20px, 5vw, 72px) 80px;
}

.addon-detail-redesign {
  min-height: calc(100vh - 73px);
  background:
    linear-gradient(115deg, rgba(255, 79, 216, 0.12), transparent 32%),
    linear-gradient(245deg, rgba(66, 232, 255, 0.1), transparent 38%);
}

.addon-detail-redesign .addon-detail-hero {
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid rgba(66, 232, 255, 0.24);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 79, 216, 0.14), rgba(66, 232, 255, 0.07)),
    rgba(8, 10, 26, 0.78);
  box-shadow: var(--shadow);
}

.addon-detail-redesign .addon-detail-hero img {
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.32),
    0 0 42px rgba(255, 79, 216, 0.16);
}

.addon-detail-redesign .addon-detail-content {
  align-items: stretch;
}

.addon-detail-redesign .detail-card,
.addon-detail-redesign .video-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(66, 232, 255, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 79, 216, 0.1), rgba(66, 232, 255, 0.06)),
    rgba(8, 10, 26, 0.82);
  box-shadow: var(--shadow);
}

.addon-detail-redesign .detail-card::before,
.addon-detail-redesign .video-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0 40%, rgba(255, 255, 255, 0.3) 48%, transparent 58%);
  opacity: 0;
  transform: translateX(-80%);
}

.addon-detail-redesign .detail-card:hover::before,
.addon-detail-redesign .video-frame:hover::before {
  animation: addonsWhiteSweep 780ms ease;
}

.addon-video-embed {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.addon-video-embed iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 14px;
  background: #050612;
}

.addon-video-link {
  display: inline-flex;
  width: fit-content;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #34e7ff, #ff4fd8);
  color: #fff;
  font-weight: 900;
}

.addon-mechanics-block {
  margin-top: 22px;
}

.addon-detail-redesign .feature-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.addon-detail-redesign .feature-list li {
  border-color: rgba(66, 232, 255, 0.18);
  background: rgba(66, 232, 255, 0.08);
}

.addon-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  margin-bottom: 34px;
}

.addon-detail-hero img {
  width: min(100%, 320px);
  justify-self: center;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.addon-price {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  margin: 18px 0 0;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--accent);
  font-weight: 800;
}

.addon-detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 24px;
  align-items: start;
}

.addon-detail-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(420px, 1.28fr);
  gap: clamp(18px, 2.4vw, 28px);
  max-width: 1500px;
  margin: 0 auto;
}

.addon-detail-left,
.addon-detail-right {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.addon-title-panel {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.addon-title-panel > img {
  width: 132px;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid rgba(181, 75, 255, 0.75);
  border-radius: 10px;
  background:
    radial-gradient(circle at 24% 18%, rgba(55, 231, 255, 0.22), transparent 35%),
    rgba(11, 12, 35, 0.74);
  box-shadow:
    0 0 0 1px rgba(55, 231, 255, 0.12),
    0 18px 46px rgba(0, 0, 0, 0.42),
    0 0 28px rgba(181, 75, 255, 0.28);
}

.addon-title-panel h1 {
  margin: 8px 0 14px;
  color: #fff;
  font-size: clamp(2.7rem, 6vw, 4.9rem);
  line-height: 0.92;
  text-shadow: 0 0 28px rgba(55, 231, 255, 0.18);
}

.addon-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.addon-pill {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid rgba(55, 231, 255, 0.45);
  border-radius: 8px;
  background: rgba(55, 231, 255, 0.1);
  color: #36f1ff;
  font-weight: 900;
}

.addon-pill + .addon-pill {
  border-color: rgba(255, 79, 216, 0.55);
  background: rgba(255, 79, 216, 0.12);
  color: #ff79ea;
}

.addon-downloads-pill {
  gap: 8px;
  border-color: rgba(39, 245, 255, 0.55);
  background: rgba(39, 245, 255, 0.1);
  color: #27f5ff;
}

.addon-downloads-pill img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter:
    brightness(0)
    saturate(100%)
    invert(80%)
    sepia(76%)
    saturate(1500%)
    hue-rotate(145deg)
    brightness(104%)
    contrast(105%);
}

.addon-detail-redesign .addon-copy-card,
.addon-detail-redesign .addon-video-embed,
.addon-meta-card {
  border: 1px solid rgba(181, 75, 255, 0.55);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 79, 216, 0.12), rgba(55, 231, 255, 0.07)),
    rgba(7, 8, 28, 0.72);
  box-shadow:
    0 20px 58px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
}

.addon-detail-redesign .addon-copy-card {
  padding: clamp(18px, 2.2vw, 26px);
}

.addon-info-section + .addon-info-section {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(181, 75, 255, 0.28);
}

.addon-info-section h2,
.addon-video-title {
  margin: 0 0 12px;
  color: #27f5ff;
  font-size: 1.22rem;
  font-weight: 950;
  letter-spacing: 0;
}

.addon-info-section p {
  margin: 0;
  color: rgba(245, 247, 255, 0.9);
  font-size: 1rem;
  line-height: 1.65;
}

.addon-detail-redesign .feature-list {
  margin-top: 12px;
}

.addon-detail-redesign .feature-list li {
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(245, 247, 255, 0.9);
  line-height: 1.55;
}

.addon-detail-redesign .feature-list li::before {
  background: linear-gradient(135deg, #27f5ff, #ff4fd8);
  box-shadow: 0 0 14px rgba(39, 245, 255, 0.6);
}

.addon-video-embed {
  padding: 14px;
}

.addon-video-embed iframe {
  border: 1px solid rgba(55, 231, 255, 0.24);
  border-radius: 10px;
}

.addon-video-link {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(135deg, rgba(39, 245, 255, 0.94), rgba(255, 79, 216, 0.94));
}

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

.addon-meta-card {
  position: relative;
  overflow: hidden;
  min-height: 92px;
  padding: 18px 20px;
}

.addon-meta-with-icon {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  column-gap: 16px;
  align-items: center;
}

.addon-meta-with-icon img {
  grid-row: span 2;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.addon-meta-tinted img {
  filter:
    brightness(0)
    saturate(100%)
    invert(74%)
    sepia(97%)
    saturate(1204%)
    hue-rotate(145deg)
    brightness(106%)
    contrast(106%)
    drop-shadow(0 0 12px rgba(39, 245, 255, 0.35));
}

.addon-meta-creator img,
.addon-meta-version img {
  border-radius: 10px;
  filter: drop-shadow(0 0 14px rgba(255, 79, 216, 0.28));
}

.addon-meta-card span {
  display: block;
  margin-bottom: 8px;
  color: rgba(218, 225, 255, 0.78);
  font-weight: 700;
}

.addon-meta-card strong {
  color: #fff;
  font-size: 1.12rem;
  font-weight: 950;
}

.addon-meta-eufonia {
  text-decoration: none;
}

.addon-meta-eufonia::after {
  content: "";
  position: absolute;
  inset: auto 16px 12px auto;
  width: 54px;
  aspect-ratio: 1;
  border-radius: 14px;
  background:
    linear-gradient(rgba(8, 10, 26, 0.2), rgba(8, 10, 26, 0.2)),
    url("https://www.google.com/s2/favicons?domain=eufonia.studio&sz=128") center / cover no-repeat;
  opacity: 0.36;
  filter: drop-shadow(0 0 18px rgba(39, 245, 255, 0.35));
}

.addon-download-button {
  display: grid;
  gap: 4px;
  min-height: 84px;
  align-content: center;
  justify-items: center;
  margin-top: 26px;
  border-radius: 12px;
  border: 1px solid rgba(39, 245, 255, 0.72);
  background:
    radial-gradient(circle at 50% 0%, rgba(39, 245, 255, 0.34), transparent 58%),
    linear-gradient(135deg, rgba(0, 157, 255, 0.86), rgba(145, 38, 255, 0.82));
  color: #fff;
  box-shadow:
    0 0 28px rgba(39, 245, 255, 0.28),
    0 20px 46px rgba(0, 0, 0, 0.34);
  text-align: center;
}

.addon-download-button span {
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 950;
}

.addon-download-button small {
  color: rgba(235, 255, 255, 0.86);
  font-size: 0.92rem;
  font-weight: 850;
}

.addon-download-button.is-buy-action,
.addon-download-button.is-owned-action {
  border-color: rgba(86, 255, 98, 0.92);
  background:
    radial-gradient(circle at 50% 0%, rgba(135, 255, 112, 0.42), transparent 58%),
    linear-gradient(135deg, rgba(32, 220, 83, 0.95), rgba(0, 129, 69, 0.9));
  box-shadow:
    0 0 22px rgba(86, 255, 98, 0.58),
    0 0 56px rgba(86, 255, 98, 0.3),
    0 20px 46px rgba(0, 0, 0, 0.34);
}

.addon-download-button.is-owned-action span::after {
  content: "";
}

.addon-download-button.is-coming-soon-action {
  cursor: default;
  border-color: rgba(255, 210, 92, 0.82);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 210, 92, 0.36), transparent 58%),
    linear-gradient(135deg, rgba(255, 154, 45, 0.78), rgba(145, 38, 255, 0.72));
  box-shadow:
    0 0 24px rgba(255, 210, 92, 0.34),
    0 18px 42px rgba(0, 0, 0, 0.34);
}

@media (max-width: 980px) {
  .addon-detail-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .addon-detail-main {
    padding: 22px 14px 52px;
  }

  .addon-title-panel {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .addon-title-panel > img {
    width: 96px;
  }

  .addon-meta-grid {
    grid-template-columns: 1fr;
  }
}

.dvd-stage-panel {
  min-width: 0;
}

.dvd-stage {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--line) 45%, transparent) 1px, transparent 1px),
    linear-gradient(color-mix(in srgb, var(--line) 45%, transparent) 1px, transparent 1px),
    var(--surface-soft);
  background-size: 48px 48px;
}

.dvd-stage img {
  position: absolute;
  left: 0;
  top: 0;
  width: 120px;
  max-width: none;
  user-select: none;
  will-change: transform, filter;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.22));
}

.glyph-preview-panel {
  min-width: 0;
}

.glyph-editor-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(180px, 0.45fr);
  gap: 16px;
  align-items: start;
}

.glyph-preview-panel canvas,
.glyph-cell-preview canvas {
  display: block;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  image-rendering: pixelated;
}

.glyph-preview-panel canvas {
  width: min(100%, 620px);
  cursor: crosshair;
  touch-action: none;
}

.glyph-cell-preview {
  display: grid;
  gap: 10px;
}

.glyph-cell-preview span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.glyph-cell-preview canvas {
  width: 100%;
  max-width: 280px;
}

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

.glyph-result div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.glyph-result span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.glyph-result strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
}

.component-output-panel textarea {
  width: 100%;
  min-height: 620px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text);
  font: 0.88rem/1.6 Consolas, "Courier New", monospace;
}

.video-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.youtube-preview {
  position: relative;
  display: grid;
  min-height: 100%;
  color: #fff;
}

.youtube-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: brightness(0.72);
}

.youtube-preview span {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  background: #ff0033;
  font-weight: 800;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.youtube-preview:hover img {
  filter: brightness(0.58);
}

.addon-copy-card {
  width: 100%;
}

.feature-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  line-height: 1.55;
}

.addon-download-button {
  width: fit-content;
  margin-top: 22px;
  text-decoration: none;
}

.addon-download-button[aria-disabled="true"] {
  opacity: 0.72;
  pointer-events: none;
}

.profile-page {
  padding: clamp(40px, 6vw, 76px) clamp(20px, 5vw, 72px) 80px;
}

.profile-heading {
  max-width: 820px;
  margin-bottom: 28px;
}

.profile-heading h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.profile-heading p:not(.eyebrow) {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(320px, 1.25fr);
  gap: 24px;
  align-items: stretch;
}

.profile-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(24, 37, 72, 0.07);
}

.google-profile-card {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 24px;
}

.google-profile-card img {
  width: 112px;
  height: 112px;
  border: 1px solid var(--line);
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-soft);
}

.google-profile-card h2,
.minecraft-profile-card h2 {
  margin: 0;
  overflow-wrap: anywhere;
}

.google-profile-card p:not(.eyebrow),
.minecraft-profile-card p:not(.eyebrow) {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.minecraft-profile-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
  gap: 22px;
  align-items: center;
  padding: 24px;
  overflow: hidden;
}

.minecraft-skin-frame {
  display: grid;
  min-height: 260px;
  place-items: end center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, transparent 0 68%, color-mix(in srgb, var(--accent) 14%, transparent) 68%),
    var(--surface-soft);
}

.minecraft-skin-frame:has(img.is-head-preview) {
  place-items: center;
}

.minecraft-skin-frame img {
  width: min(180px, 88%);
  max-width: 88%;
  max-height: 240px;
  object-fit: contain;
  image-rendering: pixelated;
}

.minecraft-skin-frame img.is-head-preview {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border: 1px solid color-mix(in srgb, var(--primary) 44%, transparent);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
  object-fit: cover;
}

.profile-addons-section {
  margin-top: 34px;
}

.profile-actions-section {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(24, 37, 72, 0.07);
}

.profile-actions-section .google-button {
  margin-bottom: 14px;
}

.profile-bedrock-form {
  max-width: 720px;
}

.profile-skin-form {
  max-width: 720px;
  margin-top: 18px;
}

.skin-upload-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.skin-upload-row input[type="file"] {
  width: 100%;
  min-height: 48px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text);
}

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

.profile-addon-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(24, 37, 72, 0.07);
}

.profile-addon-card img {
  width: 96px;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
}

.profile-addon-card span {
  display: inline-flex;
  width: fit-content;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 16%, var(--surface));
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
}

.profile-addon-card strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 1.05rem;
}

.profile-addon-card p {
  display: -webkit-box;
  margin: 6px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.profile-empty-addons {
  margin: 0;
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  font-weight: 800;
}

.profile-colors-section {
  margin-top: 34px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(24, 37, 72, 0.07);
}

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

.profile-color-grid label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.profile-color-grid input {
  width: 100%;
  height: 48px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.profile-reset-colors {
  margin-top: 18px;
}

.admin-page {
  padding: clamp(40px, 6vw, 76px) clamp(20px, 5vw, 72px) 80px;
}

.admin-heading {
  max-width: 860px;
  margin-bottom: 28px;
}

.admin-heading h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.admin-heading p:not(.eyebrow) {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.admin-status-card,
.admin-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(24, 37, 72, 0.07);
}

.admin-status-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  padding: 22px;
}

.admin-status-card h2,
.admin-card h2 {
  margin: 0;
}

.admin-status-card p:not(.eyebrow) {
  margin: 8px 0 0;
  color: var(--muted);
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(340px, 1.1fr);
  gap: 22px;
}

.admin-card {
  min-width: 0;
  padding: 22px;
}

.admin-search,
.admin-addon-form input,
.admin-addon-form select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text);
  padding: 0 12px;
}

.admin-user-list {
  display: grid;
  gap: 10px;
  max-height: 520px;
  margin-top: 14px;
  overflow: auto;
  padding-right: 4px;
}

.admin-user-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.admin-user-row:hover {
  border-color: color-mix(in srgb, var(--primary) 54%, var(--line));
}

.admin-user-row span,
.admin-user-row em {
  min-width: 0;
}

.admin-user-row strong,
.admin-user-row small,
.admin-user-row em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-row small,
.admin-user-row em {
  color: var(--muted);
  font-style: normal;
}

.admin-selected-profile {
  margin-top: 14px;
}

.admin-profile-preview {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.admin-profile-preview img,
.admin-empty-skin {
  width: 110px;
  height: 110px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  object-fit: cover;
  image-rendering: pixelated;
}

.admin-empty-skin {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.admin-profile-preview strong,
.admin-profile-preview p {
  overflow-wrap: anywhere;
}

.admin-profile-preview p {
  margin: 7px 0 0;
  color: var(--muted);
}

.admin-owned-addons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.admin-owned-addons span {
  padding: 8px 10px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--primary) 16%, transparent);
  color: var(--text);
  font-weight: 800;
}

.admin-addon-form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.admin-addon-form label {
  color: var(--muted);
  font-weight: 800;
}

.admin-addon-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.admin-skin-download-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.admin-skin-download-actions .secondary-button {
  width: 100%;
}

.admin-ticket-list {
  display: grid;
  gap: 10px;
  max-height: 360px;
  margin-top: 14px;
  overflow: auto;
  padding-right: 4px;
}

.admin-ticket-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--primary) 13%, transparent), transparent 10rem),
    var(--surface-soft);
}

.admin-ticket-row span {
  min-width: 0;
}

.admin-ticket-row strong,
.admin-ticket-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-ticket-row small {
  margin-top: 4px;
  color: var(--muted);
}

.admin-ticket-row em {
  padding: 6px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 16%, transparent);
  color: var(--text);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
}

.admin-ticket-row b {
  grid-column: 1 / -1;
  color: var(--primary);
}

.whitelist-admin-page {
  padding: clamp(32px, 5vw, 64px);
}

.whitelist-admin-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1.1fr) minmax(260px, 0.55fr);
  gap: 18px;
  align-items: start;
}

.whitelist-script-card,
.whitelist-output-card {
  min-width: 0;
}

.whitelist-output-card {
  grid-column: 1 / -1;
}

.whitelist-config-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.whitelist-config-grid .wide {
  grid-column: 1 / -1;
}

.whitelist-config-grid label,
.whitelist-add-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 850;
}

.whitelist-config-grid input,
.whitelist-add-form select,
.whitelist-add-form input,
#whitelistSource,
#whitelistOutput {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text);
  outline: none;
}

.whitelist-config-grid input,
.whitelist-add-form select,
.whitelist-add-form input {
  min-height: 44px;
  padding: 0 12px;
}

.whitelist-file-import {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 850;
}

.whitelist-file-import input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px dashed rgba(82, 144, 255, 0.42);
  border-radius: 8px;
  background: rgba(82, 144, 255, 0.08);
  color: var(--text);
}

#whitelistSource,
#whitelistOutput {
  min-height: 430px;
  padding: 14px;
  resize: vertical;
  font: 0.9rem/1.5 Consolas, "Courier New", monospace;
}

#whitelistOutput {
  min-height: 360px;
}

.whitelist-add-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(96px, 0.35fr) auto;
  gap: 10px;
  margin-bottom: 14px;
}

.whitelist-player-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 120px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.whitelist-player-chip {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(82, 144, 255, 0.38);
  border-radius: 999px;
  background: rgba(82, 144, 255, 0.14);
  color: var(--text);
  cursor: pointer;
  font-weight: 850;
}

.whitelist-player-chip:hover {
  border-color: #ff6b6b;
  background: rgba(255, 107, 107, 0.16);
}

.whitelist-legacy-heading {
  margin-top: 18px;
}

.whitelist-legacy-list {
  align-content: flex-start;
  min-height: 150px;
}

.whitelist-legacy-chip {
  display: grid;
  gap: 3px;
  width: 100%;
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 168, 53, 0.45);
  border-radius: 8px;
  background: rgba(255, 168, 53, 0.12);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.whitelist-legacy-chip strong {
  font-size: 0.9rem;
}

.whitelist-legacy-chip span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.whitelist-legacy-chip:hover {
  border-color: #ff6b6b;
  background: rgba(255, 107, 107, 0.16);
}

.admin-remove-button {
  width: auto;
  height: 48px;
  padding: 0 18px;
  color: #fff;
  background: #b42318;
}

.admin-online-list {
  display: grid;
  gap: 14px;
}

.admin-online-page {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.admin-online-page strong {
  overflow-wrap: anywhere;
}

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

.admin-online-person {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid color-mix(in srgb, var(--primary) 62%, transparent);
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
  overflow: hidden;
}

.admin-online-person img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.duel-page {
  padding: clamp(38px, 6vw, 76px) clamp(16px, 5vw, 72px) 82px;
}

.duel-hero {
  max-width: 840px;
  margin-bottom: 28px;
}

.duel-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 3.6rem);
}

.duel-hero p:not(.eyebrow) {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.duel-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.75fr) minmax(420px, 1.35fr) minmax(240px, 0.7fr);
  gap: 20px;
  align-items: start;
}

.duel-panel,
.duel-board-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(24, 37, 72, 0.07);
}

.duel-panel {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.duel-panel label {
  color: var(--muted);
  font-weight: 800;
}

.duel-panel input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text);
  padding: 0 12px;
}

.duel-room-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.duel-wide-button {
  width: 100%;
}

.duel-side-actions,
.duel-controls {
  display: grid;
  gap: 10px;
}

.duel-side-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.duel-side-actions button,
.duel-controls button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text);
  cursor: pointer;
  font-weight: 900;
}

.duel-side-actions button:hover,
.duel-controls button:hover {
  border-color: color-mix(in srgb, var(--primary) 58%, var(--line));
}

.duel-online {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

#duelOnlineList {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.duel-online-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
  font-weight: 800;
}

.duel-online-pill b {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
}

.duel-online-pill small {
  color: var(--muted);
  font-weight: 800;
}

.duel-board-panel {
  padding: 18px;
}

.duel-scorebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  margin-bottom: 16px;
}

.duel-player-card,
.duel-turn-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.duel-player-card span,
.duel-turn-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.duel-player-card strong,
.duel-turn-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.duel-player-card meter {
  width: 100%;
}

.duel-player-card.is-red {
  border-color: color-mix(in srgb, #ff4d5d 48%, var(--line));
}

.duel-player-card.is-blue {
  border-color: color-mix(in srgb, #4aa3ff 48%, var(--line));
}

.duel-turn-card {
  min-width: 150px;
  text-align: center;
}

.duel-board {
  display: grid;
  width: min(100%, 620px);
  aspect-ratio: 1;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
  margin: 0 auto;
}

.duel-cell {
  display: grid;
  min-width: 0;
  min-height: 0;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent),
    var(--surface-soft);
  color: #fff;
  font-weight: 1000;
  font-size: clamp(1rem, 3vw, 2rem);
}

.duel-cell.has-red {
  background: linear-gradient(145deg, #ff4d5d, #8e1f33);
  box-shadow: 0 0 28px rgba(255, 77, 93, 0.35);
}

.duel-cell.has-blue {
  background: linear-gradient(145deg, #4aa3ff, #174d9c);
  box-shadow: 0 0 28px rgba(74, 163, 255, 0.35);
}

.duel-controls {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 16px;
}

.duel-attack-button {
  background: #b42318 !important;
  color: #fff !important;
}

.duel-reset-button {
  background: color-mix(in srgb, var(--primary) 22%, var(--surface-soft)) !important;
}

.duel-log {
  display: grid;
  gap: 8px;
  max-height: 520px;
  overflow: auto;
}

.duel-log p {
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  line-height: 1.5;
}

.mines-duel-page {
  background:
    radial-gradient(circle at 18% 12%, rgba(237, 27, 118, 0.18), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(40, 198, 164, 0.16), transparent 24%),
    var(--bg);
}

.mines-duel-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at var(--mine-explosion-x, 50%) var(--mine-explosion-y, 50%), rgba(255, 214, 73, 0.98), rgba(255, 88, 10, 0.68) 18%, rgba(197, 24, 12, 0.36) 36%, transparent 68%);
  mix-blend-mode: screen;
}

body.mines-explosion-effect:not(.mines-round-loading) .mines-duel-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 214;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--mine-explosion-x, 50%) var(--mine-explosion-y, 50%), transparent 0 7%, rgba(255, 239, 173, 0.86) 8%, rgba(255, 105, 24, 0.38) 11%, transparent 18%),
    radial-gradient(circle at var(--mine-explosion-x, 50%) var(--mine-explosion-y, 50%), rgba(255, 72, 14, 0.28), transparent 38%);
  mix-blend-mode: screen;
  animation: mineShockwave 1.05s cubic-bezier(0.16, 0.68, 0.2, 1) forwards;
}

.mines-explosion-effect .mines-duel-page::after {
  animation: minesExplosionFlash 1.15s ease-out;
}

.mines-explosion-effect .mines-arena {
  animation: minesScreenShake 0.58s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

.mine-dirt-particle {
  position: fixed;
  z-index: 215;
  width: var(--particle-size, 11px);
  height: var(--particle-size, 11px);
  border-radius: 2px;
  pointer-events: none;
  background: linear-gradient(135deg, #6d3c1e, #c9782e 52%, #2d1a0f);
  box-shadow: 0 0 10px rgba(255, 111, 20, 0.38);
  animation: mineDirtParticle 1.35s cubic-bezier(0.16, 0.72, 0.2, 1) forwards;
}

body.mines-action-plant::before,
body.mines-action-discard::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
  opacity: 0.72;
  mix-blend-mode: screen;
  animation: minesTurnGlow 1.7s ease-in-out infinite alternate;
}

body.mines-action-plant::before {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 145, 37, 0.32), transparent 36%),
    linear-gradient(180deg, rgba(255, 107, 26, 0.12), transparent 55%);
}

body.mines-action-discard::before {
  background:
    radial-gradient(circle at 50% 42%, rgba(45, 255, 148, 0.28), transparent 38%),
    linear-gradient(180deg, rgba(42, 224, 148, 0.11), transparent 55%);
}

body.mines-round-loading .mines-duel-page::before {
  content: "";
  position: fixed;
  inset: -12vh 0 0;
  z-index: 260;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 2%, rgba(140, 82, 34, 0.95) 0 1.4%, transparent 1.6%),
    radial-gradient(circle at 18% 10%, rgba(77, 48, 28, 0.92) 0 1.1%, transparent 1.3%),
    radial-gradient(circle at 29% 6%, rgba(190, 128, 57, 0.94) 0 1.5%, transparent 1.7%),
    radial-gradient(circle at 42% 12%, rgba(101, 64, 36, 0.95) 0 1.2%, transparent 1.45%),
    radial-gradient(circle at 56% 5%, rgba(164, 103, 45, 0.95) 0 1.6%, transparent 1.8%),
    radial-gradient(circle at 70% 13%, rgba(86, 52, 30, 0.92) 0 1.1%, transparent 1.35%),
    radial-gradient(circle at 84% 7%, rgba(198, 137, 61, 0.94) 0 1.5%, transparent 1.75%),
    radial-gradient(circle at 94% 14%, rgba(112, 72, 39, 0.95) 0 1.3%, transparent 1.55%),
    repeating-linear-gradient(105deg, rgba(84, 53, 30, 0.96) 0 13px, rgba(138, 88, 43, 0.97) 13px 31px, rgba(205, 145, 67, 0.96) 31px 44px);
  box-shadow: inset 0 -48px 90px rgba(0, 0, 0, 0.55);
  animation: mineDirtCurtain 3s cubic-bezier(0.18, 0.78, 0.22, 1) forwards;
}

body.mines-round-loading .mines-duel-page::after {
  content: "Cargando nueva ronda";
  position: fixed;
  inset: 0;
  z-index: 270;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: transparent;
  color: #ffe7a8;
  font-family: "Bungee", "Inter", sans-serif;
  font-size: clamp(1.5rem, 4vw, 3.4rem);
  opacity: 0;
  text-shadow: 0 5px 0 rgba(67, 38, 18, 0.8), 0 0 28px rgba(255, 197, 94, 0.4);
  animation: mineLoadingText 3s ease forwards;
  mix-blend-mode: normal;
}

body:has(.tournament-player-panel:not([hidden])):not(.mines-in-game):not(.mines-explosion-effect):not(.mines-round-loading) .mines-duel-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 118;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 82%, rgba(255, 83, 30, 0.32), rgba(255, 159, 42, 0.13) 26%, transparent 58%),
    radial-gradient(ellipse at 48% 76%, rgba(255, 238, 128, 0.17), transparent 34%),
    repeating-linear-gradient(
      100deg,
      transparent 0 34px,
      rgba(255, 116, 27, 0.055) 34px 38px,
      transparent 38px 76px
    );
  filter: blur(0.4px) saturate(1.2);
  mix-blend-mode: screen;
  animation: tournamentHeatShader 2.6s ease-in-out infinite alternate;
}

.mines-hero h1,
.mines-vs-card > span,
.mines-round-card strong,
.mines-round-card em {
  font-family: "Bungee", "Inter", sans-serif;
  letter-spacing: 0;
}

.mines-hero h1 {
  color: #ff4f9a;
  text-shadow: 0 0 24px rgba(255, 79, 154, 0.26);
}

.mines-screen {
  display: grid;
  grid-template-columns: minmax(260px, 0.68fr) minmax(0, 1.32fr);
  gap: 22px;
  align-items: start;
}

.mines-in-game .mines-screen {
  grid-template-columns: 1fr;
}

.mines-in-game .mines-menu,
.mines-in-game .mines-hero,
.mines-in-game .mines-tournament-zone {
  display: none;
}

.mines-menu,
.mines-arena {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
}

.mines-menu {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.mines-tournament-zone {
  grid-column: 2;
  display: grid;
  gap: 14px;
  min-width: 0;
}

.mines-tournament-zone > .duel-wide-button {
  justify-self: start;
  min-width: min(240px, 100%);
}

.mines-profile-box {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.mines-profile-box strong,
.mines-profile-box p {
  overflow-wrap: anywhere;
}

.mines-profile-box p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.mines-lobby-chat {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 180;
  display: grid;
  justify-items: end;
  gap: 10px;
  pointer-events: none;
}

.mines-lobby-chat[hidden] {
  display: none;
}

body.mines-in-game .mines-lobby-chat {
  bottom: 82px;
}

.mines-chat-toggle,
.mines-audio-toggle,
.mines-audio-settings,
.mines-chat-panel {
  pointer-events: auto;
}

.mines-audio-toggle {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 15px;
  border: 1px solid rgba(85, 153, 255, 0.48);
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 10%, rgba(45, 255, 176, 0.22), transparent 38%),
    linear-gradient(135deg, rgba(16, 24, 39, 0.96), rgba(17, 37, 67, 0.96));
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3), 0 0 18px rgba(85, 153, 255, 0.15);
  font-family: "Bungee", "Inter", sans-serif;
  font-size: 0.78rem;
  cursor: pointer;
}

.mines-chat-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid rgba(45, 255, 176, 0.45);
  border-radius: 999px;
  background:
    radial-gradient(circle at 25% 12%, rgba(255, 79, 154, 0.26), transparent 38%),
    linear-gradient(135deg, rgba(18, 25, 42, 0.96), rgba(13, 44, 42, 0.96));
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32), 0 0 22px rgba(45, 255, 176, 0.14);
  font-family: "Bungee", "Inter", sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
}

.mines-chat-toggle strong {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #ff4f9a;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
}

.mines-audio-settings {
  display: grid;
  width: min(320px, calc(100vw - 28px));
  gap: 12px;
  padding-bottom: 12px;
  overflow: hidden;
  border: 1px solid rgba(85, 153, 255, 0.3);
  border-radius: 8px;
  background: rgba(12, 18, 31, 0.96);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(14px);
}

.mines-audio-settings[hidden] {
  display: none;
}

.mines-audio-settings label {
  display: grid;
  gap: 8px;
  padding: 0 12px;
}

.mines-audio-settings label span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #c9d6f1;
  font-size: 0.84rem;
  font-weight: 800;
}

.mines-audio-settings label strong {
  color: #2dffb0;
}

.mines-audio-settings input[type="range"] {
  width: 100%;
  accent-color: #5599ff;
  cursor: pointer;
}

.mines-chat-panel {
  width: min(360px, calc(100vw - 28px));
  overflow: hidden;
  border: 1px solid rgba(45, 255, 176, 0.28);
  border-radius: 8px;
  background: rgba(12, 18, 31, 0.96);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(14px);
}

.mines-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mines-chat-header strong {
  font-family: "Bungee", "Inter", sans-serif;
  color: #2dffb0;
  font-size: 0.86rem;
}

.mines-chat-header button {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
}

.mines-chat-messages {
  display: grid;
  gap: 10px;
  max-height: 310px;
  overflow-y: auto;
  padding: 12px;
}

.mines-chat-message {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.mines-chat-message img {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(45, 255, 176, 0.34);
  border-radius: 8px;
  object-fit: cover;
  image-rendering: pixelated;
  background: rgba(255, 255, 255, 0.05);
}

.mines-chat-message div {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.mines-chat-message strong {
  display: block;
  overflow: hidden;
  color: #ffffff;
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mines-chat-message p {
  margin: 4px 0 0;
  color: #c9d6f1;
  font-size: 0.9rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.mines-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 0 12px 12px;
}

.mines-chat-form input {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  padding: 11px 12px;
}

.mines-chat-form button {
  border: 0;
  border-radius: 8px;
  background: #5599ff;
  color: #fff;
  padding: 0 14px;
  font-weight: 900;
  cursor: pointer;
}

.mines-chat-note {
  margin: -2px 12px 12px;
  color: #8fa0c1;
  font-size: 0.78rem;
}

.mines-room-menu {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, #5599ff 45%, var(--line));
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(85, 153, 255, 0.13), rgba(40, 198, 164, 0.08)),
    var(--surface-soft);
}

.mines-room-menu[hidden] {
  display: none;
}

.mines-room-menu label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.minigames-hub-page {
  min-height: calc(100vh - 76px);
  background:
    radial-gradient(circle at 16% 24%, rgba(255, 79, 154, 0.18), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(45, 255, 176, 0.13), transparent 30%),
    var(--bg);
}

.minigames-hero h1 {
  font-family: "Bungee", "Inter", sans-serif;
  color: #ff4f9a;
  text-shadow: 0 0 22px rgba(255, 79, 154, 0.22);
}

.minigame-select-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 54px;
}

.minigame-card {
  position: relative;
  display: grid;
  min-height: 280px;
  align-content: end;
  gap: 12px;
  overflow: hidden;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid color-mix(in srgb, #5599ff 36%, var(--line));
  border-radius: 8px;
  background:
    linear-gradient(180deg, transparent 0%, rgba(5, 10, 20, 0.76) 58%, rgba(5, 10, 20, 0.94) 100%),
    var(--surface);
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.minigame-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.9;
  background:
    radial-gradient(circle at 20% 22%, rgba(255, 79, 154, 0.35), transparent 22%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 7px, transparent 7px 18px);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.minigame-card.is-rope::before {
  background:
    radial-gradient(circle at 78% 26%, rgba(255, 208, 80, 0.32), transparent 24%),
    linear-gradient(90deg, transparent 45%, rgba(255, 255, 255, 0.18) 46% 54%, transparent 55%),
    repeating-linear-gradient(0deg, rgba(45, 255, 176, 0.09) 0 9px, transparent 9px 20px);
}

.minigame-card.is-idle::before {
  background:
    radial-gradient(circle at 50% 35%, rgba(45, 255, 176, 0.34), transparent 22%),
    radial-gradient(circle at 18% 72%, rgba(255, 208, 90, 0.22), transparent 26%),
    repeating-radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.08) 0 3px, transparent 3px 16px);
}

.minigame-card:hover::before {
  transform: scale(1.06);
  opacity: 1;
}

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

.minigame-logo-image {
  width: min(260px, 72%);
  max-height: 105px;
  object-fit: contain;
  justify-self: start;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.42));
}

.minigame-kicker {
  color: #2dffb0;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.minigame-card strong {
  font-family: "Bungee", "Inter", sans-serif;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1;
}

.minigame-card p {
  max-width: 560px;
  margin: 0;
  color: #dce6ff;
  line-height: 1.55;
}

.idle-page {
  min-height: calc(100vh - 76px);
  background:
    radial-gradient(circle at 50% 20%, rgba(45, 255, 176, 0.14), transparent 30%),
    radial-gradient(circle at 10% 65%, rgba(255, 208, 90, 0.11), transparent 28%),
    var(--bg);
}

.idle-hero h1 {
  font-family: "Bungee", "Inter", sans-serif;
  color: #ff6fb1;
  text-shadow: 0 0 24px rgba(255, 111, 177, 0.24);
}

.idle-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  width: min(1420px, calc(100% - 28px));
  margin: 0 auto 44px;
}

.idle-core-panel,
.teto-leaderboard,
.idle-shop {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.teto-leaderboard {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 420;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 14px;
  width: min(340px, calc(100vw - 22px));
  max-height: none;
  overflow: hidden;
  padding: 16px;
  border-width: 0 1px 0 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 111, 177, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(43, 18, 30, 0.92), rgba(15, 9, 16, 0.96));
  color: #fff4dc;
  transform: translateX(0);
  animation: tetoLeaderboardSlide 0.24s ease both;
}

.teto-leaderboard[hidden] {
  display: none;
}

.teto-leaderboard-toggle {
  position: fixed;
  z-index: 410;
  left: 18px;
  top: 84px;
  min-height: 50px;
  padding: 0 18px;
  border: 4px solid #2b1512;
  border-radius: 12px;
  background: linear-gradient(180deg, #ff75ad, #ff3f6d);
  color: #fff;
  font-family: "Bungee", "Inter", sans-serif;
  box-shadow:
    inset 0 0 0 3px rgba(255, 244, 190, 0.3),
    0 7px 0 #8b173a,
    0 16px 24px rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.teto-leaderboard-toggle[aria-expanded="true"] {
  opacity: 0;
  pointer-events: none;
}

.teto-leaderboard-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.teto-leaderboard-heading h2 {
  margin: 0;
  color: #ff75ad;
  font-family: "Bungee", "Inter", sans-serif;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  line-height: 1;
  text-shadow: 2px 2px 0 #2b1512;
}

.teto-leaderboard-close {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 3px solid #2b1512;
  border-radius: 8px;
  background: #ff4f76;
  color: #fff;
  font-family: "Bungee", "Inter", sans-serif;
  box-shadow:
    inset 0 0 0 3px rgba(255, 244, 190, 0.3),
    0 5px 0 #8b173a;
  cursor: pointer;
}

.teto-leaderboard-note {
  margin: 0;
  padding: 10px;
  border: 2px solid rgba(255, 208, 90, 0.26);
  border-radius: 8px;
  background: rgba(42, 17, 21, 0.72);
  color: #ffd4e7;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
}

.teto-leaderboard-note.is-ready {
  border-color: rgba(45, 255, 176, 0.42);
  color: #2dffb0;
}

.teto-leaderboard-list {
  display: grid;
  gap: 8px;
  overflow-y: auto;
  padding-right: 3px;
}

.teto-leaderboard-empty {
  margin: 0;
  color: #ffd4e7;
  font-size: 0.86rem;
  line-height: 1.45;
}

.teto-leaderboard-row {
  display: grid;
  grid-template-columns: 28px 46px minmax(0, 1fr) minmax(72px, auto);
  align-items: center;
  gap: 8px;
  min-height: 76px;
  padding: 8px;
  border: 2px solid rgba(255, 208, 90, 0.24);
  border-radius: 8px;
  background: rgba(42, 17, 21, 0.78);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: transform 0.14s ease, border-color 0.14s ease, filter 0.14s ease;
}

.teto-leaderboard-row:hover {
  transform: translateX(5px);
  border-color: rgba(255, 117, 173, 0.72);
  filter: brightness(1.08);
}

.teto-leaderboard-row.is-top-1 {
  border-color: rgba(255, 208, 90, 0.82);
  background: linear-gradient(90deg, rgba(135, 82, 13, 0.86), rgba(42, 17, 21, 0.82));
}

.teto-leaderboard-row.is-top-2 {
  border-color: rgba(218, 226, 235, 0.74);
}

.teto-leaderboard-row.is-top-3 {
  border-color: rgba(217, 142, 77, 0.74);
}

.teto-leaderboard-rank {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 6px;
  background: #ff4f76;
  color: #fff;
  font-family: "Bungee", "Inter", sans-serif;
  font-size: 0.75rem;
  box-shadow: 0 4px 0 #8b173a;
}

.teto-leaderboard-row img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 6px 7px rgba(0, 0, 0, 0.4));
}

.teto-leaderboard-info,
.teto-leaderboard-score {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.teto-leaderboard-info strong,
.teto-leaderboard-score strong {
  min-width: 0;
  font-family: "Bungee", "Inter", sans-serif;
  font-size: 0.72rem;
  line-height: 1.1;
}

.teto-leaderboard-info strong {
  overflow: hidden;
  color: #fff4dc;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teto-leaderboard-info small,
.teto-leaderboard-score small {
  min-width: 0;
  color: rgba(255, 212, 231, 0.82);
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1.15;
}

.teto-leaderboard-info em {
  min-width: 0;
  color: #2dffb0;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1.12;
}

.teto-leaderboard-score {
  justify-items: end;
  text-align: right;
}

.teto-leaderboard-score strong {
  color: #ffd05a;
}

.teto-leaderboard-score small {
  color: #2dffb0;
}

.teto-leaderboard-actions {
  display: none;
  grid-column: 3 / -1;
  justify-self: stretch;
}

.teto-leaderboard-row.is-open .teto-leaderboard-actions {
  display: grid;
}

.teto-leaderboard-actions button {
  min-height: 36px;
  border: 3px solid #2b1512;
  border-radius: 8px;
  background: #ffd05a;
  color: #2b1512;
  font-family: "Bungee", "Inter", sans-serif;
  font-size: 0.74rem;
  box-shadow:
    inset 0 0 0 2px rgba(255, 244, 190, 0.34),
    0 5px 0 #8b5b17;
  cursor: pointer;
}

.teto-watch-status {
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: min(560px, calc(100vw - 28px));
  padding: 9px 13px;
  border: 4px solid #2b1512;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(45, 255, 176, 0.95), rgba(255, 208, 90, 0.95));
  color: #2b1512;
  font-family: "Bungee", "Inter", sans-serif;
  font-size: clamp(0.72rem, 1.4vw, 0.92rem);
  text-align: center;
  box-shadow:
    inset 0 0 0 3px rgba(255, 244, 190, 0.32),
    0 7px 0 #16865d,
    0 16px 28px rgba(0, 0, 0, 0.26);
}

.teto-watch-status[hidden] {
  display: none;
}

.teto-watch-status button {
  min-height: 34px;
  border: 3px solid #2b1512;
  border-radius: 8px;
  background: #ff4f76;
  color: #fff;
  font-family: inherit;
  font-size: 0.68rem;
  box-shadow: 0 4px 0 #8b173a;
  cursor: pointer;
}

.teto-watch-status:not(.is-spectating) button {
  display: none;
}

body.is-idle-spectating .teto-shop-button {
  filter: grayscale(1) brightness(0.58);
  pointer-events: none;
}

.event-audio-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 8%, rgba(140, 72, 255, 0.18), transparent 30%),
    radial-gradient(circle at 80% 12%, rgba(0, 202, 255, 0.12), transparent 26%),
    radial-gradient(circle at 50% 80%, rgba(83, 32, 184, 0.16), transparent 28%),
    #070d18;
  color: #edf5ff;
}

.event-audio-page .topbar {
  display: none;
}

.event-youtube-player {
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

#eventAudioPool {
  display: none;
}

.event-audio-shell {
  display: grid;
  width: min(1480px, calc(100% - 28px));
  margin: 14px auto;
}

.event-audio-listener,
.event-admin-studio,
.event-studio-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(136, 158, 190, 0.28);
  border-radius: 12px;
  background: rgba(17, 25, 39, 0.86);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
}

.event-audio-listener {
  display: grid;
  min-height: calc(100vh - 28px);
  align-content: center;
  justify-items: center;
  gap: 18px;
  padding: clamp(26px, 6vw, 70px);
  text-align: center;
}

.event-audio-listener[hidden],
.event-admin-studio[hidden] {
  display: none;
}

.event-audio-listener h1 {
  margin: 0;
  max-width: 760px;
  color: #ffffff;
  font-family: "Bungee", "Inter", sans-serif;
  font-size: clamp(2rem, 6vw, 4.7rem);
  line-height: 0.95;
  text-shadow: 0 0 28px rgba(140, 72, 255, 0.42);
}

.event-audio-listener p {
  max-width: 650px;
  margin: 0;
  color: #c9d6f1;
  font-size: 1rem;
  line-height: 1.6;
}

.event-audio-orb {
  position: absolute;
  inset: auto auto 50%;
  width: min(440px, 72vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(45, 255, 176, 0.32), transparent 58%),
    conic-gradient(from 0deg, rgba(45, 255, 176, 0.08), rgba(85, 153, 255, 0.28), rgba(255, 79, 154, 0.18), rgba(45, 255, 176, 0.08));
  filter: blur(1px);
  opacity: 0.8;
  transform: translateY(50%);
  animation: eventAudioPulse 2.8s ease-in-out infinite alternate;
}

.event-audio-orb span {
  position: absolute;
  inset: 18%;
  border: 2px dashed rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  animation: idleSpin 18s linear infinite;
}

.event-audio-actions {
  display: grid;
  width: min(500px, 100%);
  gap: 14px;
}

.event-audio-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  border: 1px solid rgba(136, 158, 190, 0.32);
  border-radius: 999px;
  background: rgba(17, 25, 39, 0.82);
  color: #c9d6f1;
  padding: 0 20px 0 10px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.event-audio-toggle span {
  position: relative;
  width: 54px;
  height: 30px;
  border-radius: 999px;
  background: rgba(136, 158, 190, 0.22);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.06);
}

.event-audio-toggle span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #8ea3c4;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.event-audio-toggle.is-on {
  border-color: rgba(45, 255, 176, 0.54);
  color: #ffffff;
  background: rgba(45, 255, 176, 0.12);
}

.event-audio-toggle.is-on span {
  background: linear-gradient(90deg, rgba(45, 255, 176, 0.62), rgba(85, 153, 255, 0.58));
}

.event-audio-toggle.is-on span::after {
  background: #ffffff;
  box-shadow: 0 0 16px rgba(45, 255, 176, 0.62);
  transform: translateX(24px);
}

.event-audio-resume {
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid rgba(255, 208, 90, 0.7);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 79, 154, 0.86), rgba(255, 208, 90, 0.86));
  color: #09111e;
  cursor: pointer;
  font-weight: 1000;
  box-shadow:
    0 0 26px rgba(255, 208, 90, 0.28),
    0 16px 34px rgba(0, 0, 0, 0.26);
}

.event-volume-control,
.event-admin-player label {
  display: grid;
  gap: 8px;
  text-align: left;
}

.event-volume-control span,
.event-admin-player label span {
  color: #2dffb0;
  font-weight: 900;
  text-transform: uppercase;
}

.event-volume-control input[type="range"] {
  appearance: none;
  width: 100%;
  height: 18px;
  border: 2px solid rgba(45, 255, 176, 0.38);
  border-radius: 999px;
  background: linear-gradient(90deg, #2dffb0, #5599ff);
}

.event-volume-control input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 28px;
  height: 28px;
  border: 3px solid #07101d;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 18px rgba(45, 255, 176, 0.42);
}

.event-volume-control strong {
  color: #ffffff;
  font-family: "Bungee", "Inter", sans-serif;
}

.event-admin-studio {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: calc(100vh - 28px);
  background:
    linear-gradient(135deg, rgba(8, 13, 28, 0.98), rgba(5, 10, 22, 0.96));
}

.event-studio-sidebar {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 22px;
  padding: 20px 16px;
  border-right: 1px solid rgba(136, 158, 190, 0.16);
  background: rgba(6, 11, 24, 0.72);
}

.event-studio-logo {
  display: grid;
  gap: 10px;
  justify-items: start;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(136, 158, 190, 0.16);
}

.event-studio-logo img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.event-studio-logo strong {
  color: #ffffff;
  font-family: "Bungee", "Inter", sans-serif;
  font-size: 1.2rem;
}

.event-studio-sidebar nav {
  display: grid;
  gap: 9px;
}

.event-studio-sidebar nav button {
  padding: 11px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #aebbd6;
  cursor: pointer;
  font-weight: 800;
  text-align: left;
}

.event-studio-sidebar nav button.is-active {
  background: linear-gradient(90deg, rgba(140, 72, 255, 0.72), rgba(83, 32, 184, 0.82));
  color: #ffffff;
}

.event-studio-sidebar p {
  align-self: end;
  margin: 0;
  color: #8ea3c4;
  font-size: 0.86rem;
  line-height: 1.45;
}

.event-studio-main {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
}

.event-studio-now {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(136, 158, 190, 0.14);
}

.event-cover-art {
  display: grid;
  width: 86px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(140, 72, 255, 0.42);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 79, 154, 0.52), transparent 28%),
    radial-gradient(circle at 36% 30%, rgba(0, 202, 255, 0.42), transparent 34%),
    #12182a;
}

.event-cover-art span {
  width: 46px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(7, 13, 24, 0.86);
  box-shadow: 0 0 28px rgba(140, 72, 255, 0.62);
}

.event-studio-now div:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.event-studio-now div:nth-child(2) span,
.event-studio-now div:nth-child(2) small {
  color: #8ea3c4;
  font-size: 0.8rem;
}

.event-studio-now div:nth-child(2) strong {
  overflow: hidden;
  color: #ffffff;
  font-size: 1.25rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.event-transport button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(140, 72, 255, 0.42);
  border-radius: 999px;
  background: rgba(17, 25, 39, 0.86);
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
}

.event-waveform {
  grid-column: 2 / -1;
  display: flex;
  align-items: end;
  gap: 3px;
  height: 28px;
}

.event-waveform span {
  flex: 1;
  height: calc(20% + var(--wave, 40%));
  min-width: 3px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, #00caff, #8c48ff);
  opacity: 0.76;
  animation: eventWaveDance 0.8s ease-in-out infinite alternate;
}

.event-waveform span:nth-child(2n) { --wave: 66%; animation-delay: -0.2s; }
.event-waveform span:nth-child(3n) { --wave: 36%; animation-delay: -0.35s; }
.event-waveform span:nth-child(5n) { --wave: 82%; animation-delay: -0.55s; }

.event-studio-views {
  min-height: 0;
}

.event-studio-view {
  display: none;
  gap: 14px;
}

.event-studio-view.is-active {
  display: grid;
}

.event-studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 14px;
}

.event-studio-card {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 16px;
}

.event-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.event-card-heading h2 {
  margin: 0;
  color: #ffffff;
  font-size: 1rem;
  text-transform: uppercase;
}

.event-card-heading span {
  color: #a987ff;
  font-size: 0.82rem;
  font-weight: 800;
}

.event-track-loader label,
.event-playlist-builder label,
.event-control-card label,
.event-admin-player label {
  display: grid;
  gap: 8px;
}

.event-track-loader label span,
.event-playlist-builder label span,
.event-control-card label span,
.event-master-volume span {
  color: #a987ff;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.event-track-loader input,
.event-track-loader select,
.event-playlist-builder input,
.event-playlist-builder select,
.event-control-card input {
  min-height: 42px;
  width: 100%;
  border: 1px solid rgba(136, 158, 190, 0.35);
  border-radius: 8px;
  background: rgba(7, 13, 24, 0.86);
  color: #ffffff;
  padding: 0 12px;
  font: inherit;
}

.event-card-heading button,
.event-wide-button,
.event-playlist-add-row button,
.event-track-actions button,
.event-track-row > button {
  min-height: 38px;
  border: 1px solid rgba(140, 72, 255, 0.48);
  border-radius: 8px;
  background: rgba(83, 32, 184, 0.78);
  color: #ffffff;
  padding: 0 12px;
  font-weight: 900;
  cursor: pointer;
}

.event-volume-card {
  grid-template-columns: 1fr;
}

.event-volume-card input[type="range"] {
  appearance: none;
  width: 100%;
  height: 18px;
  border: 2px solid rgba(45, 255, 176, 0.3);
  border-radius: 999px;
  background: linear-gradient(90deg, #2dffb0, #5599ff, #8c48ff);
}

.event-volume-card input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 28px;
  height: 28px;
  border: 3px solid #07101d;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 18px rgba(85, 153, 255, 0.42);
}

.event-active-card,
.event-playlists-card {
  min-height: 360px;
}

.event-active-tracks,
.event-draft-playlist,
.event-playlist-list {
  display: grid;
  gap: 10px;
}

.event-track-row,
.event-playlist-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 0.45fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(136, 158, 190, 0.18);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(140, 72, 255, 0.16), transparent 42%),
    rgba(7, 13, 24, 0.68);
}

.event-track-row.is-playing {
  border-color: rgba(45, 255, 176, 0.46);
  box-shadow: 0 0 26px rgba(45, 255, 176, 0.08);
}

.event-track-row strong,
.event-playlist-row strong {
  display: block;
  overflow: hidden;
  color: #ffffff;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-track-row small,
.event-playlist-row small {
  color: #8ea3c4;
  font-weight: 800;
}

.event-track-time {
  display: inline-block;
  margin-left: 8px;
  color: #2dffb0;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
}

.event-playlist-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.event-track-volume {
  display: grid;
  gap: 6px;
}

.event-track-volume span {
  color: #a987ff;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.event-track-volume input[type="range"] {
  appearance: none;
  width: 100%;
  height: 12px;
  border: 1px solid rgba(136, 158, 190, 0.28);
  border-radius: 999px;
  background: linear-gradient(90deg, #2dffb0, #5599ff);
}

.event-track-volume input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 3px solid #07101d;
  border-radius: 50%;
  background: #ffffff;
}

.event-track-volume strong {
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 900;
}

.event-track-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 8px;
}

.event-track-actions button.is-on {
  border-color: rgba(45, 255, 176, 0.58);
  background: rgba(45, 255, 176, 0.18);
  color: #2dffb0;
}

.event-empty-state {
  margin: 0;
  padding: 18px;
  border: 1px dashed rgba(136, 158, 190, 0.26);
  border-radius: 10px;
  color: #8ea3c4;
  font-weight: 800;
  text-align: center;
}

.event-playlist-add-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.event-eq-curve {
  position: relative;
  height: 190px;
  overflow: hidden;
  border: 1px solid rgba(136, 158, 190, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(rgba(136, 158, 190, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(136, 158, 190, 0.08) 1px, transparent 1px),
    rgba(7, 13, 24, 0.72);
  background-size: 36px 28px;
}

.event-eq-curve::before {
  content: "";
  position: absolute;
  inset: 30% 6% 28%;
  border-radius: 50%;
  border-top: 4px solid #00caff;
  border-right: 4px solid #72ff8f;
  border-bottom: 4px solid #ff4f9a;
  filter: drop-shadow(0 0 16px rgba(0, 202, 255, 0.45));
}

.event-eq-curve i {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #00caff;
  box-shadow: 0 0 14px currentColor;
}

.event-eq-curve i:nth-child(1) { left: 14%; top: 58%; color: #8c48ff; }
.event-eq-curve i:nth-child(2) { left: 32%; top: 42%; color: #00caff; }
.event-eq-curve i:nth-child(3) { left: 52%; top: 34%; color: #72ff8f; }
.event-eq-curve i:nth-child(4) { left: 72%; top: 52%; color: #ffd05a; }
.event-eq-curve i:nth-child(5) { left: 88%; top: 44%; color: #ff4f9a; }

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

.event-eq-bands span,
.event-shortcuts {
  padding: 10px;
  border: 1px solid rgba(140, 72, 255, 0.26);
  border-radius: 8px;
  background: rgba(7, 13, 24, 0.62);
  color: #c9d6f1;
  font-size: 0.76rem;
}

.event-mixer-card {
  grid-column: 1 / -1;
}

.event-master-volume {
  width: min(280px, 100%);
}

.event-master-volume input {
  width: 100%;
}

.event-mixer-tracks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.event-mixer-tracks article {
  display: grid;
  gap: 12px;
  min-height: 190px;
  padding: 12px;
  border: 1px solid rgba(136, 158, 190, 0.18);
  border-radius: 8px;
  background: rgba(7, 13, 24, 0.66);
}

.event-mixer-tracks article div {
  display: flex;
  align-items: end;
  justify-content: center;
  height: 120px;
}

.event-mixer-tracks article div span {
  width: 22px;
  height: 82%;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, #ff4f9a, #ffd05a 46%, #2dffb0);
  box-shadow: 0 0 18px rgba(45, 255, 176, 0.28);
}

.event-control-card {
  min-height: 250px;
}

.event-admin-note {
  margin: 0;
  color: #c9d6f1;
  line-height: 1.45;
}

@keyframes eventWaveDance {
  to {
    height: calc(28% + var(--wave, 40%));
    opacity: 1;
  }
}

@keyframes eventAudioPulse {
  from {
    transform: translateY(50%) scale(0.94);
    opacity: 0.62;
  }

  to {
    transform: translateY(50%) scale(1.04);
    opacity: 0.92;
  }
}

.idle-core-panel {
  position: relative;
  display: grid;
  gap: 22px;
  justify-items: center;
  padding: clamp(24px, 5vw, 48px);
  overflow: hidden;
}

.idle-core-panel > * {
  position: relative;
  z-index: 2;
}

.idle-core {
  position: relative;
  display: grid;
  width: min(390px, 74vw);
  aspect-ratio: 1;
  place-items: center;
  align-content: center;
  gap: 6px;
  border: 1px solid rgba(45, 255, 176, 0.45);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 111, 177, 0.34), rgba(255, 208, 90, 0.12) 36%, rgba(10, 18, 31, 0.96) 66%),
    var(--surface);
  box-shadow:
    inset 0 0 42px rgba(45, 255, 176, 0.26),
    0 0 72px rgba(45, 255, 176, 0.24);
  cursor: pointer;
  user-select: none;
}

.teto-core {
  align-content: end;
  padding: 26px;
}

.idle-core-ring {
  position: absolute;
  inset: 9%;
  border: 3px dashed rgba(255, 208, 90, 0.72);
  border-radius: 50%;
  animation: idleSpin 16s linear infinite;
}

.idle-core.is-joyita-skin {
  border-color: rgba(255, 244, 190, 0.86);
  box-shadow:
    inset 0 0 42px rgba(255, 244, 190, 0.3),
    inset 0 0 82px rgba(255, 79, 154, 0.18),
    0 0 36px rgba(255, 244, 190, 0.5),
    0 0 92px rgba(255, 79, 154, 0.34);
}

.idle-core.is-joyita-skin .idle-core-ring {
  border-color: rgba(255, 244, 190, 0.96);
  border-style: solid;
  box-shadow:
    0 0 18px rgba(255, 244, 190, 0.7),
    inset 0 0 18px rgba(255, 79, 154, 0.38);
  animation: idleSpin 7s linear infinite, tetoJoyitaRingPulse 1.5s ease-in-out infinite alternate;
}

.idle-core.is-joyita-skin .idle-core-ring::before,
.idle-core.is-joyita-skin .idle-core-ring::after {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 28%, #fff4be 0 5px, transparent 6px),
    radial-gradient(circle at 78% 18%, #ff75ad 0 4px, transparent 5px),
    radial-gradient(circle at 86% 72%, #2dffb0 0 5px, transparent 6px),
    radial-gradient(circle at 28% 84%, #ffd05a 0 4px, transparent 5px);
  filter: drop-shadow(0 0 10px rgba(255, 244, 190, 0.8));
  animation: tetoJoyitaSparkles 2.4s linear infinite;
}

.idle-core.is-joyita-skin .idle-core-ring::after {
  inset: -34px;
  opacity: 0.68;
  transform: rotate(38deg);
  animation-duration: 3.2s;
  animation-direction: reverse;
}

.teto-food-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.teto-core img#tetoSkinImage {
  position: relative;
  z-index: 2;
  width: min(66%, 240px);
  max-height: 58%;
  object-fit: contain;
  image-rendering: auto;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.35));
  transform-origin: 50% 85%;
}

.idle-core strong {
  position: relative;
  z-index: 3;
  max-width: 86%;
  color: #ffffff;
  font-family: "Bungee", "Inter", sans-serif;
  font-size: clamp(2.2rem, 7vw, 4.8rem);
  line-height: 1;
  overflow-wrap: anywhere;
  text-align: center;
}

.idle-core small {
  position: relative;
  z-index: 3;
  color: #2dffb0;
  font-weight: 900;
  text-transform: uppercase;
}

.idle-core.is-pulsing {
  animation: idlePulse 0.22s ease;
}

.idle-core.is-pulsing img#tetoSkinImage {
  animation: tetoPush 0.24s ease;
}

.idle-core.is-auto-feeding img#tetoSkinImage {
  animation: tetoAutoFeedPush 0.34s ease;
}

.idle-core.is-leveling img#tetoSkinImage {
  animation: tetoLevelJump 0.9s cubic-bezier(0.18, 0.88, 0.24, 1.18) both;
}

.idle-core.is-changing-skin::after {
  content: "";
  position: absolute;
  inset: 4%;
  z-index: 5;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle at 35% 65%, rgba(255, 255, 255, 0.92), transparent 12%),
    radial-gradient(circle at 62% 56%, rgba(255, 244, 190, 0.78), transparent 14%),
    radial-gradient(circle at 46% 38%, rgba(255, 111, 177, 0.5), transparent 22%),
    radial-gradient(circle, rgba(255, 255, 255, 0.46), transparent 62%);
  filter: blur(6px);
  animation: tetoSkinSmoke 0.92s ease-out both;
}

.idle-core.is-changing-skin img#tetoSkinImage {
  animation: tetoSkinSwap 0.82s ease both;
}

.idle-core.is-pulsing img#tetoSkinImage,
.idle-core.is-auto-feeding img#tetoSkinImage,
.idle-core.is-leveling img#tetoSkinImage,
.idle-core.is-changing-skin img#tetoSkinImage {
  animation-fill-mode: both;
}

.teto-flying-food {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(42px, 10vw, 76px);
  transform: translate(var(--food-x, 0), var(--food-y, -140px)) rotate(var(--food-rot, 0deg));
  animation: tetoFoodFly 0.72s cubic-bezier(0.16, 0.88, 0.3, 1) forwards;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.35));
}

.teto-level-banner,
.teto-skin-banner,
.teto-boost-banner {
  position: fixed;
  z-index: 650;
  top: 90px;
  left: 50%;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -28px) scale(0.82);
  color: #fff4be;
  font-family: "Bungee", "Inter", sans-serif;
  font-size: clamp(1.6rem, 5vw, 4rem);
  text-align: center;
  text-shadow:
    4px 4px 0 #8b173a,
    0 0 24px rgba(255, 79, 154, 0.8),
    0 0 46px rgba(255, 209, 90, 0.76);
}

.teto-level-banner.is-visible {
  animation: tetoLevelBannerPop 1.55s ease both;
}

.teto-skin-banner {
  z-index: 760;
  color: #fff4be;
}

.teto-skin-banner.is-visible {
  animation: tetoSkinBannerPop 1.65s ease both;
}

.teto-boost-banner {
  z-index: 770;
  color: #ffffff;
  text-shadow:
    4px 4px 0 #0f8f7c,
    0 0 24px rgba(45, 255, 176, 0.9),
    0 0 52px rgba(255, 79, 154, 0.86);
}

.teto-boost-banner.is-visible {
  animation: tetoBoostBannerPop 2.2s ease both;
}

body.is-teto-party .idle-core-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 38, 110, 0.48), transparent 32%),
    radial-gradient(circle at 82% 28%, rgba(0, 255, 188, 0.42), transparent 30%),
    radial-gradient(circle at 52% 78%, rgba(58, 96, 255, 0.38), transparent 34%),
    linear-gradient(120deg, rgba(255, 0, 84, 0.2), rgba(0, 255, 200, 0.18), rgba(88, 84, 255, 0.18));
  background-blend-mode: screen;
  mix-blend-mode: screen;
  opacity: 0.82;
  animation: tetoPartyRgbRoom 1.15s steps(1, end) infinite;
}

body.is-teto-party .idle-core-panel {
  animation: tetoPartyRoomGlow 1.15s steps(1, end) infinite;
  box-shadow:
    0 0 38px rgba(45, 255, 176, 0.26),
    0 0 82px rgba(255, 79, 154, 0.22),
    0 24px 70px rgba(0, 0, 0, 0.28);
}

body.is-teto-party .teto-core img#tetoSkinImage {
  animation: tetoPartyJump 0.54s ease-in-out infinite;
  filter:
    hue-rotate(0deg)
    saturate(1.45)
    drop-shadow(0 24px 22px rgba(0, 0, 0, 0.46))
    drop-shadow(0 0 18px rgba(45, 255, 176, 0.48));
}

body.is-teto-party .teto-core::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 58%);
  animation: tetoPartyPulse 0.9s ease-in-out infinite;
}

.teto-level-particles {
  position: fixed;
  inset: 0;
  z-index: 640;
  overflow: hidden;
  pointer-events: none;
}

.teto-level-particles span {
  position: absolute;
  left: 50%;
  top: 52%;
  width: var(--level-size, 16px);
  height: var(--level-size, 16px);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), transparent 42%),
    linear-gradient(135deg, #ff4f9a, #ffd05a);
  box-shadow: 0 0 18px rgba(255, 79, 154, 0.75);
  animation: tetoLevelParticleBurst 1.45s cubic-bezier(0.14, 0.76, 0.26, 1) var(--level-delay, 0s) both;
}

.teto-level-particles span.is-skin {
  border-radius: 999px 999px 999px 2px;
  background:
    radial-gradient(circle at 36% 28%, rgba(255, 255, 255, 0.95), transparent 20%),
    linear-gradient(135deg, #ffd05a, #ff4f9a 52%, #2dffb0);
  box-shadow:
    0 0 16px rgba(255, 208, 90, 0.86),
    0 0 30px rgba(255, 79, 154, 0.58);
  animation-duration: 1.8s;
}

.teto-click-ripple-layer {
  position: fixed;
  inset: 0;
  z-index: 745;
  overflow: hidden;
  pointer-events: none;
}

.teto-click-ripple {
  position: absolute;
  width: 34px;
  height: 34px;
  border: 4px solid rgba(255, 244, 190, 0.95);
  border-radius: 50%;
  box-shadow:
    0 0 24px rgba(255, 79, 154, 0.95),
    inset 0 0 24px rgba(255, 208, 90, 0.48);
  transform: translate(-50%, -50%) scale(0.2);
  animation: tetoSkinRipple 0.9s ease-out both;
}

.teto-device-lock {
  position: fixed;
  z-index: 920;
  left: 50%;
  top: 50%;
  display: grid;
  width: min(520px, calc(100vw - 32px));
  gap: 10px;
  padding: 24px;
  border: 5px solid #2b1512;
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 208, 90, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(46, 20, 24, 0.98), rgba(18, 10, 13, 0.98));
  color: #fff4be;
  text-align: center;
  transform: translate(-50%, -50%);
  box-shadow:
    inset 0 0 0 4px #f0a33a,
    0 24px 54px rgba(0, 0, 0, 0.48);
}

.teto-device-lock strong {
  font-family: "Bungee", "Inter", sans-serif;
  font-size: clamp(1.1rem, 3vw, 2rem);
  line-height: 1.05;
  text-shadow: 3px 3px 0 #2b1512;
}

.teto-device-lock span {
  color: rgba(255, 244, 220, 0.9);
}

body.is-idle-online-locked .idle-core-panel > *:not(.teto-device-lock) {
  filter: grayscale(0.8) brightness(0.62);
}

body.is-idle-online-locked .idle-core,
body.is-idle-online-locked button {
  pointer-events: none;
}

.teto-click-float {
  position: absolute;
  z-index: 2;
  color: #fff4be;
  font-family: "Bungee", "Inter", sans-serif;
  font-size: clamp(1rem, 2.4vw, 1.65rem);
  line-height: 1;
  text-shadow:
    3px 3px 0 #2b1512,
    0 0 16px rgba(255, 208, 90, 0.85),
    0 0 28px rgba(255, 79, 154, 0.45);
  transform: translate(-50%, -50%);
  animation: tetoClickFloat 0.95s cubic-bezier(0.14, 0.76, 0.26, 1) both;
  white-space: nowrap;
}

.teto-click-float.is-hot {
  color: #2dffb0;
  text-shadow:
    3px 3px 0 #2b1512,
    0 0 18px rgba(45, 255, 176, 0.88),
    0 0 34px rgba(255, 208, 90, 0.58);
}

.teto-combo-badge {
  position: absolute;
  z-index: 7;
  left: 50%;
  top: clamp(112px, 17vh, 170px);
  display: grid;
  min-width: clamp(132px, 14vw, 210px);
  justify-items: center;
  padding: 8px 16px 10px;
  border: 4px solid #2b1512;
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 244, 190, 0.28), transparent 42%),
    linear-gradient(180deg, #ff75ad, #ff3f6d);
  color: #fff;
  font-family: "Bungee", "Inter", sans-serif;
  text-shadow: 3px 3px 0 #2b1512;
  transform: translateX(-50%);
  box-shadow:
    inset 0 0 0 3px rgba(255, 244, 190, 0.32),
    0 8px 0 #8b173a,
    0 18px 28px rgba(0, 0, 0, 0.24);
  animation: tetoComboPop 0.28s ease both;
}

.teto-combo-badge span {
  font-size: 0.62rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.teto-combo-badge strong {
  font-size: clamp(1.3rem, 2.6vw, 2.1rem);
  line-height: 1;
}

.teto-combo-badge.is-hot {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 244, 190, 0.32), transparent 42%),
    linear-gradient(180deg, #ffd05a, #ff4f76);
  animation: tetoComboPop 0.28s ease both, tetoComboGlow 0.72s ease-in-out infinite alternate;
}

.teto-combo-badge.is-max {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.34), transparent 42%),
    linear-gradient(135deg, #2dffb0, #ffd05a 52%, #ff4f9a);
}

.teto-event-badge {
  position: absolute;
  z-index: 8;
  left: 50%;
  top: clamp(58px, 9vh, 92px);
  display: grid;
  min-width: min(360px, calc(100vw - 42px));
  justify-items: center;
  gap: 2px;
  padding: 10px 18px;
  border: 4px solid #2b1512;
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.28), transparent 42%),
    linear-gradient(135deg, #2dffb0, #ffd05a 45%, #ff4f9a);
  color: #1c100b;
  font-family: "Bungee", "Inter", sans-serif;
  text-align: center;
  transform: translateX(-50%);
  box-shadow:
    inset 0 0 0 3px rgba(255, 244, 190, 0.42),
    0 8px 0 #8b5b17,
    0 18px 30px rgba(0, 0, 0, 0.28);
  animation: tetoEventBadgePulse 1.1s ease-in-out infinite alternate;
}

.teto-event-badge span,
.teto-event-badge small {
  font-size: 0.66rem;
  text-shadow: none;
}

.teto-event-badge strong {
  font-size: clamp(0.9rem, 2.1vw, 1.35rem);
  line-height: 1.05;
  text-shadow: 2px 2px 0 rgba(255, 244, 190, 0.45);
}

.teto-food-rain {
  position: fixed;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  pointer-events: none;
}

.teto-food-rain img {
  position: absolute;
  top: -90px;
  width: var(--rain-size, 54px);
  height: var(--rain-size, 54px);
  object-fit: contain;
  image-rendering: pixelated;
  filter:
    drop-shadow(0 10px 10px rgba(0, 0, 0, 0.35))
    drop-shadow(0 0 10px rgba(255, 208, 90, 0.45));
  animation: tetoFoodRainFall var(--rain-duration, 4.6s) linear both;
}

body.is-teto-special-event .idle-core-panel {
  box-shadow:
    inset 0 0 52px rgba(255, 208, 90, 0.2),
    0 0 48px rgba(45, 255, 176, 0.18),
    0 24px 70px rgba(0, 0, 0, 0.28);
}

.teto-food-challenge {
  position: fixed;
  inset: 0;
  z-index: 820;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 208, 90, 0.26), transparent 34%),
    rgba(20, 8, 18, 0.62);
  backdrop-filter: blur(5px);
}

.teto-food-challenge[hidden] {
  display: none;
}

.teto-food-challenge-card {
  display: grid;
  width: min(420px, 100%);
  justify-items: center;
  gap: 12px;
  padding: 22px;
  border: 5px solid #2b1512;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 244, 190, 0.36), transparent 42%),
    linear-gradient(180deg, rgba(255, 79, 154, 0.96), rgba(93, 35, 25, 0.96));
  box-shadow:
    inset 0 0 0 3px rgba(255, 244, 190, 0.34),
    0 12px 0 #7d1d25,
    0 26px 70px rgba(0, 0, 0, 0.42);
  color: #fff4be;
  font-family: "Bungee", "Inter", sans-serif;
  text-align: center;
  animation: tetoFoodChallengeEnter 0.36s cubic-bezier(0.18, 0.88, 0.24, 1.18) both;
}

.teto-food-challenge-kicker {
  color: #2dffb0;
  font-size: 0.72rem;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 #1d1016;
}

.teto-food-challenge-card strong {
  font-size: clamp(1.35rem, 4.4vw, 2.6rem);
  line-height: 1.02;
  text-shadow:
    3px 3px 0 #8b173a,
    0 0 22px rgba(255, 244, 190, 0.5);
}

.teto-food-challenge-target {
  display: grid;
  width: clamp(116px, 30vw, 170px);
  aspect-ratio: 1;
  place-items: center;
  border: 4px solid #fff4be;
  border-radius: 30px;
  background:
    radial-gradient(circle, rgba(255, 244, 190, 0.52), rgba(255, 208, 90, 0.18) 62%, rgba(43, 21, 18, 0.88));
  box-shadow:
    inset 0 -8px 0 rgba(43, 21, 18, 0.22),
    0 10px 0 #8b173a,
    0 0 34px rgba(255, 208, 90, 0.42);
  cursor: pointer;
  touch-action: none;
  user-select: none;
}

.teto-food-challenge-target img {
  width: 76%;
  height: 76%;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 12px 10px rgba(0, 0, 0, 0.34));
  animation: tetoFoodChallengeFood 0.9s ease-in-out infinite alternate;
}

.teto-food-challenge-target.is-holding {
  transform: translateY(6px) scale(0.97);
  box-shadow:
    inset 0 -3px 0 rgba(43, 21, 18, 0.22),
    0 4px 0 #8b173a,
    0 0 42px rgba(45, 255, 176, 0.48);
}

.teto-food-challenge-meter {
  width: min(290px, 88%);
  height: 20px;
  overflow: hidden;
  border: 3px solid #2b1512;
  border-radius: 999px;
  background: rgba(33, 14, 16, 0.72);
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.36);
}

.teto-food-challenge-meter span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.18) 0 10px, transparent 10px 20px),
    linear-gradient(90deg, #2dffb0, #ffd05a, #ff4f9a);
  transition: width 0.08s linear;
}

.teto-food-challenge-card small {
  color: rgba(255, 244, 190, 0.9);
  font-family: "Inter", sans-serif;
  font-size: 0.86rem;
  font-weight: 900;
}

body.is-teto-food-challenge .idle-core,
body.is-teto-food-challenge .idle-collect-button {
  pointer-events: none;
  filter: saturate(0.72) brightness(0.82);
}

.idle-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.idle-stats article {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  text-align: center;
}

.idle-stats span,
.idle-upgrade small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.idle-stats strong {
  color: #ffd05a;
  font-family: "Bungee", "Inter", sans-serif;
}

.idle-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.idle-shop {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
}

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

.idle-skin-heading {
  margin-top: 8px;
}

.idle-upgrade,
.idle-skin-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.idle-upgrade.is-affordable,
.idle-skin-card.is-affordable {
  border-color: rgba(45, 255, 176, 0.44);
  box-shadow: 0 0 22px rgba(45, 255, 176, 0.08);
}

.idle-upgrade strong,
.idle-skin-card strong {
  color: #ffffff;
}

.idle-upgrade p {
  margin: 5px 0 7px;
  color: #c9d6f1;
  line-height: 1.35;
}

.idle-upgrade button,
.idle-skin-card button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: #5599ff;
  color: #ffffff;
  padding: 0 14px;
  font-weight: 900;
  cursor: pointer;
}

.idle-upgrade button:disabled,
.idle-skin-card button:disabled {
  cursor: default;
  filter: grayscale(0.7);
  opacity: 0.45;
}

.idle-skin-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.idle-skin-card {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(104px, 1fr) auto auto;
  align-content: stretch;
  gap: 10px;
  padding: 12px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  text-align: center;
}

.idle-skin-bonus {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 3px solid #2b1512;
  border-radius: 12px;
  background:
    radial-gradient(circle at 18% 20%, rgba(45, 255, 176, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(255, 79, 154, 0.28), rgba(255, 208, 90, 0.18));
  text-align: center;
  box-shadow: inset 0 0 0 2px rgba(255, 244, 190, 0.18);
}

.idle-skin-bonus strong {
  color: #fff3d3;
  font-family: "Bungee", "Inter", sans-serif;
  text-shadow: 2px 2px 0 #451827;
}

.idle-skin-bonus span,
.idle-skin-card small {
  color: rgba(255, 244, 220, 0.82);
  font-weight: 800;
}

.idle-skin-card small {
  grid-column: 1 / -1;
  font-size: 0.75rem;
}

.idle-skin-card.is-selected {
  filter: drop-shadow(0 0 18px rgba(255, 111, 177, 0.45));
}

.idle-skin-card.is-legendary {
  filter:
    drop-shadow(0 0 16px rgba(255, 208, 90, 0.42))
    drop-shadow(0 0 20px rgba(255, 79, 154, 0.25));
}

.idle-skin-card.is-legendary strong::after {
  content: "Legendaria";
  display: block;
  width: fit-content;
  margin: 5px auto 0;
  padding: 3px 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffd05a, #ff75ad, #2dffb0);
  color: #2b1512;
  font-size: 0.56rem;
  line-height: 1;
  text-shadow: none;
}

.idle-skin-card.is-locked img {
  filter: grayscale(1) contrast(1.05) brightness(0.82) drop-shadow(0 12px 14px rgba(0, 0, 0, 0.34));
}

.idle-skin-card.is-owned:not(.is-selected) img {
  opacity: 0.68;
  filter: grayscale(0.85) drop-shadow(0 12px 14px rgba(0, 0, 0, 0.34));
}

.idle-skin-preview {
  display: grid;
  grid-column: 1 / -1;
  min-height: clamp(96px, 12vw, 158px);
  place-items: center;
}

.idle-skin-card img {
  width: min(100%, 150px);
  max-height: clamp(96px, 12vw, 158px);
  border-radius: 0;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.34));
}

.idle-skin-card strong {
  grid-column: 1 / -1;
  color: #fff3d3;
  font-family: "Bungee", "Inter", sans-serif;
  font-size: clamp(0.72rem, 1.4vw, 0.96rem);
  line-height: 1.08;
  text-shadow: 2px 2px 0 #451827;
}

.idle-skin-card button {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 64px;
  justify-self: stretch;
  border: 0;
  border-radius: 18px;
  background: #ff4268;
  color: #ffffff;
  padding: 8px 8px 10px;
  font-family: "Bungee", "Inter", sans-serif;
  font-size: clamp(0.68rem, 1.05vw, 0.88rem);
  line-height: 1.08;
  box-shadow: 0 8px 0 #9b1834, 0 14px 22px rgba(0, 0, 0, 0.24);
  text-transform: uppercase;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}

.idle-skin-card button span {
  display: block;
}

.idle-skin-card.is-selected button {
  background: #2dffb0;
  color: #12372f;
  box-shadow: 0 8px 0 #16865d, 0 14px 22px rgba(0, 0, 0, 0.24);
}

.idle-skin-card.is-owned:not(.is-selected) button {
  background: #7b7f89;
  color: #f6f7fb;
  box-shadow: 0 8px 0 #424650, 0 14px 22px rgba(0, 0, 0, 0.24);
}

@keyframes idleSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes tetoJoyitaRingPulse {
  from {
    filter: brightness(1) saturate(1);
  }

  to {
    filter: brightness(1.28) saturate(1.45);
  }
}

@keyframes tetoJoyitaSparkles {
  0% {
    opacity: 0.42;
    transform: rotate(0deg) scale(0.94);
  }

  50% {
    opacity: 1;
    transform: rotate(180deg) scale(1.04);
  }

  100% {
    opacity: 0.42;
    transform: rotate(360deg) scale(0.94);
  }
}

@keyframes idlePulse {
  50% {
    transform: scale(1.035);
  }
}

@keyframes tetoPush {
  35% {
    transform: translateY(10px) scale(1.08, 0.9) rotate(-2deg);
  }

  70% {
    transform: translateY(-5px) scale(0.96, 1.04) rotate(2deg);
  }
}

@keyframes tetoCartoonIdle {
  0%,
  100% {
    transform: translateY(0) scale(1, 1);
  }

  25% {
    transform: translateY(-10px) scale(0.98, 1.06);
  }

  50% {
    transform: translateY(8px) scale(1.05, 0.94);
  }

  75% {
    transform: translateY(-6px) scale(0.99, 1.035);
  }
}

@keyframes tetoAutoFeedPush {
  0% {
    transform: translateY(0) scale(1) rotate(0);
  }

  42% {
    transform: translateY(8px) scale(1.07, 0.91) rotate(3deg);
  }

  74% {
    transform: translateY(-8px) scale(0.96, 1.04) rotate(-2deg);
  }

  100% {
    transform: translateY(0) scale(1) rotate(0);
  }
}

@keyframes tetoLevelJump {
  0% {
    transform: translateY(0) scale(1) rotate(0);
    filter: drop-shadow(0 0 0 rgba(255, 79, 154, 0));
  }

  32% {
    transform: translateY(-42px) scale(1.12, 0.94) rotate(-5deg);
    filter: drop-shadow(0 0 34px rgba(255, 79, 154, 0.9));
  }

  58% {
    transform: translateY(10px) scale(0.92, 1.08) rotate(4deg);
  }

  78% {
    transform: translateY(-12px) scale(1.04, 0.98) rotate(-2deg);
  }

  100% {
    transform: translateY(0) scale(1) rotate(0);
    filter: drop-shadow(0 0 0 rgba(255, 79, 154, 0));
  }
}

@keyframes tetoSkinSmoke {
  0% {
    opacity: 0;
    transform: scale(0.3) rotate(0deg);
  }

  28% {
    opacity: 0.92;
    transform: scale(0.92) rotate(30deg);
  }

  100% {
    opacity: 0;
    transform: scale(1.45) rotate(100deg);
  }
}

@keyframes tetoSkinSwap {
  0% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    filter: brightness(1) blur(0) drop-shadow(0 18px 24px rgba(0, 0, 0, 0.35));
  }

  42% {
    opacity: 0.18;
    transform: scale(0.82) rotate(-7deg);
    filter: brightness(1.8) blur(3px) drop-shadow(0 0 26px rgba(255, 244, 190, 0.9));
  }

  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    filter: brightness(1) blur(0) drop-shadow(0 18px 24px rgba(0, 0, 0, 0.35));
  }
}

@keyframes tetoSceneUnlock {
  0% {
    opacity: 0;
    transform: translateY(-22px) scale(0.86);
    filter: brightness(1.7);
  }

  20%,
  76% {
    opacity: 1;
    transform: translateY(0) scale(1.04);
    filter: brightness(1.2);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: brightness(1);
  }
}

@keyframes tetoLevelBannerPop {
  0% {
    opacity: 0;
    transform: translate(-50%, -38px) scale(0.72) rotate(-3deg);
  }

  22% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1.12) rotate(2deg);
  }

  72% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1) rotate(0);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -22px) scale(0.92) rotate(2deg);
  }
}

@keyframes tetoSkinBannerPop {
  0% {
    opacity: 0;
    transform: translate(-50%, -42px) scale(0.68) rotate(-4deg);
  }

  18% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1.16) rotate(3deg);
  }

  62% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1) rotate(0);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -28px) scale(0.9) rotate(-2deg);
  }
}

@keyframes tetoBoostBannerPop {
  0% {
    opacity: 0;
    transform: translate(-50%, -38px) scale(0.72) rotate(-5deg);
  }

  18%,
  74% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1.05) rotate(1deg);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -18px) scale(0.92) rotate(3deg);
  }
}

@keyframes tetoPartyRgbRoom {
  0% {
    background:
      radial-gradient(circle at 18% 24%, rgba(255, 38, 110, 0.5), transparent 32%),
      radial-gradient(circle at 82% 28%, rgba(0, 255, 188, 0.38), transparent 30%),
      radial-gradient(circle at 52% 78%, rgba(58, 96, 255, 0.34), transparent 34%),
      linear-gradient(120deg, rgba(255, 0, 84, 0.2), rgba(0, 255, 200, 0.18), rgba(88, 84, 255, 0.18));
    filter: saturate(1.35) brightness(1.08);
  }

  25% {
    background:
      radial-gradient(circle at 18% 24%, rgba(0, 255, 200, 0.5), transparent 32%),
      radial-gradient(circle at 82% 28%, rgba(255, 226, 70, 0.4), transparent 30%),
      radial-gradient(circle at 52% 78%, rgba(255, 64, 166, 0.36), transparent 34%),
      linear-gradient(120deg, rgba(0, 255, 188, 0.2), rgba(255, 220, 64, 0.18), rgba(255, 56, 148, 0.18));
    filter: saturate(1.55) brightness(1.12);
  }

  50% {
    background:
      radial-gradient(circle at 18% 24%, rgba(73, 92, 255, 0.48), transparent 32%),
      radial-gradient(circle at 82% 28%, rgba(255, 50, 112, 0.46), transparent 30%),
      radial-gradient(circle at 52% 78%, rgba(0, 255, 184, 0.38), transparent 34%),
      linear-gradient(120deg, rgba(78, 86, 255, 0.2), rgba(255, 42, 102, 0.18), rgba(0, 255, 190, 0.18));
    filter: saturate(1.45) brightness(1.1);
  }

  75% {
    background:
      radial-gradient(circle at 18% 24%, rgba(255, 230, 80, 0.46), transparent 32%),
      radial-gradient(circle at 82% 28%, rgba(50, 220, 255, 0.42), transparent 30%),
      radial-gradient(circle at 52% 78%, rgba(255, 66, 126, 0.4), transparent 34%),
      linear-gradient(120deg, rgba(255, 220, 64, 0.2), rgba(42, 220, 255, 0.18), rgba(255, 50, 110, 0.18));
    filter: saturate(1.6) brightness(1.14);
  }

  100% {
    background:
      radial-gradient(circle at 18% 24%, rgba(255, 38, 110, 0.5), transparent 32%),
      radial-gradient(circle at 82% 28%, rgba(0, 255, 188, 0.38), transparent 30%),
      radial-gradient(circle at 52% 78%, rgba(58, 96, 255, 0.34), transparent 34%),
      linear-gradient(120deg, rgba(255, 0, 84, 0.2), rgba(0, 255, 200, 0.18), rgba(88, 84, 255, 0.18));
    filter: saturate(1.35) brightness(1.08);
  }
}

@keyframes tetoPartyRoomGlow {
  0% {
    box-shadow:
      0 0 42px rgba(255, 38, 110, 0.24),
      0 0 88px rgba(0, 255, 188, 0.2),
      0 24px 70px rgba(0, 0, 0, 0.28);
  }

  25% {
    box-shadow:
      0 0 42px rgba(0, 255, 188, 0.24),
      0 0 88px rgba(255, 220, 64, 0.2),
      0 24px 70px rgba(0, 0, 0, 0.28);
  }

  50% {
    box-shadow:
      0 0 42px rgba(78, 86, 255, 0.24),
      0 0 88px rgba(255, 42, 102, 0.2),
      0 24px 70px rgba(0, 0, 0, 0.28);
  }

  75% {
    box-shadow:
      0 0 42px rgba(255, 220, 64, 0.24),
      0 0 88px rgba(42, 220, 255, 0.2),
      0 24px 70px rgba(0, 0, 0, 0.28);
  }

  100% {
    box-shadow:
      0 0 42px rgba(255, 38, 110, 0.24),
      0 0 88px rgba(0, 255, 188, 0.2),
      0 24px 70px rgba(0, 0, 0, 0.28);
  }
}

@keyframes tetoPartyJump {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg) scale(1);
  }

  45% {
    transform: translateY(-20px) rotate(2deg) scale(1.045);
  }
}

@keyframes tetoPartyPulse {
  0%,
  100% {
    opacity: 0.28;
    transform: scale(0.94);
  }

  50% {
    opacity: 0.58;
    transform: scale(1.08);
  }
}

@keyframes tetoSkinRipple {
  0% {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(0.18);
    filter: hue-rotate(0deg);
  }

  70% {
    opacity: 0.48;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(22);
    filter: hue-rotate(40deg);
  }
}

@keyframes tetoClickFloat {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.72);
    filter: blur(2px);
  }

  18% {
    opacity: 1;
    filter: blur(0);
  }

  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--float-x, 0px)), -132px) scale(1.08);
  }
}

@keyframes tetoComboPop {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px) scale(0.9);
  }

  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes tetoComboGlow {
  0% {
    filter: brightness(1) saturate(1);
  }

  100% {
    filter: brightness(1.18) saturate(1.3);
  }
}

@keyframes tetoEventBadgePulse {
  0% {
    transform: translateY(0) scale(1);
    filter: brightness(1);
    box-shadow:
      0 18px 38px rgba(255, 73, 125, 0.28),
      0 0 24px rgba(255, 213, 92, 0.16);
  }

  100% {
    transform: translateY(-4px) scale(1.02);
    filter: brightness(1.16);
    box-shadow:
      0 22px 48px rgba(255, 73, 125, 0.42),
      0 0 36px rgba(255, 213, 92, 0.32);
  }
}

@keyframes tetoFoodRainFall {
  0% {
    opacity: 0;
    transform: translate3d(-50%, -18vh, 0) rotate(0deg) scale(0.86);
  }

  12% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform:
      translate3d(calc(-50% + var(--rain-x, 0px)), 112vh, 0)
      rotate(var(--rain-rot, 180deg))
      scale(1.08);
  }
}

@keyframes tetoFoodChallengeEnter {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.82) rotate(-2deg);
  }

  72% {
    transform: translateY(-4px) scale(1.04) rotate(1deg);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0);
  }
}

@keyframes tetoFoodChallengeFood {
  0% {
    transform: translateY(0) rotate(-3deg) scale(1);
    filter:
      drop-shadow(0 12px 10px rgba(0, 0, 0, 0.34))
      brightness(1);
  }

  100% {
    transform: translateY(-7px) rotate(3deg) scale(1.06);
    filter:
      drop-shadow(0 16px 14px rgba(0, 0, 0, 0.36))
      brightness(1.16);
  }
}

@keyframes tetoLevelParticleBurst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2) rotate(0);
  }

  16% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform:
      translate(calc(-50% + var(--level-x, 0px)), calc(-50% + var(--level-y, -50vh)))
      scale(1.15)
      rotate(var(--level-rot, 180deg));
  }
}

@keyframes tetoFoodFly {
  0% {
    opacity: 0;
    transform: translate(var(--food-x, 0), var(--food-y, -140px)) rotate(var(--food-rot, 0deg)) scale(0.65);
  }

  45% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -20%) rotate(0deg) scale(0.18);
  }
}

@keyframes idleMenuDrop {
  from {
    opacity: 0;
    transform: translateY(-14px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.idle-page {
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  background: #160b12;
}

.idle-menu-toggle {
  position: fixed;
  z-index: 620;
  top: 16px;
  left: 16px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  gap: 4px;
  padding: 10px;
  border: 4px solid #2b1512;
  border-radius: 12px;
  background: linear-gradient(180deg, #ff75ad, #ff4268);
  box-shadow:
    inset 0 0 0 3px rgba(255, 244, 190, 0.5),
    0 7px 0 #8b173a,
    0 14px 24px rgba(0, 0, 0, 0.32);
  cursor: pointer;
}

.idle-menu-toggle span {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff4be;
  box-shadow: 2px 2px 0 #8b173a;
}

.idle-floating-menu {
  position: fixed;
  z-index: 610;
  top: 76px;
  left: 16px;
  width: min(320px, calc(100vw - 32px));
  align-items: stretch;
  flex-direction: column;
  gap: 14px;
  border: 4px solid #2b1512;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(92, 43, 28, 0.98), rgba(27, 13, 11, 0.98));
  box-shadow:
    inset 0 0 0 3px #f0a33a,
    0 10px 0 #0b0605,
    0 22px 38px rgba(0, 0, 0, 0.42);
  animation: idleMenuDrop 0.22s ease both;
}

.idle-floating-menu[hidden] {
  display: none;
}

.idle-floating-menu .topbar-actions {
  width: 100%;
  flex-direction: column;
  align-items: stretch;
}

.idle-floating-menu .secondary-button {
  width: 100%;
}

.idle-layout {
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  background: #160b12;
}

.idle-layout .teto-leaderboard {
  border-width: 0 1px 0 0;
  border-radius: 0;
  box-shadow: inset -10px 0 24px rgba(0, 0, 0, 0.24);
}

.idle-core-panel {
  position: relative;
  height: 100vh;
  min-height: 620px;
  max-height: 100vh;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  justify-items: center;
  gap: 6px;
  overflow: hidden;
  padding: 10px 24px 14px;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 50% calc(54% - var(--scene-crowd-offset, 0%)), color-mix(in srgb, var(--scene-accent, #ff6fb1) 24%, transparent), transparent var(--scene-glow-size, 24%)),
    linear-gradient(90deg, color-mix(in srgb, var(--scene-depth, #160b12) 72%, transparent), transparent 20%, transparent 80%, color-mix(in srgb, var(--scene-depth, #160b12) 78%, transparent)),
    var(--scene-layer),
    var(--scene-image),
    url("assets/idleteto/backgrounds/teto-room-background.png"),
    var(--scene-depth, #160b12);
  background-size: cover;
  background-position: center;
  box-shadow: inset -18px 0 38px rgba(0, 0, 0, 0.24);
  transition: background 0.55s ease, box-shadow 0.55s ease;
}

.idle-core-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 56%, color-mix(in srgb, var(--scene-accent, #ff6fb1) 16%, transparent), transparent var(--scene-soft-size, 22%)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 2px, transparent 2px 7px);
  pointer-events: none;
}

.idle-core-panel[data-scene-theme="room"] {
  --scene-layer:
    radial-gradient(ellipse at 15% 74%, rgba(255, 208, 90, 0.38) 0 5%, transparent 5.4%),
    linear-gradient(90deg, transparent 0 10%, rgba(255, 255, 255, 0.1) 10% 11%, transparent 11% 89%, rgba(255, 255, 255, 0.09) 89% 90%, transparent 90%),
    repeating-linear-gradient(90deg, transparent 0 64px, rgba(255, 255, 255, 0.03) 64px 68px);
}

.idle-core-panel[data-scene-theme="home"] {
  --scene-layer:
    linear-gradient(180deg, transparent 0 62%, rgba(82, 38, 24, 0.42) 62% 100%),
    radial-gradient(ellipse at 16% 70%, rgba(255, 117, 173, 0.3) 0 8%, transparent 8.6%),
    radial-gradient(ellipse at 84% 72%, rgba(244, 162, 97, 0.32) 0 12%, transparent 12.6%);
}

.idle-core-panel[data-scene-theme="food"] {
  --scene-layer:
    repeating-linear-gradient(90deg, transparent 0 86px, rgba(255, 255, 255, 0.06) 86px 92px),
    radial-gradient(circle at 12% 75%, rgba(155, 225, 93, 0.36) 0 5%, transparent 5.6%),
    radial-gradient(circle at 86% 70%, rgba(255, 179, 71, 0.32) 0 7%, transparent 7.6%);
}

.idle-core-panel[data-scene-theme="cafe"] {
  --scene-layer:
    linear-gradient(180deg, rgba(255, 111, 177, 0.13) 0 18%, transparent 18%),
    repeating-linear-gradient(90deg, rgba(255, 208, 90, 0.13) 0 42px, transparent 42px 86px),
    radial-gradient(circle at 82% 32%, rgba(255, 244, 190, 0.26) 0 7%, transparent 7.5%);
}

.idle-core-panel[data-scene-theme="store"] {
  --scene-layer:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 18px, transparent 18px 74px),
    linear-gradient(90deg, rgba(15, 36, 48, 0.58) 0 20%, transparent 20% 80%, rgba(15, 36, 48, 0.58) 80%),
    radial-gradient(circle at 50% 78%, rgba(255, 208, 90, 0.18) 0 18%, transparent 19%);
}

.idle-core-panel[data-scene-theme="restaurant"] {
  --scene-layer:
    repeating-linear-gradient(90deg, transparent 0 74px, rgba(255, 208, 90, 0.12) 74px 78px),
    radial-gradient(ellipse at 20% 74%, rgba(251, 113, 133, 0.26) 0 10%, transparent 10.5%),
    radial-gradient(ellipse at 76% 74%, rgba(249, 115, 22, 0.24) 0 12%, transparent 12.5%);
}

.idle-core-panel[data-scene-theme="outdoor"] {
  --scene-layer:
    linear-gradient(180deg, rgba(96, 165, 250, 0.18) 0 34%, transparent 34%),
    radial-gradient(circle at 14% 42%, rgba(74, 222, 128, 0.42) 0 9%, transparent 9.5%),
    radial-gradient(circle at 86% 40%, rgba(74, 222, 128, 0.32) 0 12%, transparent 12.5%);
}

.idle-core-panel[data-scene-theme="city"] {
  --scene-layer:
    repeating-linear-gradient(90deg, rgba(96, 165, 250, 0.16) 0 38px, rgba(96, 165, 250, 0.04) 38px 74px, transparent 74px 92px),
    linear-gradient(180deg, transparent 0 52%, rgba(17, 24, 39, 0.5) 52% 100%);
}

.idle-core-panel[data-scene-theme="giant"] {
  --scene-layer:
    repeating-linear-gradient(90deg, rgba(250, 204, 21, 0.13) 0 16px, transparent 16px 46px),
    repeating-linear-gradient(0deg, transparent 0 36px, rgba(255, 255, 255, 0.05) 36px 38px),
    radial-gradient(circle at 50% 78%, rgba(255, 244, 190, 0.22) 0 28%, transparent 29%);
}

.idle-core-panel[data-scene-theme="fantasy"] {
  --scene-layer:
    radial-gradient(circle at 18% 32%, rgba(251, 113, 133, 0.36) 0 8%, transparent 8.5%),
    radial-gradient(circle at 82% 28%, rgba(192, 132, 252, 0.3) 0 10%, transparent 10.5%),
    radial-gradient(ellipse at 50% 82%, rgba(255, 208, 90, 0.3) 0 22%, transparent 23%);
}

.teto-scene-badge {
  z-index: 5;
  display: grid;
  justify-items: center;
  max-width: 500px;
  gap: 2px;
  padding: 7px 12px;
  border: 3px solid #2b1512;
  border-radius: 12px;
  background: color-mix(in srgb, var(--scene-depth, #160b12) 76%, transparent);
  color: #fff4dc;
  text-align: center;
  box-shadow:
    inset 0 0 0 2px color-mix(in srgb, var(--scene-accent, #ff6fb1) 72%, #fff4be),
    0 8px 0 rgba(11, 6, 5, 0.76),
    0 14px 22px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
}

.teto-scene-badge span,
.teto-scene-badge small {
  color: color-mix(in srgb, var(--scene-accent, #ff6fb1) 84%, #fff4dc);
  font-weight: 900;
  line-height: 1.25;
}

.teto-scene-badge span {
  font-size: 0.72rem;
  text-transform: uppercase;
}

.teto-scene-badge strong {
  font-family: "Bungee", "Inter", sans-serif;
  font-size: 1rem;
  line-height: 1.05;
  text-shadow: 2px 2px 0 #2b1512;
}

.teto-scene-badge small {
  font-size: 0.72rem;
}

.teto-scene-badge.is-unlocked {
  animation: tetoSceneUnlock 1.9s ease both;
}

.teto-scene-props {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.scene-prop {
  position: absolute;
  display: block;
  border: 4px solid rgba(43, 21, 18, 0.68);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent 42%),
    color-mix(in srgb, var(--scene-accent, #ff6fb1) 72%, #2b1512);
  box-shadow:
    inset 0 0 0 3px rgba(255, 244, 190, 0.14),
    0 16px 20px rgba(0, 0, 0, 0.26);
  opacity: var(--scene-prop-opacity, 0.38);
  transform: scale(var(--scene-prop-scale, 1));
}

.scene-prop-a {
  left: calc(7% - var(--scene-crowd-offset, 0%));
  bottom: 22%;
  width: clamp(52px, 8vw, 116px);
  height: clamp(52px, 8vw, 116px);
  border-radius: 50%;
}

.scene-prop-b {
  right: calc(8% - var(--scene-crowd-offset, 0%));
  bottom: 20%;
  width: clamp(74px, 12vw, 180px);
  height: clamp(34px, 5vw, 76px);
}

.scene-prop-c {
  left: calc(14% - var(--scene-crowd-offset, 0%));
  top: 30%;
  width: clamp(42px, 7vw, 96px);
  height: clamp(76px, 13vw, 180px);
}

.scene-prop-d {
  right: calc(16% - var(--scene-crowd-offset, 0%));
  top: 28%;
  width: clamp(46px, 8vw, 110px);
  height: clamp(46px, 8vw, 110px);
  transform: rotate(10deg) scale(var(--scene-prop-scale, 1));
}

.scene-prop-e,
.scene-prop-f {
  opacity: var(--scene-extra-opacity, 0);
}

.scene-prop-e {
  left: 4%;
  bottom: 8%;
  width: clamp(96px, 16vw, 260px);
  height: clamp(22px, 4vw, 52px);
}

.scene-prop-f {
  right: 4%;
  bottom: 8%;
  width: clamp(86px, 14vw, 220px);
  height: clamp(22px, 4vw, 52px);
}

.idle-core-panel[data-scene-prop="bed"] .scene-prop-b,
.idle-core-panel[data-scene-prop="home"] .scene-prop-b {
  width: clamp(120px, 18vw, 260px);
  height: clamp(54px, 8vw, 110px);
}

.idle-core-panel[data-scene-prop="store"] .scene-prop-c,
.idle-core-panel[data-scene-prop="warehouse"] .scene-prop-c,
.idle-core-panel[data-scene-prop="city"] .scene-prop-c,
.idle-core-panel[data-scene-prop="avenue"] .scene-prop-c,
.idle-core-panel[data-scene-prop="downtown"] .scene-prop-c,
.idle-core-panel[data-scene-prop="mini"] .scene-prop-c {
  border-radius: 4px;
}

.teto-top-hud {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(2, 220px);
  width: auto;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.teto-hud-pill,
.teto-config-button {
  display: flex;
  min-height: 50px;
  align-items: center;
  gap: 8px;
  border: 4px solid #2b1512;
  border-radius: 8px;
  background: linear-gradient(180deg, #5d2b1c, #1b0d0b);
  color: #ffe6c4;
  box-shadow:
    inset 0 0 0 3px #f0a33a,
    0 6px 0 #0b0605,
    0 12px 24px rgba(0, 0, 0, 0.34);
  font-family: "Bungee", "Inter", sans-serif;
  text-shadow: 2px 2px 0 #2b1512;
}

.teto-hud-pill {
  justify-content: center;
  padding: 6px 8px;
}

.teto-hud-pill strong {
  flex: 1;
  text-align: center;
  font-size: 1.35rem;
  overflow-wrap: anywhere;
}

.teto-hud-pill button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 3px solid #60152d;
  border-radius: 8px;
  background: #ff4f9a;
  color: #fff6fb;
  font: inherit;
}

.teto-coin-icon,
.teto-heart-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 0;
  color: #fff;
  font-size: 1.1rem;
  background: transparent;
}

.teto-coin-icon img,
.teto-heart-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 6px 7px rgba(0, 0, 0, 0.34));
}

.teto-coin-icon {
  background: transparent;
}

.teto-heart-icon {
  background: transparent;
}

.teto-config-button {
  justify-content: center;
  padding: 0 18px;
  cursor: pointer;
}

.teto-shop-button,
.teto-inventory-button {
  position: absolute;
  z-index: 4;
  right: 18px;
  display: grid;
  width: 132px;
  aspect-ratio: 1;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.teto-shop-button {
  top: 110px;
}

.teto-inventory-button {
  top: 232px;
  width: 124px;
}

.teto-shop-button img,
.teto-inventory-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.36));
}

.teto-inventory-panel {
  position: absolute;
  z-index: 18;
  top: 96px;
  right: 210px;
  display: grid;
  width: min(560px, calc(100% - 260px));
  max-height: min(680px, calc(100vh - 140px));
  overflow-y: auto;
  gap: 16px;
  padding: 18px;
  border: 5px solid #2b1512;
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 102, 166, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(92, 43, 28, 0.97), rgba(27, 13, 11, 0.98));
  box-shadow:
    inset 0 0 0 4px #f0a33a,
    0 12px 0 #0b0605,
    0 28px 42px rgba(0, 0, 0, 0.44);
  animation: tetoInventoryPop 0.26s cubic-bezier(0.18, 0.88, 0.22, 1.2) both;
}

.teto-inventory-panel[hidden] {
  display: none;
}

.teto-inventory-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.teto-inventory-header h2 {
  margin: 0;
  color: #fff4dc;
  font-family: "Bungee", "Inter", sans-serif;
  font-size: clamp(1.4rem, 3vw, 2.25rem);
  line-height: 1;
  text-shadow: 3px 3px 0 #2b1512;
}

.teto-inventory-close {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 3px solid #2b1512;
  border-radius: 8px;
  background: #ff4f76;
  color: #fff;
  font-family: "Bungee", "Inter", sans-serif;
  box-shadow:
    inset 0 0 0 3px rgba(255, 244, 190, 0.35),
    0 6px 0 #8b173a;
  cursor: pointer;
}

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

.teto-inventory-skin {
  display: grid;
  min-height: 210px;
  align-content: end;
  justify-items: center;
  gap: 8px;
  padding: 14px 10px;
  border: 0;
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 91, 151, 0.18), transparent 42%),
    rgba(41, 18, 14, 0.66);
  color: #fff4dc;
  font-family: "Bungee", "Inter", sans-serif;
  text-align: center;
  text-shadow: 2px 2px 0 #2b1512;
  cursor: pointer;
  box-shadow: inset 0 -44px 70px rgba(255, 87, 143, 0.05);
  transition: transform 0.14s ease, filter 0.14s ease, box-shadow 0.14s ease;
}

.teto-inventory-skin:hover {
  transform: translateY(-4px);
  filter: brightness(1.08);
}

.teto-inventory-skin.is-selected {
  box-shadow:
    inset 0 0 0 4px rgba(44, 255, 176, 0.78),
    0 0 24px rgba(44, 255, 176, 0.22);
}

.teto-inventory-skin img {
  width: min(118px, 82%);
  height: 118px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 12px 12px rgba(0, 0, 0, 0.42));
}

.teto-inventory-skin strong {
  min-height: 2.3em;
  color: #fff6df;
  font-size: clamp(0.72rem, 1.4vw, 0.92rem);
  line-height: 1.15;
}

.teto-inventory-skin span {
  display: grid;
  width: 100%;
  min-height: 46px;
  place-items: center;
  border-radius: 12px;
  background: #ff3f6d;
  color: #fff;
  font-size: clamp(0.72rem, 1.5vw, 0.92rem);
  box-shadow: 0 7px 0 #8b173a;
}

.teto-inventory-skin.is-selected span {
  background: #2cffb0;
  color: #173528;
  box-shadow: 0 7px 0 #178d67;
}

.teto-side-controls {
  position: absolute;
  z-index: 5;
  top: 352px;
  right: 24px;
  display: grid;
  width: 118px;
  gap: 12px;
}

.teto-side-controls .teto-config-button {
  width: 100%;
  min-height: 0;
  aspect-ratio: 2.45 / 1;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-shadow: none;
}

.teto-side-controls .teto-config-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.34));
}

.teto-config-panel {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 850;
  display: grid;
  gap: 12px;
  width: min(360px, calc(100vw - 28px));
  max-height: min(74vh, 620px);
  overflow-y: auto;
  box-sizing: border-box;
  padding: 12px;
  border: 4px solid #2b1512;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(92, 43, 28, 0.98), rgba(27, 13, 11, 0.98));
  box-shadow:
    inset 0 0 0 3px #f0a33a,
    0 8px 0 #0b0605,
    0 18px 30px rgba(0, 0, 0, 0.38);
  transform: translate(-50%, -50%);
}

body.is-idle-admin .teto-config-panel {
  position: static;
  justify-self: end;
  width: min(310px, calc(100vw - 28px));
  transform: none;
}

.teto-config-panel label {
  display: grid;
  gap: 7px;
  color: #ffe6c4;
  font-family: "Bungee", "Inter", sans-serif;
  font-size: 0.72rem;
  text-shadow: 2px 2px 0 #2b1512;
}

.teto-config-panel input[type="range"] {
  appearance: none;
  width: 100%;
  height: 18px;
  border: 3px solid #2b1512;
  border-radius: 999px;
  background:
    linear-gradient(90deg, #ff4f9a, #ffd05a);
  accent-color: #ff4f9a;
  box-shadow:
    inset 0 0 0 2px rgba(255, 244, 190, 0.24),
    0 4px 0 rgba(43, 21, 18, 0.55);
}

.teto-config-panel input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 28px;
  height: 28px;
  border: 3px solid #2b1512;
  border-radius: 50%;
  background: #fff4be;
  box-shadow:
    inset 0 0 0 3px #ff75ad,
    0 5px 0 #8b173a;
  cursor: pointer;
}

.teto-config-panel input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: 3px solid #2b1512;
  border-radius: 50%;
  background: #fff4be;
  box-shadow:
    inset 0 0 0 3px #ff75ad,
    0 5px 0 #8b173a;
  cursor: pointer;
}

.teto-config-panel input[type="number"] {
  width: 100%;
  box-sizing: border-box;
  min-height: 38px;
  padding: 6px 10px;
  border: 3px solid #2b1512;
  border-radius: 8px;
  background: #fff4be;
  color: #2b1512;
  font-family: "Bungee", "Inter", sans-serif;
  box-shadow: inset 0 0 0 2px rgba(240, 163, 58, 0.34);
}

.teto-config-panel input[type="datetime-local"] {
  width: 100%;
  box-sizing: border-box;
  min-height: 38px;
  padding: 6px 10px;
  border: 3px solid #2b1512;
  border-radius: 8px;
  background: #fff4be;
  color: #2b1512;
  font-family: "Bungee", "Inter", sans-serif;
  box-shadow: inset 0 0 0 2px rgba(240, 163, 58, 0.34);
}

.idle-admin-event-control {
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 3px solid #2b1512;
  border-radius: 10px;
  background: rgba(255, 208, 90, 0.12);
}

.idle-admin-event-control strong {
  color: #fff4be;
  font-family: "Bungee", "Inter", sans-serif;
  font-size: 0.82rem;
  text-shadow: 2px 2px 0 #2b1512;
}

.teto-reset-test-button {
  width: 100%;
  min-height: 42px;
  border: 3px solid #2b1512;
  border-radius: 8px;
  background: #ff4f76;
  color: #ffffff;
  font-family: "Bungee", "Inter", sans-serif;
  font-size: 0.72rem;
  line-height: 1.12;
  white-space: normal;
  overflow-wrap: anywhere;
  box-shadow:
    inset 0 0 0 2px rgba(255, 244, 190, 0.36),
    0 5px 0 #8b173a;
  cursor: pointer;
}

.teto-title-logo {
  position: relative;
  z-index: 2;
  width: 300px;
  max-height: 94px;
  object-fit: contain;
  margin-top: 2px;
  filter: drop-shadow(0 12px 0 rgba(47, 13, 24, 0.7));
}

.teto-subtitle {
  position: relative;
  z-index: 2;
  margin: -10px 0 -4px;
  color: #ff9bc9;
  font-family: "Bungee", "Inter", sans-serif;
  font-size: 1.25rem;
  text-shadow: 2px 2px 0 #451827;
  text-transform: uppercase;
}

.idle-core.teto-core {
  z-index: 2;
  width: min(400px, 50vh);
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  align-content: center;
  justify-self: center;
  align-self: center;
  transform: scale(var(--teto-growth-scale, 1));
  transition: transform 0.58s cubic-bezier(0.16, 0.86, 0.22, 1.12);
}

.idle-core-ring {
  display: none;
}

.teto-core img#tetoSkinImage {
  position: relative;
  z-index: 3;
  width: min(96%, 355px);
  max-height: none;
  transform-origin: 50% 92%;
  animation: tetoCartoonIdle 3.8s ease-in-out infinite;
  filter: drop-shadow(0 24px 22px rgba(0, 0, 0, 0.46));
}

.teto-click-callout {
  position: relative;
  z-index: 3;
  display: grid;
  justify-items: center;
  margin-top: -12px;
  color: #fff4dc;
  font-family: "Bungee", "Inter", sans-serif;
  text-shadow: 3px 3px 0 #7b2e22;
  text-transform: uppercase;
}

.teto-click-callout strong {
  font-size: 2.05rem;
  line-height: 1;
}

.teto-click-callout span {
  color: #ffd4e7;
  font-size: 0.76rem;
}

.teto-bottom-hud {
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 640px) 132px;
  width: auto;
  gap: 10px;
  align-items: stretch;
}

.teto-hunger-panel,
.teto-happy-panel {
  border: 4px solid #2b1512;
  border-radius: 8px;
  background: linear-gradient(180deg, #6b321f, #2a100c);
  box-shadow:
    inset 0 0 0 3px #f0a33a,
    0 6px 0 #0b0605;
}

.teto-hunger-panel {
  display: grid;
  gap: 6px;
  padding: 9px 14px;
}

.teto-hunger-panel > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #ffe6c4;
  font-family: "Bungee", "Inter", sans-serif;
}

.teto-hunger-bar {
  height: 22px;
  overflow: hidden;
  border: 3px solid #1b0d0b;
  border-radius: 6px;
  background: #2a130d;
}

.teto-hunger-bar span {
  display: block;
  width: 0%;
  height: 100%;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.13) 0 8px, transparent 8px 16px),
    linear-gradient(90deg, #ff4f76, #ff75ad);
  transition: width 0.16s ease;
}

.teto-happy-panel {
  display: grid;
  place-items: center;
  padding: 8px;
  color: #ff9bc9;
  font-family: "Bungee", "Inter", sans-serif;
}

.teto-big-actions {
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(900px, 100%);
  gap: 12px;
}

.teto-big-button {
  display: grid;
  min-height: 110px;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 4px solid #2b1512;
  border-radius: 10px;
  background: linear-gradient(180deg, #d64e75, #681d34);
  color: #ffe6f1;
  box-shadow:
    inset 0 0 0 3px #ff9bc9,
    0 7px 0 #180909,
    0 14px 24px rgba(0, 0, 0, 0.32);
  font-family: "Bungee", "Inter", sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.7rem);
  text-shadow: 2px 2px 0 #53182a;
  cursor: pointer;
}

.teto-big-button.is-purple {
  background: linear-gradient(180deg, #9a4bb6, #4b1f63);
  box-shadow: inset 0 0 0 3px #e09cff, 0 7px 0 #180909, 0 14px 24px rgba(0, 0, 0, 0.32);
}

.teto-big-button.is-gold {
  background: linear-gradient(180deg, #d99019, #74420e);
  box-shadow: inset 0 0 0 3px #ffd05a, 0 7px 0 #180909, 0 14px 24px rgba(0, 0, 0, 0.32);
}

.teto-big-button img,
.teto-upgrade-icon {
  width: 74px;
  height: 74px;
  object-fit: contain;
}

.teto-upgrade-icon {
  display: grid;
  place-items: center;
  color: #9cff4b;
  font-size: 4rem;
  line-height: 1;
}

.idle-shop {
  display: grid;
  align-content: start;
  gap: 14px;
}

.teto-shop-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  min-height: 100vh;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: #020202;
  color: #ffe6c4;
}

.teto-shop-overlay[hidden] {
  display: none;
}

.teto-miku-call {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(45, 255, 176, 0.18), transparent 24%),
    rgba(5, 8, 18, 0.86);
  backdrop-filter: blur(8px);
}

.teto-miku-call[hidden] {
  display: none;
}

.teto-miku-call-phone {
  position: absolute;
  left: 50%;
  bottom: -38vh;
  width: min(420px, 74vw);
  transform: translateX(-50%);
  filter:
    drop-shadow(0 28px 28px rgba(0, 0, 0, 0.58))
    drop-shadow(0 0 34px rgba(45, 255, 176, 0.42));
}

.teto-miku-call-phone img {
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}

.teto-miku-call.is-calling .teto-miku-call-phone {
  animation: tetoMikuPhoneCall 6s cubic-bezier(0.16, 0.78, 0.28, 1) both;
}

.teto-miku-call.is-message-ready .teto-miku-call-phone {
  animation: tetoMikuPhoneLeave 0.72s ease-in both;
}

.teto-miku-call-message {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  width: min(560px, calc(100vw - 32px));
  gap: 14px;
  padding: clamp(22px, 4vw, 34px);
  border: 5px solid #2b1512;
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 0%, rgba(45, 255, 176, 0.22), transparent 32%),
    linear-gradient(180deg, rgba(41, 23, 36, 0.98), rgba(20, 10, 17, 0.98));
  text-align: center;
  box-shadow:
    inset 0 0 0 4px #f0a33a,
    0 24px 48px rgba(0, 0, 0, 0.48);
  animation: tetoMikuMessageIn 0.5s cubic-bezier(0.16, 0.86, 0.24, 1.18) both;
}

.teto-miku-call-message h2,
.teto-miku-call-message p {
  margin: 0;
}

.teto-miku-call-message h2 {
  color: #fff4be;
  font-family: "Bungee", "Inter", sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.7rem);
  line-height: 1.05;
  text-shadow: 3px 3px 0 #2b1512, 0 0 24px rgba(45, 255, 176, 0.55);
}

.teto-miku-call-message p:not(.eyebrow) {
  color: rgba(255, 244, 220, 0.9);
  font-size: 1rem;
}

.teto-miku-call-message div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.teto-miku-call-message button {
  min-width: 130px;
  min-height: 52px;
  border: 4px solid #2b1512;
  border-radius: 12px;
  background: linear-gradient(180deg, #2dffb0, #18c982);
  color: #1d100b;
  font-family: "Bungee", "Inter", sans-serif;
  cursor: pointer;
  box-shadow: 0 7px 0 #0f7751;
}

.teto-miku-call-message button:last-child {
  background: linear-gradient(180deg, #ff75ad, #ff3f6d);
  color: #fff;
  box-shadow: 0 7px 0 #8b173a;
}

.teto-shop-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 203, 59, 0.18), transparent 24%, transparent 76%, rgba(255, 111, 177, 0.12)),
    radial-gradient(circle at 50% 48%, rgba(255, 244, 190, 0.12), transparent 28%),
    url("assets/idleteto/backgrounds/shop-background.png"),
    #ffe47a;
  image-rendering: pixelated;
  background-size: cover;
  background-position: center;
  animation: tetoShopBgDrift 14s ease-in-out infinite alternate;
}

.teto-shop-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0 5px, rgba(255, 255, 255, 0.34) 5px 7px);
  mix-blend-mode: soft-light;
}

.teto-shop-cartel {
  position: absolute;
  z-index: 3;
  top: clamp(34px, 5vh, 72px);
  left: 50%;
  width: clamp(280px, 25vw, 520px);
  max-height: 24vh;
  object-fit: contain;
  transform: translateX(-50%);
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.44));
}

.teto-shop-wallet {
  position: absolute;
  z-index: 4;
  top: clamp(26px, 3vw, 46px);
  left: clamp(92px, 7vw, 142px);
  display: inline-flex;
  align-items: center;
  min-width: clamp(160px, 16vw, 260px);
  height: clamp(52px, 4vw, 72px);
  padding: 6px clamp(14px, 1.6vw, 24px) 6px 8px;
  border: 4px solid #2b1512;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 237, 150, 0.98), rgba(192, 94, 30, 0.96)),
    #f0a33a;
  box-shadow:
    inset 0 0 0 4px rgba(255, 255, 255, 0.28),
    0 7px 0 #8a4818,
    0 14px 24px rgba(0, 0, 0, 0.3);
  color: #fff4be;
  font-family: "Bungee", "Inter", sans-serif;
  text-shadow:
    3px 3px 0 #2b1512,
    0 0 14px rgba(255, 255, 255, 0.45);
}

.teto-shop-wallet-icon {
  display: grid;
  place-items: center;
  width: clamp(42px, 3.4vw, 58px);
  height: clamp(42px, 3.4vw, 58px);
  margin-right: 8px;
}

.teto-shop-wallet-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(3px 4px 0 rgba(43, 21, 18, 0.42));
}

.teto-shop-wallet strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  font-size: clamp(1.15rem, 2vw, 2rem);
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teto-shop-transition-logo,
.teto-shop-exit-logo {
  position: fixed;
  z-index: 8;
  left: 50%;
  top: 50%;
  width: min(920px, 92vw);
  max-height: 52vh;
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -150vh) scale(1.12);
  filter: drop-shadow(0 24px 32px rgba(0, 0, 0, 0.54));
}

.teto-shop-exit-logo {
  z-index: 10;
  width: min(720px, 86vw);
  transform: translate(-50%, 130vh) scale(0.95);
}

.teto-shop-overlay.is-transitioning .teto-shop-transition-logo {
  animation: tetoShopCurtain 2s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.teto-shop-overlay.is-exiting::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 109, 180, 0.86), rgba(255, 50, 104, 0.92) 42%, rgba(93, 12, 47, 0.98));
  animation: tetoShopExitBg 1.45s ease both;
}

.teto-shop-overlay.is-exiting .teto-shop-exit-logo {
  animation: tetoShopExitLogo 1.45s cubic-bezier(0.18, 0.86, 0.22, 1) both;
}

.teto-shop-overlay.is-transitioning .teto-shop-menu,
.teto-shop-overlay.is-transitioning .teto-shop-content,
.teto-shop-overlay.is-transitioning .teto-shop-cartel,
.teto-shop-overlay.is-transitioning .teto-seller,
.teto-shop-overlay.is-transitioning .login-note,
.teto-shop-overlay.is-transitioning .teto-shop-close,
.teto-shop-overlay.is-exiting .teto-shop-menu,
.teto-shop-overlay.is-exiting .teto-shop-content,
.teto-shop-overlay.is-exiting .teto-shop-cartel,
.teto-shop-overlay.is-exiting .teto-seller,
.teto-shop-overlay.is-exiting .login-note,
.teto-shop-overlay.is-exiting .teto-shop-close {
  opacity: 0;
  pointer-events: none;
}

.teto-shop-overlay.is-revealing .teto-shop-category {
  animation: tetoShopCardPop 0.72s cubic-bezier(0.18, 0.88, 0.22, 1.2) both;
  transform-origin: 50% 70%;
}

.teto-shop-overlay.is-revealing .teto-shop-category:nth-child(2) {
  animation-delay: 0.1s;
}

.teto-shop-overlay.is-revealing .teto-shop-category:nth-child(3) {
  animation-delay: 0.2s;
}

.teto-shop-overlay.is-revealing .teto-shop-cartel {
  animation: tetoShopHeaderPop 0.64s ease-out both;
}

.teto-shop-close,
.teto-shop-back {
  position: relative;
  z-index: 3;
  border: 3px solid #2b1512;
  border-radius: 8px;
  background: #ff4f76;
  color: #fff;
  font-family: "Bungee", "Inter", sans-serif;
  cursor: pointer;
}

.teto-shop-close {
  position: absolute;
  top: clamp(22px, 3vw, 46px);
  right: clamp(22px, 3vw, 46px);
  width: clamp(54px, 4.2vw, 78px);
  height: clamp(54px, 4.2vw, 78px);
  font-size: clamp(1.1rem, 2vw, 1.8rem);
  box-shadow:
    inset 0 0 0 4px rgba(255, 244, 190, 0.38),
    0 7px 0 #8b173a,
    0 14px 24px rgba(0, 0, 0, 0.35);
}

.teto-shop-back {
  width: max-content;
  min-height: 42px;
  padding: 0 16px;
}

.teto-shop-menu {
  position: absolute;
  z-index: 2;
  top: clamp(128px, 15vh, 200px);
  left: clamp(34px, 4vw, 84px);
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, clamp(170px, 15vw, 300px)));
  width: min(42vw, 760px);
  gap: clamp(14px, 2vw, 30px);
  margin: 0;
}

.teto-shop-category {
  display: grid;
  aspect-ratio: 1;
  min-height: 0;
  align-items: end;
  padding: 12px;
  border: 0;
  border-radius: 8px;
  color: #ffe6c4;
  box-shadow: none;
  font-family: "Bungee", "Inter", sans-serif;
  font-size: 0;
  text-align: center;
  text-shadow: 3px 3px 0 #2b1512;
  cursor: pointer;
  image-rendering: pixelated;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: transparent;
  transition: transform 0.16s ease, filter 0.16s ease;
}

.teto-shop-category:hover {
  transform: translateY(-4px) scale(1.02);
  filter: brightness(1.08);
}

.teto-shop-category:disabled,
.teto-shop-category.is-locked {
  cursor: not-allowed;
  filter: grayscale(1) brightness(0.48) saturate(0.45);
  opacity: 0.58;
  transform: none;
}

.teto-shop-category:disabled:hover,
.teto-shop-category.is-locked:hover {
  filter: grayscale(1) brightness(0.48) saturate(0.45);
  transform: none;
}

.teto-shop-category span {
  opacity: 0;
}

.teto-shop-category.is-food {
  background-image: url("assets/idleteto/foodbutton.png");
}

.teto-shop-category.is-skins {
  background-image: url("assets/idleteto/skinsbutton.png");
}

.teto-shop-category.is-upgrades {
  grid-column: 1 / -1;
  width: min(100%, 720px);
  aspect-ratio: 4.1 / 1;
  background-image: url("assets/idleteto/upgradebutton.png");
}

.teto-shop-category.is-gacha {
  grid-column: 1 / -1;
  min-height: clamp(86px, 10vw, 138px);
  aspect-ratio: 4.1 / 1;
  border: 5px solid #2b1512;
  border-radius: 10px;
  background:
    radial-gradient(circle at 16% 50%, rgba(255, 244, 190, 0.86), transparent 18%),
    linear-gradient(135deg, #ff4f76, #ffd05a 50%, #2dffb0);
  box-shadow:
    inset 0 0 0 4px rgba(255, 244, 190, 0.34),
    0 8px 0 #8b173a,
    0 18px 24px rgba(0, 0, 0, 0.28);
  font-size: clamp(1.4rem, 3vw, 2.4rem);
}

.teto-shop-category.is-gacha span {
  opacity: 1;
  align-self: center;
  justify-self: center;
}

.teto-shop-category.is-gacha.is-unlocking {
  animation: tetoGachaCategoryUnlock 1.25s cubic-bezier(0.16, 0.86, 0.24, 1.18) both;
  filter: brightness(1.18) saturate(1.35);
}

.teto-shop-content {
  position: absolute;
  z-index: 5;
  top: clamp(110px, 13vh, 150px);
  left: clamp(28px, 4vw, 84px);
  width: min(720px, 48vw);
  max-height: min(760px, calc(100vh - 170px));
  overflow-y: auto;
  margin: 0;
  padding: 18px;
  border: 5px solid #2b1512;
  border-radius: 8px;
  background: rgba(33, 16, 14, 0.94);
  box-shadow:
    inset 0 0 0 4px #f0a33a,
    0 16px 30px rgba(0, 0, 0, 0.4);
}

.teto-shop-content:not([hidden]) {
  animation: tetoShopSubmenuFrame 0.42s cubic-bezier(0.16, 0.86, 0.24, 1.18) both;
}

.teto-shop-content[data-active-panel="food"] {
  top: clamp(76px, 8vh, 112px);
  left: 50%;
  width: min(1180px, calc(100vw - 72px));
  max-height: min(820px, calc(100vh - 110px));
  transform: translateX(-50%);
  overflow: hidden;
  padding: clamp(14px, 2vw, 24px);
  background:
    linear-gradient(180deg, rgba(91, 45, 23, 0.96), rgba(39, 18, 13, 0.98)),
    #3b1e13;
  box-shadow:
    inset 0 0 0 4px #f0a33a,
    0 18px 38px rgba(0, 0, 0, 0.42);
}

.teto-shop-content[data-active-panel="food"]:not([hidden]) {
  animation: tetoFoodShopFrame 0.42s cubic-bezier(0.16, 0.86, 0.24, 1.18) both;
}

.teto-shop-content[hidden],
.teto-shop-menu[hidden],
.teto-shop-panel[hidden] {
  display: none;
}

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

.teto-shop-panel:not([hidden]) {
  animation: tetoShopSubmenuItems 0.5s ease both;
}

.teto-food-shop-header {
  display: grid;
  grid-template-columns: clamp(74px, 9vw, 126px) minmax(0, 1fr) clamp(74px, 9vw, 126px);
  align-items: center;
  gap: clamp(8px, 2vw, 18px);
  margin: 0 auto 12px;
  width: min(760px, 100%);
  padding: 8px 14px;
  border: 4px solid #2b1512;
  border-radius: 10px;
  background:
    linear-gradient(180deg, #ffe386, #c86e28 58%, #7a3517),
    #c86e28;
  text-align: center;
  box-shadow:
    inset 0 0 0 4px rgba(255, 244, 190, 0.34),
    0 8px 0 #6e3116,
    0 16px 26px rgba(0, 0, 0, 0.26);
}

.teto-food-shop-header img {
  width: 100%;
  height: clamp(66px, 8vw, 112px);
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(4px 6px 0 rgba(43, 21, 18, 0.36));
}

.teto-food-shop-header h2,
.teto-food-shop-header p {
  margin: 0;
}

.teto-food-shop-header h2 {
  color: #fff4be;
  font-family: "Bungee", "Inter", sans-serif;
  font-size: clamp(1.8rem, 4.2vw, 3.8rem);
  line-height: 0.98;
  text-shadow:
    4px 4px 0 #7b251a,
    0 0 18px rgba(255, 244, 190, 0.46);
}

.teto-food-shop-header p {
  display: inline-block;
  margin-top: 5px;
  padding: 4px 14px;
  border: 2px solid rgba(255, 244, 190, 0.72);
  border-radius: 999px;
  background: linear-gradient(180deg, #ff75ad, #d83d68);
  color: #fff;
  font-weight: 900;
  text-shadow: 1px 1px 0 #7b251a;
}

.teto-food-shop-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(118px, 1fr));
  gap: clamp(10px, 1.2vw, 16px);
}

.teto-food-shop-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 30%);
  gap: clamp(12px, 2vw, 24px);
  overflow: hidden;
  height: min(620px, calc(100vh - 250px));
  min-height: 440px;
  padding: clamp(12px, 1.6vw, 20px);
  border: 4px solid #2b1512;
  border-radius: 10px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 207, 90, 0.22), transparent 22%),
    radial-gradient(circle at 86% 24%, rgba(255, 119, 173, 0.15), transparent 24%),
    repeating-linear-gradient(90deg, rgba(255, 220, 118, 0.1) 0 10px, rgba(92, 43, 21, 0.1) 10px 20px),
    linear-gradient(180deg, #75411f, #30170f 72%, #190c09);
  box-shadow:
    inset 0 0 0 3px #f0a33a,
    0 12px 24px rgba(0, 0, 0, 0.28);
}

.teto-food-shop-stage::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 208, 90, 0.24), transparent 20%),
    radial-gradient(circle at 78% 18%, rgba(255, 96, 156, 0.18), transparent 18%),
    linear-gradient(120deg, transparent 0 38%, rgba(255, 244, 190, 0.14) 45%, transparent 54% 100%);
  animation: tetoKitchenShader 7s ease-in-out infinite alternate;
  pointer-events: none;
}

.teto-food-shop-stage > * {
  position: relative;
  z-index: 1;
}

.teto-food-shop-grid {
  align-content: start;
  height: 100%;
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 14px 128px 10px;
  scroll-padding-block: 18px 128px;
  scrollbar-gutter: stable;
}

.teto-food-shop-grid article,
.teto-food-card {
  position: relative;
  display: grid;
  gap: 7px;
  justify-items: center;
  align-content: start;
  min-height: 226px;
  padding: 12px 10px 14px;
  border: 3px solid #2b1512;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(113, 61, 30, 0.94), rgba(50, 24, 14, 0.98)),
    #4b2717;
  text-align: center;
  box-shadow:
    inset 0 0 0 2px #b16a2b,
    0 7px 0 rgba(43, 21, 18, 0.72);
}

.teto-food-shop-grid img {
  width: min(96px, 72%);
  height: 88px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(4px 5px 0 rgba(43, 21, 18, 0.38));
}

.teto-food-card strong,
.teto-food-bonus strong {
  color: #fff4be;
  font-family: "Bungee", "Inter", sans-serif;
  line-height: 1.05;
  text-shadow: 2px 2px 0 #2b1512;
}

.teto-food-card strong {
  min-height: 2.1em;
  display: grid;
  place-items: center;
  font-size: clamp(0.68rem, 0.9vw, 0.9rem);
  text-transform: uppercase;
}

.teto-food-card span,
.teto-food-bonus span {
  color: rgba(255, 244, 220, 0.82);
  font-size: 0.82rem;
}

.teto-food-card > em {
  position: absolute;
  top: 44px;
  right: 9px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #ff4f76;
  color: #fff;
  font-family: "Bungee", "Inter", sans-serif;
  font-size: 0.58rem;
  font-style: normal;
  text-transform: uppercase;
  text-shadow: 1px 1px 0 #2b1512;
}

.teto-food-stars {
  display: flex;
  gap: 2px;
  height: 12px;
  align-items: center;
  justify-content: center;
}

.teto-food-stars span {
  width: 8px;
  height: 8px;
  background: #6e3a1f;
  clip-path: polygon(50% 0, 62% 34%, 98% 35%, 69% 56%, 79% 91%, 50% 70%, 21% 91%, 31% 56%, 2% 35%, 38% 34%);
}

.teto-food-card.is-owned .teto-food-stars span,
.teto-food-card.is-new .teto-food-stars span:first-child {
  background: #ffd05a;
  filter: drop-shadow(0 0 5px rgba(255, 208, 90, 0.55));
}

.teto-food-card button {
  width: 100%;
  min-height: 38px;
  border: 3px solid #2b1512;
  border-radius: 7px;
  background:
    linear-gradient(180deg, #b5d84d, #688e25),
    #7fa52d;
  color: #fff4be;
  font-family: "Bungee", "Inter", sans-serif;
  font-size: clamp(0.68rem, 0.9vw, 0.9rem);
  text-shadow: 2px 2px 0 #2b1512;
  cursor: pointer;
  box-shadow:
    inset 0 0 0 2px rgba(255, 244, 190, 0.2),
    0 5px 0 #3d5618;
}

.teto-food-card button:disabled {
  cursor: default;
  filter: grayscale(0.52);
  opacity: 0.76;
}

.teto-food-card.is-owned button {
  background: linear-gradient(180deg, #ff75ad, #ff3f6d);
  color: #fff;
  box-shadow: 0 5px 0 #8b173a;
}

.teto-food-card.is-locked img {
  filter: grayscale(1) brightness(0.7);
}

.teto-food-bonus {
  grid-column: 1 / -1;
  min-height: auto;
  padding: 10px 12px;
  background:
    radial-gradient(circle at 14% 22%, rgba(45, 255, 176, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(255, 79, 154, 0.3), rgba(255, 208, 90, 0.22));
}

.teto-food-bonus.is-locked {
  filter: grayscale(0.45);
}

.teto-miku-chef {
  pointer-events: none;
  align-self: end;
  justify-self: center;
  width: min(100%, 360px);
  max-height: min(610px, calc(100vh - 235px));
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 18px 20px rgba(0, 0, 0, 0.44));
  animation: tetoSellerBreath 3.8s ease-in-out infinite;
}

.teto-gacha-machine {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 16px;
  overflow: hidden;
  padding: clamp(20px, 4vw, 34px);
  border: 4px solid #2b1512;
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 244, 190, 0.28), transparent 32%),
    linear-gradient(180deg, rgba(255, 79, 118, 0.28), rgba(42, 17, 21, 0.84));
  text-align: center;
  box-shadow:
    inset 0 0 0 3px #f0a33a,
    0 10px 0 #0b0605;
}

.teto-gacha-machine::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: conic-gradient(from 0deg, transparent, rgba(255, 208, 90, 0.26), transparent, rgba(45, 255, 176, 0.22), transparent);
  animation: tetoGachaAura 3.6s linear infinite;
}

.teto-gacha-machine::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 42%;
  z-index: 0;
  width: 26px;
  height: 26px;
  border: 5px solid rgba(255, 244, 190, 0.96);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.2);
  box-shadow:
    0 0 22px rgba(255, 244, 190, 0.92),
    0 0 56px rgba(255, 79, 154, 0.72),
    inset 0 0 30px rgba(45, 255, 176, 0.46);
}

.teto-gacha-machine > * {
  position: relative;
  z-index: 1;
}

.teto-gacha-orb {
  display: grid;
  width: min(190px, 46vw);
  aspect-ratio: 1;
  place-items: center;
  border: 7px solid #2b1512;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 24%, #fff9c8, transparent 18%),
    radial-gradient(circle, #ff4f9a, #7b2fff 70%);
  box-shadow:
    inset 0 0 0 6px rgba(255, 244, 190, 0.22),
    0 0 34px rgba(255, 79, 154, 0.5);
}

.teto-gacha-orb span {
  width: 42%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff4dc;
  box-shadow: 0 0 24px rgba(255, 244, 190, 0.9);
}

.teto-gacha-machine p,
.teto-gacha-machine strong {
  margin: 0;
  color: #fff4dc;
  font-family: "Bungee", "Inter", sans-serif;
  text-shadow: 2px 2px 0 #2b1512;
}

.teto-gacha-spin {
  min-height: 58px;
  padding: 0 30px;
  border: 4px solid #2b1512;
  border-radius: 12px;
  background: linear-gradient(180deg, #ff75ad, #ff3f6d);
  color: #fff;
  font-family: "Bungee", "Inter", sans-serif;
  box-shadow:
    inset 0 0 0 3px rgba(255, 244, 190, 0.3),
    0 7px 0 #8b173a;
  cursor: pointer;
}

.teto-gacha-spin:disabled {
  cursor: wait;
  filter: grayscale(0.55);
}

.teto-gacha-machine.is-spinning .teto-gacha-orb {
  animation: tetoGachaSpin 0.24s linear infinite, tetoGachaCharge 1s ease-out both;
}

.teto-gacha-machine.is-reward {
  animation: tetoGachaReward 1.15s ease both;
}

.teto-gacha-machine.is-bursting::after {
  animation: tetoGachaShockwave 1.05s ease-out both;
}

.teto-gacha-machine.is-bursting .teto-gacha-orb {
  animation: tetoGachaOrbBurst 1.05s ease-out both;
}

.teto-gacha-machine.is-bursting strong {
  animation: tetoGachaTextPop 0.72s cubic-bezier(0.16, 0.9, 0.22, 1.22) both;
}

.teto-seller {
  position: absolute;
  z-index: 2;
  right: clamp(70px, 12vw, 230px);
  bottom: 0;
  width: clamp(320px, 29vw, 560px);
  max-height: 84vh;
  object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.52));
  transform-origin: 50% 100%;
  animation: tetoSellerBreath 3.2s ease-in-out infinite;
}

.idle-shop-reset,
.teto-shop-overlay .login-note {
  position: relative;
  z-index: 3;
}

.idle-shop-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.idle-shop-stats span {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 2px solid rgba(255, 208, 90, 0.34);
  border-radius: 8px;
  color: #d9a986;
  background: rgba(0, 0, 0, 0.18);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.idle-shop-stats strong {
  color: #ffd05a;
  font-family: "Bungee", "Inter", sans-serif;
  font-size: 1rem;
}

@keyframes tetoShopBgDrift {
  from {
    background-position: center, center, 50% 50%;
    transform: scale(1.02);
  }

  to {
    background-position: center, center, 52% 48%;
    transform: scale(1.055);
  }
}

@keyframes tetoKitchenShader {
  0% {
    transform: translate3d(-2%, -1%, 0) scale(1.02);
    filter: hue-rotate(0deg) brightness(1);
  }

  100% {
    transform: translate3d(2%, 1%, 0) scale(1.06);
    filter: hue-rotate(18deg) brightness(1.08);
  }
}

@keyframes tetoMikuPhoneCall {
  0% {
    bottom: -42vh;
    transform: translateX(-50%) rotate(-4deg) scale(0.92);
  }

  12% {
    bottom: 14vh;
    transform: translateX(-50%) rotate(2deg) scale(1);
  }

  18%,
  30%,
  42%,
  54%,
  66%,
  78% {
    bottom: 14vh;
    transform: translateX(-50%) rotate(-2deg) scale(1.02);
  }

  24%,
  36%,
  48%,
  60%,
  72%,
  84% {
    bottom: 14vh;
    transform: translateX(-50%) rotate(2deg) scale(1.02);
  }

  100% {
    bottom: 14vh;
    transform: translateX(-50%) rotate(0deg) scale(1);
  }
}

@keyframes tetoMikuPhoneLeave {
  0% {
    bottom: 14vh;
    opacity: 1;
    transform: translateX(-50%) rotate(0deg) scale(1);
  }

  100% {
    bottom: -46vh;
    opacity: 0.92;
    transform: translateX(-50%) rotate(5deg) scale(0.95);
  }
}

@keyframes tetoMikuMessageIn {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.88) rotate(-2deg);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

@keyframes tetoSellerBreath {
  0%,
  100% {
    transform: translateY(0) scale(1, 1);
  }

  50% {
    transform: translateY(-8px) scale(1.018, 0.992);
  }
}

@keyframes tetoShopCurtain {
  0% {
    opacity: 0;
    transform: translate(-50%, -150vh) scale(1.12);
  }

  18% {
    opacity: 1;
  }

  42% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.06);
  }

  68% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.06);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -150vh) scale(1.12);
  }
}

@keyframes tetoShopCardPop {
  0% {
    opacity: 0;
    transform: perspective(680px) rotateX(76deg) rotateZ(-8deg) translateY(44px) scale(0.78);
  }

  58% {
    opacity: 1;
    transform: perspective(680px) rotateX(-10deg) rotateZ(3deg) translateY(-8px) scale(1.06);
  }

  78% {
    transform: perspective(680px) rotateX(5deg) rotateZ(-1deg) translateY(3px) scale(0.98);
  }

  100% {
    opacity: 1;
    transform: perspective(680px) rotateX(0) rotateZ(0) translateY(0) scale(1);
  }
}

@keyframes tetoShopHeaderPop {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-28px) scale(0.86) rotate(-3deg);
  }

  72% {
    opacity: 1;
    transform: translateX(-50%) translateY(5px) scale(1.04) rotate(1deg);
  }

  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1) rotate(0);
  }
}

@keyframes tetoShopSubmenuFrame {
  0% {
    opacity: 0;
    transform: translateY(26px) scale(0.92) rotateX(12deg);
  }

  70% {
    opacity: 1;
    transform: translateY(-4px) scale(1.018) rotateX(-3deg);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0);
  }
}

@keyframes tetoFoodShopFrame {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(26px) scale(0.92) rotateX(12deg);
  }

  70% {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px) scale(1.018) rotateX(-3deg);
  }

  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1) rotateX(0);
  }
}

@keyframes tetoShopSubmenuItems {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
    filter: saturate(0.7);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: saturate(1);
  }
}

@keyframes tetoGachaCategoryUnlock {
  0% {
    opacity: 0.58;
    transform: scale(0.9) rotate(-4deg);
    filter: grayscale(1) brightness(0.7);
  }

  38% {
    opacity: 1;
    transform: scale(1.1) rotate(2deg);
    filter: grayscale(0) brightness(1.35) saturate(1.5);
    box-shadow:
      inset 0 0 0 4px rgba(255, 244, 190, 0.44),
      0 0 30px rgba(255, 208, 90, 0.82),
      0 0 64px rgba(255, 79, 154, 0.46);
  }

  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    filter: grayscale(0) brightness(1) saturate(1);
  }
}

@keyframes tetoInventoryPop {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.94) rotateX(10deg);
  }

  70% {
    opacity: 1;
    transform: translateY(-3px) scale(1.015) rotateX(-2deg);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0);
  }
}

@keyframes tetoLeaderboardSlide {
  0% {
    opacity: 0;
    transform: translateX(-24px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes tetoGachaAura {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes tetoGachaSpin {
  0% {
    transform: rotate(0deg) scale(1);
    filter: hue-rotate(0deg);
  }

  50% {
    transform: rotate(180deg) scale(1.08);
    filter: hue-rotate(160deg);
  }

  100% {
    transform: rotate(360deg) scale(1);
    filter: hue-rotate(360deg);
  }
}

@keyframes tetoGachaCharge {
  0% {
    box-shadow:
      inset 0 0 0 6px rgba(255, 244, 190, 0.22),
      0 0 34px rgba(255, 79, 154, 0.5);
  }

  68% {
    box-shadow:
      inset 0 0 0 6px rgba(255, 244, 190, 0.36),
      0 0 54px rgba(255, 208, 90, 0.86),
      0 0 92px rgba(45, 255, 176, 0.42);
  }

  100% {
    box-shadow:
      inset 0 0 0 6px rgba(255, 244, 190, 0.5),
      0 0 72px rgba(255, 255, 255, 0.96),
      0 0 130px rgba(255, 79, 154, 0.86);
  }
}

@keyframes tetoGachaReward {
  0% {
    filter: brightness(1);
    transform: scale(1);
  }

  45% {
    filter: brightness(1.8) saturate(1.8);
    transform: scale(1.035);
  }

  100% {
    filter: brightness(1);
    transform: scale(1);
  }
}

@keyframes tetoGachaShockwave {
  0% {
    opacity: 0.96;
    transform: translate(-50%, -50%) scale(0.2);
  }

  42% {
    opacity: 0.82;
    transform: translate(-50%, -50%) scale(9);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(18);
  }
}

@keyframes tetoGachaOrbBurst {
  0% {
    filter: brightness(1) saturate(1);
    transform: scale(1) rotate(0deg);
  }

  28% {
    filter: brightness(2.4) saturate(2);
    transform: scale(1.28) rotate(-8deg);
  }

  62% {
    filter: brightness(1.5) saturate(1.65);
    transform: scale(0.92) rotate(5deg);
  }

  100% {
    filter: brightness(1) saturate(1);
    transform: scale(1) rotate(0);
  }
}

@keyframes tetoGachaTextPop {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.7) rotate(-3deg);
  }

  68% {
    opacity: 1;
    transform: translateY(-5px) scale(1.15) rotate(1deg);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0);
  }
}

@keyframes tetoShopExitBg {
  0% {
    opacity: 0;
    transform: scale(1.08);
  }

  18%,
  78% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(1.08);
  }
}

@keyframes tetoShopExitLogo {
  0% {
    opacity: 0;
    transform: translate(-50%, 130vh) scale(0.92) rotate(4deg);
  }

  24% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.04) rotate(-2deg);
  }

  70% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -150vh) scale(1.08) rotate(-4deg);
  }
}

.rope-page {
  min-height: calc(100vh - 76px);
  padding-bottom: 0;
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 188, 64, 0.13), transparent 28%),
    radial-gradient(circle at 12% 38%, rgba(255, 79, 154, 0.13), transparent 30%),
    radial-gradient(circle at 88% 42%, rgba(45, 255, 176, 0.11), transparent 28%),
    var(--bg);
}

.rope-hero h1 {
  font-family: "Bungee", "Inter", sans-serif;
  color: #ffd05a;
  text-shadow: 0 0 24px rgba(255, 208, 90, 0.22);
}

.rope-layout {
  display: grid;
  grid-template-columns: minmax(238px, 300px) minmax(0, 1fr);
  gap: 0;
  width: 100%;
  min-height: calc(100vh - 280px);
  margin: 0;
}

.rope-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  box-shadow: 16px 0 42px rgba(0, 0, 0, 0.22);
}

.rope-arena {
  position: relative;
  min-height: calc(100vh - 280px);
  overflow: hidden;
  padding: 0;
  background:
    linear-gradient(90deg, rgba(255, 79, 154, 0.2), transparent 24%, transparent 76%, rgba(45, 255, 176, 0.24)),
    radial-gradient(circle at 50% 58%, rgba(29, 92, 150, 0.5), transparent 42%),
    linear-gradient(180deg, #6db4ff 0%, #335b86 45%, #132137 46%, #070d18 100%);
}

.rope-wait-screen,
.rope-vs-screen,
.rope-result-panel {
  display: grid;
  min-height: 540px;
  place-items: center;
  align-content: center;
  gap: 16px;
  text-align: center;
}

.rope-wait-screen[hidden],
.rope-vs-screen[hidden],
.rope-game-screen[hidden],
.rope-result-panel[hidden] {
  display: none;
}

.rope-wait-screen h2,
.rope-result-panel h2 {
  margin: 0;
  font-family: "Bungee", "Inter", sans-serif;
  color: #2dffb0;
}

.rope-game-screen {
  display: grid;
  min-height: calc(100vh - 280px);
  grid-template-rows: auto minmax(360px, 1fr) auto;
  gap: 0;
}

.rope-score-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  padding: clamp(14px, 2vw, 24px);
  background: linear-gradient(180deg, rgba(7, 13, 24, 0.72), transparent);
  z-index: 4;
}

.rope-player-card,
.rope-target-card {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.rope-player-card.is-local {
  border-color: rgba(45, 255, 176, 0.55);
  box-shadow: 0 0 24px rgba(45, 255, 176, 0.12);
}

.rope-player-card img {
  width: 76px;
  height: 76px;
  border-radius: 8px;
  object-fit: cover;
  image-rendering: pixelated;
}

.rope-player-card strong,
.rope-player-card span,
.rope-target-card strong {
  overflow-wrap: anywhere;
}

.rope-player-card span,
.rope-target-card strong {
  color: #ffd05a;
  font-family: "Bungee", "Inter", sans-serif;
  font-size: 2rem;
}

.rope-target-card {
  min-width: 110px;
  align-content: center;
}

.rope-target-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.rope-stage {
  position: relative;
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
  perspective: 680px;
}

.rope-lane {
  position: relative;
  width: min(680px, 92%);
  height: 74px;
  z-index: 2;
  transform: translateY(74px) rotateX(56deg);
}

.rope-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 18px;
  border-radius: 999px;
  background:
    repeating-linear-gradient(90deg, #8b572a 0 18px, #c79251 18px 36px);
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.42), 0 12px 28px rgba(0, 0, 0, 0.28);
  transform: translateY(-50%);
}

.rope-center {
  position: absolute;
  left: 50%;
  top: 0;
  width: 4px;
  height: 100%;
  border-radius: 999px;
  background: #ff4f9a;
  box-shadow: 0 0 22px rgba(255, 79, 154, 0.6);
}

.rope-end {
  position: absolute;
  top: 50%;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 4px solid #ffd05a;
  background: #151b29;
  transform: translateY(-50%);
  z-index: 1;
}

.rope-end.is-left {
  left: -14px;
}

.rope-end.is-right {
  right: -14px;
}

.rope-pull-marker {
  position: absolute;
  left: calc(50% + var(--rope-pull, 0%));
  top: 70%;
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 79, 154, 0.2);
  box-shadow: 0 0 36px rgba(255, 79, 154, 0.28);
  transform: translate(-50%, -50%);
  transition: left 0.18s ease;
  z-index: 3;
}

.rope-pull-marker span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #2dffb0;
  box-shadow: 0 0 20px rgba(45, 255, 176, 0.72);
}

.rope-floating-keys {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.rope-floating-key {
  position: absolute;
  left: var(--key-x, 50%);
  top: var(--key-y, 50%);
  display: grid;
  width: clamp(44px, 7vw, 62px);
  height: clamp(44px, 7vw, 62px);
  place-items: center;
  border: 2px solid #d9e4f7;
  border-radius: 7px;
  background:
    linear-gradient(180deg, #ffffff, #dfe8f6);
  color: #1a2435;
  font-family: "Bungee", "Inter", sans-serif;
  font-size: clamp(1rem, 2.4vw, 1.45rem);
  box-shadow:
    inset 0 -5px 0 rgba(70, 86, 112, 0.16),
    0 10px 0 rgba(18, 28, 42, 0.26),
    0 18px 26px rgba(0, 0, 0, 0.34);
  transform: translate(-50%, -50%);
  animation: ropeKeyFloat 0.92s ease-in-out var(--key-delay, 0s) infinite alternate;
}

.rope-floating-key::before,
.rope-floating-key::after {
  content: "";
  position: absolute;
  top: -16px;
  width: 4px;
  height: 14px;
  border-radius: 999px;
  background: #ff475f;
  box-shadow: 0 0 10px rgba(255, 71, 95, 0.7);
}

.rope-floating-key::before {
  left: 9px;
  transform: rotate(-42deg);
}

.rope-floating-key::after {
  right: 9px;
  transform: rotate(42deg);
}

.rope-floating-key.is-pressed {
  border-color: #2dffb0;
  color: #0d352b;
  background: linear-gradient(180deg, #dffff4, #9dffd8);
  transform: translate(-50%, -45%) scale(0.93);
  box-shadow:
    inset 0 -3px 0 rgba(20, 97, 72, 0.18),
    0 5px 0 rgba(18, 28, 42, 0.22),
    0 0 28px rgba(45, 255, 176, 0.52);
}

@keyframes ropeKeyFloat {
  from {
    transform: translate(-50%, -50%) translateY(-5px) rotate(-1deg);
  }

  to {
    transform: translate(-50%, -50%) translateY(8px) rotate(1deg);
  }
}

.rope-combo-box {
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: 18px clamp(16px, 3vw, 34px) 24px;
  border-top: 1px solid rgba(255, 208, 90, 0.22);
  background: linear-gradient(180deg, transparent, rgba(7, 13, 24, 0.82));
  text-align: center;
  z-index: 4;
}

.rope-mobile-keys {
  position: relative;
  width: min(430px, 100%);
  height: 190px;
  margin-top: 2px;
}

.rope-effort-meter {
  position: relative;
  width: min(520px, 100%);
  height: 28px;
  overflow: hidden;
  border: 2px solid rgba(255, 208, 90, 0.44);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.12)),
    rgba(9, 15, 27, 0.88);
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.42), 0 10px 24px rgba(0, 0, 0, 0.22);
}

.rope-effort-meter span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, #ff4f5f, #ffd05a 55%, #2dffb0);
  box-shadow: 0 0 22px rgba(255, 208, 90, 0.32);
  transition: width 0.1s ease;
}

.rope-effort-meter strong {
  position: relative;
  z-index: 1;
  display: grid;
  height: 100%;
  place-items: center;
  color: #ffffff;
  font-size: 0.78rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.rope-mobile-keys button {
  position: absolute;
  left: var(--mobile-key-x, 50%);
  top: var(--mobile-key-y, 50%);
  display: grid;
  min-width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(255, 208, 90, 0.42);
  border-radius: 8px;
  background: #111827;
  color: #ffffff;
  font-family: "Bungee", "Inter", sans-serif;
  font-size: 1.25rem;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
  transform: translate(-50%, -50%);
}

.rope-mobile-keys button.is-pressed {
  border-color: rgba(45, 255, 176, 0.8);
  background: #12372f;
  color: #2dffb0;
  transform: translate(-50%, calc(-50% + 2px)) scale(0.98);
}

.rope-mobile-keys button {
  min-width: 72px;
  height: 72px;
  cursor: pointer;
  touch-action: none;
}

.mines-room-menu select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 0 10px;
  font: inherit;
  font-weight: 800;
}

.mines-room-menu.is-unranked {
  border-color: color-mix(in srgb, #ffb347 55%, var(--line));
}

.mines-opponent-list-box {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.mines-opponent-list-box > strong,
.mines-list-heading strong {
  color: var(--text);
}

.mines-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mines-list-heading button {
  border: 1px solid color-mix(in srgb, #28c6a4 46%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, #28c6a4 12%, transparent);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 900;
  padding: 7px 9px;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.mines-list-heading button:hover {
  border-color: #28c6a4;
  background: color-mix(in srgb, #28c6a4 22%, transparent);
}

.mines-list-heading button.is-refreshing {
  animation: minesRefreshPulse 0.65s ease;
  border-color: #ff4f9a;
  background: color-mix(in srgb, #ff4f9a 24%, transparent);
  cursor: wait;
}

.mines-opponent-list {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
}

.mines-opponent-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.mines-opponent-item:hover {
  border-color: #28c6a4;
  box-shadow: 0 0 18px rgba(40, 198, 164, 0.14);
}

.mines-opponent-item img {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  object-fit: cover;
  image-rendering: pixelated;
}

.mines-opponent-item strong,
.mines-opponent-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mines-opponent-item small {
  color: var(--muted);
  font-weight: 800;
}

.mines-lobby-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 10px;
  border: 2px solid rgba(124, 77, 30, 0.58);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 198, 94, 0.95), rgba(198, 139, 61, 0.94)),
    var(--surface-soft);
  color: #33200d;
  box-shadow: inset 0 0 0 2px rgba(255, 233, 135, 0.28);
}

.mines-lobby-card.is-unranked {
  border-color: rgba(151, 82, 38, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 168, 84, 0.95), rgba(190, 92, 58, 0.93)),
    var(--surface-soft);
}

.mines-lobby-card img {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  object-fit: cover;
  image-rendering: pixelated;
}

.mines-lobby-card strong,
.mines-lobby-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mines-lobby-card strong {
  font-family: "Bungee", var(--font-display);
  font-size: 0.92rem;
}

.mines-lobby-card small {
  margin-top: 4px;
  color: #1f1609;
  font-weight: 1000;
}

.mines-lobby-card button {
  min-width: 78px;
  border: 4px solid rgba(172, 155, 67, 0.65);
  border-radius: 999px;
  background: linear-gradient(180deg, #fff07b, #f6dc52);
  color: #6f4615;
  cursor: pointer;
  font-family: "Bungee", var(--font-display);
  font-size: 0.95rem;
  padding: 11px 18px;
}

.mines-spectator-exit {
  width: min(260px, 100%);
  margin: 0 auto;
}

.mines-ranking-box {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 79, 154, 0.12), transparent 44%),
    var(--surface-soft);
}

.mines-tournament-box {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, #ff4f9a 38%, var(--line));
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 79, 154, 0.13), rgba(40, 198, 164, 0.09)),
    var(--surface-soft);
}

.mines-tournament-box > * {
  position: relative;
  z-index: 1;
}

.mines-tournament-box.is-open-tournament {
  border-color: #ff342e;
  box-shadow:
    0 0 0 1px rgba(255, 52, 46, 0.48),
    0 0 34px rgba(255, 52, 46, 0.25),
    inset 0 0 24px rgba(255, 112, 35, 0.12);
}

.mines-tournament-box.is-open-tournament::before,
.mines-tournament-box.is-open-tournament::after {
  content: "";
  position: absolute;
  inset: auto -18% -34px -18%;
  z-index: 0;
  height: 120px;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 72%, rgba(255, 216, 72, 0.92) 0 4px, transparent 6px),
    radial-gradient(circle at 19% 58%, rgba(255, 84, 24, 0.9) 0 5px, transparent 8px),
    radial-gradient(circle at 31% 76%, rgba(255, 184, 54, 0.86) 0 4px, transparent 7px),
    radial-gradient(circle at 47% 54%, rgba(255, 63, 24, 0.82) 0 6px, transparent 10px),
    radial-gradient(circle at 62% 70%, rgba(255, 224, 92, 0.9) 0 4px, transparent 7px),
    radial-gradient(circle at 78% 60%, rgba(255, 99, 28, 0.86) 0 5px, transparent 9px),
    radial-gradient(circle at 91% 78%, rgba(255, 200, 58, 0.88) 0 4px, transparent 7px);
  opacity: 0.7;
  animation: tournamentFireParticles 2.1s linear infinite;
}

.mines-tournament-box.is-open-tournament::after {
  inset-inline: -8%;
  animation-delay: -1.05s;
  opacity: 0.48;
  filter: blur(2px);
}

.tournament-admin-panel,
.tournament-player-panel,
.tournament-participants,
.tournament-bracket {
  display: grid;
  gap: 10px;
}

.tournament-admin-panel label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
}

.tournament-admin-panel select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 0 10px;
}

.tournament-participant {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
}

.tournament-participant img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  image-rendering: pixelated;
}

.tournament-participant b,
.tournament-participant small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tournament-participant small {
  color: var(--muted);
  font-weight: 800;
}

.tournament-move-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.tournament-move-actions button,
.tournament-match button {
  border: 1px solid color-mix(in srgb, #28c6a4 42%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, #28c6a4 14%, transparent);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 900;
  padding: 7px 8px;
}

.tournament-player-panel {
  position: relative;
  overflow: hidden;
  padding: 10px;
  border: 1px solid rgba(255, 52, 46, 0.78);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 52, 46, 0.18), rgba(255, 148, 38, 0.1)),
    color-mix(in srgb, var(--surface) 86%, transparent);
  box-shadow: inset 0 0 18px rgba(255, 52, 46, 0.12);
}

.tournament-player-panel::before {
  content: "";
  position: absolute;
  inset: -45% -18%;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 86%, rgba(255, 220, 93, 0.38), transparent 28%),
    radial-gradient(ellipse at 50% 64%, rgba(255, 72, 26, 0.32), transparent 42%),
    linear-gradient(90deg, transparent, rgba(255, 144, 35, 0.18), transparent);
  filter: blur(12px);
  opacity: 0.74;
  animation: tournamentJoinHeat 1.9s ease-in-out infinite alternate;
}

.tournament-player-panel .secondary-button {
  position: relative;
  z-index: 1;
  border-color: rgba(255, 52, 46, 0.95);
  background:
    linear-gradient(135deg, rgba(255, 52, 46, 0.72), rgba(255, 162, 36, 0.54)),
    color-mix(in srgb, var(--surface) 42%, #000);
  box-shadow: 0 0 20px rgba(255, 52, 46, 0.28);
}

.tournament-move-actions button:disabled {
  cursor: default;
  opacity: 0.38;
}

.tournament-bracket {
  display: flex;
  align-items: stretch;
  gap: 28px;
  overflow-x: auto;
  max-width: 100%;
  padding: 12px 6px 16px;
  border: 1px solid color-mix(in srgb, #ffffff 10%, var(--line));
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.08)),
    rgba(0, 0, 0, 0.18);
  scrollbar-color: #ff342e rgba(255, 255, 255, 0.08);
}

.tournament-round {
  position: relative;
  display: flex;
  flex: 0 0 min(210px, 68vw);
  flex-direction: column;
  justify-content: center;
  gap: calc(10px + var(--round-index, 0) * 22px);
  min-width: 0;
}

.tournament-round h3 {
  margin: 0;
  color: #28c6a4;
  font-family: "Bungee", "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
}

.tournament-match {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 2px solid rgba(244, 248, 255, 0.72);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.16)),
    color-mix(in srgb, var(--surface) 88%, #000);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
}

.tournament-match::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -30px;
  width: 30px;
  height: 2px;
  background: rgba(244, 248, 255, 0.72);
}

.tournament-round:last-child .tournament-match::after {
  display: none;
}

.tournament-match div {
  display: grid;
  gap: 6px;
}

.tournament-match span {
  min-width: 0;
  overflow: hidden;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tournament-match span.is-winner {
  color: #101622;
  background: #28c6a4;
  font-weight: 1000;
}

.tournament-match small {
  color: var(--muted);
  font-weight: 800;
}

.tournament-match.is-active {
  border-color: #ffb347;
  box-shadow: 0 0 22px rgba(255, 179, 71, 0.22);
}

.tournament-match.is-done {
  border-color: color-mix(in srgb, #28c6a4 42%, var(--line));
}

.tournament-match.has-bye {
  opacity: 0.78;
}

.mines-ranking-header,
.mines-ranking-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mines-ranking-header strong {
  color: var(--text);
}

.mines-ranking-header button {
  border: 1px solid color-mix(in srgb, #28c6a4 46%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, #28c6a4 14%, transparent);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 7px 10px;
}

.mines-ranking-list {
  display: grid;
  gap: 8px;
  max-height: 300px;
  overflow: auto;
}

.mines-ranking-row {
  padding: 9px 10px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}

.mines-ranking-player {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-width: 0;
}

.mines-ranking-position {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: color-mix(in srgb, #ff4f9a 24%, transparent);
  color: #fff;
  font-weight: 1000;
  font-size: 0.78rem;
}

.mines-ranking-player strong,
.mines-ranking-player small,
.mines-ranking-elo strong,
.mines-ranking-elo small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mines-ranking-player small,
.mines-ranking-elo small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.mines-ranking-elo {
  min-width: 74px;
  text-align: right;
}

.mines-ranking-elo strong {
  color: #28c6a4;
  font-family: "Bungee", var(--font-display);
  font-size: 0.95rem;
}

.mines-result-panel {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 12px;
  width: 100%;
  min-height: 100vh;
  padding: clamp(22px, 5vw, 56px);
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 79, 154, 0.26), transparent 34%),
    radial-gradient(circle at 18% 82%, rgba(40, 198, 164, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(255, 79, 154, 0.18), rgba(40, 198, 164, 0.12)),
    rgba(6, 9, 18, 0.98);
  text-align: center;
  box-shadow: none;
}

.mines-result-panel[hidden] {
  display: none;
}

.mines-result-panel p,
.mines-result-panel h2 {
  margin: 0;
}

.mines-result-panel p {
  color: #28c6a4;
  font-family: "Bungee", var(--font-display);
  font-size: 0.82rem;
}

.mines-result-panel h2 {
  color: #ff4f9a;
  font-family: "Bungee", var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.mines-result-panel > strong {
  color: var(--text);
  font-size: 1.1rem;
}

.mines-final-elo {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 10px;
  width: min(520px, 100%);
}

.mines-final-elo article,
.mines-final-round-row {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.mines-final-elo article {
  display: grid;
  gap: 4px;
  padding: 12px;
}

.mines-final-elo span,
.mines-final-round-row span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mines-final-elo strong,
.mines-final-round-row strong {
  color: #ffffff;
  font-family: "Bungee", var(--font-display);
}

.mines-final-rounds {
  display: grid;
  gap: 8px;
  width: min(420px, 100%);
  max-height: min(36vh, 320px);
  overflow: auto;
  padding-right: 4px;
}

.mines-final-round-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
}

.mines-head-frame,
.mines-vs-card img,
.mines-player-card img {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, #ff4f9a 46%, var(--line));
  border-radius: 8px;
  background: var(--surface-soft);
}

.mines-head-frame {
  width: 74px;
  height: 74px;
}

.mines-head-frame img,
.mines-vs-card img,
.mines-player-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.mines-arena {
  min-height: 640px;
  padding: clamp(18px, 3vw, 28px);
}

.mines-in-game .mines-arena {
  min-height: calc(100vh - 128px);
}

.mines-idle-screen,
.mines-vs-screen {
  display: grid;
  min-height: 560px;
  place-items: center;
  text-align: center;
}

.mines-idle-screen h2 {
  margin: 0;
  font-family: "Bungee", "Inter", sans-serif;
  color: #28c6a4;
}

.mines-idle-screen p {
  max-width: 460px;
  margin: 14px auto 0;
  color: var(--muted);
}

.mines-vs-screen {
  gap: 18px;
}

.mines-vs-screen.is-tournament-intro {
  position: relative;
  overflow: hidden;
}

.mines-vs-screen.is-tournament-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 46%, rgba(255, 234, 118, 0.92), rgba(255, 76, 28, 0.42) 18%, rgba(255, 79, 154, 0.24) 34%, transparent 62%);
  mix-blend-mode: screen;
  animation: minesVsExplosion 2.5s ease-out forwards;
}

.mines-vs-screen.is-tournament-intro .login-note {
  position: relative;
  z-index: 2;
  min-height: 44px;
  color: #ffe8a4;
  font-family: "Bungee", "Inter", sans-serif;
  font-size: clamp(1.1rem, 3vw, 2.25rem);
  text-shadow: 0 0 22px rgba(255, 98, 28, 0.42);
}

.mines-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.danger-button {
  border-color: color-mix(in srgb, #ff4f4f 58%, var(--line));
  background: color-mix(in srgb, #ff4f4f 18%, var(--surface));
}

.mines-vs-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(130px, 1fr) auto minmax(130px, 1fr);
  gap: clamp(14px, 4vw, 42px);
  align-items: center;
  width: min(760px, 100%);
}

.mines-vs-card div {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.mines-vs-card.is-clashing div:first-child {
  animation: minesVsLeftClash 2.4s cubic-bezier(0.2, 0.82, 0.18, 1) forwards;
}

.mines-vs-card.is-clashing div:last-child {
  animation: minesVsRightClash 2.4s cubic-bezier(0.2, 0.82, 0.18, 1) forwards;
}

.mines-vs-card img {
  width: clamp(96px, 18vw, 156px);
  height: clamp(96px, 18vw, 156px);
}

.mines-vs-card strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: clamp(1.3rem, 3vw, 2.2rem);
}

.mines-vs-card > span {
  color: #ff4f9a;
  font-size: clamp(2.4rem, 8vw, 6rem);
  text-shadow: 0 0 32px rgba(255, 79, 154, 0.28);
}

.mines-vs-screen.is-tournament-intro .mines-vs-card > span {
  transform: scale(0.2);
  opacity: 0;
  animation: minesVsPop 2.4s ease-out forwards;
}

.mines-vs-screen.is-tournament-countdown .mines-vs-card {
  animation: minesVsCountdownPulse 1s ease-in-out infinite;
}

.mines-game-screen {
  display: grid;
  gap: 18px;
}

.mines-spectator-counter {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: 9px;
  min-height: 36px;
  padding: 7px 14px;
  border: 1px solid color-mix(in srgb, #28c6a4 48%, var(--line));
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(40, 198, 164, 0.18), rgba(255, 79, 154, 0.08)),
    rgba(0, 0, 0, 0.34);
  box-shadow: 0 0 22px rgba(40, 198, 164, 0.12);
  color: var(--text);
  font-weight: 900;
}

.spectator-eye {
  position: relative;
  width: 24px;
  height: 14px;
  border: 2px solid #28c6a4;
  border-radius: 999px 999px 999px 999px / 72% 72% 72% 72%;
}

.spectator-eye::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #28c6a4;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px rgba(40, 198, 164, 0.72);
}

.mines-spectator-counter strong {
  color: #28c6a4;
  font-family: "Bungee", "Inter", sans-serif;
}

.mines-board-wrap {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(8px, 2vw, 18px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03), transparent),
    color-mix(in srgb, var(--surface-soft) 84%, #000);
}

.mines-confetti-layer {
  position: absolute;
  inset: clamp(8px, 2vw, 18px);
  z-index: 1;
  overflow: hidden;
  border-radius: 8px;
  pointer-events: none;
}

.mines-confetti-layer span {
  position: absolute;
  top: -10%;
  left: var(--confetti-x, 50%);
  width: var(--confetti-size, 7px);
  height: calc(var(--confetti-size, 7px) * 1.55);
  border-radius: 2px;
  opacity: 0.72;
  box-shadow: 0 0 10px currentColor;
  animation: spectatorConfettiFall 1.85s cubic-bezier(0.22, 0.74, 0.3, 1) var(--confetti-delay, 0s) forwards;
}

.mines-board {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(88vw, 590px);
  aspect-ratio: 1;
  grid-template-columns: repeat(var(--grid-size), 1fr);
  grid-auto-rows: 1fr;
  gap: clamp(4px, 0.9vw, 8px);
}

.mines-cell {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid color-mix(in srgb, #28c6a4 28%, var(--line));
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(40, 198, 164, 0.08), rgba(255, 79, 154, 0.05)),
    var(--surface);
  cursor: pointer;
}

.mines-board.is-crazy-shuffling .mines-cell {
  pointer-events: none;
  animation: crazyCellShuffle 0.72s cubic-bezier(0.18, 0.92, 0.34, 1.22) infinite alternate;
  box-shadow: 0 0 18px rgba(255, 79, 154, 0.25), 0 0 28px rgba(45, 255, 176, 0.18);
}

.mines-board.is-crazy-shuffling .mines-cell:nth-child(2n) {
  animation-delay: -0.18s;
}

.mines-board.is-crazy-shuffling .mines-cell:nth-child(3n) {
  animation-delay: -0.31s;
}

.mines-cell:disabled {
  cursor: default;
}

.mines-cell img {
  position: absolute;
  inset: 11%;
  width: 78%;
  height: 78%;
  object-fit: contain;
  pointer-events: none;
}

.mines-cell .mine-fade {
  animation: mineFade 0.6s ease forwards;
}

.mines-cell .mine-rock {
  inset: 4%;
  width: 92%;
  height: 92%;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.42));
}

.mines-cell.is-rock {
  border-color: color-mix(in srgb, #8c96a4 44%, var(--line));
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.12), transparent 45%),
    color-mix(in srgb, var(--surface) 72%, #222936);
  cursor: not-allowed;
}

.mines-cell.is-hit {
  background: rgba(255, 79, 154, 0.18);
}

.mines-cell.is-safe {
  background: rgba(40, 198, 164, 0.16);
}

.mines-cell.is-discarded {
  border-color: transparent;
  background: rgba(0, 0, 0, 0.34);
  opacity: 0.28;
  transform: scale(0.86);
}

@keyframes crazyCellShuffle {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }

  45% {
    transform:
      translate(calc(var(--crazy-x, 0px) * 0.58), calc(var(--crazy-y, 0px) * 0.58))
      rotate(calc(var(--crazy-rot, 0deg) * 0.7))
      scale(0.9);
  }

  100% {
    transform:
      translate(var(--crazy-x, 0px), var(--crazy-y, 0px))
      rotate(var(--crazy-rot, 0deg))
      scale(0.82);
  }
}

.mines-instructions {
  margin: 0;
  text-align: center;
  font-weight: 800;
}

.mines-confetti-controls {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 170;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(11, 17, 29, 0.88);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
}

.mines-confetti-controls[hidden] {
  display: none;
}

.mines-confetti-button {
  min-width: 72px;
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-weight: 1000;
  cursor: pointer;
}

.mines-confetti-button.is-blue {
  background: linear-gradient(135deg, #2d8cff, #16d4ff);
}

.mines-confetti-button.is-red {
  background: linear-gradient(135deg, #ff405f, #ff7a30);
}

.mines-confetti-button:disabled {
  cursor: default;
  filter: grayscale(0.8);
  opacity: 0.52;
}

.mines-confetti-controls span {
  display: grid;
  min-width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  color: #c9d6f1;
  font-weight: 900;
}

.mines-hud {
  display: grid;
  grid-template-columns: 105px minmax(120px, 150px) minmax(150px, 1fr) minmax(120px, 150px) 105px;
  gap: 8px;
  align-items: end;
  margin-top: 12px;
}

.mines-hud-card {
  position: relative;
  display: grid;
  height: 147px;
  grid-template-rows: 1fr auto;
  padding: 12px 8px 4px;
  background-position: center;
  background-size: 100% 100%;
  transition: filter 0.22s ease, opacity 0.22s ease, transform 0.22s ease;
}

.mines-hud-p1 {
  background-image: url("assets/buscaminasduel/p1_card.png");
}

.mines-hud-p2 {
  background-image: url("assets/buscaminasduel/p2_card.png");
}

.mines-hud-card.is-active {
  filter: saturate(1.08) drop-shadow(0 0 14px rgba(40, 198, 164, 0.62));
  opacity: 1;
  transform: translateY(-2px);
}

.mines-hud-card.is-inactive {
  filter: grayscale(1) saturate(0.2);
  opacity: 0.44;
}

.mines-hud-head {
  width: 72px;
  height: 72px;
  margin: 8px auto 0;
  border-radius: 8px;
  overflow: hidden;
  background: #111;
}

.mines-hud-head img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.mines-hud-card strong {
  display: block;
  width: 100%;
  overflow: hidden;
  color: #ff3f5d;
  font-family: "Bungee", "Inter", sans-serif;
  font-size: 0.68rem;
  font-weight: 400;
  text-align: center;
  text-overflow: ellipsis;
  text-shadow: 0 0 8px rgba(255, 63, 93, 0.4);
  white-space: nowrap;
}

.mines-hud-p2 strong {
  color: #5f73ff;
  text-shadow: 0 0 8px rgba(95, 115, 255, 0.45);
}

.mines-hud-lives {
  position: absolute;
  top: 74px;
  left: calc(100% + 18px);
  z-index: 2;
  display: flex;
  gap: 14px;
  pointer-events: none;
}

.mines-hud-p2 .mines-hud-lives {
  right: calc(100% + 18px);
  left: auto;
}

.mines-hud-lives img {
  width: 23px;
  height: 23px;
  image-rendering: pixelated;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.4));
}

.mines-hud-timer {
  display: grid;
  height: 36px;
  align-items: center;
  padding: 0 22px;
  background-position: center;
  background-size: 100% 100%;
  transition: filter 0.22s ease, opacity 0.22s ease;
}

.mines-hud-timer.is-active {
  filter: saturate(1.1) drop-shadow(0 0 12px rgba(40, 198, 164, 0.5));
  opacity: 1;
}

.mines-hud-timer.is-inactive {
  filter: grayscale(1) saturate(0.15);
  opacity: 0.36;
}

.mines-hud-timer-left {
  background-image: url("assets/buscaminasduel/p1_timer.png");
  justify-items: end;
}

.mines-hud-timer-right {
  background-image: url("assets/buscaminasduel/p2_timer.png");
  justify-items: start;
}

.mines-hud-timer span {
  font-family: "Bungee", "Inter", sans-serif;
  font-size: 1.35rem;
  line-height: 1;
  color: #ff3f5d;
  text-shadow: 0 0 10px rgba(255, 63, 93, 0.34);
}

.mines-hud-timer-right span {
  color: #5f73ff;
  text-shadow: 0 0 10px rgba(95, 115, 255, 0.4);
}

.mines-round-card {
  align-self: stretch;
  display: grid;
  gap: 6px;
  place-items: center;
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  text-align: center;
}

.mines-round-card span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mines-round-card strong {
  max-width: 100%;
  overflow: hidden;
  color: #28c6a4;
  font-family: "Bungee", "Inter", sans-serif;
  font-size: clamp(0.8rem, 1.5vw, 1.1rem);
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes mineFade {
  from {
    opacity: 1;
    transform: scale(1);
  }

  to {
    opacity: 0;
    transform: scale(0.72);
  }
}

@keyframes minesExplosionFlash {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }

  18% {
    opacity: 1;
    transform: scale(1.03);
  }

  100% {
    opacity: 0;
    transform: scale(1.4);
  }
}

@keyframes mineShockwave {
  0% {
    opacity: 0;
    transform: scale(0.2);
    filter: blur(0);
  }

  22% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: scale(2.8);
    filter: blur(8px);
  }
}

@keyframes minesScreenShake {
  10%,
  90% {
    transform: translate3d(-2px, 1px, 0);
  }

  20%,
  80% {
    transform: translate3d(4px, -2px, 0);
  }

  30%,
  50%,
  70% {
    transform: translate3d(-6px, 3px, 0);
  }

  40%,
  60% {
    transform: translate3d(6px, -3px, 0);
  }
}

@keyframes mineDirtCurtain {
  0% {
    opacity: 0;
    transform: translateY(-112%);
  }

  18% {
    opacity: 1;
  }

  54%,
  78% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(18%);
  }
}

@keyframes mineLoadingText {
  0%,
  16% {
    opacity: 0;
    transform: translateY(-12px) scale(0.96);
  }

  32%,
  76% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(12px) scale(1.02);
  }
}

@keyframes minesTurnGlow {
  from {
    opacity: 0.44;
  }

  to {
    opacity: 0.82;
  }
}

@keyframes mineDirtParticle {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }

  70% {
    opacity: 0.95;
  }

  100% {
    opacity: 0;
    transform:
      translate(calc(-50% + var(--particle-x)), calc(-50% + var(--particle-y)))
      scale(0.18)
      rotate(var(--particle-rotate));
  }
}

@keyframes spectatorConfettiFall {
  0% {
    opacity: 0;
    transform: translate3d(0, -12%, 0) rotate(0deg);
  }

  14% {
    opacity: 0.72;
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--confetti-drift, 0), 118%, 0) rotate(var(--confetti-rotate, 360deg));
  }
}

@keyframes minesRefreshPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(255, 79, 154, 0);
  }

  45% {
    transform: scale(1.06);
    box-shadow: 0 0 18px rgba(255, 79, 154, 0.34);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(255, 79, 154, 0);
  }
}

@keyframes tournamentFireParticles {
  0% {
    transform: translateY(32px) scale(0.92);
    opacity: 0;
  }

  18% {
    opacity: 0.78;
  }

  100% {
    transform: translateY(-74px) scale(1.08);
    opacity: 0;
  }
}

@keyframes tournamentHeatShader {
  0% {
    opacity: 0.42;
    transform: translateY(10px) scale(1);
    filter: blur(0.6px) saturate(1.06);
  }

  100% {
    opacity: 0.78;
    transform: translateY(-8px) scale(1.025);
    filter: blur(1.4px) saturate(1.32);
  }
}

@keyframes tournamentJoinHeat {
  0% {
    transform: translateY(14px) scaleX(0.96);
    opacity: 0.48;
  }

  100% {
    transform: translateY(-12px) scaleX(1.08);
    opacity: 0.86;
  }
}

@keyframes minesVsLeftClash {
  0% {
    transform: translateX(-28vw) scale(0.9);
    opacity: 0.2;
  }

  58% {
    transform: translateX(34%) scale(1.1);
    opacity: 1;
  }

  100% {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

@keyframes minesVsRightClash {
  0% {
    transform: translateX(28vw) scale(0.9);
    opacity: 0.2;
  }

  58% {
    transform: translateX(-34%) scale(1.1);
    opacity: 1;
  }

  100% {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

@keyframes minesVsExplosion {
  0%,
  40% {
    opacity: 0;
    transform: scale(0.25);
  }

  60% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0.24;
    transform: scale(1.45);
  }
}

@keyframes minesVsPop {
  0%,
  44% {
    opacity: 0;
    transform: scale(0.2) rotate(-8deg);
  }

  62% {
    opacity: 1;
    transform: scale(1.25) rotate(2deg);
  }

  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes minesVsCountdownPulse {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(255, 79, 154, 0));
  }

  50% {
    transform: scale(1.025);
    filter: drop-shadow(0 0 26px rgba(255, 98, 28, 0.34));
  }
}

.portfolio-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(24, 37, 72, 0.07);
}

.portfolio-intro p,
.utilities-section p {
  max-width: 780px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.character-image {
  width: min(100%, 330px);
  justify-self: center;
  object-fit: contain;
  filter: drop-shadow(0 22px 26px rgba(24, 37, 72, 0.18));
}

.events-block {
  margin-top: 34px;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.event-card {
  display: grid;
  gap: 12px;
  width: 100%;
  min-height: 280px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font: inherit;
  font-weight: 800;
  box-shadow: 0 12px 32px rgba(24, 37, 72, 0.07);
}

.event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(24, 37, 72, 0.12);
}

.event-card[aria-disabled="true"] {
  cursor: default;
}

.event-card[aria-disabled="true"]:hover {
  transform: none;
}

.event-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  object-fit: cover;
}

.event-card span,
.event-card small {
  padding: 0 4px;
}

.event-card small {
  margin-top: -8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.personal-events-panel {
  margin-top: 24px;
  padding: clamp(18px, 4vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 16px 36px rgba(24, 37, 72, 0.08);
}

.personal-events-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.personal-events-tab {
  min-height: 54px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.personal-events-tab:hover,
.personal-events-tab.is-active {
  border-color: color-mix(in srgb, var(--primary) 70%, var(--line));
  background: color-mix(in srgb, var(--primary) 12%, var(--surface));
  color: var(--primary);
}

.personal-events-content {
  display: none;
}

.personal-events-content.is-active {
  display: grid;
  gap: 20px;
}

.personal-events-content p {
  margin: 0;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
}

.build-carousel {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.event-logo-slot {
  display: grid;
  place-items: center;
  min-height: 112px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.event-logo-slot img {
  width: 100%;
  max-height: 84px;
  object-fit: contain;
}

.event-logo-slot-text {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
}

.build-carousel-track {
  display: grid;
  grid-auto-columns: minmax(220px, 320px);
  grid-auto-flow: column;
  gap: 14px;
  overflow-x: auto;
  padding: 2px 2px 14px;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--primary) transparent;
}

.build-carousel-track img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  scroll-snap-align: start;
  background: var(--surface-soft);
  box-shadow: 0 10px 22px rgba(24, 37, 72, 0.1);
}

.personal-events-page {
  min-height: 100vh;
  background: #050607;
}

.personal-events-page .topbar {
  background: color-mix(in srgb, #050607 88%, transparent);
  color: #f8fafc;
}

.personal-events-main {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: clamp(26px, 5vw, 54px) clamp(16px, 4vw, 34px) 64px;
}

.personal-events-hero {
  display: grid;
  gap: 22px;
}

.personal-events-heading {
  color: #f8fafc;
}

.personal-events-heading h1 {
  margin: 4px 0 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.personal-showcase {
  display: none;
}

.personal-showcase.is-active {
  display: grid;
  gap: clamp(34px, 6vw, 72px);
}

.event-showcase-gallery {
  display: grid;
  gap: 16px;
}

.event-showcase-gallery + .event-showcase-gallery {
  padding-top: clamp(24px, 5vw, 54px);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.event-showcase-heading {
  display: flex;
  gap: 16px;
  align-items: center;
  color: #f8fafc;
}

.event-showcase-heading h2 {
  margin: 4px 0 0;
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  line-height: 1;
}

.event-showcase-logo {
  display: grid;
  place-items: center;
  min-width: 112px;
  min-height: 74px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.event-showcase-logo img {
  max-width: 130px;
  max-height: 62px;
  object-fit: contain;
}

.event-showcase-logo span {
  color: #f8fafc;
  font-size: 0.82rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.showcase-frame {
  position: relative;
  min-height: clamp(360px, 64vw, 680px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0;
  background: #050607;
}

.showcase-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-image.is-sliding-next {
  animation: showcaseSlideNext 420ms ease both;
}

.showcase-image.is-sliding-back {
  animation: showcaseSlideBack 420ms ease both;
}

@keyframes showcaseSlideNext {
  from {
    opacity: 0;
    transform: translateX(42px) scale(1.02);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes showcaseSlideBack {
  from {
    opacity: 0;
    transform: translateX(-42px) scale(1.02);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.showcase-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.38)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.55), transparent 42%);
}

.showcase-logo {
  position: absolute;
  top: clamp(14px, 3vw, 28px);
  left: clamp(14px, 3vw, 28px);
  display: grid;
  place-items: center;
  min-width: 92px;
  min-height: 64px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(10px);
}

.showcase-logo img {
  max-width: 120px;
  max-height: 58px;
  object-fit: contain;
}

.showcase-logo span {
  color: #f8fafc;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.showcase-caption {
  position: absolute;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  left: clamp(14px, 3vw, 28px);
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(8, 21, 36, 0.55);
  color: #f8fafc;
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.25);
}

.showcase-caption p {
  margin: 0;
}

.showcase-caption p:first-child {
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.showcase-caption h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1;
}

.showcase-controls {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.showcase-arrow,
.showcase-dot {
  border: 1px solid rgba(255, 255, 255, 0.46);
  background: rgba(0, 0, 0, 0.18);
  color: #f8fafc;
  cursor: pointer;
}

.showcase-arrow {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  font-size: 1.8rem;
}

.showcase-arrow:hover,
.showcase-dot:hover,
.showcase-dot.is-active {
  border-color: #f8fafc;
  background: rgba(255, 255, 255, 0.18);
}

.showcase-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  padding: 8px 0;
}

.showcase-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  padding: 0;
}

.personal-placeholder {
  min-height: 340px;
  display: grid;
  place-items: center;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.84);
  font-weight: 900;
  text-align: center;
}

.models3d-gallery {
  display: grid;
  gap: 22px;
}

.models3d-gallery h2 {
  margin: 0;
  color: #f8fafc;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.05;
}

.models3d-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.models3d-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: clamp(12px, 2vw, 22px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.06);
  object-fit: contain;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

.models3d-grid img:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.34);
}

.utilities-section {
  border-top: 1px solid var(--line);
}

.detail-page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.squid-page {
  background: #020304;
}

.squid-page .topbar {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 4;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.76), transparent);
  color: #f8fafc;
}

.squid-page .brand,
.squid-page .theme-toggle {
  color: #f8fafc;
}

.squid-banner-hero {
  position: relative;
  min-height: clamp(360px, 48vw, 620px);
  overflow: hidden;
  background: #020304;
}

.squid-banner-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.08) 42%, #020304 100%),
    linear-gradient(0deg, #020304 0%, transparent 38%);
  pointer-events: none;
}

.mikus-banner-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: min(48vw, 420px);
  max-height: 46%;
  object-fit: contain;
  filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.5));
  transform: translate(-50%, -50%);
}

.squid-bass-reactive {
  --squid-bass: 0;
  position: relative;
  overflow-x: hidden;
}

.squid-bass-reactive::before {
  content: "";
  position: fixed;
  inset: -18%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 50% 18%,
      rgba(45, 255, 218, calc(0.08 + var(--squid-bass) * 0.28)),
      transparent calc(34% + var(--squid-bass) * 16%)
    ),
    radial-gradient(
      circle at 12% 72%,
      rgba(34, 211, 238, calc(0.04 + var(--squid-bass) * 0.18)),
      transparent calc(26% + var(--squid-bass) * 12%)
    ),
    radial-gradient(
      circle at 88% 64%,
      rgba(16, 185, 129, calc(0.04 + var(--squid-bass) * 0.16)),
      transparent calc(28% + var(--squid-bass) * 12%)
    );
  filter: blur(calc(18px + var(--squid-bass) * 28px)) saturate(calc(1 + var(--squid-bass) * 1.4));
  opacity: calc(0.52 + var(--squid-bass) * 0.42);
  transform: scale(calc(1 + var(--squid-bass) * 0.045));
  transition: opacity 120ms linear, filter 120ms linear, transform 120ms linear;
}

.squid-bass-reactive .squid-showcase-banner,
.squid-bass-reactive .squid-carousel-frame {
  box-shadow:
    0 22px 50px rgba(24, 37, 72, 0.14),
    0 0 calc(18px + var(--squid-bass) * 42px)
      rgba(45, 255, 218, calc(0.08 + var(--squid-bass) * 0.2));
}

.squid-bass-reactive .squid-banner-hero .squid-showcase-banner {
  box-shadow: none;
  filter: saturate(calc(1 + var(--squid-bass) * 0.35))
    brightness(calc(1 + var(--squid-bass) * 0.08));
}

.detail-main {
  display: grid;
  flex: 1;
  place-items: center;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 72px);
}

.squid-detail-main {
  display: grid;
  gap: clamp(28px, 5vw, 54px);
  width: min(100%, 1240px);
  margin: clamp(-104px, -8vw, -56px) auto 0;
  padding: 0 clamp(16px, 4vw, 34px) 72px;
  position: relative;
  z-index: 2;
}

.squid-showcase-hero {
  display: grid;
  gap: clamp(22px, 4vw, 34px);
}

.squid-showcase-banner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center top;
  box-shadow: none;
}

.squid-showcase-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.65fr);
  gap: clamp(22px, 4vw, 42px);
  align-items: start;
}

.squid-showcase-intro h1 {
  margin: 6px 0 12px;
  font-size: clamp(2.4rem, 6vw, 5.6rem);
  font-weight: 900;
  line-height: 0.95;
}

.squid-showcase-intro p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.6;
}

.squid-skin-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 46px;
  margin-top: 18px;
  padding: 0 20px;
  border: 1px solid rgba(70, 255, 219, 0.48);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(18, 242, 206, 0.26), rgba(9, 125, 184, 0.18)),
    rgba(1, 18, 26, 0.62);
  color: #eaffff;
  font-weight: 950;
  text-decoration: none;
  box-shadow: 0 0 26px rgba(32, 224, 193, 0.2);
  backdrop-filter: blur(12px);
}

.squid-skin-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 34px rgba(32, 224, 193, 0.32);
}

.squid-video-card {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: #f8fafc;
  box-shadow: 0 18px 42px rgba(24, 37, 72, 0.14);
}

.squid-video-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(1.06);
}

.squid-video-card span {
  position: absolute;
  inset: auto 16px 16px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.62);
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.squid-video-card:hover {
  transform: translateY(-3px);
}

.squid-video-placeholder {
  display: grid;
  min-height: 220px;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(236, 72, 153, 0.18)),
    color-mix(in srgb, var(--surface) 92%, #000);
}

.squid-video-placeholder span {
  position: static;
  min-height: 48px;
  padding: 0 18px;
  color: #f8fafc;
}

.detail-card {
  width: min(100%, 820px);
  padding: clamp(26px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.detail-card p:last-child {
  margin-bottom: 0;
}

.squid-games-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 28px);
}

.squid-games-showcase {
  display: grid;
  gap: 16px;
}

.squid-carousel-frame {
  min-height: clamp(360px, 58vw, 680px);
  aspect-ratio: 16 / 9;
}

.squid-game-card {
  position: relative;
  min-height: clamp(260px, 36vw, 430px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(15, 23, 42, 0.06)),
    var(--surface);
  box-shadow: 0 16px 36px rgba(24, 37, 72, 0.1);
}

.squid-game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px rgba(24, 37, 72, 0.16);
}

.squid-game-image-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background-position: center;
  background-size: cover;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.46)),
    repeating-linear-gradient(
      135deg,
      color-mix(in srgb, var(--primary) 18%, transparent) 0 18px,
      color-mix(in srgb, var(--primary) 7%, transparent) 18px 36px
    );
}

.squid-game-image-placeholder.has-image {
  place-items: start;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.squid-game-image-placeholder.is-sliding-next {
  animation: showcaseSlideNext 420ms ease both;
}

.squid-game-image-placeholder.is-sliding-back {
  animation: showcaseSlideBack 420ms ease both;
}

.squid-game-image-placeholder::after {
  content: "Imagen";
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border: 1px dashed rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 900;
}

.squid-game-image-placeholder.has-image::before {
  content: attr(data-image-note);
  align-self: start;
  justify-self: start;
  margin: 18px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.54);
  color: #f8fafc;
  font-size: 0.82rem;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.squid-game-image-placeholder.has-image::after {
  content: "";
  display: none;
}

.squid-game-image-placeholder.has-video {
  cursor: pointer;
}

.squid-game-video-frame {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.squid-game-video-link {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: block;
}

.squid-game-image-placeholder.has-video::before {
  position: relative;
  z-index: 3;
}

.squid-game-image-placeholder.has-video::after {
  content: "Ver video";
  position: absolute;
  z-index: 5;
  inset: 50% auto auto 50%;
  display: inline-flex;
  width: auto;
  height: auto;
  min-height: 50px;
  padding: 0 22px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.66);
  color: #f8fafc;
  font-weight: 900;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

.squid-game-developer-badge {
  position: absolute;
  top: clamp(14px, 2vw, 24px);
  right: clamp(14px, 2vw, 24px);
  z-index: 5;
  max-width: min(72%, 420px);
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.56);
  color: #f8fafc;
  font-size: 0.82rem;
  font-weight: 900;
  text-align: right;
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.squid-game-developer-badge[hidden] {
  display: none;
}

.squid-games-showcase .showcase-caption p:last-child {
  white-space: pre-line;
}

.music-control {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: grid;
  gap: 6px;
  justify-items: end;
}

.music-control span {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.music-toggle {
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(24, 37, 72, 0.16);
  backdrop-filter: blur(12px);
}

.music-toggle.is-playing {
  border-color: color-mix(in srgb, var(--primary) 72%, var(--line));
  color: var(--primary);
}

.squid-game-caption {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  padding: clamp(14px, 2.4vw, 22px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(8, 21, 36, 0.58);
  color: #f8fafc;
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.squid-game-caption h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1;
}

.squid-game-caption p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 800;
  line-height: 1.45;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-bottom: 24px;
  color: var(--primary);
  font-weight: 800;
}

.panel {
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(24, 37, 72, 0.07);
}

.panel-heading {
  margin-bottom: 24px;
}

.form label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.inline-field {
  gap: 10px;
}

.inline-field input {
  width: 100%;
  min-height: 48px;
  min-width: 0;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  outline: none;
}

.inline-field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--input-focus);
}

.saved-list {
  display: grid;
  gap: 10px;
  min-height: 48px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.saved-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text);
  font-weight: 700;
}

.saved-list .empty {
  color: var(--muted);
  font-weight: 600;
}

.delete-button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: var(--delete-bg);
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.delete-button:hover {
  background: #fee2e2;
  color: #b42318;
}

@media (max-width: 820px) {
  .topbar {
    align-items: flex-start;
  }

  .topbar,
  .hero,
  .patreon-hero,
  .workspace,
  .portfolio-intro,
  .event-grid,
  .addon-zones,
  .addon-item,
  .tier-podium,
  .sound-tool,
  .manifest-tool,
  .manifest-output-grid,
  .camera-tool,
  .converter-tool,
  .obfuscator-tool,
  .hud-media-tool,
  .dvd-bounce-tool,
  .glyph-emoji-tool,
  .component-editor-tool,
  .particle-tool,
  .converter-summary,
  .addon-detail-hero,
  .addon-detail-content,
  .profile-grid,
  .minecraft-profile-card,
  .admin-grid,
  .admin-profile-preview,
  .whitelist-admin-grid,
  .whitelist-config-grid,
  .duel-layout,
  .duel-scorebar,
  .minigame-select-grid,
  .idle-layout,
  .rope-layout,
  .mines-screen,
  .personal-events-tabs,
  .build-carousel,
  .models3d-grid,
  .squid-games-gallery,
  .squid-showcase-intro {
    grid-template-columns: 1fr;
  }

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

  .rope-layout,
  .rope-arena,
  .rope-game-screen {
    min-height: auto;
  }

  .rope-panel {
    border-right: 0;
    box-shadow: none;
  }

  .rope-arena {
    min-height: 720px;
  }

  .rope-game-screen {
    min-height: 720px;
    grid-template-rows: auto minmax(360px, 1fr) auto;
  }

  .rope-target-card {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .minigame-card {
    min-height: 230px;
  }

  .idle-stats,
  .idle-upgrade,
  .idle-skin-card {
    grid-template-columns: 1fr;
  }

  .teto-top-hud,
  .teto-bottom-hud,
  .teto-big-actions,
  .idle-shop-stats {
    grid-template-columns: 1fr;
  }

  .idle-core-panel {
    min-height: 620px;
    height: 100vh;
    padding: 8px 12px 12px;
    gap: 5px;
  }

  .event-audio-shell {
    grid-template-columns: 1fr;
    margin-top: 84px;
  }

  .event-audio-listener {
    min-height: 520px;
  }

  .event-admin-studio,
  .event-studio-grid,
  .event-mixer-tracks {
    grid-template-columns: 1fr;
  }

  .event-studio-now {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .event-cover-art {
    width: 64px;
  }

  .event-transport,
  .event-waveform {
    grid-column: 1 / -1;
  }

  .event-card-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .event-track-row,
  .event-playlist-row,
  .event-playlist-add-row {
    grid-template-columns: 1fr;
  }

  .event-track-actions {
    justify-content: stretch;
  }

  .event-track-actions button {
    flex: 1;
  }

  .teto-shop-button,
  .teto-inventory-button,
  .teto-side-controls {
    position: absolute;
    left: auto;
    justify-content: center;
  }

  .teto-shop-button {
    display: flex;
    top: 104px;
    right: 10px;
    width: 86px;
  }

  .teto-inventory-button {
    display: flex;
    top: 182px;
    right: 10px;
    width: 82px;
  }

  .teto-side-controls {
    display: grid;
    top: 258px;
    right: 12px;
    width: 78px;
  }

  .teto-side-controls {
    justify-items: center;
  }

  .teto-side-controls .teto-config-button {
    width: min(280px, 100%);
  }

  body.is-idle-admin .teto-config-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(310px, calc(100vw - 24px));
    max-height: min(66vh, 560px);
  }

  .teto-inventory-panel {
    position: fixed;
    inset: auto 14px 18px;
    width: auto;
    max-height: min(72vh, 620px);
  }

  .teto-inventory-skin-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .teto-title-logo {
    width: 220px;
    max-height: 72px;
    margin-top: 0;
  }

  .idle-core.teto-core {
    width: min(315px, 46vh);
  }

  .teto-core img#tetoSkinImage {
    width: min(96%, 280px);
  }

  .teto-top-hud {
    grid-template-columns: repeat(2, minmax(130px, 170px));
    gap: 6px;
  }

  .teto-hud-pill {
    min-height: 42px;
    border-width: 3px;
  }

  .teto-hud-pill strong {
    font-size: 1rem;
  }

  .teto-coin-icon,
  .teto-heart-icon {
    width: 32px;
    height: 32px;
  }

  .teto-hud-pill button {
    width: 28px;
    height: 28px;
    border-width: 2px;
  }

  .teto-scene-badge {
    max-width: calc(100vw - 118px);
    padding: 6px 9px;
  }

  .teto-scene-badge strong {
    font-size: 0.82rem;
  }

  .teto-scene-badge small {
    font-size: 0.62rem;
  }

  .teto-click-callout strong {
    font-size: 1.55rem;
  }

  .teto-bottom-hud {
    grid-template-columns: minmax(0, 1fr) 104px;
    width: min(520px, 100%);
    gap: 6px;
  }

  .teto-hunger-panel {
    padding: 7px 9px;
  }

  .teto-hunger-panel > div:first-child,
  .teto-happy-panel {
    font-size: 0.74rem;
  }

  .teto-hunger-bar {
    height: 18px;
  }

  .idle-shop {
    max-height: none;
    border-left: 0;
  }

  .teto-shop-overlay {
    overflow: hidden;
    padding: 0;
  }

  .teto-shop-wallet {
    top: 22px;
    left: 18px;
    min-width: 136px;
    height: 48px;
    padding-right: 12px;
    border-width: 3px;
  }

  .teto-shop-wallet-icon {
    width: 34px;
    height: 34px;
  }

  .teto-shop-wallet strong {
    font-size: 0.98rem;
  }

  .teto-shop-close {
    top: 22px;
    right: 18px;
    width: 50px;
    height: 50px;
  }

  .teto-shop-menu,
  .teto-shop-content {
    width: min(70vw, 520px);
    max-height: calc(100vh - 140px);
  }

  .teto-shop-content[data-active-panel="food"] {
    top: 84px;
    width: calc(100vw - 22px);
    max-height: calc(100vh - 100px);
    padding: 10px;
  }

  .teto-shop-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    top: clamp(118px, 14vh, 170px);
    left: 18px;
    gap: 12px;
  }

  .teto-shop-category {
    min-height: 0;
  }

  .teto-food-shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    height: 100%;
    padding: 10px 10px 118px 6px;
  }

  .teto-food-shop-stage {
    grid-template-columns: 1fr;
    height: calc(100vh - 250px);
    min-height: 360px;
    padding-bottom: 150px;
  }

  .teto-miku-chef {
    position: absolute;
    right: -10px;
    bottom: -8px;
    width: min(38vw, 170px);
    opacity: 0.88;
  }

  .teto-food-shop-header {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: 6px;
    padding: 6px 8px;
  }

  .teto-food-shop-header img {
    height: 48px;
  }

  .teto-food-shop-header h2 {
    font-size: clamp(1.2rem, 7vw, 1.8rem);
  }

  .teto-food-shop-header p {
    padding: 3px 8px;
    font-size: 0.64rem;
  }

  .teto-food-card {
    min-height: 198px;
  }

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

  .teto-seller {
    position: absolute;
    right: 2vw;
    bottom: 0;
    width: min(38vw, 300px);
  }

  .teto-shop-cartel {
    position: absolute;
    top: 22px;
    left: 50%;
    right: auto;
    width: min(320px, 48vw);
    transform: translateX(-50%);
  }

  .topbar {
    flex-direction: column;
  }

  .menu,
  .menu-button,
  .topbar-actions,
  .theme-toggle {
    width: 100%;
  }

  .menu-button,
  .theme-toggle {
    justify-content: space-between;
  }

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

  .menu-options {
    left: 0;
    right: auto;
    width: 100%;
  }

  .hero {
    min-height: auto;
  }

  .workspace {
    padding-top: 26px;
  }

  .addon-item img {
    max-width: 260px;
  }

  .minecraft-skin-frame {
    min-height: 220px;
  }

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

  .admin-status-card {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-status-card .google-button,
  .admin-addon-actions .secondary-button,
  .admin-remove-button,
  .duel-room-row,
  .duel-controls {
    grid-template-columns: 1fr;
  }

  .admin-status-card .google-button,
  .admin-addon-actions .secondary-button,
  .admin-remove-button {
    width: 100%;
  }

  .duel-turn-card {
    min-width: 0;
  }

  .mines-arena {
    min-height: auto;
  }

  .mines-tournament-zone {
    grid-column: 1;
  }

  .mines-idle-screen,
  .mines-vs-screen {
    min-height: 420px;
  }

  .mines-vs-card {
    grid-template-columns: 1fr;
  }

  .mines-hud {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }

  .mines-hud-card {
    min-height: 145px;
  }

  .mines-hud-timer,
  .mines-round-card {
    grid-column: span 2;
  }

  .mines-hud-lives,
  .mines-hud-p2 .mines-hud-lives {
    position: static;
    justify-content: center;
    margin: 4px 0;
  }

  .tier-row {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .event-logo-slot {
    justify-content: start;
    min-height: 76px;
  }

  .event-logo-slot img {
    width: auto;
    max-width: 160px;
    max-height: 58px;
  }

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

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

  .music-toggle {
    min-height: 42px;
  }

  .music-control {
    right: 12px;
    bottom: 12px;
  }

  .glyph-editor-grid {
    grid-template-columns: 1fr;
  }

  .dvd-stage {
    min-height: 360px;
  }

  .inline-field {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions,
  .google-button,
  .secondary-button {
    width: 100%;
  }

  .google-button,
  .secondary-button {
    justify-content: center;
  }
}

.skin-upload-page {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 72% 24%, rgba(76, 147, 255, 0.18), transparent 34%),
    linear-gradient(135deg, #031638 0%, #061a3b 42%, #020b22 100%);
}

.squid-skin-upload-page {
  background:
    radial-gradient(circle at 76% 20%, rgba(44, 255, 214, 0.22), transparent 32%),
    radial-gradient(circle at 12% 80%, rgba(27, 89, 108, 0.28), transparent 36%),
    linear-gradient(145deg, #000607 0%, #061819 44%, #020405 100%);
}

@font-face {
  font-family: "PaviMinecraft";
  src: url("assets/utils/Minecraft.ttf") format("truetype");
  font-display: swap;
}

.skin-upload-topbar {
  background: rgba(2, 10, 26, 0.72);
  backdrop-filter: blur(18px);
}

.skin-upload-shell {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(360px, 1fr);
  gap: clamp(28px, 5vw, 78px);
  min-height: calc(100vh - 76px);
  padding: clamp(24px, 4vw, 56px);
  color: #f7fbff;
}

.skin-upload-left,
.skin-upload-right {
  min-width: 0;
}

.skin-head-row {
  display: flex;
  gap: 16px;
  align-items: start;
  margin-bottom: 8px;
}

.skin-head-card {
  position: relative;
  width: clamp(136px, 18vw, 260px);
  aspect-ratio: 1;
  border: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.34));
}

.skin-head-card canvas {
  position: absolute;
  left: 50%;
  top: 9%;
  width: 68%;
  height: 68%;
  transform: translateX(-50%);
  image-rendering: pixelated;
}

.skin-head-name {
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 4.5%;
  overflow: hidden;
  color: #ff4545;
  font-family: "PaviMinecraft", "Courier New", monospace;
  font-size: clamp(0.72rem, 1.75vw, 1.34rem);
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}

.skin-head-name-dark {
  color: #5f78ff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
}

.skin-head-card-light {
  background-image: url("assets/buscaminasduel/p1_card.png");
}

.skin-head-card-dark {
  background-image: url("assets/buscaminasduel/p2_card.png");
}

.skin-form-panel {
  display: block;
  max-width: 440px;
}

.skin-upload-form {
  display: grid;
  gap: 16px;
  justify-items: stretch;
}

.skin-upload-form label:not(.skin-file-button) {
  display: grid;
  gap: 8px;
  color: rgba(247, 251, 255, 0.78);
  font-size: 0.88rem;
  font-weight: 850;
}

.skin-upload-form input[type="text"] {
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  outline: none;
}

.skin-file-button {
  display: grid;
  place-items: center;
  min-height: 150px;
  padding: 22px;
  border: 0;
  border-radius: 18px;
  background: #fff;
  color: #050505;
  cursor: pointer;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
}

.skin-file-button input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.skin-file-button span {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
}

.skin-upload-note {
  margin: 0;
  color: rgba(247, 251, 255, 0.74);
  line-height: 1.5;
}

.skin-upload-note.is-error {
  color: #ff8c8c;
}

.skin-upload-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.skin-upload-right {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  text-align: center;
}

.skin-upload-right h1 {
  margin: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-family: "PaviMinecraft", "Courier New", monospace;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 400;
  letter-spacing: 0;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
}

.skin-model-stage {
  width: min(100%, 520px);
  aspect-ratio: 0.76;
  display: grid;
  place-items: center;
}

.skin-model-stage canvas {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  cursor: grab;
  touch-action: none;
  filter: drop-shadow(0 28px 28px rgba(0, 0, 0, 0.38));
}

.skin-model-stage canvas:active {
  cursor: grabbing;
}

.skin-model-note {
  margin: 0;
  color: rgba(247, 251, 255, 0.58);
}

@media (max-width: 900px) {
  .skin-upload-shell {
    grid-template-columns: 1fr;
  }

  .skin-upload-right {
    align-content: start;
  }
}

@media (max-width: 620px) {
  .skin-head-row,
  .skin-form-panel,
  .skin-upload-actions {
    grid-template-columns: 1fr;
  }

  .skin-head-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .skin-form-panel {
    display: grid;
  }

  .skin-file-button {
    min-height: 120px;
  }
}

.skin-uploader-pro {
  display: grid;
  grid-template-columns:
    minmax(290px, 460px)
    minmax(420px, 1fr);
  gap: clamp(18px, 3vw, 44px);
  width: min(100%, 1320px);
  min-height: calc(100vh - 86px);
  margin: 0 auto;
  padding: clamp(14px, 2vw, 30px);
  color: #f7fbff;
}

.skin-uploader-copy {
  display: grid;
  align-content: center;
  gap: 9px;
}

.skin-kicker {
  margin: 0;
  color: #38bdf8;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.skin-uploader-copy h1 {
  margin: 0;
  max-width: 560px;
  font-size: clamp(2rem, 3.55vw, 3.65rem);
  font-weight: 950;
  line-height: 0.94;
}

.skin-uploader-copy h1 span {
  display: block;
  color: #3385ff;
  text-shadow: 0 0 30px rgba(35, 132, 255, 0.4);
}

.skin-lead {
  max-width: 520px;
  margin: 0;
  color: rgba(222, 232, 255, 0.74);
  font-size: clamp(0.86rem, 0.98vw, 1rem);
  line-height: 1.35;
}

.skin-flow {
  display: grid;
  gap: 10px;
  max-width: 560px;
}

.skin-step-card {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  padding: 11px;
  border: 1px solid rgba(80, 144, 255, 0.24);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(36, 104, 255, 0.1), rgba(4, 12, 31, 0.9)),
    rgba(6, 15, 35, 0.78);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.skin-step-card[aria-disabled="true"] {
  opacity: 0.62;
}

.skin-step-card.is-active {
  border-color: rgba(70, 146, 255, 0.5);
}

.skin-step-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #165dff, #18bfff);
  color: #fff;
  font-weight: 950;
  box-shadow: 0 12px 28px rgba(24, 111, 255, 0.32);
}

.skin-step-body {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.skin-step-body h2 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 900;
}

.skin-step-body p {
  margin: 0;
  color: rgba(226, 236, 255, 0.76);
  font-size: 0.76rem;
  line-height: 1.28;
}

.skin-field {
  display: grid;
  gap: 5px;
}

.skin-field span {
  color: rgba(226, 236, 255, 0.8);
  font-size: 0.8rem;
  font-weight: 800;
}

.skin-field input {
  width: 100%;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(74, 144, 255, 0.34);
  border-radius: 10px;
  background: rgba(2, 10, 28, 0.72);
  color: #fff;
  font-size: 1rem;
  outline: none;
}

.skin-field input:focus {
  border-color: #2f8cff;
  box-shadow: 0 0 0 4px rgba(47, 140, 255, 0.14);
}

.skin-upload-warning {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

.skin-upload-message {
  overflow: auto;
  max-height: 140px;
  padding: 10px;
  border: 1px solid rgba(143, 199, 255, 0.18);
  border-radius: 10px;
  background: rgba(2, 10, 28, 0.5);
}

.skin-dropzone {
  display: grid;
  place-items: center;
  gap: 5px;
  min-height: 78px;
  padding: 10px;
  border: 1px dashed rgba(82, 153, 255, 0.6);
  border-radius: 14px;
  background: rgba(2, 10, 28, 0.62);
  color: rgba(230, 238, 255, 0.86);
  text-align: center;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.skin-dropzone:hover,
.skin-dropzone.is-dragging {
  border-color: #29c7ff;
  background: rgba(21, 91, 178, 0.22);
  transform: translateY(-1px);
}

.skin-dropzone input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.skin-drop-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(54, 121, 255, 0.18);
  color: #8fc7ff;
  font-weight: 950;
}

.skin-dropzone strong,
.skin-dropzone small {
  display: block;
}

.skin-dropzone small {
  color: rgba(226, 236, 255, 0.62);
}

.skin-primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid rgba(85, 160, 255, 0.62);
  border-radius: 10px;
  background: linear-gradient(135deg, #1264ff, #23b8ff);
  color: #fff;
  cursor: pointer;
  font-weight: 950;
  box-shadow: 0 14px 32px rgba(24, 111, 255, 0.26);
  transition: transform 160ms ease, opacity 160ms ease;
}

.skin-primary-button:hover {
  transform: translateY(-1px);
}

.skin-primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.skin-upload-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.skin-upload-note {
  min-height: 20px;
  margin: 0;
  color: rgba(226, 236, 255, 0.76);
  font-size: 0.82rem;
  line-height: 1.28;
}

.skin-upload-note.is-error {
  color: #ff9a9a;
}

.skin-preview-panel {
  display: grid;
  align-content: center;
  gap: 10px;
  min-height: 0;
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid rgba(70, 142, 255, 0.28);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 75%, rgba(23, 159, 255, 0.2), transparent 34%),
    linear-gradient(145deg, rgba(7, 20, 48, 0.94), rgba(2, 8, 24, 0.94));
  box-shadow: 0 32px 88px rgba(0, 0, 0, 0.36);
}

.skin-preview-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.skin-preview-header p,
.skin-preview-header h2 {
  margin: 0;
}

.skin-preview-header p {
  color: #2f8cff;
  font-weight: 900;
}

.skin-preview-header h2 {
  margin-top: 4px;
  font-size: clamp(1.45rem, 2.4vw, 2.65rem);
  font-weight: 900;
  overflow-wrap: anywhere;
}

#skinSaveBadge {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid rgba(143, 199, 255, 0.26);
  border-radius: 999px;
  color: rgba(226, 236, 255, 0.7);
  font-size: 0.82rem;
  font-weight: 900;
}

#skinSaveBadge.is-saved {
  border-color: rgba(45, 255, 176, 0.5);
  color: #2dffb0;
}

.squid-skin-upload-page .skin-upload-topbar {
  border-bottom-color: rgba(67, 255, 218, 0.16);
  background: rgba(0, 9, 10, 0.74);
}

.squid-skin-upload-page .skin-kicker,
.squid-skin-upload-page .skin-preview-header p {
  color: #42ffd5;
}

.squid-skin-upload-page .skin-uploader-copy h1 span {
  color: #42ffd5;
  text-shadow: 0 0 30px rgba(66, 255, 213, 0.42);
}

.squid-skin-upload-page .skin-step-card,
.squid-skin-upload-page .skin-preview-panel {
  border-color: rgba(66, 255, 213, 0.28);
  background:
    radial-gradient(circle at 80% 20%, rgba(66, 255, 213, 0.09), transparent 34%),
    linear-gradient(145deg, rgba(3, 29, 31, 0.92), rgba(1, 8, 10, 0.94));
}

.squid-skin-upload-page .skin-step-card.is-active {
  border-color: rgba(66, 255, 213, 0.54);
}

.squid-skin-upload-page .skin-step-icon,
.squid-skin-upload-page .skin-primary-button {
  border-color: rgba(66, 255, 213, 0.55);
  background: linear-gradient(135deg, #0aa789, #18d7ff);
  box-shadow: 0 14px 32px rgba(24, 230, 201, 0.2);
}

.squid-skin-upload-page .skin-field input,
.squid-skin-upload-page .skin-dropzone {
  border-color: rgba(66, 255, 213, 0.34);
}

.squid-skin-upload-page .skin-field input:focus {
  border-color: #42ffd5;
  box-shadow: 0 0 0 4px rgba(66, 255, 213, 0.12);
}

.squid-skin-upload-page #skinSaveBadge.is-saved {
  border-color: rgba(66, 255, 213, 0.5);
  color: #42ffd5;
}

.skin-preview-panel .skin-model-stage {
  width: min(100%, 410px);
  margin: 0 auto;
}

.skin-model-note {
  justify-self: center;
  max-width: 520px;
  padding: 10px 14px;
  border: 1px solid rgba(143, 199, 255, 0.22);
  border-radius: 12px;
  background: rgba(2, 10, 28, 0.48);
  color: rgba(226, 236, 255, 0.66);
  text-align: center;
}

@media (min-width: 981px) {
  .skin-upload-page {
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .skin-uploader-pro {
    min-height: calc(100vh - 78px);
  }

  .skin-head-row {
    width: min(100%, 540px);
    margin-bottom: 2px;
  }

  .skin-head-card {
    width: clamp(116px, 10.2vw, 160px);
  }

  .skin-model-stage {
    aspect-ratio: 0.73;
  }

  .skin-preview-panel {
    align-content: stretch;
  }
}

.skin-admin-panel {
  display: grid;
  gap: 9px;
  max-width: 560px;
  padding: 11px;
  border: 1px solid rgba(45, 255, 176, 0.26);
  border-radius: 14px;
  background: rgba(2, 14, 28, 0.72);
}

.skin-admin-panel[hidden] {
  display: none;
}

.skin-admin-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.skin-admin-header p,
.skin-admin-header h2 {
  margin: 0;
}

.skin-admin-header p {
  color: #2dffb0;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.skin-admin-header h2 {
  font-size: 1rem;
}

#skinAdminCount {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(45, 255, 176, 0.14);
  color: #2dffb0;
  font-weight: 950;
}

.skin-admin-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.skin-admin-actions .secondary-button {
  min-height: 38px;
  padding-inline: 10px;
  font-size: 0.78rem;
}

.skin-admin-list {
  display: grid;
  gap: 6px;
  max-height: 118px;
  overflow: auto;
  padding-right: 3px;
}

.skin-admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 9px;
  border: 1px solid rgba(143, 199, 255, 0.14);
  border-radius: 9px;
  background: rgba(3, 18, 43, 0.66);
}

.skin-admin-head {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid rgba(143, 199, 255, 0.2);
  border-radius: 7px;
  background: rgba(2, 10, 28, 0.72);
  image-rendering: pixelated;
  object-fit: cover;
}

.skin-admin-row span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 850;
}

.skin-admin-row small,
.skin-admin-empty {
  color: rgba(226, 236, 255, 0.58);
}

.skin-flow.is-locked .skin-step-card,
.skin-flow.is-locked .skin-upload-actions {
  filter: saturate(0.82);
}

.sb2-roster-page {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 20% 0%, rgba(52, 255, 218, 0.13), transparent 34%),
    radial-gradient(circle at 78% 20%, rgba(255, 65, 74, 0.16), transparent 30%),
    linear-gradient(180deg, #020607 0%, #061014 52%, #020303 100%);
  color: #f4fbff;
}

.sb2-roster-topbar {
  background: rgba(2, 7, 10, 0.88);
  border-bottom-color: rgba(65, 255, 218, 0.16);
  backdrop-filter: blur(18px);
}

.sb2-roster-shell {
  width: min(1500px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 56px;
}

.sb2-roster-hero {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 18px 0 28px;
  text-align: center;
}

.sb2-roster-logo {
  width: min(440px, 86vw);
  max-height: 180px;
  object-fit: contain;
  filter: drop-shadow(0 0 28px rgba(66, 255, 213, 0.34));
}

.sb2-roster-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.sb2-roster-hero-actions .secondary-button {
  border-color: rgba(66, 255, 213, 0.28);
  background: rgba(8, 22, 28, 0.82);
}

.sb2-roster-hero-actions .secondary-button:disabled {
  opacity: 0.72;
  cursor: default;
}

.sb2-roster-hero-actions .secondary-button.is-loading {
  animation: sb2RefreshPulse 0.8s ease infinite;
}

.sb2-roster-status {
  min-height: 24px;
  margin: 0;
  color: rgba(226, 251, 255, 0.72);
  font-weight: 700;
}

.sb2-roster-section {
  display: grid;
  gap: 16px;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid rgba(66, 255, 213, 0.16);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(6, 30, 35, 0.88), rgba(3, 8, 10, 0.88)),
    radial-gradient(circle at 0% 0%, rgba(66, 255, 213, 0.12), transparent 30%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
}

.sb2-roster-section .section-heading h1,
.sb2-roster-section .section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  letter-spacing: 0;
}

.sb2-player-grid,
.sb2-staff-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.sb2-roster-card {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 180px;
  padding: 12px 10px 10px;
  border: 1px solid rgba(142, 205, 218, 0.22);
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 10%, rgba(66, 255, 213, 0.08), transparent 45%),
    linear-gradient(180deg, rgba(8, 18, 24, 0.96), rgba(5, 10, 14, 0.96));
  color: #f8fdff;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.sb2-roster-card:hover {
  transform: translateY(-3px);
  border-color: rgba(66, 255, 213, 0.56);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.32), 0 0 24px rgba(66, 255, 213, 0.14);
}

.sb2-roster-card.is-dead {
  border-color: rgba(255, 72, 72, 0.5);
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 35, 35, 0.32), transparent 48%),
    linear-gradient(180deg, rgba(79, 9, 12, 0.98), rgba(24, 3, 4, 0.98));
}

.sb2-slot-number {
  position: relative;
  z-index: 1;
  justify-self: center;
  min-width: 48px;
  padding: 6px 10px;
  border: 1px solid rgba(66, 255, 213, 0.28);
  border-radius: 999px;
  background: rgba(1, 8, 10, 0.74);
  color: #42ffd5;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.02em;
}

.sb2-roster-card.is-dead .sb2-slot-number {
  border-color: rgba(255, 170, 170, 0.26);
  color: #ff8585;
}

.sb2-head-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  justify-self: center;
  width: 86px;
  height: 86px;
  border: 1px solid rgba(195, 243, 255, 0.16);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.34);
  box-shadow: inset 0 0 18px rgba(66, 255, 213, 0.06);
}

.sb2-head-wrap img {
  width: 74px;
  height: 74px;
  border-radius: 12px;
  object-fit: cover;
  image-rendering: pixelated;
}

.sb2-roster-card.is-dead .sb2-head-wrap img {
  filter: grayscale(1) brightness(0.62) contrast(1.08);
}

.sb2-slot-name {
  position: relative;
  z-index: 1;
  align-self: end;
  display: block;
  min-height: 36px;
  overflow: hidden;
  color: rgba(244, 251, 255, 0.94);
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1.12;
  text-align: center;
  text-overflow: ellipsis;
}

.sb2-roster-card:not(.is-filled) {
  opacity: 0.72;
}

.sb2-roster-card:not(.is-filled) .sb2-head-wrap img {
  opacity: 0.38;
  filter: grayscale(1);
}

.sb2-staff-section {
  border-color: rgba(255, 188, 66, 0.2);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 188, 66, 0.12), transparent 35%),
    linear-gradient(135deg, rgba(25, 16, 4, 0.9), rgba(3, 8, 10, 0.9));
}

.sb2-roster-card.is-staff {
  border: 0;
  background:
    linear-gradient(rgba(8, 18, 24, 0.96), rgba(5, 10, 14, 0.96)) padding-box,
    conic-gradient(from var(--spark-angle, 0deg), #ffef8a, #ff7a18, #42ffd5, #ffef8a) border-box;
  border: 2px solid transparent;
  animation: sb2SparkBorder 4s linear infinite;
}

.sb2-roster-card.is-staff::before,
.sb2-roster-card.is-staff::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #fff6af;
  box-shadow:
    0 0 12px #ffef8a,
    20px 16px 0 rgba(66, 255, 213, 0.85),
    72px 8px 0 rgba(255, 119, 40, 0.88),
    120px 92px 0 rgba(255, 239, 138, 0.78);
  opacity: 0.7;
  animation: sb2SparkFloat 2.4s ease-in-out infinite;
}

.sb2-roster-card.is-staff::before {
  top: 12px;
  left: 12px;
}

.sb2-roster-card.is-staff::after {
  right: 18px;
  bottom: 22px;
  animation-delay: -1.2s;
}

.sb2-modal[hidden] {
  display: none;
}

.sb2-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}

.sb2-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(10px);
}

.sb2-modal-card {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  padding: 22px;
  border: 1px solid rgba(66, 255, 213, 0.28);
  border-radius: 20px;
  background:
    radial-gradient(circle at 80% 12%, rgba(66, 255, 213, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(4, 18, 24, 0.98), rgba(1, 5, 8, 0.98));
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.45);
}

.sb2-modal-card h2,
.sb2-modal-card p {
  margin: 0;
}

.sb2-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.sb2-info-preview,
.sb2-admin-current {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(143, 199, 255, 0.14);
  border-radius: 16px;
  background: rgba(2, 10, 18, 0.64);
}

.sb2-info-preview img,
.sb2-admin-current img,
.sb2-admin-player img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  image-rendering: pixelated;
}

.sb2-info-preview p {
  color: rgba(226, 236, 255, 0.78);
  font-weight: 800;
}

.sb2-admin-editor {
  width: min(760px, 100%);
}

.sb2-admin-current strong,
.sb2-admin-current span {
  display: block;
}

.sb2-admin-current strong {
  font-size: 1.1rem;
}

.sb2-admin-current span,
.sb2-admin-note,
.sb2-admin-empty {
  color: rgba(226, 236, 255, 0.68);
}

.sb2-admin-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.sb2-admin-options label,
.sb2-admin-search {
  display: grid;
  gap: 7px;
  color: rgba(226, 236, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 850;
}

.sb2-admin-options select,
.sb2-admin-search input {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(66, 255, 213, 0.22);
  border-radius: 12px;
  background: rgba(2, 9, 14, 0.86);
  color: #f8fdff;
  font: inherit;
  padding: 0 12px;
  outline: none;
}

.sb2-admin-search {
  margin-top: 14px;
}

.sb2-admin-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 270px;
  overflow: auto;
  margin-top: 12px;
  padding-right: 5px;
}

.sb2-admin-player {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(143, 199, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  cursor: pointer;
}

.sb2-admin-player.is-selected {
  border-color: rgba(66, 255, 213, 0.72);
  background: rgba(66, 255, 213, 0.12);
}

.sb2-admin-player span {
  min-width: 0;
  overflow: hidden;
  font-weight: 850;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sb2-admin-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.sb2-admin-note {
  min-height: 22px;
  margin-top: 10px;
  font-weight: 750;
}

@property --spark-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes sb2SparkBorder {
  to {
    --spark-angle: 360deg;
  }
}

@keyframes sb2SparkFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(0.9);
    opacity: 0.45;
  }

  50% {
    transform: translate3d(5px, -8px, 0) scale(1.15);
    opacity: 0.95;
  }
}

@keyframes sb2RefreshPulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(0.96);
  }
}

@media (max-width: 1100px) {
  .sb2-player-grid,
  .sb2-staff-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .sb2-roster-shell {
    width: min(100% - 18px, 1500px);
    padding-top: 18px;
  }

  .sb2-roster-section {
    padding: 12px;
    border-radius: 18px;
  }

  .sb2-player-grid,
  .sb2-staff-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .sb2-roster-card {
    min-height: 158px;
  }

  .sb2-admin-options,
  .sb2-admin-list,
  .sb2-admin-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .skin-uploader-pro {
    grid-template-columns: 1fr;
  }

  .skin-preview-panel {
    min-height: auto;
  }
}

@media (max-width: 620px) {
  .skin-uploader-pro {
    padding: 22px;
  }

  .skin-step-card {
    grid-template-columns: 1fr;
  }

  .skin-head-row {
    justify-content: center;
  }
}

/* Home redesign */
.home-page {
  min-height: 100vh;
  overflow-x: hidden;
  background: #030711;
  color: #f7fbff;
}

.home-page::selection {
  background: rgba(38, 224, 255, 0.35);
}

.home-page .topbar {
  position: fixed;
  top: 16px;
  left: clamp(12px, 2.5vw, 32px);
  right: clamp(12px, 2.5vw, 32px);
  z-index: 100;
  min-height: 72px;
  padding: 10px 18px;
  border: 1px solid rgba(145, 242, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(7, 13, 28, 0.92), rgba(17, 13, 34, 0.88)),
    rgba(5, 10, 22, 0.9);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.36), 0 0 38px rgba(117, 68, 255, 0.12);
  backdrop-filter: blur(18px);
}

.home-page .home-brand {
  gap: 14px;
  color: #fff;
  font-family: Bungee, Inter, sans-serif;
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  text-transform: uppercase;
}

.home-page .home-brand span span {
  color: #26e0ff;
  text-shadow: 0 0 22px rgba(38, 224, 255, 0.58);
}

.home-page .brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  filter: drop-shadow(0 0 18px rgba(38, 224, 255, 0.35));
}

.home-nav-links {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(12px, 2.4vw, 34px);
}

.home-nav-links a {
  position: relative;
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  color: rgba(239, 246, 255, 0.78);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #26e0ff, #8b5cff);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.home-nav-links a:hover,
.home-nav-links a:focus-visible {
  color: #fff;
}

.home-nav-links a:hover::after,
.home-nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.home-page .home-actions {
  gap: 10px;
}

.home-mobile-menu-button {
  display: none;
  position: relative;
  z-index: 12;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(38, 224, 255, 0.46);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(38, 224, 255, 0.18), rgba(139, 92, 255, 0.2)),
    rgba(8, 13, 28, 0.86);
  color: #fff;
  cursor: pointer;
  font-family: Bungee, Inter, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: uppercase;
  box-shadow:
    0 0 22px rgba(38, 224, 255, 0.14),
    inset 0 0 18px rgba(255, 255, 255, 0.04);
}

.home-mobile-menu-button::before,
.home-mobile-menu-button::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: #26e0ff;
  box-shadow: 0 0 12px rgba(38, 224, 255, 0.72);
  vertical-align: middle;
}

.home-mobile-menu-button::after {
  width: 6px;
  height: 6px;
  margin-right: 0;
  margin-left: 8px;
  background: #8b5cff;
  box-shadow: 0 0 12px rgba(139, 92, 255, 0.72);
}

.home-mobile-menu-button[aria-expanded="true"] {
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 0 26px rgba(38, 224, 255, 0.22),
    0 0 32px rgba(139, 92, 255, 0.16);
}

.home-contact-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid rgba(38, 224, 255, 0.32);
  border-radius: 8px;
  background: linear-gradient(135deg, #18c9ff, #764cff);
  color: #fff;
  font-weight: 1000;
  text-transform: uppercase;
  box-shadow: 0 14px 34px rgba(88, 78, 255, 0.32);
}

.home-page .user-menu-button {
  border-color: rgba(38, 224, 255, 0.5);
  background: linear-gradient(135deg, #0bc2ff, #8f4dff);
  box-shadow: 0 0 22px rgba(38, 224, 255, 0.28);
}

.home-page .user-menu-panel {
  border-color: rgba(145, 242, 255, 0.2);
  background: rgba(8, 13, 27, 0.96);
  color: #f7fbff;
}

.home-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 92svh;
  align-content: end;
  padding: clamp(132px, 15vh, 180px) clamp(20px, 5vw, 80px) clamp(28px, 6vh, 54px);
  overflow: hidden;
}

.home-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: url("assets/portafolio/ignited/games/game1.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.03);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 76% 48%, rgba(38, 224, 255, 0.16), transparent 26%),
    radial-gradient(circle at 45% 28%, rgba(139, 92, 255, 0.2), transparent 28%),
    linear-gradient(90deg, rgba(2, 6, 14, 0.98) 0%, rgba(3, 8, 18, 0.86) 34%, rgba(15, 8, 30, 0.5) 68%, rgba(3, 7, 14, 0.82) 100%),
    linear-gradient(180deg, rgba(3, 7, 16, 0.18) 0%, rgba(3, 7, 16, 0.88) 100%);
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 34%;
  background: linear-gradient(180deg, transparent, #030711 92%);
}

.home-hero-content {
  position: relative;
  z-index: 2;
  width: min(600px, 100%);
  padding-top: 5vh;
}

.home-kicker {
  margin: 0 0 14px;
  color: #26e0ff;
  font-family: Bungee, Inter, sans-serif;
  font-size: clamp(0.78rem, 1.1vw, 0.98rem);
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 0 24px rgba(38, 224, 255, 0.6);
}

.home-hero h1 {
  max-width: 920px;
  margin: 0;
  color: #fff;
  font-family: Bungee, Inter, sans-serif;
  font-size: clamp(2.6rem, 6vw, 6.1rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow:
    0 6px 0 rgba(0, 0, 0, 0.68),
    0 20px 42px rgba(0, 0, 0, 0.55);
}

.home-hero h1 span {
  display: block;
  color: #28e4ff;
  text-shadow:
    0 6px 0 rgba(41, 0, 84, 0.78),
    0 0 34px rgba(38, 224, 255, 0.55),
    0 20px 42px rgba(0, 0, 0, 0.55);
}

.home-hero h1 em {
  color: inherit;
  font-style: inherit;
  animation: homeTitlePulse 1.35s ease-in-out infinite;
}

@keyframes homeTitlePulse {
  0%,
  100% {
    color: #28e4ff;
    text-shadow:
      0 6px 0 rgba(41, 0, 84, 0.78),
      0 0 34px rgba(38, 224, 255, 0.55),
      0 20px 42px rgba(0, 0, 0, 0.55);
  }

  50% {
    color: #a855ff;
    text-shadow:
      0 6px 0 rgba(12, 2, 28, 0.82),
      0 0 34px rgba(168, 85, 255, 0.72),
      0 20px 42px rgba(0, 0, 0, 0.55);
  }
}

.home-hero-content > p:not(.home-kicker) {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(243, 248, 255, 0.86);
  font-size: clamp(1rem, 1.65vw, 1.35rem);
  line-height: 1.65;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

.home-hero-buttons,
.home-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.home-primary-button,
.home-secondary-button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 24px;
  border-radius: 8px;
  font-weight: 1000;
  text-transform: uppercase;
  transition: transform 180ms ease, filter 180ms ease, border-color 180ms ease;
}

.home-primary-button {
  border: 1px solid rgba(38, 224, 255, 0.45);
  background: linear-gradient(135deg, #10cfff, #7e4cff);
  color: #fff;
  box-shadow: 0 18px 38px rgba(38, 224, 255, 0.2), 0 10px 38px rgba(126, 76, 255, 0.24);
}

.home-secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(7, 13, 27, 0.72);
  color: #f6fbff;
  backdrop-filter: blur(10px);
}

.home-primary-button:hover,
.home-secondary-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  border-color: rgba(38, 224, 255, 0.72);
}

.home-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(42px, 7vh, 78px);
}

.home-metric-card {
  min-height: 118px;
  padding: 18px;
  border: 1px solid rgba(145, 242, 255, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(6, 14, 28, 0.78), rgba(20, 12, 40, 0.68));
  box-shadow: inset 0 0 28px rgba(38, 224, 255, 0.04), 0 18px 46px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}

.home-metric-card span {
  display: block;
  color: rgba(232, 244, 255, 0.78);
  font-size: 0.92rem;
  font-weight: 800;
}

.home-metric-card strong {
  display: block;
  margin-top: 10px;
  color: #fff;
  font-family: Bungee, Inter, sans-serif;
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  letter-spacing: 0;
  text-shadow: 0 0 22px rgba(38, 224, 255, 0.36);
}

.home-service-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: clamp(30px, 5vw, 64px) clamp(20px, 5vw, 80px);
  background:
    radial-gradient(circle at 10% 0%, rgba(38, 224, 255, 0.12), transparent 32%),
    radial-gradient(circle at 90% 20%, rgba(139, 92, 255, 0.16), transparent 34%),
    #030711;
}

.home-service-card {
  display: flex;
  min-height: 142px;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(145, 242, 255, 0.18);
  border-radius: 8px;
  background: rgba(8, 15, 30, 0.74);
}

.home-service-card img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 0 22px rgba(38, 224, 255, 0.28));
}

.home-service-card h2,
.home-showcase-card strong {
  margin: 0;
  font-family: Bungee, Inter, sans-serif;
  letter-spacing: 0;
}

.home-service-card h2 {
  color: #26e0ff;
  font-size: clamp(0.92rem, 1.15vw, 1.05rem);
}

.home-service-card p {
  margin: 8px 0 0;
  color: rgba(232, 244, 255, 0.78);
  line-height: 1.55;
}

.home-showcase {
  padding: clamp(44px, 7vw, 86px) clamp(20px, 5vw, 80px);
  background: linear-gradient(180deg, #030711 0%, #08081a 100%);
}

.home-section-heading {
  max-width: 900px;
}

.home-section-heading h2,
.home-addons-cta h2 {
  margin: 0;
  color: #fff;
  font-family: Bungee, Inter, sans-serif;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-section-heading p:not(.home-kicker),
.home-addons-cta p {
  max-width: 790px;
  margin: 18px 0 0;
  color: rgba(232, 244, 255, 0.78);
  font-size: 1.04rem;
  line-height: 1.75;
}

.home-showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.75fr);
  gap: 18px;
  margin-top: 28px;
}

.home-showcase-card {
  position: relative;
  display: flex;
  min-height: 290px;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border: 1px solid rgba(145, 242, 255, 0.18);
  border-radius: 8px;
  background: #091021;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

.home-showcase-card.is-large {
  grid-row: span 2;
  min-height: 598px;
}

.home-showcase-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 280ms ease, filter 280ms ease;
}

.home-showcase-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 18%, rgba(3, 7, 17, 0.35) 48%, rgba(3, 7, 17, 0.94) 100%),
    radial-gradient(circle at 80% 10%, rgba(139, 92, 255, 0.28), transparent 30%);
}

.home-showcase-card span,
.home-showcase-card strong,
.home-showcase-card small {
  position: relative;
  z-index: 1;
  display: block;
  margin-left: 20px;
  margin-right: 20px;
}

.home-showcase-card span {
  color: #26e0ff;
  font-weight: 1000;
  text-transform: uppercase;
}

.home-showcase-card strong {
  margin-top: 8px;
  color: #fff;
  font-size: clamp(1.2rem, 2vw, 2rem);
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.72);
}

.home-showcase-card small {
  margin-top: 8px;
  margin-bottom: 20px;
  color: rgba(232, 244, 255, 0.78);
  font-size: 0.95rem;
  line-height: 1.45;
}

.home-showcase-card:hover img {
  transform: scale(1.045);
  filter: saturate(1.12) contrast(1.04);
}

.home-addons-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin: 0 clamp(20px, 5vw, 80px) clamp(44px, 6vw, 76px);
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(145, 242, 255, 0.2);
  border-radius: 8px;
  background:
    radial-gradient(circle at 16% 12%, rgba(38, 224, 255, 0.16), transparent 34%),
    radial-gradient(circle at 88% 42%, rgba(139, 92, 255, 0.26), transparent 34%),
    rgba(8, 13, 28, 0.86);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
}

.home-addons-cta .home-cta-actions {
  justify-content: flex-end;
  margin-top: 0;
}

@media (max-width: 1180px) {
  .home-nav-links {
    display: none;
  }

  .home-mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .home-nav-links.is-mobile-open {
    position: absolute;
    top: calc(100% + 10px);
    right: clamp(14px, 4vw, 34px);
    z-index: 20;
    display: grid;
    width: min(320px, calc(100vw - 28px));
    padding: 12px;
    border: 1px solid rgba(38, 224, 255, 0.24);
    border-radius: 18px;
    background:
      radial-gradient(circle at 14% 12%, rgba(38, 224, 255, 0.18), transparent 34%),
      radial-gradient(circle at 92% 10%, rgba(139, 92, 255, 0.24), transparent 32%),
      rgba(5, 9, 22, 0.96);
    box-shadow:
      0 24px 60px rgba(0, 0, 0, 0.42),
      0 0 30px rgba(38, 224, 255, 0.12);
    backdrop-filter: blur(18px);
    animation: homeMobileMenuIn 180ms ease both;
  }

  .home-nav-links.is-mobile-open a {
    justify-content: flex-start;
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
  }

  .home-nav-links.is-mobile-open a::after {
    inset: auto 12px 7px;
  }

  .home-page .topbar {
    min-height: 66px;
  }

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

  .home-addons-cta {
    grid-template-columns: 1fr;
  }

  .home-addons-cta .home-cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  .home-page .topbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .home-hero {
    min-height: auto;
    padding-top: 70px;
  }

  .home-hero h1 {
    font-size: clamp(3rem, 16vw, 5rem);
  }

  .home-metrics,
  .home-service-band,
  .home-showcase-grid {
    grid-template-columns: 1fr;
  }

  .home-showcase-card,
  .home-showcase-card.is-large {
    min-height: 360px;
  }
}

@media (max-width: 560px) {
  .home-page .home-brand {
    font-size: 0.92rem;
  }

  .home-page .topbar {
    gap: 10px;
    width: min(100% - 16px, 1480px);
    margin-top: 8px;
    padding: 8px 10px;
  }

  .home-page .brand-logo {
    width: 42px;
    height: 42px;
  }

  .home-contact-button {
    display: none;
  }

  .home-primary-button,
  .home-secondary-button {
    width: 100%;
  }

  .home-service-card {
    align-items: flex-start;
  }
}

@media (min-width: 821px) {
  .home-page .home-hero-content {
    width: min(650px, 46vw);
  }
}

@media (min-width: 821px) {
  .home-page .home-hero-content {
    width: min(650px, 46vw);
  }
}

.home-page .home-metric-card.catalog-status,
.home-page .home-metric-card.duel-status {
  display: block;
  gap: 0;
}

.home-mikurush-promo {
  position: absolute;
  right: clamp(24px, 7vw, 120px);
  top: 50%;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: clamp(12px, 2vw, 20px);
  width: min(44vw, 620px);
  transform: translateY(-48%);
  pointer-events: none;
}

.home-mikurush-promo img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  filter: drop-shadow(0 0 28px rgba(38, 224, 255, 0.36)) drop-shadow(0 0 38px rgba(183, 108, 255, 0.28));
}

.home-mikurush-button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border: 1px solid rgba(255, 142, 219, 0.58);
  border-radius: 8px;
  background: linear-gradient(135deg, #25d7ff, #ff5bc8);
  color: #fff;
  font-weight: 1000;
  text-transform: uppercase;
  box-shadow: 0 16px 38px rgba(255, 91, 200, 0.28), 0 0 28px rgba(38, 224, 255, 0.24);
  pointer-events: auto;
  transition: transform 180ms ease, filter 180ms ease;
}

.home-mikurush-button:hover,
.home-mikurush-button:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.mikurush-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 22%, rgba(38, 224, 255, 0.16), transparent 32%),
    radial-gradient(circle at 72% 42%, rgba(255, 91, 200, 0.14), transparent 34%),
    #030711;
  color: #fff;
}

.mikurush-shell {
  display: grid;
  min-height: calc(100vh - 76px);
  place-items: center;
  padding: clamp(42px, 8vw, 100px) clamp(20px, 5vw, 80px);
}

.mikurush-hero {
  display: grid;
  justify-items: center;
  gap: 24px;
  text-align: center;
}

.mikurush-hero img {
  width: min(760px, 92vw);
  object-fit: contain;
  filter: drop-shadow(0 0 34px rgba(38, 224, 255, 0.38)) drop-shadow(0 0 44px rgba(255, 91, 200, 0.28));
}

.mikurush-hero p {
  margin: 0;
  color: rgba(239, 246, 255, 0.78);
  font-weight: 900;
  text-transform: uppercase;
}

.mikurush-page {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 16% 16%, rgba(36, 232, 255, 0.75), transparent 18%),
    radial-gradient(circle at 84% 18%, rgba(255, 72, 211, 0.78), transparent 20%),
    radial-gradient(circle at 50% 82%, rgba(255, 241, 113, 0.35), transparent 22%),
    linear-gradient(135deg, #07052a 0%, #3a1076 36%, #ff4fd8 68%, #25e1ff 100%);
  background-size: 132% 132%, 124% 124%, 146% 146%, 190% 190%;
  background-position: 10% 10%, 86% 18%, 52% 84%, 0% 50%;
  color: #f7fbff;
  font-family: Inter, Arial, sans-serif;
  animation: mikurushBackgroundFlow 18s ease-in-out infinite alternate;
}

.mikurush-page::before,
.mikurush-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.mikurush-page::before {
  background:
    radial-gradient(circle at 8% 20%, rgba(255, 255, 255, 0.95) 0 2px, transparent 3px),
    radial-gradient(circle at 22% 72%, rgba(255, 244, 110, 0.95) 0 3px, transparent 4px),
    radial-gradient(circle at 76% 28%, rgba(255, 255, 255, 0.9) 0 2px, transparent 3px),
    radial-gradient(circle at 92% 66%, rgba(39, 226, 255, 0.96) 0 3px, transparent 4px),
    linear-gradient(125deg, transparent 0 28%, rgba(255, 255, 255, 0.16) 29% 32%, transparent 33% 100%),
    linear-gradient(42deg, transparent 0 58%, rgba(255, 255, 255, 0.12) 59% 62%, transparent 63% 100%),
    repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 7px);
  background-size: 260px 260px, 340px 340px, 310px 310px, 280px 280px, 100% 100%, 100% 100%, 18px 18px;
  mix-blend-mode: screen;
  opacity: 0.86;
  animation: mikurushSparkDrift 13s linear infinite;
}

.mikurush-page::after {
  z-index: -1;
  background:
    radial-gradient(ellipse at 48% 48%, transparent 0 38%, rgba(3, 5, 20, 0.44) 82%),
    linear-gradient(90deg, rgba(3, 5, 20, 0.62), transparent 22%, transparent 76%, rgba(3, 5, 20, 0.58));
  animation: mikurushVignettePulse 7s ease-in-out infinite;
}

@keyframes mikurushBackgroundFlow {
  0% {
    background-position: 10% 10%, 86% 18%, 52% 84%, 0% 50%;
  }
  50% {
    background-position: 18% 24%, 74% 12%, 48% 74%, 52% 46%;
  }
  100% {
    background-position: 8% 34%, 92% 28%, 58% 92%, 100% 54%;
  }
}

@keyframes mikurushSparkDrift {
  0% {
    background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
  }
  100% {
    background-position: 90px -120px, -130px 80px, 110px 70px, -80px -90px, 0 0, 0 0, 36px 36px;
  }
}

@keyframes mikurushVignettePulse {
  0%,
  100% {
    opacity: 0.88;
  }
  50% {
    opacity: 1;
  }
}

.mikurush-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 52px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-top: 0;
  background:
    linear-gradient(90deg, rgba(4, 8, 28, 0.88), rgba(36, 12, 78, 0.78), rgba(4, 8, 28, 0.88));
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.32), 0 0 34px rgba(255, 79, 216, 0.14);
  backdrop-filter: blur(18px);
}

.mikurush-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: Bungee, Inter, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
}

.mikurush-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(38, 224, 255, 0.35));
}

.mikurush-brand span span {
  color: #26e0ff;
}

.mikurush-nav {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.mikurush-nav button {
  position: relative;
  overflow: hidden;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(37, 225, 255, 0.16), rgba(255, 79, 216, 0.18)),
    rgba(4, 8, 28, 0.54);
  color: rgba(246, 250, 255, 0.9);
  font: inherit;
  font-weight: 1000;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 8px 20px rgba(0, 0, 0, 0.22);
  cursor: pointer;
}

.mikurush-nav button::before {
  content: "";
  position: absolute;
  inset: -50% auto -50% -30%;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  transform: skewX(-18deg) translateX(-220%);
  transition: transform 220ms ease;
}

.mikurush-nav button:hover::before,
.mikurush-nav button:focus-visible::before,
.mikurush-nav button.is-active::before {
  transform: skewX(-18deg) translateX(420%);
}

.mikurush-nav button:hover,
.mikurush-nav button:focus-visible,
.mikurush-nav button.is-active {
  border-color: rgba(255, 244, 110, 0.72);
  background: linear-gradient(135deg, #24d8ff, #ff4fd8 60%, #fff16e);
  color: #081024;
  text-shadow: none;
  box-shadow: 0 0 26px rgba(255, 79, 216, 0.35), 0 0 34px rgba(36, 216, 255, 0.22);
}

.mikurush-back {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: linear-gradient(135deg, #20d6ff, #ff4fd8);
  color: #fff;
  font-weight: 1000;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(255, 79, 216, 0.28);
}

.mikurush-shell {
  display: block;
  place-items: initial;
  width: min(1580px, 100%);
  min-height: auto;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 54px) clamp(18px, 4vw, 52px) 64px;
}

.mikurush-tab-panel {
  display: none;
}

.mikurush-tab-panel.is-active {
  display: block;
  animation: mikurushTabIn 240ms ease both;
}

@keyframes mikurushTabIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.mikurush-event-head {
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-bottom: clamp(24px, 4vw, 42px);
  text-align: center;
}

.mikurush-event-head::before,
.mikurush-event-head::after {
  content: "";
  position: absolute;
  top: 45%;
  left: 50%;
  z-index: -1;
  width: min(620px, 86vw);
  aspect-ratio: 2.7 / 1;
  border: 2px solid rgba(38, 224, 255, 0.52);
  border-radius: 999px;
  box-shadow: 0 0 32px rgba(38, 224, 255, 0.28);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.68);
  animation: mikurushLogoWave 1.45s ease-out infinite;
}

.mikurush-event-head::after {
  border-color: rgba(255, 79, 216, 0.5);
  box-shadow: 0 0 34px rgba(255, 79, 216, 0.3);
  animation-delay: 0.52s;
}

.mikurush-event-head img {
  position: relative;
  z-index: 1;
  width: min(560px, 88vw);
  object-fit: contain;
  filter: drop-shadow(0 0 28px rgba(38, 224, 255, 0.38)) drop-shadow(0 0 34px rgba(255, 79, 216, 0.28));
  transform-origin: center;
  animation: mikurushLogoBop 1.45s cubic-bezier(0.2, 0.85, 0.32, 1.2) infinite;
}

.mikurush-event-head p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #26e0ff;
  font-weight: 1000;
  text-transform: uppercase;
}

@keyframes mikurushLogoBop {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  24% {
    transform: translateY(-7px) scale(1.045);
  }
  46% {
    transform: translateY(2px) scale(0.985);
  }
  68% {
    transform: translateY(-3px) scale(1.018);
  }
}

@keyframes mikurushLogoWave {
  0% {
    opacity: 0.66;
    transform: translate(-50%, -50%) scale(0.58);
  }
  72% {
    opacity: 0.16;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.22);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mikurush-page,
  .mikurush-page::before,
  .mikurush-page::after,
  .mikurush-event-head::before,
  .mikurush-event-head::after,
  .mikurush-event-head img {
    animation: none;
  }
}

.mikurush-live-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
  gap: 22px;
}

.mikurush-panel,
.mikurush-info-panel,
.mikurush-games-section {
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(6, 10, 28, 0.88), rgba(69, 15, 99, 0.68)),
    rgba(8, 4, 30, 0.72);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.34),
    0 0 46px rgba(255, 79, 216, 0.12),
    inset 0 0 46px rgba(38, 224, 255, 0.08);
  backdrop-filter: blur(14px) saturate(1.2);
}

.mikurush-panel {
  min-height: 440px;
  padding: clamp(20px, 3vw, 32px);
}

.mikurush-panel-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mikurush-panel-title > span {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid rgba(38, 224, 255, 0.38);
  border-radius: 8px;
  background: rgba(38, 224, 255, 0.12);
  color: #26e0ff;
  font-family: Bungee, Inter, sans-serif;
}

.mikurush-panel-title p,
.mikurush-active-copy > p,
.mikurush-section-heading p {
  margin: 0 0 6px;
  color: #26e0ff;
  font-weight: 1000;
  text-transform: uppercase;
}

.mikurush-panel-title h2,
.mikurush-active-copy h2,
.mikurush-section-heading h2 {
  margin: 0;
  color: #fff;
  font-family: Bungee, Inter, sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
}

.mikurush-panel-title h2 {
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.mikurush-bedrock-status {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid rgba(255, 79, 216, 0.24);
  border-radius: 8px;
  background: rgba(255, 79, 216, 0.08);
}

.mikurush-bedrock-status strong,
.mikurush-bedrock-status span {
  display: block;
}

.mikurush-bedrock-status strong {
  color: #ff65d8;
  font-size: 1.15rem;
}

.mikurush-bedrock-status strong.is-online {
  color: #35f2a6;
  text-shadow: 0 0 20px rgba(53, 242, 166, 0.55);
}

.mikurush-bedrock-status strong.is-offline {
  color: #ff6b9d;
  text-shadow: 0 0 18px rgba(255, 107, 157, 0.42);
}

.mikurush-bedrock-status span {
  margin-top: 6px;
  color: rgba(239, 246, 255, 0.72);
}

.mikurush-stat-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.mikurush-stat-list div {
  min-height: 94px;
  padding: 16px;
  border: 1px solid rgba(145, 242, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.mikurush-stat-list span,
.mikurush-tech-note {
  color: rgba(239, 246, 255, 0.68);
  font-weight: 800;
}

.mikurush-stat-list strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-family: Bungee, Inter, sans-serif;
  font-size: 1.35rem;
}

.mikurush-tech-note {
  margin: 20px 0 0;
  line-height: 1.55;
}

.mikurush-leaderboard-panel {
  min-height: 430px;
}

.mikurush-leaderboard-table {
  margin-top: 22px;
}

.mikurush-leaderboard-head,
.mikurush-leaderboard-row {
  display: grid;
  grid-template-columns: 42px minmax(150px, 1fr) 120px 70px 74px;
  gap: 12px;
  align-items: center;
}

.mikurush-leaderboard-head {
  padding: 0 16px 12px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(39, 226, 255, 0.18);
}

.mikurush-leaderboard-list {
  display: grid;
  gap: 10px;
  max-height: 420px;
  margin-top: 12px;
  overflow-y: auto;
  padding-right: 8px;
  overscroll-behavior: contain;
  scrollbar-color: #ff4fd8 rgba(255, 255, 255, 0.08);
  scrollbar-width: thin;
}

.mikurush-leaderboard-list::-webkit-scrollbar {
  width: 10px;
}

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

.mikurush-leaderboard-list::-webkit-scrollbar-thumb {
  border: 2px solid rgba(3, 8, 28, 0.92);
  border-radius: 999px;
  background: linear-gradient(180deg, #27e2ff, #ff4fd8);
}

.mikurush-leaderboard-list > p {
  margin: 0;
  padding: 18px;
  color: rgba(239, 246, 255, 0.7);
  text-align: center;
  border: 1px dashed rgba(255, 79, 216, 0.25);
  border-radius: 10px;
}

.mikurush-leaderboard-row {
  position: relative;
  overflow: hidden;
  padding: 10px 16px;
  border: 1px solid rgba(39, 226, 255, 0.2);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(79, 46, 255, 0.24), rgba(255, 79, 216, 0.1)),
    rgba(4, 8, 28, 0.76);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.24);
}

.mikurush-leaderboard-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(39, 226, 255, 0.12), transparent 36%, rgba(255, 79, 216, 0.14));
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.mikurush-leaderboard-row:hover::before {
  opacity: 1;
}

.mikurush-leaderboard-row > strong {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #071025;
  font-family: "Bungee", system-ui, sans-serif;
  border-radius: 9px;
  background: linear-gradient(135deg, #27e2ff, #ff4fd8);
  box-shadow: 0 0 18px rgba(39, 226, 255, 0.35);
}

.mikurush-leaderboard-row.is-rank-1 {
  border-color: rgba(255, 217, 84, 0.8);
  box-shadow: 0 18px 44px rgba(255, 185, 45, 0.16);
}

.mikurush-leaderboard-row.is-rank-1 > strong {
  background: linear-gradient(135deg, #fff17a, #ff9f1c);
}

.mikurush-leaderboard-row.is-rank-2 > strong {
  background: linear-gradient(135deg, #f8fbff, #8da2ff);
}

.mikurush-leaderboard-row.is-rank-3 > strong {
  background: linear-gradient(135deg, #ffbb8a, #ff6b9d);
}

.mikurush-leaderboard-player {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.mikurush-leaderboard-player img,
.mikurush-leaderboard-fallback {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  font-weight: 900;
  border: 2px solid rgba(39, 226, 255, 0.62);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(39, 226, 255, 0.35), rgba(255, 79, 216, 0.32));
  image-rendering: pixelated;
  object-fit: cover;
}

.mikurush-leaderboard-player span {
  overflow: hidden;
  color: #fff;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mikurush-leaderboard-row > span {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 900;
}

.mikurush-active-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.8fr);
  align-items: center;
  overflow: hidden;
}

.mikurush-active-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(130deg, rgba(255, 79, 216, 0.18), transparent 44%),
    linear-gradient(310deg, rgba(38, 224, 255, 0.18), transparent 52%);
  pointer-events: none;
}

.mikurush-active-copy {
  position: relative;
  z-index: 1;
}

.mikurush-active-copy h2 {
  font-size: clamp(2.6rem, 5.8vw, 5.5rem);
  line-height: 0.92;
  text-shadow: 0 6px 0 rgba(79, 30, 135, 0.72), 0 0 30px rgba(38, 224, 255, 0.36);
}

.mikurush-active-copy > span {
  display: block;
  max-width: 560px;
  margin-top: 18px;
  color: rgba(239, 246, 255, 0.84);
  font-size: 1.12rem;
  line-height: 1.6;
}

.mikurush-timer {
  margin-top: 24px;
}

.mikurush-timer span {
  display: block;
  color: #26e0ff;
  font-weight: 1000;
  text-transform: uppercase;
}

.mikurush-timer strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-family: Bungee, Inter, sans-serif;
  font-size: 2rem;
}

.mikurush-action-button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  padding: 0 24px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: linear-gradient(135deg, #fff16e 0%, #24d8ff 42%, #ff4fd8 100%);
  color: #fff;
  font: inherit;
  font-weight: 1000;
  text-transform: uppercase;
  text-shadow: 0 2px 0 rgba(16, 7, 42, 0.36);
  box-shadow: 0 16px 36px rgba(255, 79, 216, 0.28), 0 0 26px rgba(36, 216, 255, 0.22);
  cursor: pointer;
}

.mikurush-action-button:hover,
.mikurush-action-button:focus-visible {
  transform: translateY(-2px) rotate(-1deg);
  box-shadow: 0 22px 44px rgba(255, 79, 216, 0.34), 0 0 36px rgba(36, 216, 255, 0.28);
}

.mikurush-active-art {
  position: relative;
  z-index: 1;
  aspect-ratio: 1;
  border: 2px solid rgba(38, 224, 255, 0.54);
  border-radius: 24px;
  transform: rotate(12deg);
  box-shadow: 0 0 32px rgba(38, 224, 255, 0.35), inset 0 0 34px rgba(255, 79, 216, 0.16);
}

.mikurush-active-art span {
  position: absolute;
  inset: 24%;
  border-radius: 999px 999px 42% 42%;
  background: linear-gradient(135deg, #26e0ff, #ff4fd8);
  filter: drop-shadow(0 0 18px rgba(38, 224, 255, 0.55));
}

.mikurush-games-section {
  margin-top: 28px;
  padding: clamp(20px, 3vw, 32px);
}

.mikurush-section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.mikurush-section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.mikurush-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  max-height: 640px;
  overflow: auto;
  padding-right: 8px;
}

.mikurush-game-card {
  min-height: 178px;
  padding: 16px;
  border: 1px solid rgba(145, 242, 255, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 79, 216, 0.12), transparent 40%),
    rgba(255, 255, 255, 0.04);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.mikurush-game-card:hover {
  transform: translateY(-3px);
  border-color: rgba(38, 224, 255, 0.46);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 79, 216, 0.18), transparent 42%),
    rgba(38, 224, 255, 0.06);
}

.mikurush-game-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mikurush-game-number {
  color: #ff65d8;
  font-family: Bungee, Inter, sans-serif;
}

.mikurush-game-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(38, 224, 255, 0.26);
  border-radius: 12px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.28), transparent 38%),
    linear-gradient(135deg, rgba(38, 224, 255, 0.18), rgba(255, 79, 216, 0.2));
  font-size: 1.55rem;
  box-shadow: 0 0 22px rgba(255, 79, 216, 0.16);
}

.mikurush-game-card h3 {
  margin: 10px 0 8px;
  color: #fff;
  font-size: 1rem;
  line-height: 1.15;
  text-transform: uppercase;
}

.mikurush-game-card p {
  margin: 0;
  color: rgba(239, 246, 255, 0.72);
  line-height: 1.45;
}

.mikurush-roulette-section {
  margin-top: 28px;
}

.mikurush-roulette-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(320px, 1.05fr);
  gap: 22px;
  align-items: stretch;
}

.mikurush-roulette-card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 18px;
  overflow: hidden;
}

.mikurush-roulette-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 241, 110, 0.18), transparent 28%),
    conic-gradient(from 0deg, rgba(38, 224, 255, 0.2), rgba(255, 79, 216, 0.24), rgba(255, 241, 110, 0.18), rgba(38, 224, 255, 0.2));
  filter: blur(34px);
  opacity: 0.72;
  animation: mikurushRouletteAura 9s linear infinite;
  pointer-events: none;
}

.mikurush-roulette-pointer {
  position: relative;
  z-index: 3;
  width: 0;
  height: 0;
  margin-bottom: -16px;
  border-right: 20px solid transparent;
  border-left: 20px solid transparent;
  border-top: 38px solid #fff16e;
  filter: drop-shadow(0 0 16px rgba(255, 241, 110, 0.6));
}

.mikurush-roulette-wheel {
  position: relative;
  z-index: 2;
  width: min(420px, 82vw);
  aspect-ratio: 1;
  border: 10px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(8, 12, 32, 0.95) 0 16%, transparent 17%),
    conic-gradient(
      from 0deg,
      #ff4fd8 0deg 90deg,
      #25e1ff 90deg 180deg,
      #8b5cff 180deg 270deg,
      #fff16e 270deg 360deg
    );
  box-shadow:
    0 0 38px rgba(255, 79, 216, 0.36),
    0 0 54px rgba(38, 224, 255, 0.24),
    inset 0 0 38px rgba(0, 0, 0, 0.34);
  transform: rotate(0deg);
  transition: transform 4.2s cubic-bezier(0.12, 0.74, 0.08, 1);
}

.mikurush-roulette-wheel::before {
  content: "";
  position: absolute;
  inset: 10%;
  border: 3px solid rgba(255, 255, 255, 0.28);
  border-radius: inherit;
  pointer-events: none;
}

.mikurush-roulette-label {
  position: absolute;
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, 0.72);
  border-radius: 20px;
  background: rgba(4, 8, 28, 0.72);
  color: #fff;
  font-family: Bungee, Inter, sans-serif;
  font-size: 1.55rem;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.32);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.18);
}

.mikurush-roulette-label::after {
  content: "MC";
  display: block;
  color: #26e0ff;
  font-family: Inter, Arial, sans-serif;
  font-size: 0.62rem;
  font-weight: 1000;
}

.mikurush-roulette-label.is-reward-60 {
  top: 13%;
  right: 22%;
  color: #fff16e;
}

.mikurush-roulette-label.is-reward-40 {
  right: 13%;
  bottom: 22%;
}

.mikurush-roulette-label.is-reward-30 {
  bottom: 13%;
  left: 22%;
}

.mikurush-roulette-label.is-reward-10 {
  top: 13%;
  left: 22%;
}

.mikurush-roulette-center {
  position: absolute;
  z-index: 4;
  top: calc(50% - 8px);
  left: 50%;
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border: 5px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  background: linear-gradient(135deg, #25e1ff, #ff4fd8);
  color: #fff;
  font-family: Bungee, Inter, sans-serif;
  font-size: 2.4rem;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 28px rgba(255, 79, 216, 0.46);
}

.mikurush-roulette-status {
  position: relative;
  z-index: 2;
  max-width: 520px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(38, 224, 255, 0.24);
  border-radius: 12px;
  background: rgba(4, 8, 28, 0.66);
  color: rgba(239, 246, 255, 0.82);
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
}

.mikurush-roulette-status[data-mode="ready"] {
  border-color: rgba(38, 224, 255, 0.5);
  color: #26e0ff;
}

.mikurush-roulette-status[data-mode="cooldown"] {
  border-color: rgba(255, 241, 110, 0.48);
  color: #fff16e;
}

.mikurush-roulette-status[data-mode="win"] {
  border-color: rgba(53, 242, 166, 0.52);
  color: #35f2a6;
  box-shadow: 0 0 28px rgba(53, 242, 166, 0.16);
}

.mikurush-roulette-status[data-mode="error"] {
  border-color: rgba(255, 107, 157, 0.56);
  color: #ff8bb0;
}

.mikurush-roulette-register {
  display: grid;
  align-content: start;
  gap: 18px;
}

.mikurush-roulette-field,
.mikurush-roulette-upload {
  display: grid;
  gap: 8px;
}

.mikurush-roulette-field span,
.mikurush-roulette-upload span {
  color: #26e0ff;
  font-weight: 1000;
  text-transform: uppercase;
}

.mikurush-roulette-field input {
  min-height: 54px;
  width: 100%;
  border: 1px solid rgba(38, 224, 255, 0.26);
  border-radius: 12px;
  background: rgba(3, 7, 22, 0.74);
  color: #fff;
  font: inherit;
  font-weight: 900;
  padding: 0 16px;
  outline: none;
}

.mikurush-roulette-field input:focus {
  border-color: rgba(255, 79, 216, 0.64);
  box-shadow: 0 0 0 4px rgba(255, 79, 216, 0.12);
}

.mikurush-roulette-upload {
  min-height: 132px;
  align-content: center;
  padding: 18px;
  border: 2px dashed rgba(255, 79, 216, 0.36);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.mikurush-roulette-upload:hover {
  transform: translateY(-2px);
  border-color: rgba(38, 224, 255, 0.58);
  background: rgba(38, 224, 255, 0.08);
}

.mikurush-roulette-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.mikurush-roulette-upload strong {
  color: rgba(239, 246, 255, 0.76);
  font-weight: 800;
}

.mikurush-roulette-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 86px;
  padding: 14px;
  border: 1px solid rgba(38, 224, 255, 0.2);
  border-radius: 14px;
  background: rgba(4, 8, 28, 0.54);
}

.mikurush-roulette-profile img {
  width: 62px;
  height: 62px;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 241, 110, 0.58);
  border-radius: 14px;
  background: #061024;
  image-rendering: pixelated;
  object-fit: cover;
}

.mikurush-roulette-profile span {
  color: rgba(239, 246, 255, 0.76);
  font-weight: 800;
  line-height: 1.35;
}

.mikurush-roulette-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.mikurush-action-button.is-secondary {
  background: linear-gradient(135deg, rgba(38, 224, 255, 0.16), rgba(255, 79, 216, 0.22));
  color: #fff;
}

@keyframes mikurushRouletteAura {
  to {
    transform: rotate(360deg);
  }
}

.mikurush-info-panel {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  padding: 20px;
}

.mikurush-info-panel strong {
  color: #26e0ff;
  text-transform: uppercase;
}

.mikurush-info-panel span {
  color: rgba(239, 246, 255, 0.74);
  line-height: 1.6;
}

@media (max-width: 1020px) {
  .mikurush-topbar,
  .mikurush-live-grid,
  .mikurush-active-panel,
  .mikurush-roulette-layout {
    grid-template-columns: 1fr;
  }

  .mikurush-nav {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .mikurush-back {
    justify-self: start;
  }

  .mikurush-active-art {
    width: min(260px, 76vw);
    justify-self: center;
  }

  .mikurush-roulette-card {
    min-height: auto;
  }
}

@media (max-width: 620px) {
  .mikurush-stat-list {
    grid-template-columns: 1fr;
  }

  .mikurush-leaderboard-head,
  .mikurush-leaderboard-row {
    grid-template-columns: 34px minmax(120px, 1fr) 78px 48px 54px;
    gap: 8px;
  }

  .mikurush-leaderboard-head {
    padding-inline: 10px;
    font-size: 0.64rem;
  }

  .mikurush-leaderboard-row {
    padding: 10px;
  }

  .mikurush-leaderboard-list {
    max-height: 520px;
  }

  .mikurush-leaderboard-player img,
  .mikurush-leaderboard-fallback {
    width: 34px;
    height: 34px;
  }

  .mikurush-leaderboard-player span,
  .mikurush-leaderboard-row > span {
    font-size: 0.78rem;
  }

  .mikurush-active-copy h2 {
    font-size: clamp(2.2rem, 15vw, 4rem);
  }

  .mikurush-games-grid {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .mikurush-roulette-wheel {
    width: min(320px, 84vw);
    border-width: 8px;
  }

  .mikurush-roulette-label {
    width: 56px;
    height: 56px;
    border-radius: 15px;
    font-size: 1.18rem;
  }

  .mikurush-roulette-center {
    width: 72px;
    height: 72px;
    font-size: 1.9rem;
  }
}

.home-nav-trigger {
  position: relative;
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  border: 0;
  background: transparent;
  color: rgba(239, 246, 255, 0.78);
  font: inherit;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  cursor: pointer;
}

.home-nav-trigger::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #26e0ff, #8b5cff);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.home-nav-trigger:hover,
.home-nav-trigger:focus-visible {
  color: #fff;
}

.home-nav-trigger:hover::after,
.home-nav-trigger:focus-visible::after {
  transform: scaleX(1);
}

.home-nav-links .home-active-link {
  color: #fff;
}

.home-nav-links .home-active-link::after {
  transform: scaleX(1);
  background: linear-gradient(90deg, #26e0ff, #8b5cff);
  box-shadow: 0 0 18px rgba(38, 224, 255, 0.42);
}

.home-nav-links .home-addons-link {
  color: #fff;
  text-shadow: 0 0 18px rgba(38, 224, 255, 0.72), 0 0 28px rgba(139, 92, 255, 0.48);
  animation: homeAddonsGlow 1.8s ease-in-out infinite;
}

.home-nav-links .home-addons-link::before {
  content: "";
  position: absolute;
  inset: 8px -12px;
  z-index: -1;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(38, 224, 255, 0.2), rgba(139, 92, 255, 0.2));
  opacity: 0.7;
  filter: blur(8px);
}

.home-nav-links .home-addons-link::after {
  transform: scaleX(1);
  animation: homeAddonsLine 1.8s ease-in-out infinite;
}

@keyframes homeAddonsGlow {
  0%,
  100% {
    color: #26e0ff;
  }

  50% {
    color: #b76cff;
  }
}

@keyframes homeAddonsLine {
  0%,
  100% {
    opacity: 0.7;
    box-shadow: 0 0 18px rgba(38, 224, 255, 0.62);
  }

  50% {
    opacity: 1;
    box-shadow: 0 0 18px rgba(183, 108, 255, 0.7);
  }
}

body.portfolio-modal-open {
  overflow: hidden;
}

button.home-primary-button {
  border: 1px solid rgba(38, 224, 255, 0.45);
  cursor: pointer;
  font: inherit;
}

.portfolio-event-modal {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 38px);
  overflow: auto;
}

.portfolio-event-modal[hidden] {
  display: none !important;
}

.portfolio-modal-backdrop {
  position: fixed;
  inset: 0;
  border: 0;
  background:
    linear-gradient(180deg, rgba(1, 4, 10, 0.9), rgba(3, 7, 18, 0.96)),
    radial-gradient(circle at 20% 20%, rgba(38, 224, 255, 0.18), transparent 30%),
    radial-gradient(circle at 82% 30%, rgba(168, 85, 255, 0.18), transparent 34%),
    url("assets/portafolio/ignited/games/game1.png") center / cover;
  cursor: pointer;
}

.portfolio-modal-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
}

.portfolio-modal-shell {
  position: relative;
  width: min(1500px, 100%);
  max-height: min(920px, calc(100svh - 28px));
  overflow: auto;
  padding: clamp(18px, 3vw, 36px);
  border: 1px solid rgba(145, 242, 255, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(4, 10, 22, 0.9), rgba(12, 7, 27, 0.9));
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.58), inset 0 0 70px rgba(38, 224, 255, 0.05);
}

.portfolio-modal-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.portfolio-modal-brand {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #fff;
  font-family: Bungee, Inter, sans-serif;
  font-size: clamp(1.25rem, 2vw, 2rem);
  text-transform: uppercase;
}

.portfolio-modal-brand img {
  width: clamp(46px, 5vw, 72px);
  height: clamp(46px, 5vw, 72px);
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(38, 224, 255, 0.4));
}

.portfolio-modal-brand span span {
  color: #26e0ff;
}

.portfolio-modal-close {
  justify-self: end;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-family: Bungee, Inter, sans-serif;
  font-size: 1.45rem;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.portfolio-modal-close:hover,
.portfolio-modal-close:focus-visible {
  transform: scale(1.04);
  border-color: rgba(38, 224, 255, 0.65);
  background: rgba(38, 224, 255, 0.12);
}

.portfolio-modal-heading {
  margin: clamp(22px, 4vw, 42px) auto 26px;
  text-align: center;
}

.portfolio-modal-heading h2 {
  margin: 0;
  color: #fff;
  font-family: Bungee, Inter, sans-serif;
  font-size: clamp(2rem, 4vw, 4rem);
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 8px 0 rgba(0, 0, 0, 0.48), 0 0 28px rgba(38, 224, 255, 0.22);
}

.portfolio-event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 34px);
}

.portfolio-event-card {
  --event-accent: #26e0ff;
  position: relative;
  display: grid;
  min-height: clamp(520px, 64vh, 640px);
  align-content: end;
  overflow: hidden;
  padding: clamp(18px, 2vw, 28px);
  border: 1px solid color-mix(in srgb, var(--event-accent) 70%, transparent);
  border-radius: 8px;
  background: rgba(4, 10, 20, 0.72);
  box-shadow: 0 0 34px color-mix(in srgb, var(--event-accent) 18%, transparent), inset 0 0 50px rgba(255, 255, 255, 0.03);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.portfolio-event-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(2, 6, 16, 0.32) 42%, rgba(2, 6, 16, 0.96) 100%),
    radial-gradient(circle at 50% 18%, color-mix(in srgb, var(--event-accent) 22%, transparent), transparent 38%);
}

.portfolio-event-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
  transform: scale(1.02);
  transition: transform 220ms ease, opacity 220ms ease;
}

.portfolio-event-card > div {
  position: relative;
  z-index: 2;
}

.portfolio-event-card p {
  margin: 0 0 10px;
  color: var(--event-accent);
  font-weight: 1000;
  text-transform: uppercase;
}

.portfolio-event-card h3 {
  margin: 0;
  color: #fff;
  font-family: Bungee, Inter, sans-serif;
  font-size: clamp(1.7rem, 2.8vw, 3rem);
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 5px 0 rgba(0, 0, 0, 0.48), 0 0 20px color-mix(in srgb, var(--event-accent) 35%, transparent);
}

.portfolio-event-card span {
  display: block;
  margin-top: 14px;
  color: rgba(239, 246, 255, 0.82);
  font-size: 1rem;
  line-height: 1.55;
}

.portfolio-event-card ul {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid color-mix(in srgb, var(--event-accent) 38%, transparent);
  color: #f8fbff;
  list-style: none;
}

.portfolio-event-card li {
  position: relative;
  padding-left: 20px;
  font-weight: 850;
}

.portfolio-event-card li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--event-accent);
  box-shadow: 0 0 14px var(--event-accent);
}

.portfolio-event-card strong {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  margin-top: 26px;
  border: 1px solid color-mix(in srgb, var(--event-accent) 58%, transparent);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--event-accent);
  font-weight: 1000;
  text-transform: uppercase;
}

.portfolio-event-card:hover,
.portfolio-event-card:focus-visible {
  transform: translateY(-4px);
  filter: brightness(1.08);
  box-shadow: 0 0 42px color-mix(in srgb, var(--event-accent) 28%, transparent), 0 26px 60px rgba(0, 0, 0, 0.4);
}

.portfolio-event-card:hover img,
.portfolio-event-card:focus-visible img {
  opacity: 0.94;
  transform: scale(1.07);
}

.portfolio-event-card.is-sb2 {
  --event-accent: #26e0ff;
}

.portfolio-event-card.is-personal {
  --event-accent: #8b5cff;
}

.portfolio-event-card.is-mikus {
  --event-accent: #d463ff;
}

@media (max-width: 1100px) {
  .portfolio-event-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-event-card {
    min-height: 430px;
  }
}

@media (max-width: 620px) {
  .portfolio-event-modal {
    padding: 0;
  }

  .portfolio-modal-shell {
    min-height: 100svh;
    max-height: none;
    border: 0;
    border-radius: 0;
  }

  .portfolio-modal-header {
    grid-template-columns: 1fr auto;
  }

  .portfolio-modal-brand {
    grid-column: 1;
    justify-content: flex-start;
    font-size: 1.05rem;
  }

  .portfolio-event-card {
    min-height: 380px;
  }
}

@media (min-width: 821px) {
  .home-page .home-hero-content {
    width: min(650px, 46vw);
  }
}

.home-portfolio-menu {
  position: relative;
}

.home-portfolio-menu summary {
  list-style: none;
  cursor: pointer;
}

.home-portfolio-menu summary::-webkit-details-marker {
  display: none;
}

.home-portfolio-menu-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 12;
  display: grid;
  width: min(300px, calc(100vw - 40px));
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(145, 242, 255, 0.22);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(6, 13, 29, 0.96), rgba(21, 12, 44, 0.96));
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.38), 0 0 32px rgba(139, 92, 255, 0.18);
  backdrop-filter: blur(16px);
}

.home-portfolio-menu-panel a {
  display: flex;
  min-height: 48px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #f7fbff;
  font-weight: 900;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.home-portfolio-menu-panel a:hover,
.home-portfolio-menu-panel a:focus-visible {
  transform: translateX(3px);
  border-color: rgba(38, 224, 255, 0.5);
  background: rgba(38, 224, 255, 0.12);
}

@media (max-width: 560px) {
  .home-portfolio-menu,
  .home-portfolio-menu summary {
    width: 100%;
  }

  .home-portfolio-menu-panel {
    position: static;
    width: 100%;
    margin-top: 12px;
  }
}

/* Home redesign */
.home-page {
  min-height: 100vh;
  overflow-x: hidden;
  background: #030711;
  color: #f7fbff;
}

.home-page::selection {
  background: rgba(38, 224, 255, 0.35);
}

.home-page .topbar {
  position: fixed;
  top: 16px;
  left: clamp(12px, 2.5vw, 32px);
  right: clamp(12px, 2.5vw, 32px);
  z-index: 100;
  min-height: 72px;
  padding: 10px 18px;
  border: 1px solid rgba(145, 242, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(7, 13, 28, 0.92), rgba(17, 13, 34, 0.88)),
    rgba(5, 10, 22, 0.9);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.36), 0 0 38px rgba(117, 68, 255, 0.12);
  backdrop-filter: blur(18px);
}

.home-page .home-brand {
  gap: 14px;
  color: #fff;
  font-family: Bungee, Inter, sans-serif;
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  text-transform: uppercase;
}

.home-page .home-brand span span {
  color: #26e0ff;
  text-shadow: 0 0 22px rgba(38, 224, 255, 0.58);
}

.home-page .brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  filter: drop-shadow(0 0 18px rgba(38, 224, 255, 0.35));
}

.home-nav-links {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(12px, 2.4vw, 34px);
}

.home-nav-links a {
  position: relative;
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  color: rgba(239, 246, 255, 0.78);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #26e0ff, #8b5cff);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.home-nav-links a:hover,
.home-nav-links a:focus-visible {
  color: #fff;
}

.home-nav-links a:hover::after,
.home-nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.home-page .home-actions {
  gap: 10px;
}

.home-contact-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid rgba(38, 224, 255, 0.32);
  border-radius: 8px;
  background: linear-gradient(135deg, #18c9ff, #764cff);
  color: #fff;
  font-weight: 1000;
  text-transform: uppercase;
  box-shadow: 0 14px 34px rgba(88, 78, 255, 0.32);
}

.home-page .user-menu-button {
  border-color: rgba(38, 224, 255, 0.5);
  background: linear-gradient(135deg, #0bc2ff, #8f4dff);
  box-shadow: 0 0 22px rgba(38, 224, 255, 0.28);
}

.home-page .user-menu-panel {
  border-color: rgba(145, 242, 255, 0.2);
  background: rgba(8, 13, 27, 0.96);
  color: #f7fbff;
}

.home-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 92svh;
  align-content: end;
  padding: clamp(132px, 15vh, 180px) clamp(20px, 5vw, 80px) clamp(28px, 6vh, 54px);
  overflow: hidden;
}

.home-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: url("assets/portafolio/ignited/games/game1.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.03);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 76% 48%, rgba(38, 224, 255, 0.16), transparent 26%),
    radial-gradient(circle at 45% 28%, rgba(139, 92, 255, 0.2), transparent 28%),
    linear-gradient(90deg, rgba(2, 6, 14, 0.98) 0%, rgba(3, 8, 18, 0.86) 34%, rgba(15, 8, 30, 0.5) 68%, rgba(3, 7, 14, 0.82) 100%),
    linear-gradient(180deg, rgba(3, 7, 16, 0.18) 0%, rgba(3, 7, 16, 0.88) 100%);
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 34%;
  background: linear-gradient(180deg, transparent, #030711 92%);
}

.home-hero-content {
  width: min(600px, 100%);
  padding-top: 5vh;
}

.home-kicker {
  margin: 0 0 14px;
  color: #26e0ff;
  font-family: Bungee, Inter, sans-serif;
  font-size: clamp(0.78rem, 1.1vw, 0.98rem);
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 0 24px rgba(38, 224, 255, 0.6);
}

.home-hero h1 {
  max-width: 920px;
  margin: 0;
  color: #fff;
  font-family: Bungee, Inter, sans-serif;
  font-size: clamp(2.6rem, 6vw, 6.1rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow:
    0 6px 0 rgba(0, 0, 0, 0.68),
    0 20px 42px rgba(0, 0, 0, 0.55);
}

.home-hero h1 span {
  display: block;
  color: #28e4ff;
  text-shadow:
    0 6px 0 rgba(41, 0, 84, 0.78),
    0 0 34px rgba(38, 224, 255, 0.55),
    0 20px 42px rgba(0, 0, 0, 0.55);
}

.home-hero h1 em {
  color: inherit;
  font-style: inherit;
  animation: homeTitlePulse 1.35s ease-in-out infinite;
}

.home-hero-content > p:not(.home-kicker) {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(243, 248, 255, 0.86);
  font-size: clamp(1rem, 1.65vw, 1.35rem);
  line-height: 1.65;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

.home-hero-buttons,
.home-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.home-primary-button,
.home-secondary-button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 24px;
  border-radius: 8px;
  font-weight: 1000;
  text-transform: uppercase;
  transition: transform 180ms ease, filter 180ms ease, border-color 180ms ease;
}

.home-primary-button {
  border: 1px solid rgba(38, 224, 255, 0.45);
  background: linear-gradient(135deg, #10cfff, #7e4cff);
  color: #fff;
  box-shadow: 0 18px 38px rgba(38, 224, 255, 0.2), 0 10px 38px rgba(126, 76, 255, 0.24);
}

.home-secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(7, 13, 27, 0.72);
  color: #f6fbff;
  backdrop-filter: blur(10px);
}

.home-primary-button:hover,
.home-secondary-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  border-color: rgba(38, 224, 255, 0.72);
}

.home-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(42px, 7vh, 78px);
}

.home-metric-card {
  min-height: 118px;
  padding: 18px;
  border: 1px solid rgba(145, 242, 255, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(6, 14, 28, 0.78), rgba(20, 12, 40, 0.68));
  box-shadow: inset 0 0 28px rgba(38, 224, 255, 0.04), 0 18px 46px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}

.home-page .home-metric-card.catalog-status {
  gap: 0;
}

.home-metric-card span {
  display: block;
  color: rgba(232, 244, 255, 0.78);
  font-size: 0.92rem;
  font-weight: 800;
}

.home-metric-card strong {
  display: block;
  margin-top: 10px;
  color: #fff;
  font-family: Bungee, Inter, sans-serif;
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  letter-spacing: 0;
  text-shadow: 0 0 22px rgba(38, 224, 255, 0.36);
}

.home-service-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: clamp(30px, 5vw, 64px) clamp(20px, 5vw, 80px);
  background:
    radial-gradient(circle at 10% 0%, rgba(38, 224, 255, 0.12), transparent 32%),
    radial-gradient(circle at 90% 20%, rgba(139, 92, 255, 0.16), transparent 34%),
    #030711;
}

.home-service-card {
  display: flex;
  min-height: 142px;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(145, 242, 255, 0.18);
  border-radius: 8px;
  background: rgba(8, 15, 30, 0.74);
}

.home-service-card img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 0 22px rgba(38, 224, 255, 0.28));
}

.home-service-card h2,
.home-showcase-card strong {
  margin: 0;
  font-family: Bungee, Inter, sans-serif;
  letter-spacing: 0;
}

.home-service-card h2 {
  color: #26e0ff;
  font-size: clamp(0.92rem, 1.15vw, 1.05rem);
}

.home-service-card p {
  margin: 8px 0 0;
  color: rgba(232, 244, 255, 0.78);
  line-height: 1.55;
}

.home-showcase {
  padding: clamp(44px, 7vw, 86px) clamp(20px, 5vw, 80px);
  background:
    linear-gradient(180deg, #030711 0%, #08081a 100%);
}

.home-section-heading {
  max-width: 900px;
}

.home-section-heading h2,
.home-addons-cta h2 {
  margin: 0;
  color: #fff;
  font-family: Bungee, Inter, sans-serif;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-section-heading p:not(.home-kicker),
.home-addons-cta p {
  max-width: 790px;
  margin: 18px 0 0;
  color: rgba(232, 244, 255, 0.78);
  font-size: 1.04rem;
  line-height: 1.75;
}

.home-showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.75fr);
  gap: 18px;
  margin-top: 28px;
}

.home-showcase-card {
  position: relative;
  display: flex;
  min-height: 290px;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border: 1px solid rgba(145, 242, 255, 0.18);
  border-radius: 8px;
  background: #091021;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

.home-showcase-card.is-large {
  grid-row: span 2;
  min-height: 598px;
}

.home-showcase-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 280ms ease, filter 280ms ease;
}

.home-showcase-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 18%, rgba(3, 7, 17, 0.35) 48%, rgba(3, 7, 17, 0.94) 100%),
    radial-gradient(circle at 80% 10%, rgba(139, 92, 255, 0.28), transparent 30%);
}

.home-showcase-card span,
.home-showcase-card strong,
.home-showcase-card small {
  position: relative;
  z-index: 1;
  display: block;
  margin-left: 20px;
  margin-right: 20px;
}

.home-showcase-card span {
  color: #26e0ff;
  font-weight: 1000;
  text-transform: uppercase;
}

.home-showcase-card strong {
  margin-top: 8px;
  color: #fff;
  font-size: clamp(1.2rem, 2vw, 2rem);
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.72);
}

.home-showcase-card small {
  margin-top: 8px;
  margin-bottom: 20px;
  color: rgba(232, 244, 255, 0.78);
  font-size: 0.95rem;
  line-height: 1.45;
}

.home-showcase-card:hover img {
  transform: scale(1.045);
  filter: saturate(1.12) contrast(1.04);
}

.home-addons-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin: 0 clamp(20px, 5vw, 80px) clamp(44px, 6vw, 76px);
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(145, 242, 255, 0.2);
  border-radius: 8px;
  background:
    radial-gradient(circle at 16% 12%, rgba(38, 224, 255, 0.16), transparent 34%),
    radial-gradient(circle at 88% 42%, rgba(139, 92, 255, 0.26), transparent 34%),
    rgba(8, 13, 28, 0.86);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
}

.home-addons-cta .home-cta-actions {
  justify-content: flex-end;
  margin-top: 0;
}

@media (max-width: 1180px) {
  .home-nav-links {
    display: none;
  }

  .home-page .topbar {
    min-height: 66px;
  }

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

  .home-addons-cta {
    grid-template-columns: 1fr;
  }

  .home-addons-cta .home-cta-actions {
    justify-content: flex-start;
  }

  .home-mikurush-promo {
    right: clamp(18px, 4vw, 48px);
    width: min(40vw, 460px);
  }
}

@media (max-width: 820px) {
  .home-page .topbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .home-hero {
    min-height: auto;
    padding-top: 70px;
  }

  .home-hero h1 {
    font-size: clamp(3rem, 16vw, 5rem);
  }

  .home-metrics,
  .home-service-band,
  .home-showcase-grid {
    grid-template-columns: 1fr;
  }

  .home-showcase-card,
  .home-showcase-card.is-large {
    min-height: 360px;
  }

  .home-mikurush-promo {
    position: relative;
    right: auto;
    top: auto;
    width: min(100%, 520px);
    margin-top: 34px;
    transform: none;
  }
}

@media (max-width: 560px) {
  .home-page .home-brand {
    font-size: 0.92rem;
  }

  .home-page .brand-logo {
    width: 42px;
    height: 42px;
  }

  .home-contact-button {
    display: none;
  }

  .home-primary-button,
  .home-secondary-button {
    width: 100%;
  }

  .home-service-card {
    align-items: flex-start;
  }
}

@keyframes homeMobileMenuIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.uhc-register-page {
  min-height: 100vh;
  margin: 0;
  color: #fff6dc;
  font-family: "Inter", system-ui, sans-serif;
  background:
    radial-gradient(circle at 48% 6%, rgba(255, 219, 68, 0.34), transparent 18%),
    radial-gradient(circle at 88% 35%, rgba(255, 32, 12, 0.28), transparent 25%),
    linear-gradient(135deg, rgba(255, 210, 0, 0.92) 0 9%, transparent 9% 91%, rgba(255, 210, 0, 0.96) 91%),
    linear-gradient(155deg, #150100 0%, #2a0302 36%, #090000 64%, #4c0604 100%);
  overflow-x: hidden;
}

.uhc-register-page::before,
.uhc-register-page::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.uhc-register-page::before {
  background:
    repeating-linear-gradient(115deg, transparent 0 42px, rgba(255, 0, 0, 0.16) 44px 48px),
    radial-gradient(circle at 16% 22%, rgba(255, 183, 0, 0.2), transparent 16%),
    radial-gradient(circle at 76% 72%, rgba(255, 83, 0, 0.18), transparent 18%);
  mix-blend-mode: screen;
}

.uhc-register-page::after {
  background-image:
    radial-gradient(circle, rgba(255, 213, 37, 0.95) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(255, 73, 16, 0.8) 0 1px, transparent 2px);
  background-size: 180px 180px, 122px 122px;
  animation: uhcSparks 8s linear infinite;
  opacity: 0.55;
}

.uhc-register-topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1120px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 14px 18px;
  border: 1px solid rgba(255, 207, 39, 0.28);
  border-radius: 18px;
  background: rgba(12, 0, 0, 0.76);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
}

.uhc-register-brand,
.uhc-register-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff6dc;
  text-decoration: none;
  font-weight: 900;
}

.uhc-register-brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.uhc-register-link {
  padding: 10px 16px;
  border: 1px solid rgba(255, 210, 0, 0.45);
  border-radius: 12px;
  color: #1a0200;
  background: linear-gradient(180deg, #ffe46c, #ffb400);
  box-shadow: 0 0 22px rgba(255, 197, 0, 0.18);
}

.uhc-register-shell {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100% - 32px));
  margin: 22px auto 54px;
}

.uhc-register-hero {
  text-align: center;
  padding: 20px 0 12px;
}

.uhc-register-kicker,
.uhc-register-price {
  margin: 0;
  color: #ffd727;
  font-family: "Bungee", "Inter", sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
}

.uhc-register-hero h1 {
  margin: 4px 0 10px;
  font-family: "Bungee", "Inter", sans-serif;
  font-size: clamp(4rem, 13vw, 9.6rem);
  line-height: 0.82;
  letter-spacing: 0;
  color: #ffd21e;
  text-shadow:
    0 8px 0 #5b1200,
    0 18px 34px rgba(255, 120, 0, 0.28);
}

.uhc-register-hero h1 span {
  display: block;
  margin-top: 6px;
  color: #fff8e7;
  font-size: 0.42em;
  font-style: italic;
  text-shadow:
    0 5px 0 #b40000,
    0 0 28px rgba(255, 38, 0, 0.42);
  transform: rotate(-2deg);
}

.uhc-register-price {
  color: #ffeaa0;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
}

.uhc-register-price strong {
  color: #60ff62;
  text-shadow: 0 0 12px rgba(96, 255, 98, 0.95);
  animation: uhcGreenPulse 1.3s ease-in-out infinite;
}

.uhc-register-card {
  position: relative;
  padding: clamp(22px, 4vw, 44px);
  border: 1px solid rgba(255, 29, 14, 0.82);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(15, 1, 0, 0.94), rgba(34, 4, 1, 0.9)),
    radial-gradient(circle at top, rgba(255, 207, 33, 0.12), transparent 42%);
  box-shadow:
    0 0 0 1px rgba(255, 210, 0, 0.08) inset,
    0 0 36px rgba(255, 30, 0, 0.36),
    0 24px 70px rgba(0, 0, 0, 0.48);
  overflow: hidden;
}

.uhc-register-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background:
    linear-gradient(90deg, transparent, rgba(255, 216, 45, 0.18), transparent),
    repeating-linear-gradient(135deg, transparent 0 30px, rgba(255, 0, 0, 0.09) 31px 34px);
  pointer-events: none;
}

.uhc-google-panel,
.uhc-form-grid,
.uhc-divider,
.uhc-register-status {
  position: relative;
  z-index: 1;
}

.uhc-google-panel {
  display: grid;
  place-items: center;
  gap: 12px;
}

.uhc-auth-actions {
  width: min(720px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.uhc-auth-button {
  width: min(620px, 100%);
  min-height: 74px;
  border: 0;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #230800;
  box-shadow:
    0 0 0 2px rgba(255, 255, 180, 0.35) inset,
    0 12px 30px rgba(255, 196, 0, 0.28);
  font-family: "Bungee", "Inter", sans-serif;
  font-size: clamp(0.95rem, 2.2vw, 1.35rem);
  cursor: pointer;
}

.uhc-google-button {
  background: linear-gradient(180deg, #fff06d, #ffb900);
}

.uhc-discord-button {
  color: #fff;
  background: linear-gradient(180deg, #7b8cff, #5865f2 68%, #3240bd);
  box-shadow:
    0 0 0 2px rgba(190, 205, 255, 0.34) inset,
    0 12px 30px rgba(88, 101, 242, 0.34);
}

.uhc-auth-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 8px;
  box-sizing: border-box;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.uhc-google-panel p,
.uhc-register-status {
  margin: 0;
  color: #ffd6be;
  text-align: center;
}

.uhc-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  margin: 34px 0;
  color: #ffc3ad;
  font-family: "Bungee", "Inter", sans-serif;
  font-size: 1.25rem;
}

.uhc-divider::before,
.uhc-divider::after {
  content: "";
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 217, 40, 0.72), transparent);
}

.uhc-form-grid {
  display: grid;
  gap: 28px;
}

.uhc-form-grid[aria-disabled="true"] {
  opacity: 0.58;
}

.uhc-field {
  display: grid;
  gap: 10px;
  color: #ffdd2e;
  font-family: "Bungee", "Inter", sans-serif;
  font-size: 1rem;
}

.uhc-field input {
  min-height: 70px;
  width: 100%;
  box-sizing: border-box;
  border: 2px solid rgba(255, 220, 31, 0.92);
  border-radius: 12px;
  padding: 0 22px;
  color: #fff8e3;
  background: rgba(0, 0, 0, 0.42);
  font: 800 1.05rem "Inter", sans-serif;
  outline: 0;
}

.uhc-field input:focus {
  border-color: #fff26c;
  box-shadow: 0 0 0 4px rgba(255, 214, 37, 0.15);
}

.uhc-skin-panel {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(255, 213, 31, 0.32);
  border-radius: 18px;
  background: rgba(255, 183, 0, 0.08);
}

.uhc-skin-preview {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border: 2px solid rgba(255, 215, 31, 0.75);
  border-radius: 16px;
  background: #160200;
  overflow: hidden;
}

.uhc-skin-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.uhc-skin-preview span {
  color: #ffd81e;
  font-family: "Bungee", "Inter", sans-serif;
}

.uhc-skin-panel h2,
.uhc-device-panel h2,
.uhc-pvp-panel h2,
.uhc-question-panel h2,
.uhc-question-panel h3 {
  margin: 0 0 8px;
  color: #ffda24;
  font-family: "Bungee", "Inter", sans-serif;
  text-align: center;
  letter-spacing: 0;
}

.uhc-skin-panel h2 {
  text-align: left;
}

.uhc-skin-panel p {
  margin: 0 0 12px;
  color: #ffe8cf;
}

.uhc-file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  color: #2b0700;
  background: linear-gradient(180deg, #ffe96b, #ffb800);
  font-family: "Bungee", "Inter", sans-serif;
  cursor: pointer;
}

.uhc-file-button input {
  display: none;
}

.uhc-file-button.is-disabled {
  filter: grayscale(0.8);
  opacity: 0.62;
  cursor: default;
}

.uhc-device-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.uhc-device-card {
  position: relative;
  display: grid;
  place-items: center;
  gap: 16px;
  min-height: 185px;
  border: 2px solid rgba(255, 37, 19, 0.86);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 0, 0, 0.18), rgba(255, 0, 0, 0.4)),
    rgba(30, 0, 0, 0.66);
  box-shadow: 0 0 20px rgba(255, 40, 13, 0.24);
  cursor: pointer;
}

.uhc-device-card input,
.uhc-pvp-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.uhc-device-card:has(input:checked),
.uhc-pvp-options label:has(input:checked) span {
  border-color: #fff36e;
  box-shadow:
    0 0 0 3px rgba(255, 220, 37, 0.16),
    0 0 28px rgba(255, 198, 0, 0.45);
}

.uhc-device-card strong {
  color: #fff6e2;
  font-family: "Bungee", "Inter", sans-serif;
  font-size: clamp(1rem, 2vw, 1.35rem);
  text-transform: uppercase;
}

.uhc-device-icon {
  display: grid;
  place-items: center;
  min-width: 86px;
  min-height: 86px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 226, 50, 0.22), rgba(255, 0, 0, 0.16));
  box-shadow:
    0 0 0 2px rgba(255, 213, 31, 0.28) inset,
    0 0 22px rgba(255, 213, 31, 0.28);
  font-size: 3.6rem;
  line-height: 1;
}

.uhc-device-icon.is-pc {
  font-size: 3.5rem;
}

.uhc-device-icon.is-console {
  font-size: 3.7rem;
}

.uhc-pvp-options {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 14px;
}

.uhc-question-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 213, 31, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 0, 0, 0.1), rgba(255, 202, 28, 0.05)),
    rgba(0, 0, 0, 0.22);
}

.uhc-question-panel h2 {
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.uhc-question-panel h3 {
  font-size: 0.95rem;
  text-align: left;
}

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

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

.uhc-choice-grid.is-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.uhc-choice-grid.is-five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.uhc-choice-grid label,
.uhc-pvp-options label {
  position: relative;
}

.uhc-choice-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.uhc-pvp-options label span,
.uhc-choice-grid label span {
  display: grid;
  place-items: center;
  min-height: 58px;
  border: 1px solid rgba(255, 216, 31, 0.9);
  border-radius: 10px;
  color: #ffd71e;
  background: rgba(0, 0, 0, 0.32);
  font-family: "Bungee", "Inter", sans-serif;
  font-size: 1.3rem;
  cursor: pointer;
  text-align: center;
  word-break: normal;
}

.uhc-choice-grid label span {
  min-height: 52px;
  padding: 8px 10px;
  font-size: clamp(0.72rem, 1.5vw, 0.95rem);
}

.uhc-choice-grid label:has(input:checked) span {
  border-color: #fff36e;
  color: #1f0700;
  background: linear-gradient(180deg, #fff06a, #ffbd00);
  box-shadow:
    0 0 0 3px rgba(255, 220, 37, 0.16),
    0 0 24px rgba(255, 198, 0, 0.42);
}

.uhc-creator-extra {
  display: grid;
  gap: 16px;
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 216, 31, 0.22);
}

.uhc-creator-extra[hidden] {
  display: none;
}

.uhc-submit-button {
  min-height: 66px;
  border: 0;
  border-radius: 14px;
  color: #230700;
  background: linear-gradient(180deg, #fff06a, #ffbc00);
  font-family: "Bungee", "Inter", sans-serif;
  font-size: 1.2rem;
  box-shadow: 0 0 28px rgba(255, 210, 0, 0.28);
  cursor: pointer;
}

.uhc-submit-button:disabled {
  filter: grayscale(0.9);
  opacity: 0.55;
  cursor: not-allowed;
}

.uhc-register-status {
  margin-top: 22px;
}

.uhc-register-status.is-error {
  color: #ff8f7c;
}

@keyframes uhcSparks {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 180px -360px, -122px -244px;
  }
}

@keyframes uhcGreenPulse {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.6);
  }
}

@media (max-width: 780px) {
  .uhc-register-shell {
    width: min(100% - 20px, 560px);
  }

  .uhc-device-options,
  .uhc-pvp-options,
  .uhc-choice-grid,
  .uhc-choice-grid.is-two,
  .uhc-choice-grid.is-three,
  .uhc-choice-grid.is-five {
    grid-template-columns: 1fr;
  }

  .uhc-auth-actions {
    grid-template-columns: 1fr;
  }

  .uhc-skin-panel {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .uhc-skin-panel h2 {
    text-align: center;
  }
}
