﻿body {
  margin: 0;
  min-height: 100vh;
  font-family: "Trebuchet MS", Verdana, Tahoma, Arial, sans-serif;
  color: #feeca2;
  background: #502b00 url("assets/images/bg.gif") repeat-x top center;
}

* { box-sizing: border-box; }

a { color: #e1a023; }
a:hover { color: #fff; text-decoration: none; }

.site-shell {
  width: min(940px, calc(100% - 24px));
  margin: 0 auto;
  padding: 18px 0 36px;
}

.hero-card,
.content-card {
  background: rgba(42, 18, 0, 0.82);
  border: 1px solid rgba(247, 199, 83, 0.36);
  border-radius: 18px;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.site-header {
  display: grid;
  grid-template-columns: 152px 1fr;
  min-height: 185px;
  background: linear-gradient(180deg, rgba(101, 40, 0, 0.96), rgba(58, 26, 0, 0.92));
}

.logo-block { display: flex; align-items: start; justify-content: center; }
.logo-block img { width: 152px; height: 185px; display: block; }
.header-right { display: flex; flex-direction: column; }
.header-strip {
  min-height: 49px;
  background: url("assets/images/header-strip.gif") repeat-x top left;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: center;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  background: #b87705 url("assets/images/nav-bg.gif") repeat-x center;
  color: #120700;
  font-size: 16px;
}
.main-nav a { color: #000; text-decoration: none; font-weight: 700; }
.main-nav a:hover { color: #320000; text-decoration: underline; }
.divider { min-height: 40px; background: url("assets/images/divider.gif") repeat-x top left; }
.page-title {
  margin: auto 0 0;
  padding: 16px 26px 22px;
  color: #f7c753;
  font-weight: 800;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.1;
}

.content {
  padding: clamp(22px, 4vw, 42px);
  font-size: 17px;
  line-height: 1.65;
}
.content p:first-child { margin-top: 0; }
.center { text-align: center; }
.media-frame {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(247, 199, 83, 0.28);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}

.splash {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  text-align: center;
}
.splash img { width: min(640px, 100%); height: auto; border-radius: 16px; }
.splash h1 { color: #efb83f; font-size: clamp(36px, 8vw, 64px); margin-bottom: 6px; }
.splash .enter { font-size: 22px; font-weight: 800; }
.small { font-size: 13px; opacity: 0.82; }

.ruffle-wrap {
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: #160900;
  border: 1px solid rgba(247, 199, 83, 0.28);
}
.ruffle-player {
  width: 100%;
  aspect-ratio: var(--movie-ratio, 4 / 3);
  display: block;
}
.flash-note {
  margin-top: 10px;
  color: #d8aa62;
  font-size: 13px;
}
.audio-player { width: min(560px, 100%); margin-top: 12px; }
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.archive-card {
  padding: 18px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(247,199,83,0.22);
}
footer {
  padding: 18px;
  color: #b96100;
  text-align: center;
  font-size: 12px;
}

@media (max-width: 720px) {
  .site-header { grid-template-columns: 1fr; }
  .logo-block { background: rgba(0,0,0,0.15); }
  .header-strip, .divider { display: none; }
  .page-title { text-align: center; }
}
