/* Trove Prisons website: same look as the Discord bot's cards (discord-bot/cards.py). */
@font-face { font-family: "Lilita One"; src: url("assets/LilitaOne-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("assets/Fredoka.ttf") format("truetype"); font-weight: 300 700; font-display: swap; }

:root {
  --bg: #180f10;
  --box: #26181a;
  --box-edge: #422e2c;
  --grid: #1d1314;
  --cream: #fff4de;
  --muted: #c4b2a0;
  --gold: #f4c450;
  --green: #7ce08c;
  --pink: #ec96f0;
  --red: #f06860;
  --blue: #78b4fa;
  --teal: #5adcc8;
  --purple: #b28cfa;
  --orange: #faa050;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font: 500 17px/1.55 "Fredoka", system-ui, sans-serif;
  background-image:
    radial-gradient(ellipse 900px 600px at 10% -10%, rgba(244, 196, 80, .16), transparent 70%),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: auto, 40px 40px, 40px 40px;
  background-attachment: fixed;
  min-height: 100vh;
}
a { color: var(--gold); }
img { max-width: 100%; }
.wrap { width: min(1100px, 100% - 40px); margin: 0 auto; }

/* nav */
nav { position: sticky; top: 0; z-index: 10; background: rgba(24, 15, 16, .88); backdrop-filter: blur(8px);
      border-bottom: 1px solid var(--box-edge); }
nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
nav .logo img { height: 26px; display: block; }
nav .links { margin-left: auto; display: flex; gap: 22px; align-items: center; }
nav .links a { color: var(--cream); text-decoration: none; font-weight: 600; }
nav .links a:hover, nav .links a.on { color: var(--gold); }

/* text bits */
.kicker { color: var(--green); letter-spacing: .18em; text-transform: uppercase; font-weight: 600; font-size: 15px; }
h1, h2, h3 { font-family: "Lilita One", "Fredoka", sans-serif; font-weight: 400; text-transform: uppercase; margin: 0; line-height: 1.05; }
h1 { font-size: clamp(44px, 8vw, 84px); }
h2 { font-size: clamp(32px, 5vw, 48px); }
h3 { font-size: 26px; }
.accent { color: var(--gold); }
.muted { color: var(--muted); }
.label { color: var(--muted); letter-spacing: .12em; text-transform: uppercase; font-weight: 600; font-size: 13px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 12px; border: 0;
       font: 600 17px "Fredoka", sans-serif; text-decoration: none; cursor: pointer; transition: transform .1s, filter .1s; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn.gold { background: var(--gold); color: #2a1a0c; }
.btn.discord { background: #5865f2; color: #fff; }
.btn.ghost { background: var(--box); color: var(--cream); border: 1px solid var(--box-edge); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; filter: none; }

/* hero */
.hero { padding: 90px 0 70px; }
.hero p.lead { font-size: 21px; color: var(--muted); max-width: 640px; margin: 18px 0 30px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; }
.ipbox { display: inline-flex; align-items: stretch; border-radius: 12px; overflow: hidden; border: 1px solid var(--box-edge); }
.ipbox .ip { background: var(--box); padding: 12px 18px; font-family: "Lilita One", sans-serif; font-size: 22px; letter-spacing: .02em; }
.ipbox .ip small { display: block; font: 600 12px "Fredoka"; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.ipbox button { border: 0; background: var(--gold); color: #2a1a0c; font: 600 16px "Fredoka"; padding: 0 18px; cursor: pointer; }
.status { margin-top: 18px; color: var(--muted); font-weight: 600; }
.status .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); margin-right: 8px; }
.status.up .dot { background: var(--green); box-shadow: 0 0 10px var(--green); }
.status.down .dot { background: var(--red); }

/* cards (same as the bot's boxes: dark panel with a coloured left stripe) */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card { position: relative; background: var(--box); border: 1px solid var(--box-edge); border-radius: var(--radius);
        padding: 22px 22px 22px 28px; overflow: hidden; }
.card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c, var(--gold)); }
.card h3 { color: var(--c, var(--cream)); margin: 6px 0 8px; }
.card p { margin: 0; color: var(--muted); }

section { padding: 60px 0; }
section > .wrap > header { margin-bottom: 28px; }
section > .wrap > header p { color: var(--muted); max-width: 680px; margin: 10px 0 0; }

/* how to join */
.steps { counter-reset: s; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps .card::after { counter-increment: s; content: counter(s); position: absolute; right: 18px; top: 10px;
                      font: 56px "Lilita One"; color: rgba(255, 244, 222, .07); }

/* store */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.tabs button { background: var(--box); color: var(--cream); border: 1px solid var(--box-edge); border-radius: 999px;
               padding: 9px 18px; font: 600 16px "Fredoka"; cursor: pointer; }
.tabs button.on { background: var(--gold); color: #2a1a0c; border-color: var(--gold); }
.grid.three { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid.five { grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); }
.grid.five .card { padding: 20px 16px 20px 22px; }
.product { display: flex; flex-direction: column; }
.product .top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 10px; }
.product .price { font: 30px "Lilita One"; color: var(--cream); white-space: nowrap; }
.product .tag { font-size: 13px; font-weight: 600; color: #2a1a0c; background: var(--c); border-radius: 6px; padding: 2px 8px;
                text-transform: uppercase; letter-spacing: .08em; }
.product ul { margin: 12px 0 18px; padding-left: 20px; color: var(--muted); flex: 1; }
.product ul li { margin: 3px 0; }
.product ul li.new { color: var(--cream); }
.product .btn { justify-content: center; width: 100%; }
.notice { background: rgba(244, 196, 80, .1); border: 1px solid rgba(244, 196, 80, .45); border-radius: var(--radius);
          padding: 16px 20px; margin-bottom: 26px; }
.notice b { color: var(--gold); }

/* footer */
footer { border-top: 1px solid var(--box-edge); margin-top: 40px; padding: 30px 0 50px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; }
footer img { height: 22px; display: block; }
footer a { color: var(--muted); }

@media (max-width: 640px) {
  nav .links { gap: 14px; font-size: 15px; }
  nav .links .hide-sm { display: none; }
  .hero { padding: 56px 0 40px; }
}
