@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800;900&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  /* Celtic Emerald Green */
  --gsch-green-primary: #22aa44;
  --gsch-green-hover: #2cd456;
  --gsch-green-dark: #124b23;
  --gsch-green-deep: #0e3019;
  --gsch-green-glow: rgba(34, 170, 68, 0.4);

  /* Noble Celtic Gold */
  --gsch-gold-primary: #d4af37;
  --gsch-gold-light: #f5d77f;
  --gsch-gold-bright: #ffea9f;
  --gsch-gold-dark: #997a15;
  --gsch-gold-glow: rgba(212, 175, 55, 0.28);
  --gsch-border-gold: rgba(212, 175, 55, 0.42);

  /* Polished & Burnished Silver */
  --gsch-silver-bright: #f8fafc;
  --gsch-silver-primary: #d1d9e2;
  --gsch-silver-muted: #94a3b8;
  --gsch-silver-dark: #5c6878;
  --gsch-silver-border: rgba(200, 212, 228, 0.18);
  --gsch-silver-border-highlight: rgba(230, 240, 255, 0.35);
  --gsch-silver-glow: rgba(200, 215, 235, 0.18);

  /* Graphite Grey & Natural Stone Foundations (Zero Blue Cast) */
  --gsch-graphite-950: #0d0f11;
  --gsch-graphite-900: #141619;
  --gsch-graphite-850: #1a1d22;
  --gsch-graphite-800: #22252c;
  --gsch-graphite-750: #2a2e37;
  --gsch-graphite-700: #333842;

  --gsch-bg-deep: #0f1113;
  --gsch-bg-card: rgba(22, 25, 30, 0.94);
  --gsch-bg-card-subtle: rgba(28, 32, 38, 0.85);
  --gsch-bg-card-header: rgba(35, 40, 48, 0.75);
  --gsch-bg-input: rgba(14, 16, 19, 0.92);

  --gsch-border-subtle: rgba(200, 212, 228, 0.16);
  --gsch-border-focus: rgba(34, 170, 68, 0.7);

  /* Typography Colors */
  --gsch-text-light: #f3f5f8;
  --gsch-text-silver: #c9d2dc;
  --gsch-text-muted: #949fae;
  --gsch-text-gold: #f0d588;

  /* Status & Platforms */
  --gsch-discord: #5865F2;
  --gsch-discord-hover: #4752c4;
  --gsch-danger: #ef4444;
  --gsch-danger-bg: rgba(239, 68, 68, 0.12);
  --gsch-success: #10b981;
  --gsch-success-bg: rgba(16, 185, 129, 0.12);

  /* Subtle Tactile Stone Micro-Texture (Self-contained vector fractal noise) */
  --gsch-stone-noise: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='stoneNoise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.9 0 0 0 0 0.9 0 0 0 0 0.95 0 0 0 0.038 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23stoneNoise)'/%3E%3C/svg%3E");
}

/* Base Wrapper */
.failte-portal-wrapper {
  max-width: 860px;
  margin: 20px auto 40px auto;
  padding: 0 16px;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--gsch-text-light);
  box-sizing: border-box;
}

.failte-portal-wrapper *,
.failte-portal-wrapper *::before,
.failte-portal-wrapper *::after {
  box-sizing: border-box;
}

/* Card Container - Chiseled Graphite Stone Slab */
.failte-card {
  background:
    var(--gsch-stone-noise),
    radial-gradient(130% 100% at 50% -5%, rgba(46, 52, 62, 0.88) 0%, rgba(25, 28, 33, 0.96) 50%, rgba(14, 16, 18, 0.99) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--gsch-silver-border);
  border-radius: 14px;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.12),
    inset 0 -1px 1px rgba(0, 0, 0, 0.6),
    0 18px 45px rgba(0, 0, 0, 0.75),
    0 0 28px rgba(212, 175, 55, 0.12);
  padding: 34px 38px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Top Accent Line - Silver, Antique Gold & Emerald Ribbon */
.failte-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(200, 215, 230, 0.35) 15%,
    var(--gsch-gold-primary) 35%,
    var(--gsch-green-primary) 50%,
    var(--gsch-gold-primary) 65%,
    rgba(200, 215, 230, 0.35) 85%,
    transparent 100%
  );
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

/* Portal Nav Tabs - Graphite Stone Bed */
.failte-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
  padding: 6px;
  background:
    var(--gsch-stone-noise),
    linear-gradient(180deg, rgba(14, 16, 19, 0.94) 0%, rgba(20, 23, 28, 0.88) 100%);
  border-radius: 10px;
  border: 1px solid var(--gsch-silver-border);
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.7),
    0 1px 0 rgba(255, 255, 255, 0.05);
}

.failte-tab-btn {
  flex: 1;
  max-width: 220px;
  text-align: center;
  padding: 10px 18px;
  border-radius: 8px;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gsch-silver-muted);
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.failte-tab-btn:hover {
  color: var(--gsch-silver-bright);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-color: rgba(200, 212, 228, 0.15);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.25);
}

.failte-tab-btn.active {
  color: #ffffff;
  background: linear-gradient(135deg, #1b5329 0%, #10381b 100%);
  border: 1px solid #28a745;
  box-shadow:
    0 4px 14px var(--gsch-green-glow),
    inset 0 1px 1px rgba(255, 255, 255, 0.25),
    inset 0 -1px 1px rgba(0, 0, 0, 0.4);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Typography */
.failte-title {
  font-family: 'Cinzel', serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--gsch-silver-bright);
  text-align: center;
  margin: 0 0 8px 0;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

.failte-title span {
  color: var(--gsch-gold-primary);
  background: linear-gradient(135deg, #fff3c4 0%, #f5d77f 35%, #d4af37 70%, #aa8420 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 6px rgba(212, 175, 55, 0.3));
}

.failte-subtitle {
  text-align: center;
  font-size: 15px;
  color: var(--gsch-silver-muted);
  margin: 0 auto 24px auto;
  max-width: 680px;
  line-height: 1.6;
}

.failte-section-title {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--gsch-gold-light);
  margin: 28px 0 14px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.failte-section-title i {
  color: var(--gsch-green-primary);
  filter: drop-shadow(0 0 6px var(--gsch-green-glow));
}

/* Age Fine Print Notice - Illuminated Celtic Amber/Gold Plaque */
.failte-age-notice {
  background:
    var(--gsch-stone-noise),
    linear-gradient(135deg, rgba(212, 175, 55, 0.09) 0%, rgba(32, 28, 20, 0.75) 100%);
  border: 1px solid rgba(212, 175, 55, 0.42);
  border-radius: 9px;
  box-shadow:
    inset 0 1px 0 rgba(255, 235, 160, 0.16),
    0 4px 16px rgba(0, 0, 0, 0.45);
  padding: 13px 18px;
  margin: 18px 0 26px 0;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13.5px;
  color: #eed68a;
  line-height: 1.48;
}

.failte-age-notice i {
  font-size: 22px;
  color: var(--gsch-gold-light);
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px var(--gsch-gold-glow));
}

/* Alert Boxes - Stone Framed Indicators */
.failte-alert {
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 22px;
  font-size: 14px;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.failte-alert-error {
  background:
    var(--gsch-stone-noise),
    linear-gradient(135deg, rgba(239, 68, 68, 0.14) 0%, rgba(30, 18, 18, 0.9) 100%);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fca5a5;
}

.failte-alert-success {
  background:
    var(--gsch-stone-noise),
    linear-gradient(135deg, rgba(16, 185, 129, 0.14) 0%, rgba(18, 30, 22, 0.9) 100%);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #a7f3d0;
}

.failte-alert-info {
  background:
    var(--gsch-stone-noise),
    linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(28, 31, 36, 0.92) 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: #f0e2b6;
}

/* Rules / Credo Accordion Cards - Graphite Stone Tablets */
.failte-rule-card {
  background:
    var(--gsch-stone-noise),
    linear-gradient(180deg, rgba(30, 33, 40, 0.88) 0%, rgba(20, 22, 27, 0.92) 100%);
  border: 1px solid var(--gsch-silver-border);
  border-radius: 10px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: all 0.25s ease;
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.failte-rule-card.accepted {
  border-color: rgba(34, 170, 68, 0.55);
  border-left: 3px solid var(--gsch-green-primary);
  box-shadow:
    0 0 18px rgba(34, 170, 68, 0.22),
    inset 0 1px 0 rgba(34, 170, 68, 0.25);
}

.failte-rule-header {
  padding: 14px 20px;
  background: linear-gradient(180deg, rgba(38, 43, 51, 0.72) 0%, rgba(24, 27, 32, 0.82) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  font-family: 'Cinzel', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--gsch-silver-bright);
  letter-spacing: 0.03em;
  transition: background 0.2s ease, color 0.2s ease;
}

.failte-rule-header:hover {
  background: linear-gradient(180deg, rgba(48, 54, 64, 0.82) 0%, rgba(30, 34, 40, 0.9) 100%);
  color: #ffffff;
}

/* Burnished Silver Badge */
.failte-rule-badge {
  font-size: 11px;
  font-family: 'Outfit', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(220, 230, 245, 0.12) 0%, rgba(140, 150, 168, 0.06) 100%);
  border: 1px solid rgba(195, 210, 230, 0.28);
  color: var(--gsch-silver-primary);
  font-weight: 600;
  transition: all 0.25s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.failte-rule-card.accepted .failte-rule-badge {
  background: linear-gradient(135deg, #1b5329 0%, #10381b 100%);
  color: #a7f3d0;
  border: 1px solid var(--gsch-green-primary);
  box-shadow: 0 0 10px rgba(34, 170, 68, 0.35);
}

.failte-rule-body {
  padding: 18px 22px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--gsch-silver-primary);
  background: rgba(14, 16, 18, 0.45);
}

.failte-rule-body h4 {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  color: var(--gsch-gold-light);
  margin: 12px 0 4px 0;
  letter-spacing: 0.02em;
}

.failte-rule-body h4:first-child {
  margin-top: 0;
}

.failte-rule-body blockquote {
  margin: 6px 0 14px 0;
  padding: 12px 16px;
  border-left: 3px solid var(--gsch-green-primary);
  background: rgba(0, 0, 0, 0.3);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #e5ebf2;
}

.failte-rule-accept {
  padding: 12px 20px;
  background: rgba(12, 14, 17, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Custom Checkbox */
.failte-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--gsch-silver-bright);
  user-select: none;
}

.failte-portal-wrapper input[type="checkbox"],
.failte-portal-wrapper input[type="checkbox"]:focus,
.failte-checkbox-label input[type="checkbox"],
.failte-checkbox-label input[type="checkbox"]:focus {
  width: 19px !important;
  height: 19px !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer;
  accent-color: var(--gsch-green-primary);
  background-image: none !important;
  box-shadow: none !important;
  outline: none;
  border: none !important;
}

/* Secret Word Section - Runic Stone Vault */
.failte-secretword-box {
  background:
    var(--gsch-stone-noise),
    linear-gradient(135deg, rgba(22, 45, 28, 0.75) 0%, rgba(18, 21, 25, 0.95) 100%);
  border: 1px solid var(--gsch-border-gold);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  margin: 28px 0;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 235, 160, 0.14);
}

.failte-portal-wrapper .failte-secretword-input,
.failte-secretword-input {
  max-width: 340px !important;
  width: 100% !important;
  margin: 12px auto !important;
  font-family: 'Cinzel', serif !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-align: center !important;
  padding: 10px 16px !important;
  background-color: rgba(10, 12, 14, 0.78) !important;
  background-image: none !important;
  border: 2px solid var(--gsch-border-gold) !important;
  border-radius: 8px !important;
  color: var(--gsch-gold-light) !important;
  text-transform: uppercase;
  box-sizing: border-box !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.7) !important;
}

.failte-portal-wrapper .failte-secretword-input:focus,
.failte-portal-wrapper input.failte-secretword-input:focus,
.failte-secretword-input:focus {
  outline: none !important;
  font-family: 'Cinzel', serif !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-align: center !important;
  width: 100% !important;
  max-width: 340px !important;
  padding: 10px 16px !important;
  margin: 12px auto !important;
  border: 2px solid var(--gsch-green-primary) !important;
  border-color: var(--gsch-green-primary) !important;
  background-color: rgba(14, 18, 16, 0.95) !important;
  background-image: none !important;
  box-shadow:
    0 0 20px var(--gsch-green-glow),
    inset 0 2px 6px rgba(0, 0, 0, 0.6) !important;
  color: #ffffff !important;
  box-sizing: border-box !important;
}

.failte-request-toggle {
  display: inline-block;
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--gsch-gold-light);
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s;
}

.failte-request-toggle:hover {
  color: #ffffff;
}

/* Request Secret Word Form Modal / Drawer */
.failte-request-panel {
  display: none;
  background:
    var(--gsch-stone-noise),
    linear-gradient(180deg, rgba(28, 32, 38, 0.94) 0%, rgba(18, 20, 24, 0.96) 100%);
  border: 1px solid var(--gsch-silver-border);
  border-radius: 10px;
  padding: 22px;
  margin-top: 18px;
  text-align: left;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.failte-request-panel.open {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* Forms & Inputs - Dark Basalt Wells with Silver Bevels */
.failte-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 20px;
}

.failte-grid-full {
  grid-column: span 2;
}

.failte-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.failte-form-group label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gsch-gold-light);
}

.failte-form-group .hint {
  font-size: 12px;
  color: var(--gsch-silver-muted);
  line-height: 1.4;
}

/* Base Form Fields - Lock font-family, font-size, padding, face and dimensions */
.failte-portal-wrapper .failte-input,
.failte-portal-wrapper .failte-select,
.failte-portal-wrapper .failte-textarea,
.failte-portal-wrapper input[type="text"]:not(.failte-secretword-input),
.failte-portal-wrapper input[type="email"],
.failte-portal-wrapper input[type="password"],
.failte-portal-wrapper input[type="number"],
.failte-portal-wrapper select,
.failte-portal-wrapper textarea,
.failte-input,
.failte-select,
.failte-textarea {
  width: 100% !important;
  max-width: 100%;
  padding: 12px 14px !important;
  background-color: var(--gsch-bg-input) !important;
  background-image: none !important;
  border: 1px solid var(--gsch-silver-border) !important;
  border-radius: 8px;
  color: var(--gsch-silver-bright) !important;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 15px !important;
  line-height: 1.4 !important;
  box-sizing: border-box !important;
  margin: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.65);
}

.failte-portal-wrapper .failte-input:hover,
.failte-portal-wrapper .failte-select:hover,
.failte-portal-wrapper .failte-textarea:hover,
.failte-portal-wrapper input[type="text"]:not(.failte-secretword-input):hover,
.failte-portal-wrapper input[type="email"]:hover,
.failte-portal-wrapper input[type="password"]:hover,
.failte-portal-wrapper select:hover,
.failte-portal-wrapper textarea:hover,
.failte-input:hover,
.failte-select:hover,
.failte-textarea:hover {
  border-color: rgba(210, 222, 238, 0.28) !important;
}

/* Focused State - Keep exact same dimensions, padding, font-face and font-size */
.failte-portal-wrapper .failte-input:focus,
.failte-portal-wrapper .failte-select:focus,
.failte-portal-wrapper .failte-textarea:focus,
.failte-portal-wrapper input[type="text"]:not(.failte-secretword-input):focus,
.failte-portal-wrapper input[type="email"]:focus,
.failte-portal-wrapper input[type="password"]:focus,
.failte-portal-wrapper input[type="number"]:focus,
.failte-portal-wrapper select:focus,
.failte-portal-wrapper textarea:focus,
.failte-input:focus,
.failte-select:focus,
.failte-textarea:focus {
  outline: none !important;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 15px !important;
  line-height: 1.4 !important;
  width: 100% !important;
  max-width: 100%;
  padding: 12px 14px !important;
  margin: 0 !important;
  border: 1px solid var(--gsch-green-primary) !important;
  border-color: var(--gsch-green-primary) !important;
  background-color: rgba(18, 21, 26, 0.98) !important;
  background-image: none !important;
  box-shadow:
    0 0 14px var(--gsch-green-glow),
    inset 0 2px 5px rgba(0, 0, 0, 0.6) !important;
  color: var(--gsch-silver-bright) !important;
  box-sizing: border-box !important;
}

.failte-input::placeholder,
.failte-textarea::placeholder,
.failte-portal-wrapper input::placeholder,
.failte-portal-wrapper textarea::placeholder {
  color: rgba(148, 163, 184, 0.5);
}

.failte-textarea,
.failte-portal-wrapper textarea {
  min-height: 90px;
  resize: vertical;
}

.failte-select {
  cursor: pointer;
}

/* Event Code / Participation Input - High Specificity to lock dimensions & styles */
.failte-code-input,
.failte-portal-wrapper .failte-code-input,
input[type="text"].failte-code-input,
input[type="number"].failte-code-input,
.failte-input.failte-code-input,
.failte-code-input:focus,
.failte-portal-wrapper .failte-code-input:focus,
input[type="text"].failte-code-input:focus,
input[type="number"].failte-code-input:focus,
.failte-input.failte-code-input:focus {
  font-family: 'Outfit', monospace !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  letter-spacing: 5px !important;
  text-align: center !important;
  color: var(--gsch-gold-light) !important;
  padding: 10px 14px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  border-radius: 8px !important;
}

.failte-code-input::placeholder {
  color: rgba(212, 175, 55, 0.35) !important;
  letter-spacing: 4px;
}

.failte-select optgroup {
  background: #14171a;
  color: var(--gsch-gold-light);
  font-weight: 700;
}

.failte-select option {
  background: #1c2025;
  color: #edf2f7;
}

/* Date of Birth Flex */
.failte-dob-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.5fr;
  gap: 8px;
}

/* Password with Toggle */
.failte-pw-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.failte-pw-wrapper .failte-input,
.failte-pw-wrapper .failte-input:focus,
.failte-portal-wrapper .failte-pw-wrapper input.failte-input,
.failte-portal-wrapper .failte-pw-wrapper input.failte-input:focus {
  padding-right: 42px !important;
}

.failte-pw-toggle {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--gsch-silver-muted);
  cursor: pointer;
  padding: 4px;
  font-size: 15px;
  transition: color 0.2s ease;
}

.failte-pw-toggle:hover {
  color: var(--gsch-silver-bright);
}

/* Password Strength Indicator */
.failte-pw-meter {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}

.failte-pw-meter-bar {
  height: 100%;
  width: 0%;
  transition: width 0.3s ease, background-color 0.3s ease;
}

/* Game Selection Grid */
.failte-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
  background: var(--gsch-bg-input);
  border: 1px solid var(--gsch-silver-border);
  border-radius: 10px;
  padding: 16px;
  max-height: 280px;
  overflow-y: auto;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.65);
}

.failte-games-grid::-webkit-scrollbar {
  width: 8px;
}

.failte-games-grid::-webkit-scrollbar-track {
  background: rgba(12, 14, 16, 0.8);
  border-radius: 4px;
}

.failte-games-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #2b3038, #1c2026);
  border: 1px solid rgba(200, 212, 228, 0.2);
  border-radius: 4px;
}

.failte-games-grid::-webkit-scrollbar-thumb:hover {
  background: #38404a;
}

.failte-game-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 13.5px;
  cursor: pointer;
  transition: background 0.2s ease;
  user-select: none;
  color: var(--gsch-silver-primary);
}

.failte-game-checkbox:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.failte-game-checkbox input,
.failte-game-checkbox input:focus {
  accent-color: var(--gsch-green-primary);
  width: 16px !important;
  height: 16px !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer;
  background-image: none !important;
  box-shadow: none !important;
  outline: none;
  border: none !important;
}

/* Action Buttons */
.failte-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: 'Cinzel', serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  border: none;
}

/* Primary Button - Emerald Gem & Gold Accent */
.failte-btn-primary {
  background: linear-gradient(135deg, #27ae60 0%, #1e824c 55%, #145a32 100%);
  color: #ffffff;
  border: 1px solid rgba(160, 255, 180, 0.35);
  box-shadow:
    0 4px 18px var(--gsch-green-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.failte-btn-primary:hover {
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 55%, #196f3d 100%);
  box-shadow:
    0 6px 26px rgba(46, 204, 113, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
  color: #ffffff;
}

/* Secondary Button - Burnished Silver Stone */
.failte-btn-secondary {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  color: var(--gsch-silver-bright);
  border: 1px solid var(--gsch-silver-border);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.35);
}

.failte-btn-secondary:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-color: var(--gsch-silver-border-highlight);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 14px var(--gsch-silver-glow);
  color: #ffffff;
}

/* Discord Button */
.failte-btn-discord {
  background: var(--gsch-discord);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(88, 101, 242, 0.35);
  width: 100%;
}

.failte-btn-discord:hover {
  background: var(--gsch-discord-hover);
  box-shadow: 0 6px 22px rgba(88, 101, 242, 0.5);
  transform: translateY(-1px);
  color: #ffffff;
}

.failte-btn-block {
  width: 100%;
}

/* Divider with text - Metallic Silver to Gold Etched Groove */
.failte-divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
  color: var(--gsch-silver-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.failte-divider::before,
.failte-divider::after {
  content: "";
  flex: 1;
  height: 1px;
}

.failte-divider::before {
  background: linear-gradient(90deg, transparent, rgba(200, 212, 228, 0.22));
}

.failte-divider::after {
  background: linear-gradient(90deg, rgba(200, 212, 228, 0.22), transparent);
}

.failte-divider span {
  padding: 0 14px;
}

/* Success Screen Platform Badges */
.failte-platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.failte-platform-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: #ffffff;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.failte-platform-link:hover {
  transform: translateY(-2px);
  opacity: 0.95;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
  color: #ffffff;
}

.failte-platform-discord { background: #5865F2; }
.failte-platform-herald  { background: #086063; }
.failte-platform-youtube { background: #FF0000; }
.failte-platform-twitch  { background: #9146FF; }

/* Responsive Adjustments */
@media (max-width: 640px) {
  .failte-card {
    padding: 22px 18px;
  }
  .failte-form-grid {
    grid-template-columns: 1fr;
  }
  .failte-grid-full {
    grid-column: span 1;
  }
  .failte-title {
    font-size: 24px;
  }
  .failte-dob-grid {
    grid-template-columns: 1fr;
  }
  .failte-games-grid {
    grid-template-columns: 1fr;
  }
  .failte-tabs {
    flex-direction: column;
  }
  .failte-tab-btn {
    max-width: 100%;
  }
  /* Prevent iOS zoom & dimension drift on mobile while keeping clean layout */
  .failte-portal-wrapper .failte-input,
  .failte-portal-wrapper .failte-select,
  .failte-portal-wrapper .failte-textarea,
  .failte-portal-wrapper input:not(.failte-secretword-input):not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
  .failte-portal-wrapper select,
  .failte-portal-wrapper textarea {
    font-size: 16px !important;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
