@font-face {
  font-family: 'RobotoBlack';
  src: url('Roboto-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
:root {
  
  --bg-base: #1A0A3C;
  --bg-grad-1: #4A4A82;
  --bg-grad-2: #2D2060;
  --bg-grad-3: #1A0A3C;

  
  --primary: #D0BCFF;
  --on-primary: #381E72;
  --primary-container: #4F378B;
  --on-primary-container: #EADDFF;
  --secondary: #CCC2DC;
  --on-secondary: #332D41;
  --secondary-container: #4A4458;
  --on-secondary-container: #E8DEF8;
  --tertiary: #EFB8C8;
  --on-tertiary: #492532;
  --tertiary-container: #633B48;
  --on-tertiary-container: #FFD8E4;
  --error: #F2B8B5;
  --on-error: #601410;
  --surface: #141218;
  --on-surface: #E6E0E9;
  --surface-variant: #49454F;
  --on-surface-variant: #CAC4D0;
  --outline: #938F99;
  --outline-variant: #49454F;
  --shadow: #000000;

  
  --glow: #C8C2FF;

  
  --title-grad-1: #ECEBFF;
  --title-grad-2: #C8C2FF;

  
  --content-max-width: 600px;

  
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--bg-base);
  scroll-behavior: smooth;
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--on-surface);
  line-height: 1.25;
  min-height: 100vh;
  overflow-x: hidden;
  background: linear-gradient(135deg, var(--bg-grad-1) 0%, var(--bg-grad-2) 50%, var(--bg-grad-3) 100%);
  background-attachment: fixed;
  position: relative;
}
#animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-color: var(--bg-base);
  pointer-events: none;
}

#animated-bg-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: none;
}
.app-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  transition: background-color 450ms cubic-bezier(0.22, 1, 0.36, 1), backdrop-filter 450ms cubic-bezier(0.22, 1, 0.36, 1), -webkit-backdrop-filter 450ms cubic-bezier(0.22, 1, 0.36, 1);
}

.app-bar.scrolled {
  background: rgba(29, 22, 52, 0.45);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
}

.app-bar-inner {
  width: 100%;
  max-width: var(--content-max-width);
  padding: 0 8px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.app-bar-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  transition: opacity 450ms cubic-bezier(0.22, 1, 0.36, 1), transform 450ms cubic-bezier(0.22, 1, 0.36, 1);
}

.app-bar-center.hidden {
  opacity: 0;
  transform: translateX(-50%) scale(0.8);
}

.app-bar-center img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.app-bar-center-title {
  font-size: 20px;
  font-weight: 500;
  color: var(--on-surface);
  margin: 0;
}

.app-bar-edges {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}
.icon-btn {
  background: none;
  border: none;
  color: var(--on-surface);
  text-decoration: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  font-size: 24px;
  line-height: 1;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}
.lang-pill {
  display: inline-flex;
  align-items: center;
  height: 32px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(208, 188, 255, 0.20), rgba(239, 184, 200, 0.15));
  border: 1.5px solid rgba(208, 188, 255, 0.35);
  padding-left: 4px;
  padding-right: 11px;
  cursor: pointer;
  position: relative;
  box-shadow: 0 0 4px rgba(208, 188, 255, 0.12), 0 1px 2px rgba(0, 0, 0, 0.15);
  transition: all 0.2s;
  user-select: none;
}

.lang-pill:hover {
  background: linear-gradient(135deg, rgba(208, 188, 255, 0.28), rgba(239, 184, 200, 0.22));
}

.lang-pill-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(208, 188, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lang-pill-icon .material-icons {
  font-size: 14px;
  color: var(--on-surface);
}

.lang-pill-code {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  color: var(--on-surface);
  letter-spacing: 0.5px;
  margin-left: 6px;
  line-height: 1;
}
.lang-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: rgba(20, 18, 24, 0.85);
  border: 1px solid rgba(208, 188, 255, 0.2);
  border-radius: 10px;
  padding: 4px;
  min-width: 120px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  z-index: 200;
  display: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lang-dropdown.open {
  display: block;
}

.lang-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 4px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  color: var(--on-surface);
  transition: background 0.15s;
  user-select: none;
}

.lang-dropdown-item:hover {
  background: rgba(208, 188, 255, 0.12);
}

.lang-dropdown-item .code {
  font-weight: 900;
  width: 22px;
}

.lang-dropdown-item .bullet {
  margin: 0 2px;
}

.lang-dropdown-item .name {
  width: 62px;
  text-align: center;
}

.lang-dropdown-divider {
  height: 1px;
  margin: 2px auto;
  width: 50%;
  background: rgba(255, 255, 255, 0.1);
}
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: opacity 250ms ease, visibility 250ms ease;
}

.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  max-width: 80vw;
  height: 100%;
  background: rgba(20, 18, 24, 0.95);
  z-index: 301;
  transform: translateX(-100%);
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

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

.drawer-header {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.drawer-header img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.drawer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.drawer-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  margin: 0 8px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s;
  color: var(--on-surface);
  text-decoration: none;
  font-size: 16px;
  gap: 16px;
}

.drawer-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.drawer-item.selected {
  color: var(--primary);
  font-weight: 600;
  background: rgba(208, 188, 255, 0.12);
}

.drawer-item .material-icons {
  font-size: 24px;
}
.page-content {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.scroll-content {
  flex: 1;
  padding: 16px 24px;
  display: flex;
  justify-content: center;
}

.content-column {
  width: 100%;
  max-width: var(--content-max-width);
}
.logo-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
}

.logo-glow-wrap {
  position: relative;
  display: inline-flex;
  border-radius: 50%;
}

.logo-glow-wrap::after {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border-radius: 50%;
  background: var(--glow);
  filter: blur(32px);
  z-index: -1;
  animation: glowPulse 3.5s ease-in-out infinite;
}

.logo-glow-wrap img {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  position: relative;
  z-index: 1;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.10; }
  50% { opacity: 0.25; }
}

.app-title {
  font-family: 'RobotoBlack', sans-serif;
  font-size: 56px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.5px;
  text-align: center;
  margin-top: 16px;
  background: linear-gradient(180deg, var(--title-grad-1), var(--title-grad-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.26));
}

.app-subtitle {
  text-align: center;
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.25;
  color: rgba(230, 224, 233, 0.7);
}
.store-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 14px;
  background: rgba(20, 18, 24, 0.65);
  border: 1px solid rgba(200, 194, 255, 0.3);
  color: var(--on-surface);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  transition: transform 0.15s, background 0.15s;
  flex: 1;
  min-width: 0;
  animation: storeGlow 3.5s ease-in-out infinite;
}

.store-btn:hover {
  background: rgba(20, 18, 24, 0.75);
  transform: translateY(-1px);
}

@keyframes storeGlow {
  0%, 100% { box-shadow: 0 0 24px rgba(200, 194, 255, 0.10); }
  50% { box-shadow: 0 0 24px rgba(200, 194, 255, 0.25); }
}

.store-btn svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  fill: currentColor;
}

.store-btn-text {
  text-align: left;
}

.store-btn-label {
  font-size: 12px;
  color: rgba(230, 224, 233, 0.7);
  display: block;
  line-height: 1.3;
}

.store-btn-name {
  font-size: 16px;
  font-weight: 600;
  display: block;
  line-height: 1.3;
}
.glass-card {
  background: rgba(20, 18, 24, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(73, 69, 79, 0.3);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.065);
}
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.section-header .material-icons {
  font-size: 28px;
  color: var(--primary);
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--on-surface);
  line-height: 1.3;
}
.section-intro {
  font-size: 14px;
  color: var(--on-surface-variant);
  margin: 0 0 16px;
  padding: 0 4px;
  line-height: 1.5;
  opacity: 0.85;
}
.step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.step-item:last-child {
  margin-bottom: 0;
}

.step-number {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 14px;
  background: rgba(208, 188, 255, 0.2);
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.game-mode-card {
  display: flex;
  gap: 16px;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.game-mode-card:last-child {
  margin-bottom: 0;
}

.game-mode-card.purple {
  background: rgba(156, 39, 176, 0.1);
  border: 1px solid rgba(156, 39, 176, 0.3);
}

.game-mode-card.orange {
  background: rgba(255, 152, 0, 0.1);
  border: 1px solid rgba(255, 152, 0, 0.3);
}

.game-mode-card.teal {
  background: rgba(0, 150, 136, 0.1);
  border: 1px solid rgba(0, 150, 136, 0.3);
}

.game-mode-card .material-icons {
  font-size: 32px;
  flex-shrink: 0;
}

.game-mode-card.purple .material-icons,
.game-mode-card.purple .game-mode-title { color: #CE93D8; }

.game-mode-card.orange .material-icons,
.game-mode-card.orange .game-mode-title { color: #FFB74D; }

.game-mode-card.teal .material-icons,
.game-mode-card.teal .game-mode-title { color: #80CBC4; }

.game-mode-info {
  flex: 1;
  min-width: 0;
}

.game-mode-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.3;
}

.game-mode-desc {
  font-size: 12px;
  line-height: 1.4;
  color: rgba(230, 224, 233, 0.8);
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.feature-item:last-child {
  margin-bottom: 0;
}

.feature-item .material-icons {
  font-size: 22px;
  color: var(--primary);
  flex-shrink: 0;
}
.footer {
  padding: 24px 0;
  border-top: 1px solid rgba(230, 224, 233, 0.1);
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-logo-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--on-surface);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin-bottom: 20px;
}

.footer-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.15s;
}

.footer-link:hover {
  background: rgba(208, 188, 255, 0.1);
}

.footer-copyright {
  font-size: 12px;
  color: rgba(230, 224, 233, 0.5);
  text-align: center;
}

.footer-love {
  font-size: 12px;
  color: rgba(230, 224, 233, 0.4);
  text-align: center;
  margin-top: 8px;
  white-space: pre-line;
}
.not-found-code {
  font-family: 'RobotoBlack', sans-serif;
  font-size: 72px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.5px;
  text-align: center;
  background: linear-gradient(180deg, var(--title-grad-1), var(--title-grad-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.26));
}

.not-found-subtitle {
  text-align: center;
  font-size: 16px;
  line-height: 1.25;
  color: rgba(230, 224, 233, 0.7);
}

.home-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  border-radius: 14px;
  background: rgba(20, 18, 24, 0.65);
  border: 1px solid rgba(200, 194, 255, 0.3);
  color: var(--on-surface);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
  box-shadow: 0 0 24px rgba(200, 194, 255, 0.15);
}

.home-btn:hover {
  background: rgba(20, 18, 24, 0.75);
  transform: translateY(-1px);
}

.home-btn .material-icons {
  font-size: 20px;
}
.contact-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.contact-icon img {
  width: 80px;
  height: 80px;
  border-radius: 18px;
}

.contact-intro {
  font-size: 16px;
  line-height: 1.25;
  color: rgba(230, 224, 233, 0.8);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 16px;
  position: relative;
}

.form-group:last-of-type {
  margin-bottom: 24px;
}

.form-field {
  width: 100%;
  padding: 16px 16px 16px 48px;
  border: 1px solid var(--outline-variant);
  border-radius: 12px;
  background: var(--surface);
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
}

.form-field:focus {
  border-color: var(--primary);
  border-width: 2px;
  padding: 15px 15px 15px 47px;
}

.form-field::placeholder {
  color: rgba(202, 196, 208, 0.8);
}

textarea.form-field {
  resize: vertical;
  min-height: 120px;
  padding-top: 16px;
}

.form-field-icon {
  position: absolute;
  left: 16px;
  top: 16px;
  font-size: 20px;
  color: var(--on-surface-variant);
  pointer-events: none;
}

.form-error {
  font-size: 12px;
  color: var(--error);
  margin-top: 4px;
  display: none;
}

.form-error.visible {
  display: block;
}

.form-submit-error {
  color: var(--error);
  font-size: 14px;
  margin-bottom: 16px;
  display: none;
}

.form-submit-error.visible {
  display: block;
}

.submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  border: none;
  border-radius: 14px;
  background: var(--secondary-container);
  color: var(--on-secondary-container);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}

.submit-btn:hover {
  opacity: 0.92;
}

.submit-btn:active {
  transform: scale(0.99);
}

.submit-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.submit-btn .material-icons {
  font-size: 20px;
}

.submit-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(232, 222, 248, 0.3);
  border-top-color: var(--on-secondary-container);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
.success-message {
  text-align: center;
  display: none;
}

.success-message.visible {
  display: block;
}

.success-message > .material-icons {
  font-size: 64px;
  color: var(--primary);
}

.success-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--on-surface);
}

.success-text {
  font-size: 16px;
  line-height: 1.25;
  color: rgba(230, 224, 233, 0.7);
}

.captcha-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
}

.captcha-overlay.open {
  display: flex;
}

.captcha-dialog {
  background: var(--surface);
  border-radius: 16px;
  padding: 24px;
  min-width: 304px;
  position: relative;
}

.captcha-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 78px;
}

.captcha-loading .submit-spinner {
  display: block;
  border-color: rgba(230, 224, 233, 0.3);
  border-top-color: rgba(230, 224, 233, 0.7);
}

.captcha-fail {
  text-align: center;
  display: none;
}

.captcha-fail .material-icons {
  font-size: 40px;
  color: var(--error);
}

.captcha-fail-text {
  font-size: 14px;
  color: rgba(230, 224, 233, 0.7);
  margin-top: 12px;
}

.captcha-fail-btn {
  margin-top: 16px;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  background: none;
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
}
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.text-center { text-align: center; }
.flex-center { display: flex; justify-content: center; }
@media (max-width: 480px) {
  .app-title {
    font-size: 48px;
  }

}
.hidden {
  display: none !important;
}
img.appbar-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: block;
  transition: opacity 450ms cubic-bezier(0.22, 1, 0.36, 1), transform 450ms cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 1;
  transform: scale(1);
}
img.appbar-logo.hidden {
  display: block !important;
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}
.drawer-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--on-surface);
  line-height: 1.2;
}
.drawer-divider.inset {
  margin: 0 28px;
}
.store-buttons {
  display: flex;
  gap: 16px;
  max-width: 480px;
  margin: 0 auto;
}

@media (max-width: 480px) {
  .store-buttons {
    flex-direction: column;
    gap: 12px;
  }
}
.store-section {
  margin-top: 32px;
}
.content-section {
  margin-top: 32px;
}
.game-mode-icon-wrap {
  flex-shrink: 0;
}
.game-mode-icon-wrap .material-icons {
  font-size: 32px;
}
.join-banner {
  margin-top: 32px;
}

.join-instructions {
  font-size: 12px;
  color: rgba(230, 224, 233, 0.6);
  text-align: center;
  margin-top: 16px;
  margin-bottom: 20px;
}
.join-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.join-header-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--on-surface);
}
.join-dismiss-btn {
  background: none;
  border: none;
  color: rgba(230, 224, 233, 0.7);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.join-room-code-container {
  background: rgba(20, 18, 24, 0.4);
  border: 1px solid rgba(73, 69, 79, 0.3);
  border-radius: 16px;
  padding: 16px 24px;
  text-align: center;
}
.join-room-label {
  font-size: 12px;
  color: rgba(230, 224, 233, 0.7);
  margin-bottom: 8px;
}
.join-room-code {
  font-family: 'RobotoBlack', sans-serif;
  font-size: 45px;
  font-weight: 900;
  letter-spacing: 8px;
  background: linear-gradient(90deg, #00BFA6, #6A7FDB, #E56B6F);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
@media (max-width: 480px) {
  .join-room-code {
    font-size: 36px;
    letter-spacing: 6px;
  }
}
