/* Deep Core support site. No scripts, no third-party requests. */
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/barlow-condensed-600.ttf") format("truetype");
}
@font-face {
  font-family: "Share Tech Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/share-tech-mono.ttf") format("truetype");
}

:root {
  --bg: #07090c;
  --panel: rgba(11, 14, 18, 0.88);
  --line: rgba(255, 255, 255, 0.13);
  --text: #d7dbdf;
  --dim: #8b929a;
  --ink: #ede6da;
  --accent: #ff8a3c;
  --gold: #e6b54a;
  --teal: #a9dcd8;
  --track: 0.12em;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --label: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", var(--body);
  --mono: "Share Tech Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: dark;
}
:lang(ko) {
  --body: "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  --track: 0;
}
:lang(ja) {
  --body: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, sans-serif;
  --track: 0;
}
:lang(zh-Hans) {
  --body: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --track: 0;
}
:lang(zh-Hant) {
  --body: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  --track: 0;
}

* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 17px/1.65 var(--body);
  color: var(--text);
  background:
    radial-gradient(1100px 520px at 75% -120px, rgba(255, 138, 60, 0.07), transparent 65%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}
:lang(ko) body, body:lang(ko) { word-break: keep-all; }
img { max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration-color: rgba(255, 138, 60, 0.55); text-underline-offset: 3px; }
a:hover, a:focus-visible { color: #fff; text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: var(--bg); padding: 6px 10px; }

/* Header */
.top {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px max(20px, calc((100% - 1040px) / 2 + 20px));
  border-bottom: 1px solid var(--line);
  background: rgba(7, 9, 12, 0.92);
  position: relative;
  z-index: 3;
}
.brand {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 600;
  font-size: 23px;
  letter-spacing: 0.14em;
  color: var(--ink);
  text-decoration: none;
  text-shadow: 0 0 14px rgba(255, 138, 60, 0.5);
  white-space: nowrap;
}
.top nav { display: flex; gap: 4px; flex-wrap: wrap; }
.top nav a, .lang summary {
  font-family: var(--label);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--dim);
  text-decoration: none;
  padding: 5px 10px;
  border: 1px solid transparent;
}
.top nav a:hover, .lang summary:hover { color: var(--ink); }
.top nav a[aria-current="page"] { color: var(--ink); border-color: var(--line); }
.lang { margin-left: auto; position: relative; }
.lang summary { cursor: pointer; list-style: none; border-color: var(--line); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: " \25BE"; color: var(--accent); }
.lang ul {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  margin: 0;
  padding: 6px 0;
  list-style: none;
  min-width: 170px;
  background: #0b0e12;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}
.lang li a { display: block; padding: 6px 16px; text-decoration: none; color: var(--text); }
.lang li a:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.lang li a[aria-current="true"] { color: var(--accent); }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: #050608; }
.hero .keyart {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 40%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 9, 12, 0.95) 0%, rgba(7, 9, 12, 0.78) 36%, rgba(7, 9, 12, 0.15) 72%, rgba(7, 9, 12, 0) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(7, 9, 12, 0) 30%);
}
.hero-copy { position: relative; z-index: 1; max-width: 600px; padding: 96px 0 56px; }
.kicker {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0;
}
.kicker:lang(ko), .kicker:lang(ja), .kicker:lang(zh) { font-family: var(--body); letter-spacing: 0.04em; }
.logo {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 600;
  font-size: clamp(58px, 10.5vw, 116px);
  line-height: 0.95;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin: 8px 0 0;
  text-shadow: 0 0 0.25em rgba(255, 138, 60, 0.55), 0 3px 6px rgba(0, 0, 0, 0.8);
}
.logo::after {
  content: "";
  display: block;
  width: 3.2em;
  max-width: 100%;
  height: 2px;
  margin-top: 0.12em;
  background: rgba(255, 138, 60, 0.67);
}
.tagline {
  font-family: var(--label);
  font-weight: 600;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.25;
  letter-spacing: 0.03em;
  color: var(--ink);
  margin: 22px 0 10px;
}
.tagline:lang(ko), .tagline:lang(ja), .tagline:lang(zh) { letter-spacing: 0; font-weight: 700; }
.lede { margin: 0 0 18px; max-width: 540px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 18px; }
.badges li {
  font-family: var(--label);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--teal);
  border: 1px solid rgba(169, 220, 216, 0.35);
  background: rgba(10, 13, 16, 0.65);
  padding: 3px 10px;
}
.platforms { color: var(--dim); font-size: 15px; margin: 0 0 12px; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: rgba(10, 13, 16, 0.8);
  padding: 9px 18px;
}
.store:hover { background: rgba(255, 138, 60, 0.12); }

/* Panels */
main { padding-bottom: 8px; }
.page-head { padding: 56px 0 8px; }
.page-head h1 {
  font-family: var(--label);
  font-weight: 600;
  font-size: clamp(36px, 6vw, 56px);
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 10px;
  text-shadow: 0 0 22px rgba(255, 138, 60, 0.35);
}
.page-head h1:lang(ko), .page-head h1:lang(ja), .page-head h1:lang(zh) { font-weight: 700; }
.page-head p { max-width: 760px; }
.effective { font-family: var(--mono); color: var(--gold); font-size: 15px; letter-spacing: 0.04em; }
.panel { background: var(--panel); border: 1px solid var(--line); padding: 22px 26px 18px; margin: 22px 0; }
.panel h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--label);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 12px;
}
.panel h2:lang(ko), .panel h2:lang(ja), .panel h2:lang(zh) { font-weight: 700; font-size: 20px; }
.panel h2::before { content: ""; flex: none; width: 9px; height: 9px; background: var(--accent); }
.panel p { margin: 0 0 12px; }
.panel ul.list { margin: 0 0 12px; padding-left: 0; list-style: none; }
.panel ul.list li { position: relative; padding-left: 22px; margin: 6px 0; }
.panel ul.list li::before { content: ""; position: absolute; left: 4px; top: 0.72em; width: 7px; height: 2px; background: var(--accent); }
.split { display: grid; grid-template-columns: 1fr 260px; gap: 24px; align-items: center; }
.split img { justify-self: center; filter: drop-shadow(0 0 24px rgba(255, 120, 40, 0.25)); }
.minerals { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; list-style: none; padding: 0; margin: 16px 0 10px; }
.minerals li { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px 8px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.28); text-align: center; }
.minerals img { width: 64px; height: 64px; }
.m-name { font-size: 14px; line-height: 1.3; color: var(--text); }
.m-price { font-family: var(--mono); font-size: 14px; color: var(--gold); }
.caption { color: var(--dim); font-size: 15px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin: 14px 0 8px; }
.gallery img { width: 100%; border: 1px solid var(--line); display: block; }
.qa { border-top: 1px solid var(--line); padding: 16px 0 4px; }
.qa:first-of-type { border-top: 0; padding-top: 0; }
.qa h2 { font-size: 20px; }
.contact ul.list { margin-top: 4px; }
.email { font-family: var(--mono); color: var(--gold); white-space: nowrap; }

/* Footer */
.foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 26px 0 40px; color: var(--dim); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: baseline; }
.foot a { color: var(--text); }
.foot .langs { display: flex; flex-wrap: wrap; gap: 6px 14px; list-style: none; margin: 0; padding: 0; width: 100%; }

/* Language chooser (site root) */
.chooser { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; position: relative; overflow: hidden; }
.chooser .keyart { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.chooser .box { position: relative; text-align: center; width: min(680px, 100%); min-width: 0; }
.chooser .logo::after { margin-left: auto; margin-right: auto; }
.chooser .prompt { color: var(--dim); margin: 22px 0 18px; font-size: 15px; }
.chooser ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.chooser li a { display: block; padding: 12px 10px; border: 1px solid var(--line); border-left: 3px solid var(--accent); background: rgba(10, 13, 16, 0.85); text-decoration: none; font-size: 18px; }
.chooser li a:hover { background: rgba(255, 138, 60, 0.12); }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .top { flex-wrap: wrap; gap: 8px 12px; }
  .lang { margin-left: 0; }
  .hero-copy { padding: 64px 0 40px; }
  .hero::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(7, 9, 12, 0.82) 45%, rgba(7, 9, 12, 0.55) 100%); }
  .panel { padding: 18px 16px 12px; }
  .split { grid-template-columns: 1fr; }
  .minerals { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: no-preference) {
  a, .store { transition: color 0.15s, background-color 0.15s, text-decoration-color 0.15s; }
}
