:root {
  --wine: #5b0e16;
  --wine-dark: #3e080e;
  --red: #7e1722;
  --gold: #c6a052;
  --gold-soft: #e2c980;
  --cream: #f7f1df;
  --paper: #fffdf7;
  --ink: #241b19;
  --muted: #776a65;
  --line: #ded3bd;
  --shadow: 0 18px 55px rgba(47, 24, 19, .12);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  height: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.6;
}
a { color: inherit; }
main { flex: 1; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }
.narrow { width: min(820px, calc(100% - 36px)); }
.top-strip { height: 7px; background: linear-gradient(90deg, var(--gold), #f0df9a, var(--gold)); }
.site-header { background: var(--paper); box-shadow: 0 5px 20px rgba(57, 29, 22, .08); }
.header-inner { min-height: 132px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 18px; text-decoration: none; }
.brand-emblem { width: 94px; }
.brand strong { display: block; font-family: Georgia, serif; font-size: clamp(1.35rem, 3vw, 2.15rem); letter-spacing: .03em; text-transform: uppercase; color: var(--wine); }
.brand-kicker, .brand-motto { display: block; color: var(--muted); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.brand-motto { margin-top: 6px; color: var(--gold); font-weight: 700; }
.session-box { text-align: right; font-size: .88rem; }
.session-box span { display: block; color: var(--muted); }
.session-box a { color: var(--wine); font-weight: 700; }
.main-nav { background: var(--wine); border-top: 1px solid #7e2a32; }
.nav-inner { display: flex; }
.main-nav a { color: #fff; text-decoration: none; padding: 16px 24px; font-weight: 700; border-right: 1px solid rgba(255,255,255,.12); }
.main-nav a:hover, .main-nav a.active { background: var(--gold); color: var(--wine-dark); }
.hero { background: radial-gradient(circle at 82% 20%, rgba(221,180,92,.24), transparent 28%), linear-gradient(135deg, #5b0e16, #791724 58%, #3e080e); color: #fff; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; opacity: .07; background-image: linear-gradient(45deg, #fff 1px, transparent 1px), linear-gradient(-45deg, #fff 1px, transparent 1px); background-size: 26px 26px; }
.hero-grid { min-height: 430px; display: grid; grid-template-columns: 1.5fr .7fr; align-items: center; gap: 50px; position: relative; z-index: 1; }
.hero-copy h1 { font-family: Georgia, serif; font-size: clamp(2.6rem, 6vw, 5.3rem); line-height: 1.03; margin: 8px 0 22px; max-width: 850px; }
.hero-copy p { max-width: 700px; font-size: 1.18rem; color: #f4e9d4; }
.hero-button { display: inline-block; margin-top: 18px; padding: 14px 21px; background: var(--gold); color: var(--wine-dark); text-decoration: none; font-weight: 800; border: 1px solid #efd98e; }
.hero-button.dark { background: var(--wine); color: #fff; }
.hero-seal { justify-self: end; width: 280px; text-align: center; color: var(--gold-soft); font-family: Georgia, serif; }
.hero-seal img { margin: 0 auto 18px; filter: drop-shadow(0 16px 30px rgba(0,0,0,.25)); }
.eyebrow { margin: 0 0 5px; color: var(--wine); letter-spacing: .15em; text-transform: uppercase; font-size: .75rem; font-weight: 900; }
.eyebrow.light { color: var(--gold-soft); }
.news-section {
  padding: 64px 0;
}
.news-section > .container > .section-heading {
  margin-bottom: 28px;
}
.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 34px;
  padding: 0;
  align-items: start;
}
.section-heading h2, .important-box h2 { margin: 0; font-family: Georgia, serif; font-size: 2.2rem; color: var(--wine); }
.news-list {
  display: grid;
  gap: 18px;
  margin: 0;
}
.news-card { background: var(--paper); padding: 28px; border-left: 5px solid var(--gold); box-shadow: var(--shadow); }
.news-meta { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.news-card h3 { font-family: Georgia, serif; font-size: 1.5rem; line-height: 1.25; margin: 12px 0 8px; color: var(--wine); }
.news-card h3 a { text-decoration: none; }
.news-card h3 a:hover { text-decoration: underline; }
.news-card p { margin: 0 0 12px; color: #544844; }
.text-link, .back-link { color: var(--wine); font-weight: 800; text-decoration: none; }
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.important-box { background: var(--wine); color: #fff; padding: 30px; box-shadow: var(--shadow); }
.important-box h2 { color: #fff; }
.important-item { display: block; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.18); text-decoration: none; }
.important-item time { display: block; color: var(--gold-soft); font-size: .75rem; margin-bottom: 4px; }
.important-item span { font-family: Georgia, serif; font-size: 1.05rem; }
.fact-box { background: var(--paper); padding: 28px; border: 1px solid var(--line); }
.fact-box dl { margin: 16px 0 22px; }
.fact-box dl div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.fact-box dt { color: var(--muted); font-size: .78rem; text-transform: uppercase; }
.fact-box dd { margin: 3px 0 0; font-weight: 800; }
.page-banner { background: linear-gradient(135deg, var(--wine), var(--red)); color: #fff; padding: 78px 0; }
.page-banner.compact { padding: 58px 0; }
.page-banner h1 { margin: 8px 0 12px; font-family: Georgia, serif; font-size: clamp(2.25rem, 5vw, 4.2rem); line-height: 1.08; }
.page-banner time { color: var(--gold-soft); }
.article-shell, .document-shell { background: var(--paper); margin-top: 42px; margin-bottom: 70px; padding: clamp(28px, 5vw, 58px); box-shadow: var(--shadow); border-top: 5px solid var(--gold); }
.article-shell .lead { font-family: Georgia, serif; font-size: 1.45rem; color: var(--wine); }
.official-mark { display: flex; align-items: center; gap: 16px; margin: 38px 0; padding: 20px; background: #f5eedb; border: 1px solid var(--line); color: var(--muted); }
.official-mark img { width: 62px; }
.prose h1 { display: none; }
.prose h2 { font-family: Georgia, serif; color: var(--wine); margin-top: 2.3em; border-bottom: 2px solid var(--gold); padding-bottom: .3em; }
.prose h3 { color: var(--wine); margin-top: 1.8em; }
.prose table { border-collapse: collapse; width: 100%; margin: 24px 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 12px; text-align: left; vertical-align: top; }
.prose th { background: #f3ead4; color: var(--wine); }
.prose blockquote { border-left: 5px solid var(--gold); margin-left: 0; padding-left: 18px; color: var(--muted); }
.site-footer { background: #2e090e; color: #e9ddc7; padding: 32px 0; }
.footer-inner { display: grid; grid-template-columns: 60px 1fr auto; align-items: center; gap: 18px; }
.footer-inner img { width: 58px; }
.footer-inner p { margin: 2px 0 0; color: #bcae9a; }
.center { text-align: center; }
.login-body { min-height: 100vh; background: radial-gradient(circle at top, #8a2230, var(--wine-dark) 58%); }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 28px; }
.login-card { width: min(480px, 100%); background: var(--paper); padding: 42px; box-shadow: 0 28px 90px rgba(0,0,0,.35); border-top: 7px solid var(--gold); text-align: center; }
.login-emblem { width: 125px; margin: 0 auto 18px; }
.login-card h1 { font-family: Georgia, serif; color: var(--wine); line-height: 1.1; margin: 6px 0 14px; }
.login-subtitle { color: var(--muted); }
.login-form { display: grid; gap: 18px; margin-top: 28px; text-align: left; }
.login-form label span { display: block; font-weight: 800; margin-bottom: 6px; }
.login-form input { width: 100%; padding: 14px; border: 1px solid #cdbfa7; background: #fff; font: inherit; }
.login-form input:focus { outline: 3px solid rgba(198,160,82,.25); border-color: var(--gold); }
.login-form button { padding: 15px; border: 0; background: var(--wine); color: #fff; font-weight: 900; font-size: 1rem; cursor: pointer; }
.login-form button:hover { background: var(--red); }
.alert { background: #f8dfdf; color: #8a1721; border: 1px solid #e7b1b5; padding: 12px; margin-top: 18px; }
.classified { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; }

@media (max-width: 900px) {
  .hero-grid, .section-grid { grid-template-columns: 1fr; }
  .hero-grid { padding: 58px 0; }
  .hero-seal { justify-self: start; width: 190px; }
  .header-inner { align-items: flex-start; padding: 20px 0; }
  .session-box { display: none; }
}
@media (max-width: 640px) {
  .brand-emblem { width: 70px; }
  .brand-kicker, .brand-motto { font-size: .65rem; }
  .main-nav a { flex: 1; text-align: center; padding: 13px 8px; font-size: .88rem; }
  .hero-copy h1 { font-size: 2.55rem; }
  .hero-seal { display: none; }
  .news-card { padding: 22px; }
  .news-meta { flex-direction: column; gap: 2px; }
  .login-card { padding: 30px 22px; }
  .footer-inner { grid-template-columns: 48px 1fr; }
  .footer-inner > span { display: none; }
}

.news-image {
  margin-bottom: 32px;
  overflow: hidden;
  border: 1px solid rgba(95, 14, 20, 0.18);
  background: #eee8dc;
}

.news-image img {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}

.news-card-image {
  display: block;
  margin: -24px -24px 20px;
  overflow: hidden;
}

.news-card-image img {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.news-card-image:hover img {
  transform: scale(1.025);
}


.game-page {
    padding-top: 48px;
    padding-bottom: 64px;
}

.game-panel {
    border: 1px solid rgba(96, 18, 22, 0.25);
    background: rgba(255, 252, 242, 0.94);
    box-shadow: 0 18px 45px rgba(67, 29, 18, 0.15);
    overflow: hidden;
}

.game-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 4px solid #a67c2d;
    background: #63151a;
    color: #f4e7c2;
}

.game-stats > div {
    padding: 16px 20px;
    text-align: center;
}

.game-stats > div + div {
    border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.game-stats span {
    display: block;
    margin-bottom: 3px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.75;
}

.game-stats strong {
    font-family: Georgia, serif;
    font-size: 28px;
}

.game-stage-wrap {
    position: relative;
    padding: 20px;
}

#tiger-game {
    display: block;
    width: 100%;
    height: auto;
    border: 2px solid #6f1418;
    background: #e6cf9e;
    touch-action: none;
}

.game-overlay {
    position: absolute;
    inset: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(47, 17, 16, 0.76);
    backdrop-filter: blur(3px);
}

.game-overlay.hidden {
    display: none;
}

.game-overlay-card {
    width: min(440px, 100%);
    padding: 32px;
    border: 1px solid rgba(240, 205, 119, 0.75);
    background: #f6ead0;
    text-align: center;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
}

.game-overlay-card h2 {
    margin: 8px 0 12px;
    color: #5e1518;
    font-family: Georgia, serif;
    font-size: 32px;
}

.game-seal {
    font-size: 54px;
}

.state-button {
    margin-top: 14px;
    border: 0;
    background: #6c1418;
    color: #fff4d9;
    padding: 13px 22px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.state-button:hover {
    background: #861c21;
}

.game-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    padding: 18px 20px;
    border-top: 1px solid rgba(96, 18, 22, 0.16);
    color: #5a362b;
    font-size: 14px;
}

.mobile-controls {
    display: none;
    padding: 0 20px 20px;
    text-align: center;
}

.mobile-controls button {
    width: 64px;
    height: 52px;
    margin: 3px;
    border: 1px solid #8d6424;
    background: #6b161a;
    color: #f7e8c4;
    font-size: 22px;
    -webkit-user-select: none;
    user-select: none;

    -webkit-touch-callout: none;
    touch-action: none;
    -webkit-tap-highlight-color: transparent;

}

@media (max-width: 760px) {
    .game-page {
        padding-top: 24px;
    }

    .game-stats > div {
        padding: 12px 8px;
    }

    .game-stats strong {
        font-size: 23px;
    }

    .game-stage-wrap {
        padding: 10px;
    }

    .game-overlay {
        inset: 10px;
    }

    .game-overlay-card {
        padding: 22px 16px;
    }

    .mobile-controls {
        display: block;
    }

    .game-legend {
        display: grid;
        gap: 8px;
    }
}


.anthem-section {
  padding: 40px 0;
  border-top: 1px solid #a67c2d;
  border-bottom: 1px solid #a67c2d;
  background: linear-gradient(
    180deg,
    #faf3df,
    #efe3c0
  );
}

.anthem-card {
  position: relative;
  margin: 0;
  padding: 30px;
  overflow: hidden;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.anthem-header {
    display: flex;
    align-items: center;
    gap: 20px;

    margin-bottom: 24px;
}

.anthem-icon {
    width: 70px;
    height: 70px;

    flex: 0 0 70px;

    border: 2px solid #c69b3b;
    border-radius: 50%;

    background: #7b171d;
    color: #f5e3a8;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 34px;

    transition:
        box-shadow 0.4s ease,
        transform 0.4s ease;
}

.anthem-subtitle {
    color: #7b171d;

    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.anthem-card h2 {
    margin: 6px 0 0;

    color: #3f2019;

    font-family: Georgia, serif;
    font-size: 30px;
}

.anthem-play-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;
    padding: 12px 22px;

    border: 1px solid #a67c2d;
    background: #6f151a;
    color: #fff0c6;

    font: inherit;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.anthem-play-button:hover {
    background: #861c22;

    box-shadow:
        0 8px 20px rgba(91, 18, 18, 0.22);
}

.anthem-play-button:active {
    transform: translateY(1px);
}

.anthem-play-button.is-playing {
    background: #3f2019;
}

.anthem-notice {
    max-height: 0;
    margin: 0;

    overflow: hidden;

    color: #65442f;

    font-style: italic;
    line-height: 1.55;

    opacity: 0;
    transform: translateY(-6px);

    transition:
        max-height 0.5s ease,
        margin-top 0.5s ease,
        opacity 0.5s ease,
        transform 0.5s ease;
}

.anthem-notice.is-visible {
    max-height: 140px;
    margin-top: 20px;

    opacity: 1;
    transform: translateY(0);
}

.anthem-card.is-playing::before {
    content: "";

    position: absolute;
    inset: -35%;

    pointer-events: none;

    background:
        radial-gradient(
            circle at 90px 70px,
            rgba(255, 211, 89, 0.28),
            transparent 24%
        );

    animation: anthem-background-glow 2.8s ease-in-out infinite;
}

.anthem-icon.is-glowing {
    animation: anthem-emblem-glow 2.4s ease-in-out infinite;
}

@keyframes anthem-emblem-glow {
    0%,
    100% {
        transform: scale(1);

        box-shadow:
            0 0 0 rgba(226, 174, 55, 0),
            0 0 0 rgba(226, 174, 55, 0);
    }

    50% {
        transform: scale(1.035);

        box-shadow:
            0 0 18px rgba(226, 174, 55, 0.75),
            0 0 42px rgba(226, 174, 55, 0.38);
    }
}

@keyframes anthem-background-glow {
    0%,
    100% {
        opacity: 0.35;
        transform: scale(0.98);
    }

    50% {
        opacity: 0.9;
        transform: scale(1.04);
    }
}

@media (max-width: 640px) {
    .anthem-card {
        padding: 22px 18px;
    }

    .anthem-header {
        align-items: flex-start;
    }

    .anthem-icon {
        width: 58px;
        height: 58px;
        flex-basis: 58px;

        font-size: 28px;
    }

    .anthem-card h2 {
        font-size: 24px;
    }

    .anthem-play-button {
        width: 100%;
    }
}
