@font-face {
  font-family: 'Arcane Nine';
  src: url('/static/fonts/Arcane_Nine.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

:root {
  --bg-dark: #070a12;
  --card-bg: rgba(13, 19, 32, 0.88);
  --gold: #c89b3c;
  --gold-light: #f0e6d2;
  --piltover-teal: #316B77;
  --piltover-teal-hover: #3d8391;
  --piltover-teal-border: #4a919e;
  --teal-glow: rgba(49, 107, 119, 0.45);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --danger: #ef4444;
  --jinx-pink: #ff007f;
}

* {
  box-sizing: border-box;
  border-radius: 0 !important;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-dark);
  background-image:
    radial-gradient(circle at 50% 10%, rgba(49, 107, 119, 0.25), transparent 60%),
    linear-gradient(rgba(7, 10, 18, 0.35), rgba(7, 10, 18, 0.45)),
    url('/static/images/Piltover_Arcane_02.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.page-home {
  background-image:
    radial-gradient(circle at 50% 10%, rgba(49, 107, 119, 0.28), transparent 55%),
    linear-gradient(rgba(7, 10, 18, 0.32), rgba(7, 10, 18, 0.42)),
    url('/static/images/Piltover_Arcane_02.jpg');
}

body.page-bazaar {
  background-image:
    radial-gradient(circle at 50% 15%, rgba(200, 155, 60, 0.2), transparent 55%),
    linear-gradient(rgba(7, 10, 18, 0.35), rgba(7, 10, 18, 0.48)),
    url('/static/images/bazaar.png');
}

body.page-lab {
  background-image:
    radial-gradient(circle at 50% 15%, rgba(49, 107, 119, 0.25), transparent 55%),
    linear-gradient(rgba(7, 10, 18, 0.35), rgba(7, 10, 18, 0.50)),
    url('/static/images/hextech_lab.jpg');
}

body.page-archive {
  background-image:
    radial-gradient(circle at 50% 15%, rgba(49, 107, 119, 0.22), transparent 55%),
    linear-gradient(rgba(7, 10, 18, 0.38), rgba(7, 10, 18, 0.52)),
    url('/static/images/inspection.png');
}

body.page-anomaly {
  background-image:
    radial-gradient(circle at 35% 20%, rgba(255, 0, 127, 0.4), transparent 60%),
    linear-gradient(rgba(18, 7, 28, 0.45), rgba(18, 7, 28, 0.55)),
    url('/static/images/jinxed.png');
}

h1, h2, h3, h4, .brand-title, .arcane-title {
  font-family: 'Arcane Nine', serif;
  letter-spacing: 0.04em;
}

header {
  background: rgba(9, 13, 22, 0.92);
  border-bottom: 2px solid var(--gold);
  padding: 1.1rem 2.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 25px rgba(0,0,0,0.7);
  flex-wrap: wrap;
  gap: 1rem;
  backdrop-filter: blur(8px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  text-decoration: none;
  color: inherit;
}

.brand img {
  width: 52px;
  height: 52px;
  border: 2px solid var(--gold);
  object-fit: cover;
  background: #090d16;
}

.brand h1 {
  color: var(--gold-light);
  font-size: 1.45rem;
  margin: 0;
  line-height: 1.1;
}

.brand small {
  color: #5ea4b2;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: block;
  margin-top: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hex-badge {
  background: linear-gradient(135deg, #161f33, #0d1322);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  padding: 0.45rem 1.1rem;
  font-family: 'Arcane Nine', serif;
  font-size: 1rem;
  box-shadow: 0 0 12px rgba(200, 155, 60, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.container {
  max-width: 1140px;
  width: 100%;
  margin: 2.2rem auto;
  padding: 0 1.2rem;
  flex: 1;
}

.hero-banner {
  text-align: center;
  margin-bottom: 2.4rem;
  padding: 2.2rem 1.6rem;
  border: 1px solid var(--gold);
  background: linear-gradient(90deg, rgba(200,155,60,0.14), rgba(49,107,119,0.22), rgba(200,155,60,0.14));
  backdrop-filter: blur(10px);
  box-shadow: 0 0 30px rgba(200, 155, 60, 0.25);
}

.hero-banner h2 {
  color: var(--gold-light);
  margin: 0 0 0.5rem 0;
  font-size: 2.4rem;
  text-shadow: 0 0 18px rgba(200, 155, 60, 0.5);
  letter-spacing: 0.05em;
}

.hero-banner p {
  color: #e2e8f0;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 780px;
  margin: 0 auto;
}

/* 316B77 Accent Buttons */
button, .btn {
  display: inline-block;
  text-decoration: none;
  text-align: center;
  background: linear-gradient(135deg, #316B77, #204850);
  color: #f0e6d2;
  border: 1px solid var(--piltover-teal-border);
  padding: 0.65rem 1.25rem;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.92rem;
  font-family: 'Arcane Nine', serif;
  letter-spacing: 0.04em;
  box-shadow: 0 0 12px var(--teal-glow);
  transition: all 0.2s ease;
}

button:hover, .btn:hover {
  background: linear-gradient(135deg, #3d8391, #275963);
  border-color: #5ea4b2;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(49, 107, 119, 0.65);
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, #c89b3c, #9a6f1a);
  color: #090d16;
  border: 1px solid var(--gold-light);
  box-shadow: 0 0 14px rgba(200, 155, 60, 0.4);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #dfb14e, #b38323);
  color: #000000;
  box-shadow: 0 0 18px rgba(200, 155, 60, 0.65);
}

/* Reddish Accent Buttons (Reset, Caution, and Alert Actions) */
.btn-reset, .btn-red {
  display: inline-block;
  text-decoration: none;
  text-align: center;
  background: linear-gradient(135deg, #7A2828, #4D1616);
  color: #fecaca;
  border: 1px solid #991b1b;
  padding: 0.55rem 1.15rem;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.88rem;
  font-family: 'Arcane Nine', serif;
  letter-spacing: 0.04em;
  box-shadow: 0 0 12px rgba(153, 27, 27, 0.45);
  transition: all 0.2s ease;
}

.btn-reset:hover, .btn-red:hover {
  background: linear-gradient(135deg, #943030, #611c1c);
  border-color: #dc2626;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(220, 38, 38, 0.65);
  transform: translateY(-2px);
}

.btn-disabled {
  background: #1e293b;
  color: #64748b;
  border: 1px solid #334155;
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}

.flag-box {
  background: rgba(49, 107, 119, 0.2);
  border: 1px solid var(--piltover-teal-border);
  color: #a5f3fc;
  padding: 1rem 1.2rem;
  font-family: monospace;
  font-size: 1.15rem;
  margin: 1.4rem 0;
  word-break: break-all;
  box-shadow: 0 0 15px rgba(49, 107, 119, 0.35);
}

footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid rgba(200, 155, 60, 0.2);
  margin-top: 3rem;
  background: rgba(7, 10, 18, 0.92);
}
