/* Gold & Goblins event guides: same look as the calculator (src/ui/styles.css),
   plain static pages. Fonts ship with the site (SIL Open Font License 1.1). */
@font-face {
  font-family: 'Lilita One';
  font-display: swap;
  src: url('/gold-goblins/fonts/lilita-one-400.woff2') format('woff2');
}
@font-face {
  font-family: Nunito;
  font-weight: 600;
  font-display: swap;
  src: url('/gold-goblins/fonts/nunito-600.woff2') format('woff2');
}
@font-face {
  font-family: Nunito;
  font-weight: 800;
  font-display: swap;
  src: url('/gold-goblins/fonts/nunito-800.woff2') format('woff2');
}
:root {
  color-scheme: dark;
  --ground: #261a44;
  --panel-hi: #7550c4;
  --panel: #4f3196;
  --panel-lo: #3f2580;
  --rim: #a487ee;
  --edge: #160b2b;
  --ink: #fdf8ff;
  --mute: #cbbdf0;
  --green-hi: #b4f46a;
  --green: #7bd636;
  --green-lo: #3f8f16;
  --gold: #ffd23f;
  --orange: #ffa51f;
  --r: 20px;
}
* {
  box-sizing: border-box;
}
html {
  background: var(--ground);
}
body {
  margin: 0;
  color: var(--ink);
  font:
    600 16px/1.55 Nunito,
    system-ui,
    sans-serif;
  min-height: 100vh;
  background:
    radial-gradient(#ffffff0a 1px, transparent 1.5px) 0 0 / 14px 14px,
    radial-gradient(ellipse 120% 80% at 50% 0%, #4a3389 0%, transparent 60%),
    radial-gradient(ellipse 140% 100% at 50% 50%, transparent 55%, #0b0518 100%),
    var(--ground);
}
a {
  color: var(--gold);
}
main,
.top,
.foot {
  max-width: 940px;
  margin-inline: auto;
  padding-inline: max(4vw, 14px);
}
h1,
h2,
h3,
.kicker,
.kn,
.cta,
.tag,
.toc a,
.home {
  font-family: 'Lilita One', system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: 0.015em;
  color: #fff;
  text-shadow: 0 3px 0 var(--edge);
}
@supports (paint-order: stroke) {
  h1,
  h2,
  h3,
  .kn,
  .cta,
  .home {
    -webkit-text-stroke: 5px var(--edge);
    paint-order: stroke fill;
  }
}
h1 {
  font-size: clamp(30px, 6vw, 46px);
  line-height: 1.05;
  margin: 0;
}
h2 {
  font-size: clamp(24px, 4.4vw, 32px);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
h2 img {
  object-fit: contain;
}
h3 {
  margin: 18px 0 10px;
  padding: 6px 14px;
  font-size: 24px;
  text-align: center;
  border-radius: 10px;
  background: linear-gradient(#ffc23a, var(--orange));
  box-shadow:
    inset 0 -4px 0 #d9730b,
    0 3px 0 var(--edge);
}
h3 small {
  font-size: 15px;
  opacity: 0.9;
  margin-left: 6px;
  -webkit-text-stroke-width: 3px;
}

/* ---------- top bar ---------- */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 14px;
}
.home {
  font-size: 22px;
  text-decoration: none;
}
.home b {
  color: #59d4ff;
  font-weight: 400;
}
.top nav {
  display: flex;
  gap: 16px;
  font-weight: 800;
}
.top nav a {
  color: var(--mute);
  text-decoration: none;
}
.top nav a:hover {
  color: #fff;
}
.crumbs {
  font-size: 14px;
  color: var(--mute);
  margin: 0 0 12px;
}
.crumbs a {
  color: var(--mute);
}

/* ---------- panels ---------- */
.panel,
.hero {
  position: relative;
  margin: 0 0 18px;
  padding: 18px clamp(14px, 3vw, 26px) 22px;
  border-radius: var(--r);
  background: linear-gradient(var(--panel-hi), var(--panel) 40%, var(--panel-lo));
  border: 3px solid var(--edge);
  box-shadow:
    inset 0 2px 0 var(--rim),
    inset 0 -5px 0 #2e1868,
    0 5px 0 var(--edge);
}
.panel p {
  margin: 0 0 10px;
}
.hero {
  padding: 0;
  overflow: hidden;
}
.banner {
  display: block;
  width: 100%;
  height: auto;
}
.hero-text {
  padding: 16px clamp(14px, 3vw, 26px) 20px;
}
.kicker {
  margin: 0 0 4px;
  color: var(--gold);
  font-size: 16px;
}
.tagline {
  margin: 10px 0 6px;
  color: var(--mute);
  font-style: italic;
}
.when {
  margin: 0;
}
.tag {
  display: inline-block;
  padding: 1px 10px;
  border-radius: 99px;
  font-size: 15px;
  border: 2px solid var(--edge);
  margin-right: 4px;
}
.tag.live {
  background: linear-gradient(var(--green-hi), var(--green));
  color: #18320a;
  text-shadow: none;
}
.tag.over {
  background: #6a5a90;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}
.toc a {
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 17px;
  background: linear-gradient(#8b66dc, var(--panel));
  border: 2px solid var(--edge);
  box-shadow: 0 3px 0 var(--edge);
}

/* ---------- key grid, like the in-game reward tiles ---------- */
.keys {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.keys li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px 10px;
  border-radius: 14px;
  background: linear-gradient(#a98cf2, #8a6be0);
  border: 3px solid var(--edge);
  box-shadow:
    inset 0 2px 0 #c8b4ff,
    0 3px 0 var(--edge);
  text-align: center;
}
.keys img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 8px;
}
.keys .what {
  font-weight: 800;
  font-size: 14px;
  line-height: 1.2;
  text-shadow: 0 1px 0 var(--edge);
}
.kn {
  position: absolute;
  top: -8px;
  left: -6px;
  min-width: 30px;
  padding: 0 6px;
  border-radius: 99px;
  background: linear-gradient(#ffe07a, #f0a417);
  border: 2px solid var(--edge);
  font-size: 16px;
  line-height: 24px;
  -webkit-text-stroke-width: 4px !important;
}

/* ---------- tables ---------- */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
}
th,
td {
  text-align: left;
  padding: 6px 10px;
}
thead th {
  color: var(--mute);
  font-size: 14px;
  padding-block: 0;
}
tbody tr {
  background: #ffffff14;
}
tbody th,
tbody td:first-child {
  border-radius: 10px 0 0 10px;
}
tbody td:last-child {
  border-radius: 0 10px 10px 0;
}
.lb tbody th {
  font-family: 'Lilita One', system-ui, sans-serif;
  font-weight: 400;
  font-size: 20px;
  white-space: nowrap;
  text-shadow: 0 2px 0 var(--edge);
}
.lb tbody tr:nth-child(1) th {
  color: var(--gold);
}
.lb tbody tr:nth-child(2) th {
  color: #dfe6ff;
}
.lb tbody tr:nth-child(3) th {
  color: #ffae6b;
}
.lb td {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.rw {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
}
.rw img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 6px;
}
details.all {
  margin-top: 16px;
}
details.all summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--gold);
}

/* ---------- master key ---------- */
.master {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}
.master img {
  object-fit: contain;
  border-radius: 10px;
}
.master p {
  margin: 0;
}

/* ---------- totals, tips ---------- */
.totals {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px;
}
.totals li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 12px;
  background: #ffffff14;
}
.totals img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
}
.tips {
  margin: 0 0 16px;
  padding-left: 20px;
}
.tips li {
  margin-bottom: 6px;
}
.note {
  color: var(--mute);
  font-size: 14px;
}
.cta {
  display: inline-block;
  margin: 4px 0 10px;
  padding: 10px 22px;
  border-radius: 16px;
  font-size: 20px;
  text-decoration: none;
  background: linear-gradient(var(--green-hi), var(--green) 55%, var(--green-lo));
  border: 3px solid var(--edge);
  box-shadow:
    inset 0 2px 0 #e2ffb8,
    0 4px 0 var(--edge);
}

/* ---------- events list ---------- */
.event-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.event-list a {
  display: grid;
  grid-template-columns: minmax(0, 220px) 1fr;
  gap: 14px;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  padding: 8px;
  border-radius: 14px;
  background: #ffffff14;
}
.event-list img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}
.event-list b {
  display: block;
  font-family: 'Lilita One', system-ui, sans-serif;
  font-weight: 400;
  font-size: 24px;
}
.event-list small {
  color: var(--mute);
}

/* ---------- footer ---------- */
.foot {
  margin-top: 24px;
  padding-block: 24px 40px;
  border-top: 4px solid var(--edge);
  color: var(--mute);
  font-size: 14px;
  display: grid;
  gap: 6px;
}
.foot p {
  margin: 0;
  max-width: 70ch;
}
.foot strong {
  color: var(--ink);
}
.foot .credit {
  font-size: 13px;
  opacity: 0.85;
}

@media (max-width: 560px) {
  .keys {
    gap: 8px;
  }
  .keys img {
    width: 52px;
    height: 52px;
  }
  .keys .what {
    font-size: 12.5px;
  }
  .master {
    grid-template-columns: auto 1fr;
  }
  .master > img:last-child {
    grid-column: 1 / -1;
    justify-self: center;
  }
  .event-list a {
    grid-template-columns: 1fr;
  }
  .top nav {
    gap: 10px;
    font-size: 14px;
  }
}
@media (max-width: 360px) {
  .keys {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
