/* ============ Mine Empire theme ============ */
:root {
  --bg: #15111a;
  --bg-2: #1c1720;
  --card: #221b26;
  --card-2: #2a2130;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4eef0;
  --muted: #b8aab3;
  --red: #e8141b;
  --red-2: #ff3b30;
  --red-dark: #8f0a10;
  --gold: #ffc928;
  --gold-dark: #b98300;
  --discord: #5865f2;
  --discord-dark: #3b44b8;
  --radius: 16px;
  --font: "Rubik", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-style: italic; font-weight: 900; letter-spacing: 0.01em; margin: 0; line-height: 1.15; }

/* ---------- pills / buttons ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px; border: 0; cursor: pointer;
  font: italic 800 16px/1 var(--font); text-transform: uppercase; letter-spacing: 0.02em;
  color: #fff; background: transparent; transition: transform 0.12s, box-shadow 0.12s, background 0.15s, filter 0.15s;
  white-space: nowrap;
}
.pill:hover { transform: translateY(-2px); filter: brightness(1.08); }
.pill:active { transform: translateY(2px); box-shadow: none !important; }
.pill-ghost:hover { background: rgba(255, 255, 255, 0.08); transform: none; }
.pill-active { background: var(--gold); color: #3a2400; box-shadow: 0 4px 0 var(--gold-dark); }
.pill-red { background: linear-gradient(180deg, var(--red-2), var(--red)); box-shadow: 0 4px 0 var(--red-dark); }
.pill-discord { background: var(--discord); box-shadow: 0 4px 0 var(--discord-dark); }
.pill .count { background: rgba(255, 255, 255, 0.22); border-radius: 999px; padding: 4px 9px; font-size: 12px; }
.pill .dc { width: 20px; height: 16px; }
.pill.wide { width: 100%; padding: 14px; }
.pill.big { padding: 15px 30px; font-size: 19px; }

/* ---------- nav ---------- */
#site-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background 0.2s, box-shadow 0.2s;
}
#site-nav.scrolled { background: rgba(21, 17, 26, 0.86); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.nav-inner { max-width: 1280px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 22px; }
.nav-logo img { width: 58px; height: 58px; filter: drop-shadow(0 4px 10px rgba(232, 20, 27, 0.45)); transition: transform 0.2s; }
.nav-logo:hover img { transform: rotate(-6deg) scale(1.06); }
.nav-links { display: flex; gap: 6px; }
.nav-actions { margin-left: auto; display: flex; gap: 14px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: #fff; margin: 5px 0; border-radius: 2px; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: min(100vh, 1000px); display: grid; place-items: center; text-align: center;
  padding: 120px 20px 90px; overflow: hidden; isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: -20px; z-index: -2;
  background: url("../img/hero-bg.jpg") center / cover no-repeat;
  filter: blur(2px) saturate(1.1);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(255, 70, 30, 0.22), transparent 55%),
    linear-gradient(180deg, rgba(21, 17, 26, 0.55) 0%, rgba(21, 17, 26, 0.15) 35%, rgba(21, 17, 26, 0.5) 75%, var(--bg) 100%);
}
.embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.join-pill {
  display: inline-flex; gap: 6px; padding: 9px 20px; border-radius: 999px;
  background: rgba(15, 10, 14, 0.55); border: 1px solid rgba(255, 255, 255, 0.14); backdrop-filter: blur(6px);
  font: italic 800 17px/1.2 var(--font);
}
.join-pill b { color: var(--red-2); }
.hero-logo { position: relative; width: min(340px, 70vw); animation: float 5s ease-in-out infinite; }
.hero-logo::before {
  content: ""; position: absolute; inset: 12%; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 90, 30, 0.55), transparent 65%); filter: blur(30px);
  animation: pulse 3s ease-in-out infinite;
}
.hero-logo img { width: 100%; height: auto; aspect-ratio: 1 / 1; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55)); }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-0.6deg); } 50% { transform: translateY(-14px) rotate(0.6deg); } }
@keyframes pulse { 0%, 100% { opacity: 0.65; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }

.ip-box {
  position: relative; display: flex; align-items: center; gap: 12px; cursor: pointer;
  padding: 18px 30px 22px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 10, 14, 0.7); backdrop-filter: blur(6px);
  font: 800 21px/1 var(--font); letter-spacing: 0.01em; color: #fff; transition: transform 0.15s, border-color 0.15s;
}
.ip-box:hover { transform: translateY(-2px); border-color: rgba(255, 59, 48, 0.6); }
.ip-box .play { width: 0; height: 0; border-left: 10px solid #9a8f96; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.ip-box .copy-tag {
  position: absolute; left: 50%; bottom: -12px; transform: translateX(-50%);
  background: var(--red); color: #fff; border-radius: 999px; padding: 5px 12px;
  font: italic 800 12px/1 var(--font); text-transform: uppercase; box-shadow: 0 3px 0 var(--red-dark); white-space: nowrap;
}
.online-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #3ddc6a; box-shadow: 0 0 0 0 rgba(61, 220, 106, 0.6); animation: ping 2s infinite; margin-right: 4px; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 106, 0.6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(61, 220, 106, 0); } }
.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: var(--muted); font: italic 700 13px var(--font); letter-spacing: 0.15em; text-transform: uppercase; animation: bob 2s infinite; }
@keyframes bob { 50% { transform: translate(-50%, 6px); } }

/* ---------- sections ---------- */
.section { max-width: 1180px; margin: 0 auto; padding: 90px 24px; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); text-transform: uppercase; }
.section-head h2 span { color: var(--red-2); }
.section-head p { color: var(--muted); margin: 10px auto 0; max-width: 620px; }
.eyebrow { display: inline-block; color: var(--gold); font: italic 800 14px var(--font); letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 8px; }

.card {
  background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* news */
.news-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.news-card { overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s, border-color 0.2s; }
.news-card:hover { transform: translateY(-4px); border-color: rgba(255, 59, 48, 0.45); }
.news-thumb { height: 170px; display: grid; place-items: center; background: radial-gradient(circle at 50% 60%, #6a0d12, #2a0a0e 70%); border-bottom: 1px solid var(--line); }
.news-thumb img { width: 104px; image-rendering: pixelated; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.4)); }
.news-body { padding: 22px; }
.news-meta { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.tag { background: rgba(232, 20, 27, 0.18); color: #ff8a80; border-radius: 999px; padding: 4px 10px; font: italic 800 11px var(--font); text-transform: uppercase; letter-spacing: 0.06em; }
.news-body h3 { font-size: 21px; margin-bottom: 8px; }
.news-body p { color: var(--muted); margin: 0; }
.news-list .news-card { flex-direction: row; }
.news-list .news-thumb { height: auto; min-width: 200px; border-bottom: 0; border-right: 1px solid var(--line); }
.news-list { grid-template-columns: 1fr; }

/* game modes */
.mode-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .mode-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .mode-grid { grid-template-columns: 1fr; } }
.mode-card { position: relative; padding: 28px 24px; text-align: center; transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; }
.mode-card:hover { transform: translateY(-6px); border-color: rgba(255, 201, 40, 0.5); box-shadow: 0 16px 40px rgba(232, 20, 27, 0.18); }
.mode-icon { width: 92px; height: 92px; margin: 0 auto 12px; image-rendering: pixelated; }
.mode-card h3 { font-size: 24px; text-transform: uppercase; margin-bottom: 6px; }
.mode-card p { color: var(--muted); margin: 0; font-size: 15px; }
.status { position: absolute; top: 14px; right: 14px; font: italic 800 11px var(--font); text-transform: uppercase; padding: 4px 9px; border-radius: 999px; }
.status.live { background: rgba(61, 220, 106, 0.15); color: #6ff094; }
.status.soon { background: rgba(255, 201, 40, 0.15); color: var(--gold); }

/* features */
.feature-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.feature { padding: 24px; display: flex; gap: 16px; align-items: flex-start; }
.feature img { width: 56px; height: 56px; image-rendering: pixelated; flex: none; }
.feature h3 { font-size: 19px; margin-bottom: 4px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* stats strip */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.stat { padding: 26px; text-align: center; }
.stat strong { display: block; font: italic 900 40px/1 var(--font); color: #fff; }
.stat span { color: var(--muted); font: italic 700 14px var(--font); text-transform: uppercase; letter-spacing: 0.1em; }
.stat.red strong { color: var(--red-2); } .stat.gold strong { color: var(--gold); } .stat.blue strong { color: #8b95ff; }

/* CTA */
.cta {
  position: relative; overflow: hidden; text-align: center; padding: 60px 30px; border-radius: 24px;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 90, 30, 0.35), transparent 60%), linear-gradient(135deg, #7a0910, #2a0a10);
  border: 1px solid rgba(255, 59, 48, 0.35);
}
.cta h2 { font-size: clamp(28px, 4vw, 44px); text-transform: uppercase; }
.cta p { color: #f0c9c6; margin: 10px 0 26px; }
.cta .row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* page header (inner pages) */
.page-head { position: relative; padding: 150px 20px 70px; text-align: center; overflow: hidden; isolation: isolate; }
.page-head::before { content: ""; position: absolute; inset: -20px; z-index: -2; background: url("../img/hero-bg.jpg") center 40% / cover; filter: blur(3px); }
.page-head::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(21, 17, 26, 0.6), var(--bg)); }
.page-head h1 { font-size: clamp(38px, 6vw, 64px); text-transform: uppercase; text-shadow: 0 4px 0 var(--red-dark), 0 10px 30px rgba(0, 0, 0, 0.5); }
.page-head p { color: #e6d7dc; margin: 10px auto 0; max-width: 560px; }
.page-head img.head-icon { width: 84px; margin: 0 auto 14px; image-rendering: pixelated; }

/* store */
.rank-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: stretch; }
.rank-card { position: relative; padding: 30px 24px; text-align: center; display: flex; flex-direction: column; border-top: 4px solid var(--rank); transition: transform 0.2s; }
.rank-card:hover { transform: translateY(-6px); }
.rank-card.featured { border-color: var(--rank); box-shadow: 0 0 0 1px var(--rank), 0 20px 50px rgba(255, 201, 40, 0.15); }
.rank-icon { width: 80px; height: 80px; margin: 0 auto 10px; image-rendering: pixelated; }
.rank-card h3 { font-size: 28px; text-transform: uppercase; color: var(--rank); }
.price { font: italic 900 36px/1 var(--font); margin: 10px 0 18px; }
.price small { font-size: 13px; color: var(--muted); font-weight: 600; }
.rank-card ul { list-style: none; padding: 0; margin: 0 0 22px; text-align: left; flex: 1; }
.rank-card li { padding: 8px 0 8px 28px; border-bottom: 1px dashed var(--line); position: relative; color: #e2d8dd; font-size: 15px; }
.rank-card li::before { content: "✔"; position: absolute; left: 4px; color: var(--rank); font-weight: 900; }
.ribbon { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--gold); color: #3a2400; padding: 6px 14px; border-radius: 999px; font: italic 900 12px var(--font); text-transform: uppercase; box-shadow: 0 3px 0 var(--gold-dark); white-space: nowrap; }
.note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 30px; }

/* vote */
.vote-list { display: grid; gap: 14px; max-width: 760px; margin: 0 auto; }
.vote-card { display: flex; align-items: center; gap: 18px; padding: 18px 22px; transition: transform 0.15s, border-color 0.15s; }
.vote-card:hover { transform: translateX(6px); border-color: rgba(255, 59, 48, 0.5); }
.vote-num { font: italic 900 22px var(--font); color: var(--red-2); width: 38px; }
.vote-name { flex: 1; font: italic 800 19px var(--font); }
.reward-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); max-width: 760px; margin: 0 auto 40px; }
.reward { padding: 22px; text-align: center; }
.reward img { width: 60px; margin: 0 auto 8px; image-rendering: pixelated; }
.reward strong { display: block; font: italic 900 18px var(--font); }
.reward span { color: var(--muted); font-size: 14px; }

/* wiki */
.wiki { display: grid; grid-template-columns: 240px 1fr; gap: 26px; align-items: start; }
.wiki-nav { position: sticky; top: 100px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.wiki-nav a { padding: 11px 14px; border-radius: 10px; font: italic 800 15px var(--font); color: var(--muted); transition: background 0.15s, color 0.15s; }
.wiki-nav a:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.wiki-nav a.active { background: rgba(232, 20, 27, 0.18); color: #fff; box-shadow: inset 3px 0 0 var(--red-2); }
.wiki-page { padding: 34px; }
.wiki-page h2 { font-size: 30px; text-transform: uppercase; margin-bottom: 16px; }
.wiki-page h3 { font-size: 19px; margin: 26px 0 8px; color: var(--gold); }
.wiki-page p, .wiki-page li { color: #ddd2d7; }
.wiki-page code { background: #120e15; border: 1px solid var(--line); padding: 2px 8px; border-radius: 6px; font-size: 14px; color: #ffb3aa; }
.cmd-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.cmd-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmd-table td:first-child { width: 38%; }
details { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; background: rgba(0, 0, 0, 0.15); }
summary { cursor: pointer; font: italic 800 17px var(--font); }
details p { margin: 10px 0 0; }

/* footer */
#site-footer { border-top: 1px solid var(--line); background: #110d14; margin-top: 40px; }
.foot-inner { max-width: 1180px; margin: 0 auto; padding: 46px 24px; display: flex; gap: 40px; justify-content: space-between; flex-wrap: wrap; }
.foot-brand { display: flex; gap: 14px; align-items: center; }
.foot-brand img { width: 64px; }
.foot-brand strong { display: block; font: italic 900 22px var(--font); }
.foot-brand span { color: var(--muted); font-size: 14px; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(110px, auto)); gap: 28px 64px; }
.foot-cols h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--red-2); margin-bottom: 14px; }
.foot-cols a { display: block; width: fit-content; color: var(--muted); padding: 3px 0; font-size: 14px; line-height: 1.5; transition: color 0.15s; }
.foot-cols a + a { margin-top: 6px; }
.foot-cols a:hover { color: #fff; }
.foot-legal { text-align: center; color: #7d717a; font-size: 13px; padding: 18px; border-top: 1px solid var(--line); }

/* toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); opacity: 0; z-index: 100; background: #fff; color: #1a1014; font: italic 800 15px var(--font); padding: 13px 22px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); transition: 0.25s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-links, .nav-actions { display: none; }
  #site-nav.open { background: rgba(21, 17, 26, 0.97); }
  #site-nav.open .nav-inner { flex-wrap: wrap; }
  #site-nav.open .nav-links, #site-nav.open .nav-actions { display: flex; flex-direction: column; width: 100%; gap: 8px; }
  #site-nav.open .nav-actions { margin: 6px 0 10px; }
  .wiki { grid-template-columns: 1fr; }
  .wiki-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .news-list .news-card { flex-direction: column; }
  .news-list .news-thumb { border-right: 0; border-bottom: 1px solid var(--line); min-height: 150px; }
}
@media (max-width: 520px) {
  .nav-inner { padding: 12px 16px; }
  .section { padding: 70px 16px; }
  .ip-box { font-size: 17px; padding: 16px 20px 20px; }
  .wiki-page { padding: 22px; }
  .foot-cols { grid-template-columns: repeat(3, 1fr); gap: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
