/* First Games theme — brand black/gold/red (official logo palette) */
:root {
  --fg-bg: #000000;
  --fg-bg-stripe: #0a0a0a;
  --fg-surface: #141414;
  --fg-surface-elevated: #1a1a1a;
  --fg-border: #2a2a2a;
  --fg-text: #f5f5f5;
  --fg-muted: #b0b0b0;
  --fg-gold: #e5b36a;
  --fg-gold-dim: #c99a52;
  --fg-red: #d92b21;
  --fg-red-soft: #e8483c;
  --fg-btn: #d92b21;
  --fg-btn-hover: #b8241c;
  --fg-link: #e5b36a;
  --fg-link-hover: #f0c982;
  --fg-danger-bg: rgba(227, 30, 36, 0.15);
  --fg-danger-border: rgba(227, 30, 36, 0.45);
  --fg-ok-bg: rgba(46, 160, 67, 0.15);
  --fg-ok-border: rgba(46, 160, 67, 0.45);
  --radius: 12px;
  --font: "Roboto", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

body.fg-body,
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--fg-text);
  line-height: 1.55;
  background-color: var(--fg-bg);
  background-image:
    repeating-linear-gradient(
      -28deg,
      transparent,
      transparent 8px,
      rgba(255, 255, 255, 0.015) 8px,
      rgba(255, 255, 255, 0.015) 9px
    ),
    radial-gradient(ellipse 100% 70% at 50% -15%, #1a1510 0%, var(--fg-bg) 50%);
}

/* Layout */
.fg-site-header {
  padding: 1rem 1rem 0;
  max-width: 640px;
  margin: 0 auto;
}

.fg-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Official horizontal logo (shield + FIRST GAMES wordmark) */
.fg-brand-logo {
  display: block;
  width: auto;
  max-width: min(100%, 360px);
  height: auto;
  max-height: 88px;
  object-fit: contain;
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1.25rem 2.5rem;
}

.fg-wrap {
  padding-top: 0.5rem;
}

/* Pages without the long announcement (OTP, details, success, error) */
.fg-wrap--compact {
  padding-top: 1rem;
}

.card {
  background: var(--fg-surface);
  border: 1px solid var(--fg-border);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.fg-announcement {
  margin-bottom: 1.25rem;
  background: var(--fg-surface-elevated);
}

.fg-title-main {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--fg-gold);
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.fg-announcement p {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  color: var(--fg-text);
}

.fg-announcement-lead {
  font-weight: 500;
}

.fg-withdraw-list {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--fg-text);
  font-size: 0.95rem;
}

.fg-withdraw-list li {
  margin-bottom: 0.65rem;
}

.fg-withdraw-list li:last-child {
  margin-bottom: 0;
}

.fg-email-label {
  color: var(--fg-gold);
  font-weight: 600;
}

.fg-heading-gold {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--fg-gold);
  margin: 1.25rem 0 0.65rem;
}

.fg-heading-warn {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--fg-gold);
  margin: 1.25rem 0 0.65rem;
}

.fg-notes {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--fg-muted);
  font-size: 0.92rem;
}

.fg-notes li {
  margin-bottom: 0.4rem;
}

.fg-contact a {
  color: var(--fg-link);
  text-decoration: none;
  font-weight: 500;
}

.fg-contact a:hover {
  color: var(--fg-link-hover);
  text-decoration: underline;
}

.fg-closing {
  margin-top: 1.25rem !important;
  padding-top: 1rem;
  border-top: 1px solid var(--fg-border);
  color: var(--fg-muted);
  font-size: 0.92rem !important;
}

.fg-flow-card {
  margin-top: 0;
}

h1 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
  color: var(--fg-text);
}

.sub {
  color: var(--fg-muted);
  font-size: 0.9rem;
  margin: 0 0 1.25rem;
}

label {
  display: block;
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin-bottom: 0.35rem;
}

input[type="text"],
input[type="tel"],
input[type="password"] {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--fg-border);
  background: var(--fg-bg);
  color: var(--fg-text);
  font-size: 1rem;
}

input:focus {
  outline: none;
  border-color: var(--fg-gold);
  box-shadow: 0 0 0 3px rgba(229, 179, 106, 0.22);
}

input[readonly] {
  opacity: 0.9;
  cursor: not-allowed;
}

.btn {
  display: inline-block;
  width: 100%;
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 8px;
  background: var(--fg-btn);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
}

.btn:hover {
  background: var(--fg-btn-hover);
}

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

.field {
  margin-bottom: 1rem;
}

.radio-row {
  display: flex;
  gap: 1.25rem;
  margin: 0.75rem 0 1rem;
}

.radio-row label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: var(--fg-text);
  cursor: pointer;
}

.fg-radio-stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.fg-radio-option {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  cursor: pointer;
}

.fg-field-label-block.sub {
  margin: 0;
  display: block;
}

input[type="radio"] {
  accent-color: var(--fg-red);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.alert {
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  background: var(--fg-danger-bg);
  border: 1px solid var(--fg-danger-border);
  color: #ffb8b8;
}

.alert.ok {
  background: var(--fg-ok-bg);
  border-color: var(--fg-ok-border);
  color: #acf2b5;
}

.hint {
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin-top: 0.5rem;
}

.fg-liability-notice {
  margin: 1rem 0 1.25rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(229, 179, 106, 0.35);
  background: rgba(229, 179, 106, 0.08);
  color: var(--fg-text);
}

.brand {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--fg-text);
  cursor: pointer;
}

.consent-label input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

input[type="file"] {
  width: 100%;
  font-size: 0.85rem;
  color: var(--fg-muted);
}

.pan-upload-block {
  margin-top: 0.5rem;
  padding: 0.75rem;
  border: 1px dashed var(--fg-border);
  border-radius: 8px;
}

.pan-upload-block.pan-muted {
  opacity: 0.55;
}

.pan-upload-block.pan-muted input[type="file"] {
  pointer-events: none;
}

a {
  color: var(--fg-link);
}

a:hover {
  color: var(--fg-link-hover);
}
