@font-face {
  font-family: 'Futura Condensed';
  src: local('Futura Condensed Medium'), local('Futura-CondensedMedium'),
       url('/fonts/FuturaCondensed-Medium.ttf') format('truetype');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Futura Condensed';
  src: local('Futura Bold Condensed BT'), local('Futura-CondensedExtraBold'),
       url('/fonts/FuturaCondensed-Bold.ttf') format('truetype');
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-eso: 'Futura Condensed', sans-serif;
  --bg-deep: #090806;
  --bg-card: rgba(20, 17, 13, 0.92);
  --bg-panel: rgba(11, 9, 7, 0.78);
  --gold-light: #f3d889;
  --gold-main: #c5a059;
  --gold-dark: #755823;
  --gold-border: rgba(197, 160, 89, 0.45);
  --text-main: #e8dec8;
  --text-muted: #9f9279;

  /* Requested status colors: Online in green, Offline in red */
  --status-online: #2ecc71;
  --status-online-glow: rgba(46, 204, 113, 0.45);
  --status-offline: #e74c3c;
  --status-offline-glow: rgba(231, 76, 60, 0.45);
  --status-unknown: #c5a059;
}

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

body {
  min-height: 100vh;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-eso);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-x: hidden;
  position: relative;
}

.ambient-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 50% 15%, rgba(197, 160, 89, 0.14) 0%, transparent 55%),
    radial-gradient(circle at 50% 85%, rgba(117, 88, 35, 0.12) 0%, transparent 60%),
    linear-gradient(180deg, #120f0b 0%, #070605 100%);
  z-index: -1;
}

.eso-container {
  width: 100%;
  max-width: 480px;
}

.eso-card {
  position: relative;
  background: var(--bg-card);
  border: 2px solid var(--gold-main);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.85),
    0 0 25px rgba(197, 160, 89, 0.12),
    inset 0 0 30px rgba(0, 0, 0, 0.8);
  padding: 2.25rem 1.85rem 1.75rem;
  border-radius: 4px;
  backdrop-filter: blur(8px);
}

.eso-card::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(197, 160, 89, 0.28);
  pointer-events: none;
}

/* Ornate Corner Accents */
.corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--gold-light);
  border-style: solid;
  pointer-events: none;
  z-index: 2;
}

.corner-tl {
  top: -3px;
  left: -3px;
  border-width: 3px 0 0 3px;
}

.corner-tr {
  top: -3px;
  right: -3px;
  border-width: 3px 3px 0 0;
}

.corner-bl {
  bottom: -3px;
  left: -3px;
  border-width: 0 0 3px 3px;
}

.corner-br {
  bottom: -3px;
  right: -3px;
  border-width: 0 3px 3px 0;
}

/* Header */
.eso-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.emblem-wrap {
  display: inline-flex;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 0 10px rgba(197, 160, 89, 0.35));
}

.eso-emblem {
  width: 56px;
  height: 56px;
}

.eso-subtitle {
  font-family: var(--font-eso);
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-main);
  margin-bottom: 0.25rem;
}

.eso-title {
  font-family: var(--font-eso);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff3d1 0%, #c5a059 65%, #8f6b29 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.eso-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.85rem;
  position: relative;
}

.eso-divider::before,
.eso-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-main), transparent);
}

.divider-diamond {
  width: 8px;
  height: 8px;
  background: var(--gold-light);
  transform: rotate(45deg);
  margin: 0 10px;
  box-shadow: 0 0 6px var(--gold-light);
}

/* Status Panel */
.status-panel {
  background: var(--bg-panel);
  border: 1px solid var(--gold-border);
  padding: 1.4rem 1rem;
  text-align: center;
  margin-bottom: 1.25rem;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.9);
}

.realm-badge {
  font-family: var(--font-eso);
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.status-display {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0.35rem 0 0.65rem;
}

.status-orb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--status-unknown);
  box-shadow: 0 0 10px var(--status-unknown);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.status-text {
  font-family: var(--font-eso);
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* Explicit green for "Online" and red for "offline" */
.status-online {
  color: var(--status-online);
  text-shadow: 0 0 18px var(--status-online-glow);
}

.orb-online {
  background-color: var(--status-online);
  box-shadow: 0 0 16px var(--status-online), 0 0 28px var(--status-online-glow);
}

.status-offline {
  color: var(--status-offline);
  text-shadow: 0 0 18px var(--status-offline-glow);
}

.orb-offline {
  background-color: var(--status-offline);
  box-shadow: 0 0 16px var(--status-offline), 0 0 28px var(--status-offline-glow);
}

.status-unknown {
  color: var(--gold-light);
  text-shadow: 0 0 12px rgba(197, 160, 89, 0.35);
}

.status-meta {
  font-size: 0.98rem;
  color: var(--text-muted);
  min-height: 1.4em;
}

/* Countdown Timer */
.timer-section {
  margin-bottom: 1.35rem;
  opacity: 0.45;
  transition: opacity 0.3s ease;
}

.timer-section.active {
  opacity: 1;
}

.timer-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  font-family: var(--font-eso);
  letter-spacing: 0.05em;
}

.progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(197, 160, 89, 0.3);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  box-shadow: 0 0 8px var(--gold-main);
  transition: width 0.95s linear;
}

/* Buttons */
.controls {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.eso-btn {
  font-family: var(--font-eso);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.eso-btn-primary {
  padding: 0.95rem 1.25rem;
  font-size: 1rem;
  color: #120e07;
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold-main) 55%, #9b742c 100%);
  border: 1px solid #fff1c2;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.65), 0 0 12px rgba(197, 160, 89, 0.25);
}

.eso-btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.8), 0 0 18px rgba(243, 216, 137, 0.45);
}

.eso-btn-primary.running {
  color: #ffe8e5;
  background: linear-gradient(180deg, #b8372a 0%, #831f16 60%, #59120c 100%);
  border-color: #f08a7e;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.65), 0 0 15px rgba(231, 76, 60, 0.35);
}

.secondary-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.eso-btn-secondary {
  padding: 0.65rem 0.75rem;
  font-size: 0.78rem;
  color: var(--gold-light);
  background: rgba(197, 160, 89, 0.08);
  border: 1px solid var(--gold-border);
}

.eso-btn-secondary:hover {
  background: rgba(197, 160, 89, 0.18);
  border-color: var(--gold-light);
}

.eso-btn:active {
  transform: translateY(1px);
}

/* Footer */
.eso-footer {
  margin-top: 1.4rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(197, 160, 89, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.eso-footer a {
  color: var(--gold-main);
  text-decoration: none;
}

.eso-footer a:hover {
  color: var(--gold-light);
  text-decoration: underline;
}
