/* One file for core: the parts that used to be separate files follow in their old order, each in its old layer. */
@layer global, layout, components, overrides;

/* Only what every page that loads this file shows. The parts one page alone
   needs — the champions table, the events section, the trap pages — are
   linked by those pages, each file naming its own layer so the cascade reads
   the same as when they were imported here. */
@import url("components/hero.b47d568797ca.css") layer(components);
@import url("components/hero_top.26be1a970c25.css") layer(components);

/* ==== variables.css ==== */
/* variables.css - A minimal set of variables with clear names */

:root {

  /* Game-specific colors */
  --game-primary-color-dark: #00cc6a;
  --game-item-color: #ff6b35;
  --game-text-color: var(--surface-3);

  /* Core brand colors */
  --primary-teal-dark: #006666;
  --primary-gold-dark: #B8941F;
  --primary-red: #840032;
  --primary-red-dark: #6E0D25;

  /* Gradient colors */

  /* Blue palette */
  --blue-primary: #007bff;
  --blue-primary-dark: #0056b3;
  --blue-light: #2c7be5;
  --blue-lighter: #1a56c9;

  /* Text colors */
  --text-dark: var(--text-main);
  --text-slate: #2c3e50;
  --text-slate-light: #34495e;
  --text-muted: var(--ink-3);

  /* Background colors */
  --bg-overlay: rgba(255, 255, 255, 0.1);

  /* Border colors */
  --border-light: var(--line);
  --border-medium: var(--surface-3);

  /* Success/accent colors */
  --success-green: #27ae60;
  --success-green-light: #2ecc71;

}

/* ==== global.css (layer global) ==== */
@layer global {
/* global.css */

/* Reset and base styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Body Defaults */
body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  color: var(--text-main);
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 1rem 0;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

p {
  margin: 0 0 1rem 0;
  line-height: 1.6;
  text-align: center;
}

/* Links */
a {
  color: var(--accent-teal);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-gold);
}

/* Buttons */

.btn-secondary {
  background-color: var(--accent-gold);
  color: var(--text-dark);
}

.btn-secondary:hover {
  background-color: var(--primary-gold-dark);
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Form elements */
input, textarea, select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  font-size: 1rem;
  background-color: var(--surface);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 2px rgba(0, 128, 128, 0.2);
}

/* Utility classes */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Section Title */
.section-title {
    text-align: center;
    font-size: 2em;
    color: #2c3e50;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Animations */
@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 0.3; }
    100% { opacity: 0.6; }
}

@keyframes dramatic-entrance {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
}

/* ==== layout.css (layer layout) ==== */
@layer layout {
/* layout.css */

/* === REUSABLE CONTAINER === */
.section-container {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* === SECTION LAYOUTS === */

section {
  width: 100%;
  padding: 1rem 0;
  text-align: center;
}

/* Flexbox utilities */
.d-flex {
  display: flex;
}

.gap-2 { gap: 1rem; }

/* 480 -- space is gold: the shell gives its padding back to the content. */
@media (max-width: 480px) {
  .section-container { padding-left: 4px; padding-right: 4px; }
}
}

/* ==== components/infobar.css (layer components) ==== */
@layer components {
/* infobar.css — personal action-alert bar, sits between hero-top and gallery.
   Premium gold system matching the hero: Bebas Neue + DM Sans, gold gradient,
   dark var(--text-main) panels, glowing gold luxury line. Lean strip when empty. */

.infobar {
    width: 100vw;                       /* full-bleed, bridges the dark hero */
    margin-left: calc(50% - 50vw);
    padding: 0;                         /* override global `section { padding: 1rem 0 }` */
}

/* glowing gold luxury line on top */
.infobar::before {
    content: "";
    display: block;
    height: 2px;
    background: linear-gradient(90deg, transparent, #c5a047 25%, #ffd700 50%, #c5a047 75%, transparent);
    box-shadow: 0 0 6px rgba(212, 175, 55, 0.45), 0 0 12px rgba(212, 175, 55, 0.2);
}

/* collapsed bar — lean, always visible, no bulk when empty */
.infobar__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 7px 16px;                  /* thin strip */
    background: var(--text-main);
    border: none;
    border-bottom: 1px solid rgba(212, 175, 55, 0.22);
    color: var(--accent-gold);
    font-family: 'Roboto', sans-serif;
    font-size: 1.05rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.infobar__toggle:hover {
    background: var(--text-main);
    color: #f0d060;
}

.infobar__plus {
    flex: 0 0 auto;
    font-size: 1.35rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.infobar__toggle.is-open .infobar__plus {
    transform: rotate(45deg);           /* + turns to × when open */
}

.infobar__summary {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.infobar__tally {
    white-space: nowrap;
}

.infobar__sep {
    opacity: 0.5;
}

/* open panel — dark, holds the cards */
.infobar__panel {
    background: var(--text-main);
    padding: 14px 0 18px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.22);
}

.infobar__list {
    list-style: none;
    max-width: 680px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.infobar__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(145deg, var(--text-main), var(--ink));
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-left: 4px solid var(--accent-gold);
    border-radius: 8px;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.4), -2px -2px 6px rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.88);
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.infobar__link:hover {
    transform: translateY(-2px);
    box-shadow: 6px 6px 14px rgba(0, 0, 0, 0.5), -2px -2px 8px rgba(255, 255, 255, 0.07);
}

.infobar__ico {
    flex: 0 0 auto;
    font-size: 1.2rem;
    line-height: 1;
}

.infobar__text {
    flex: 1 1 auto;
    line-height: 1.35;
}

.infobar__chevron {
    flex: 0 0 auto;
    color: var(--accent-gold);
    font-size: 1.3rem;
    line-height: 1;
}

.infobar__empty {
    margin: 0;
    padding: 8px 16px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
}

/* severity accents — bright enough to read on the dark panel */
.infobar__item--urgent .infobar__link { border-left-color: var(--danger); }
.infobar__item--good   .infobar__link { border-left-color: #57cc99; }

/* ---- greet: green signal cells in the bar + greeting row below ----
   The green cell is the only green pill in the gold system — a signal,
   not an alert. Chips speak the gold pill language; pink = remove/block
   (album DEL pink var(--accent-pink)). */

.infobar__bar {
    display: flex;
    align-items: stretch;
    background: var(--text-main);
    border-bottom: 1px solid rgba(212, 175, 55, 0.22);
}

.infobar__bar .infobar__toggle {
    flex: 1 1 auto;
    width: auto;
    border-bottom: none;
}

.greet-gm {
    flex: 0 0 auto;
    align-self: center;
    margin-left: 10px;
    padding: 2px 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, #c5a047, #ffd700, #c5a047);
    border: 1px solid var(--ink);
    color: var(--ink);
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    line-height: 1.5;
    cursor: pointer;
}

.greet-gm.is-open {                     /* open = inverted, tools row is out */
    background: var(--text-main);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.greet-cells {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px 0 4px 10px;
}

.greet-cell {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    user-select: none;                  /* long-press must not select text */
    -webkit-user-select: none;
    touch-action: manipulation;
}

.greet-cell__name,
.greet-cell__block,
.greet-chip,
.greet-add__send {
    padding: 2px 12px;
    border-radius: 999px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    line-height: 1.5;
    cursor: pointer;
}

.greet-cell__name {
    background: linear-gradient(90deg, #3fae7f, #6fe0ac, #3fae7f);
    border: 1px solid var(--ink);
    color: var(--ink);
}

.greet-cell__block {
    background: var(--accent-pink);
    border: 1px solid var(--ink);
    color: var(--ink);
}

/* greeting row — thin second strip under the bar */
.greet-row[hidden] { display: none; }   /* class display:flex would beat the hidden attr */

.greet-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 5px 16px;
    background: var(--text-main);
    border-bottom: 1px solid rgba(212, 175, 55, 0.22);
}

.greet-chip {
    background: var(--text-main);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
}

.greet-chip.is-sent {
    background: linear-gradient(90deg, var(--accent-gold), var(--gold-bright), var(--accent-gold));
    border-color: var(--ink);
    color: var(--ink);
    cursor: default;                    /* gold = inactive */
}

.greet-row.is-edit .greet-chip {
    background: var(--text-main);
    border-color: var(--accent-pink);
    color: var(--accent-pink);
}

.greet-plus {
    padding: 0 4px;
    background: none;
    border: none;
    color: var(--accent-gold);
    font-family: 'Roboto', sans-serif;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.greet-plus:hover { color: #f0d060; }

.greet-row.is-edit .greet-plus {
    transform: rotate(45deg);           /* + turns to × in edit mode */
}

.greet-add {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.greet-add__input {
    width: 130px;
    padding: 2px 12px;
    background: var(--ink);
    border: 1px solid var(--accent-gold);
    border-radius: 999px;
    color: var(--surface);
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
}

.greet-add__input::placeholder { color: #9aa0a6; }

.greet-add__send {
    background: linear-gradient(90deg, #c5a047, #ffd700, #c5a047);
    border: 1px solid var(--ink);
    color: var(--ink);
}

.greet-blocked {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.greet-blocked__chip {
    padding: 2px 12px;
    border-radius: 999px;
    background: var(--text-main);
    border: 1px dashed #9aa0a6;
    color: #9aa0a6;
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    line-height: 1.5;
    cursor: pointer;
}

.greet-blocked__chip:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.greet-error {
    color: var(--accent-pink);
    font-family: 'Roboto', sans-serif;
    font-size: 0.875rem;
}

@media (max-width: 480px) {
    .infobar__toggle {
        padding: 6px 2px;
        letter-spacing: 2px;
    }
    .infobar__list {
        padding: 0 2px;
    }
    .infobar__link {
        padding: 11px 12px;
    }
    .greet-gm {
        margin-left: 2px;
    }
    .greet-cells {
        padding: 2px 0 2px 2px;
    }
    .greet-row {
        padding: 4px 2px;
    }
    .greet-blocked {
        gap: 4px;
    }
}
}

/* ==== components/gallery.css (layer components) ==== */
@layer components {
/* Gallery — Private Collection */

.gallery {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    background: var(--ink);
    position: relative;
    overflow: hidden;
}

.gallery::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 119px,
            rgba(212, 175, 55, 0.03) 119px,
            rgba(212, 175, 55, 0.03) 120px
        );
    pointer-events: none;
}

.gallery__edge {
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-gold) 20%, var(--accent-gold) 80%, transparent 100%);
    opacity: 0.4;
}

.gallery__edge--bottom {
    opacity: 0.2;
}

.gallery__inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 48px 24px 40px;
    position: relative;
    z-index: 1;
}

/* Stamp — exclusivity marker */
.gallery__stamp {
    font-family: 'Roboto', sans-serif;
    font-size: 0.875rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #f5c84b;
    text-align: center;
    margin-bottom: 6px;
    position: relative;
}

.gallery__stamp::before,
.gallery__stamp::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 1px;
    background: rgba(212, 175, 55, 0.15);
}

.gallery__stamp::before { right: calc(50% + 120px); }
.gallery__stamp::after { left: calc(50% + 120px); }

.gallery__privacy {
    font-family: 'Roboto', sans-serif;
    font-size: 0.875rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #f5c84b;
    text-align: center;
    margin-bottom: 20px;
}

/* Showcase grid */
.gallery__showcase {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2px;
}

.gallery__piece {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 20px 8px 16px;
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(212, 175, 55, 0.08);
    transition: background 0.4s, border-color 0.4s;
}

.gallery__piece:hover {
    background: rgba(212, 175, 55, 0.06);
    border-color: rgba(212, 175, 55, 0.25);
}

.gallery__img {
    width: 104px;
    height: 104px;
    object-fit: contain;
    filter: grayscale(0.3) brightness(0.95);
    transition: filter 0.4s, transform 0.4s;
}

.gallery__piece:hover .gallery__img {
    filter: grayscale(0) brightness(1.05);
    transform: translateY(-4px);
}

.gallery__name {
    font-family: 'Roboto', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #f5c84b;
    margin-top: 12px;
    letter-spacing: 0.3px;
    text-align: center;
    line-height: 1.2;
}

.gallery__tag {
    font-family: 'Roboto', sans-serif;
    font-size: 0.875rem;
    color: #f5c84b;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 4px;
}

/* Bottom — CTA area */
.gallery__bottom {
    text-align: center;
    margin-top: 36px;
}

.gallery__line {
    font-family: 'Roboto', sans-serif;
    font-size: 0.875rem;
    color: #f5c84b;
    margin: 0 0 20px;
    letter-spacing: 0.3px;
}

.gallery__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 32px;
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.5);
    text-decoration: none;
    transition: all 0.35s;
    position: relative;
    overflow: hidden;
}

.gallery__cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.35s;
}

.gallery__cta:hover::before {
    opacity: 1;
}

.gallery__cta:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 0 24px rgba(212, 175, 55, 0.12);
}

.gallery__cta-text {
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #f5c84b;
}

.gallery__cta-arrow {
    font-size: 1.1rem;
    color: #f5c84b;
    transition: transform 0.3s;
}

.gallery__cta:hover .gallery__cta-arrow {
    transform: translateX(4px);
}

.gallery__restrictions-link {
    display: block;
    margin-top: 16px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.875rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #f5c84b;
    text-decoration: none;
    transition: color 0.3s;
}

.gallery__restrictions-link:hover {
    color: rgba(212, 175, 55, 0.6);
}

/* Tablet */
@media (max-width: 768px) {
    .gallery__showcase {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery__inner {
        padding: 36px 16px 32px;
    }

    .gallery__stamp::before,
    .gallery__stamp::after {
        width: 30px;
    }

    .gallery__stamp::before { right: calc(50% + 100px); }
    .gallery__stamp::after { left: calc(50% + 100px); }
}

/* Mobile */
@media (max-width: 480px) {
    .gallery__showcase {
        grid-template-columns: repeat(3, 1fr);
        gap: 1px;
    }

    .gallery__inner {
        padding: 16px 4px 14px;
    }

    .gallery__img {
        width: 78px;
        height: 78px;
    }

    .gallery__piece {
        padding: 14px 4px 12px;
    }

    .gallery__name {
        font-size: 0.875rem;
    }

    .gallery__tag {
        font-size: 0.875rem;
    }

    .gallery__stamp {
        font-size: 0.875rem;
        letter-spacing: 2px;
        margin-bottom: 2px;
    }

    .gallery__privacy {
        margin-bottom: 10px;
    }

    .gallery__stamp::before,
    .gallery__stamp::after {
        display: none;
    }

    .gallery__line {
        font-size: 0.875rem;
        padding: 0 8px;
    }

    .gallery__cta {
        padding: 10px 24px;
    }

    .gallery__cta-text {
        font-size: 0.875rem;
        letter-spacing: 2px;
    }
}
}

/* ==== components/responsive.css (layer overrides) ==== */
@layer overrides {
/* === RESPONSIVE ADJUSTMENTS === */

@media (max-width: 768px) {
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  section:not(.hero-top):not(.hero-new) {
    padding: 0 0;
  }

  .section-container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .section-title {
    font-size: 1.6em;
  }
}

@media (max-width: 480px) {
  .section-container {
    padding-left: 4px;
    padding-right: 4px;
  }

  .section-title {
    font-size: 1.4em;
    margin-bottom: 15px;
  }
}
}
