@font-face {
  font-family: "Syne";
  src: url("./fonts/Syne-Variable.ttf") format("truetype");
  font-weight: 700 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("./fonts/Manrope-Variable.ttf") format("truetype");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0a0705;
  --bg-2: #140c08;
  --ink: #fff4e8;
  --ink-dim: rgba(255, 236, 214, 0.68);
  --ember: #ff6a1a;
  --ember-2: #ffb347;
  --danger: #ff3b2e;
  --ok: #ffd166;
  --line: rgba(255, 140, 60, 0.28);
  --panel: rgba(28, 14, 8, 0.72);
  --font-display: "Syne", sans-serif;
  --font-body: "Manrope", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(255, 90, 20, 0.28), transparent 55%),
    radial-gradient(800px 500px at 90% 20%, rgba(255, 60, 40, 0.12), transparent 50%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 40%, #050403);
  overflow-x: hidden;
}

.ember-field,
.heat-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.ember-field {
  background-image:
    radial-gradient(circle at 20% 80%, rgba(255, 120, 30, 0.08) 0 1px, transparent 2px),
    radial-gradient(circle at 70% 30%, rgba(255, 180, 80, 0.07) 0 1px, transparent 2px);
  background-size: 120px 120px, 180px 180px;
  animation: drift 18s linear infinite;
  opacity: 0.7;
}

.heat-glow {
  background: linear-gradient(180deg, transparent 40%, rgba(255, 70, 20, 0.08));
  animation: breathe 4.5s ease-in-out infinite;
}

@keyframes drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 120px 180px, -90px 120px; }
}

@keyframes breathe {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.topbar,
.stage,
.site-footer {
  position: relative;
}

.topbar {
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  max-width: 720px;
  margin: 0 auto;
}

.stage {
  z-index: 1;
}

.site-footer {
  z-index: 1;
}

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

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff2c8, var(--ember));
  box-shadow: 0 0 18px rgba(255, 110, 30, 0.85);
  animation: flicker 1.8s ease-in-out infinite;
}

@keyframes flicker {
  0%, 100% { transform: scale(1); opacity: 1; }
  40% { transform: scale(1.08); opacity: 0.85; }
  70% { transform: scale(0.96); opacity: 1; }
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: 14px;
}

.lang-wrap {
  position: relative;
  z-index: 60;
}

.lang-btn {
  appearance: none;
  border: 1px solid rgba(255, 120, 40, 0.4);
  background: #1a0d07;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 34px 8px 14px;
  font: 600 12px/1.2 var(--font-body);
  letter-spacing: 0.02em;
  cursor: pointer;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 200, 120, 0.1);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lang-btn::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--ember-2);
  border-bottom: 1.5px solid var(--ember-2);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.2s ease;
}

.lang-wrap.is-open .lang-btn {
  border-color: var(--ember);
  box-shadow: 0 0 0 3px rgba(255, 100, 30, 0.16);
}

.lang-wrap.is-open .lang-btn::after {
  transform: translateY(-20%) rotate(225deg);
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 70;
  width: 160px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 14px;
  border: 1px solid rgba(255, 130, 50, 0.4);
  background: #1a0d07;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  isolation: isolate;
}

.lang-menu[hidden] {
  display: none !important;
}

.lang-menu li {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: rgba(255, 236, 214, 0.92);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.lang-menu li:hover {
  background: rgba(255, 110, 30, 0.22);
  color: #fff;
}

.lang-menu li[aria-selected="true"] {
  background: rgba(255, 110, 30, 0.32);
  color: #ffd7a8;
}

.stage {
  max-width: 720px;
  margin: 0 auto;
  padding: 4px 16px 36px;
}

.hero {
  text-align: center;
  padding: 4px 0 16px;
}

.hero-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ember-2);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  animation: riseIn 0.7s ease both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(52px, 14vw, 84px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, #fff8ec 10%, #ffb347 55%, #ff5a12 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 40px rgba(255, 100, 20, 0.25);
  animation: riseIn 0.8s ease 0.05s both;
}

.hero-title {
  margin-top: 8px;
  font-size: clamp(17px, 4.2vw, 22px);
  font-weight: 700;
  color: var(--ink);
  animation: riseIn 0.8s ease 0.12s both;
}

.hero-sub {
  margin: 8px auto 0;
  max-width: 34em;
  color: var(--ink-dim);
  font-size: 13px;
  line-height: 1.55;
  animation: riseIn 0.8s ease 0.18s both;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.burn-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px 12px 14px;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 200, 120, 0.08);
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 90, 20, 0.14);
  border: 1px solid rgba(255, 120, 40, 0.35);
  font-size: 12px;
  font-weight: 600;
  color: var(--ember-2);
}

.status-pill.is-frozen {
  background: rgba(120, 120, 140, 0.18);
  border-color: rgba(180, 180, 200, 0.3);
  color: #c9c9d6;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 10px var(--ember);
  animation: pulse 1.1s ease-in-out infinite;
}

.status-pill.is-frozen .pulse-dot {
  background: #9aa0b4;
  box-shadow: none;
  animation: none;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.55; }
}

.stay-hero {
  text-align: center;
  margin: 0 0 2px;
}

.stay-label {
  font-size: 12px;
  color: var(--ink-dim);
  margin-bottom: 2px;
  letter-spacing: 0.06em;
}

.stay-time-line {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
}

.stay-time {
  font-family: var(--font-body);
  font-size: clamp(34px, 9vw, 44px);
  font-weight: 800;
  color: #fff7ec;
  letter-spacing: 0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  text-shadow:
    0 0 18px rgba(255, 120, 40, 0.55),
    0 0 40px rgba(255, 80, 20, 0.28);
  animation: stayPulse 2s ease-in-out infinite;
}

.stay-unit {
  font-size: 15px;
  font-weight: 600;
  color: var(--ember-2);
  transform: translateY(-4px);
}

@keyframes stayPulse {
  0%, 100% { text-shadow: 0 0 18px rgba(255, 120, 40, 0.45), 0 0 36px rgba(255, 80, 20, 0.2); }
  50% { text-shadow: 0 0 26px rgba(255, 150, 60, 0.75), 0 0 48px rgba(255, 90, 20, 0.35); }
}

.fuel-ring-wrap {
  position: relative;
  width: 148px;
  height: 148px;
  margin: 4px auto 12px;
}

.fuel-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 8;
}

.ring-progress {
  fill: none;
  stroke: url(#none);
  stroke: #ff7a2a;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 326.73;
  stroke-dashoffset: 326.73;
  filter: drop-shadow(0 0 8px rgba(255, 100, 30, 0.65));
  transition: stroke-dashoffset 0.35s linear;
}

.fuel-core {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 2px;
}

.fuel-label {
  font-size: 12px;
  color: var(--ink-dim);
}

.fuel-value {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 700;
  color: var(--ember-2);
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.fuel-value small {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.fuel-hint {
  font-size: 11px;
  color: rgba(255, 190, 120, 0.75);
}

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

.pool-item {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 140, 60, 0.16);
  border-radius: 12px;
  padding: 8px 4px;
  text-align: center;
  min-width: 0;
}

.pool-k {
  display: block;
  font-size: 10px;
  color: var(--ink-dim);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pool-v {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.pool-v.accent {
  color: var(--ember-2);
}

.copy-block {
  margin-top: 14px;
}

.rule-text,
.cta-desc,
.claim-note {
  color: var(--ink-dim);
  font-size: 13px;
  line-height: 1.6;
}

.rule-text {
  margin-bottom: 10px;
}

.warn-box {
  border: 1px solid rgba(255, 70, 50, 0.45);
  background: linear-gradient(135deg, rgba(255, 40, 30, 0.16), rgba(80, 10, 0, 0.35));
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 10px;
  animation: warnPulse 2.4s ease-in-out infinite;
}

@keyframes warnPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 60, 40, 0.15); }
  50% { box-shadow: 0 0 24px 0 rgba(255, 60, 40, 0.22); }
}

.warn-title {
  font-weight: 700;
  color: #ff8f7a;
  margin-bottom: 6px;
  font-size: 14px;
}

.warn-body {
  font-size: 13px;
  line-height: 1.65;
  color: #ffd5cc;
}

.warn-body strong {
  color: #fff;
  font-size: 1.05em;
}

.cta-desc {
  margin-bottom: 12px;
}

.claim-btn {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #2a1000;
  background: linear-gradient(135deg, #ffd27a, #ff7a1a 55%, #ff4d00);
  box-shadow: 0 12px 30px rgba(255, 90, 20, 0.35);
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, opacity 0.2s ease;
}

.claim-btn:disabled {
  cursor: not-allowed;
  filter: grayscale(0.35) brightness(0.7);
  box-shadow: none;
  opacity: 0.72;
}

.claim-btn:not(:disabled):hover {
  transform: translateY(-1px);
}

.claim-btn:not(:disabled):active {
  transform: scale(0.98);
}

.claim-btn.is-ready {
  animation: claimGlow 1.6s ease-in-out infinite;
}

@keyframes claimGlow {
  0%, 100% { box-shadow: 0 12px 30px rgba(255, 90, 20, 0.35); }
  50% { box-shadow: 0 14px 40px rgba(255, 140, 40, 0.55); }
}

.claim-note {
  margin-top: 10px;
  font-size: 12px;
  text-align: center;
}

.site-footer {
  text-align: center;
  padding: 24px 20px 36px;
  color: rgba(255, 220, 180, 0.38);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 20;
  background: rgba(20, 10, 5, 0.92);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  max-width: min(90vw, 360px);
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

@media (max-width: 480px) {
  .pool-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .pool-k {
    font-size: 9px;
  }

  .pool-v {
    font-size: 15px;
  }

  .pool-item {
    padding: 7px 3px;
  }
}
