/* Website subset of Cozette. The game keeps the full client/public/assets/fonts/cozette.ttf. */
@font-face {
  font-family: "Darkvale Pixel";
  src: url("/assets/fonts/cozette-website.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
  ascent-override: 76.923076923%;
  descent-override: 23.076923077%;
  line-gap-override: 0%;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-21FF, U+2212;
}

@font-face {
  font-family: "Darkvale Pixel Fallback";
  src: local("Georgia");
  size-adjust: 97.8%;
  ascent-override: 76.923076923%;
  descent-override: 23.076923077%;
  line-gap-override: 0%;
}

:root {
  color-scheme: dark;
  --bg: #100e0c;
  --bg-2: #1a1612;
  --panel: #221c17;
  --line: #8a7040;
  --text: #f4efe4;
  --muted: #c3b49a;
  --gold: #d7b56a;
  --gold-ink: #2a2112;
  --danger: #e0b4a8;
  --font-pixel: "Darkvale Pixel", "Darkvale Pixel Fallback", Georgia, serif;
  --font-body: Georgia, "Palatino Linotype", Palatino, serif;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
}

* { box-sizing: border-box; }

html {
  overflow-x: clip;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
  background:
    radial-gradient(circle at top, rgba(215, 181, 106, 0.08), transparent 36%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
}

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

img { max-width: 100%; height: auto; }

.frame { min-height: 100vh; }
.frame.mobile {
  max-width: 390px;
  margin: 16px auto;
  border: 1px solid var(--line);
  background: var(--bg);
}

.site-header, .site-footer, .site-main, .preview-bar {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  min-width: 0;
  padding: 18px 0;
}

.brand {
  color: var(--text);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
  font-family: var(--font-pixel);
  font-synthesis: none;
}
.brand span { font-size: 26px; letter-spacing: 0.04em; }
.brand small { color: var(--gold); letter-spacing: 0.08em; font-size: 13px; margin-top: 4px; }

.site-menu { margin-left: auto; }
.site-menu > summary {
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--line);
  padding: 8px 12px;
  font-family: var(--font-pixel);
  font-size: 13px;
  font-synthesis: none;
  line-height: 1.35;
}
.site-nav, .more-menu, .tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 12px 0;
}
.site-nav a, .more-menu a, .tabs a, .site-footer a, .site-footer nav {
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-pixel);
  font-size: 13px;
  font-synthesis: none;
  line-height: 1.35;
  letter-spacing: 0.02em;
}
.site-nav a[aria-current="page"], .tabs a[aria-current="page"] {
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
}
.more > summary { cursor: pointer; color: var(--text); }
.more-menu { display: none; padding-left: 8px; }
.more[open] .more-menu { display: flex; flex-direction: column; }

.play-now, .button {
  display: inline-block;
  background: var(--gold);
  color: var(--gold-ink);
  text-decoration: none;
  border: 0;
  padding: 10px 14px;
  font-family: var(--font-pixel);
  font-size: 13px;
  font-synthesis: none;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.button.secondary, .play-now.secondary {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--line);
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.site-main {
  padding-bottom: 48px;
  min-width: 0;
  overflow-wrap: break-word;
}
.site-main h1, .site-main h2, .site-main h3,
.kicker, .tag, caption, th, details > summary {
  font-family: var(--font-pixel);
  font-weight: 400;
  font-synthesis: none;
  letter-spacing: 0.02em;
  line-height: 1.35;
}
.site-main h1 { font-size: 26px; margin: 0.35rem 0 0.55rem; }
.site-main h2 { font-size: 16px; margin: 1.6rem 0 0.5rem; }
.site-main h3 { font-size: 13px; margin: 1.25rem 0 0.4rem; }
.site-main p, .site-main li, .lede, .patch-body, details, .card p, .class-detail p {
  font-family: var(--font-body);
}
.lede { font-size: 1.15rem; line-height: 1.65; max-width: 40rem; }
.kicker { letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); font-size: 13px; }
.muted { color: var(--muted); }
.tag {
  display: inline-block;
  border: 1px solid var(--line);
  color: var(--gold);
  padding: 2px 6px;
  font-size: 13px;
}

.hero, .card, .class-detail, .cta, .soon, .review-banner, table, .filters {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 1px rgba(215, 181, 106, 0.15);
}
.hero, .cta, .soon, .class-detail, .review-banner { padding: 22px; margin: 16px 0; }
.review-banner { color: var(--danger); }

.grid, .gallery, .item-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  padding: 0;
  list-style: none;
}
.card { display: block; padding: 14px; color: inherit; text-decoration: none; }
.card h3 { margin-top: 0; }
.class-detail img { float: right; margin-left: 12px; image-rendering: pixelated; }
.class-detail dl { display: grid; grid-template-columns: 9rem 1fr; gap: 4px 12px; }
.class-detail dt { color: var(--gold); }

.gallery figure { margin: 0; }
.gallery img, .item-list img { image-rendering: pixelated; background: #0c0b0a; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid rgba(138, 112, 64, 0.4); }
caption { text-align: left; padding: 10px; color: var(--gold); }

.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; padding: 12px; margin: 12px 0; }
label { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 0.9rem; }
input, select, textarea {
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--line);
  padding: 8px;
  font: inherit;
}
details { margin: 8px 0; }
summary { cursor: pointer; }

.item-list a {
  display: grid;
  grid-template-columns: 32px 1fr;
  grid-template-rows: auto auto;
  column-gap: 8px;
  color: inherit;
  text-decoration: none;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 8px;
}
.item-list img { grid-row: span 2; }
.item-list small { color: var(--muted); }

.pager { display: flex; gap: 12px; align-items: center; margin: 16px 0; }
.site-footer { padding: 28px 0 40px; color: var(--muted); border-top: 1px solid rgba(138, 112, 64, 0.45); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.preview-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #3a2a12;
  padding: 8px 12px;
  margin-top: 8px;
}
.patch-list { padding-left: 1.2rem; }

.patch-note {
  max-width: 40rem;
}

.site-main .patch-note h1,
.site-main .patch-body h2,
.site-main .patch-body h3 {
  font-family: var(--font-pixel);
  font-weight: 400;
  font-synthesis: none;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.site-main .patch-note h1 {
  font-size: 26px;
  margin: 0.2rem 0 0.45rem;
}

.patch-body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
}

.patch-body p,
.patch-body ul,
.patch-body ol,
.patch-body table {
  margin: 0 0 1rem;
}

.patch-body h2 {
  font-size: 16px;
  margin: 1.8rem 0 0.55rem;
}

.patch-body h3 {
  font-size: 13px;
  margin: 1.35rem 0 0.4rem;
}

.patch-body h2:first-child,
.patch-body h3:first-child {
  margin-top: 0.2rem;
}

.patch-body ul,
.patch-body ol {
  padding-left: 1.5rem;
}

.patch-body li {
  margin: 0.28rem 0;
}

.patch-body li > ul,
.patch-body li > ol {
  margin: 0.28rem 0 0.4rem;
}

.patch-body table {
  display: block;
  overflow-x: auto;
}

@media (max-width: 640px) {
  :root { font-size: 16px; }
}

@media (min-width: 900px) {
  .site-menu > summary { display: none; }
  .site-menu .site-nav { display: flex; align-items: center; padding: 0; }
  .more { position: relative; }
  .more-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 140px;
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 8px;
    z-index: 2;
  }
  .more:hover .more-menu, .more:focus-within .more-menu, .more[open] .more-menu { display: flex; }
}

@media (max-width: 899px) {
  .site-header { align-items: flex-start; }
  .play-now { margin-top: 2px; }
  .site-nav { flex-direction: column; }
}
