/* Dirt Empire - shared styling for the small public site.
   Headings borrow the game's pixel face; body copy stays in a plain readable sans,
   because Press Start 2P is unreadable past a line or two. */

/* Self-hosted, same file the game embeds. The site makes no third-party requests at
   all, which is the only honest way to run a page whose policy says nothing is
   collected - a webfont CDN would still see every visitor's IP address. */
@font-face{
  font-family:'Press Start 2P';
  font-style:normal; font-weight:400; font-display:swap;
  src:url('press-start-2p.woff2') format('woff2');
}

:root{
  --bg:#14171c;
  --panel:#1c2028;
  --panel-edge:#0b0d11;
  --dirt:#8a5a2b;
  --dirt-dark:#3d2716;
  --accent:#ffcf4d;
  --accent2:#4dd9ff;
  --text:#dfe6ee;
  --muted:#8fa0b3;
}

*{ box-sizing:border-box; }

html{ -webkit-text-size-adjust:100%; }

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size:16px;
  line-height:1.75;
}

/* the dirt band behind the header, drawn rather than loaded */
header{
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.10) 0 8px, transparent 8px 16px),
    repeating-linear-gradient(0deg, rgba(0,0,0,.10) 0 8px, transparent 8px 16px),
    linear-gradient(var(--dirt), var(--dirt-dark));
  border-bottom:4px solid var(--panel-edge);
  padding:44px 20px 38px;
  text-align:center;
}

header img{
  width:96px; height:96px;
  image-rendering:pixelated;
  border:4px solid var(--panel-edge);
  display:block; margin:0 auto 22px;
}

h1, h2, h3, .pixel{
  font-family:'Press Start 2P', 'Courier New', monospace;
  font-weight:400;
  line-height:1.5;
  text-shadow:3px 3px 0 rgba(0,0,0,.65);
}

h1{ font-size:clamp(20px, 5.5vw, 34px); margin:0; color:var(--accent); letter-spacing:2px; }

/* The heading reads "Dirt Empire" in the markup and is only uppercased for display, so
   the page text matches the app name on the OAuth consent screen character for character. */
.appName{ text-transform:uppercase; }
h2{ font-size:clamp(13px, 3.2vw, 16px); margin:44px 0 16px; color:var(--accent); }
h3{ font-size:clamp(11px, 2.6vw, 13px); margin:30px 0 12px; color:var(--accent2); }

.tagline{
  margin:18px auto 0; max-width:34em;
  font-size:15px; color:#f3e3c4;
  text-shadow:1px 1px 0 rgba(0,0,0,.6);
}

main{ max-width:760px; margin:0 auto; padding:0 20px 80px; }

p, li{ color:var(--text); }
.muted{ color:var(--muted); font-size:14px; }

a{ color:var(--accent2); }
a:hover{ color:var(--accent); }

ul{ padding-left:22px; }
li{ margin:8px 0; }

.panel{
  background:var(--panel);
  border:3px solid var(--panel-edge);
  border-left:6px solid var(--accent);
  padding:18px 22px;
  margin:26px 0;
}

.panel.quiet{ border-left-color:#3a4150; }

.cards{
  display:grid; gap:14px; margin:26px 0;
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
}
.card{
  background:var(--panel); border:3px solid var(--panel-edge);
  padding:16px 18px;
}
.card h3{ margin-top:0; }
.card p{ margin-bottom:0; font-size:15px; }

.btnRow{ display:flex; flex-wrap:wrap; gap:12px; justify-content:center; margin-top:26px; }
.btn{
  font-family:'Press Start 2P', 'Courier New', monospace;
  font-size:11px; letter-spacing:1px; text-decoration:none;
  padding:14px 18px;
  background:linear-gradient(#ffcf4d,#e0a624);
  color:#3a2600;
  border:3px solid #7a5a10; border-bottom-width:5px;
  box-shadow:0 0 0 3px #000;
}
.btn:hover{ filter:brightness(1.06); color:#3a2600; }
.btn.quiet{
  background:linear-gradient(#4a5361,#2b313b);
  color:var(--text); border-color:#0b0d11;
}
.btn.quiet:hover{ color:#fff; }

code{
  background:#0f1319; border:1px solid #2a3038; padding:1px 5px;
  font-size:.9em; color:var(--accent2); word-break:break-word;
}

.tableWrap{ overflow-x:auto; }
table{ width:100%; border-collapse:collapse; margin:20px 0; font-size:15px; }
th, td{ text-align:left; padding:10px 12px; border:2px solid var(--panel-edge); vertical-align:top; }
th{ background:var(--panel); color:var(--accent); font-size:14px; }
td{ background:#171b22; }

.stamp{
  font-size:13px; color:var(--muted);
  border-left:4px solid #3a4150; padding-left:14px; margin:0 0 30px;
}

footer{
  border-top:3px solid var(--panel-edge);
  padding:28px 20px 44px;
  text-align:center;
  color:var(--muted); font-size:13px;
}
footer a{ margin:0 8px; white-space:nowrap; }

@media (max-width:520px){
  body{ font-size:15px; }
  .btnRow{ flex-direction:column; }
  .btn{ text-align:center; }
}
