@font-face {
  font-family: Orbitron;
  src: url("assets/fonts/orbitron.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: Rajdhani;
  src: url("assets/fonts/rajdhani-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Rajdhani;
  src: url("assets/fonts/rajdhani-medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Rajdhani;
  src: url("assets/fonts/rajdhani-semibold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Rajdhani;
  src: url("assets/fonts/rajdhani-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans KR";
  src: url("assets/fonts/noto-sans-kr.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+1100-11FF, U+3130-318F, U+AC00-D7A3, U+FFA0-FFDC;
}

:root {
  color-scheme: dark;
  --base: #090e13;
  --surface: #10191e;
  --border: #29393f;
  --cyan: #66dfff;
  --muted: #9bafb5;
  --text: #dbe6ea;
  --heading: Orbitron, "Noto Sans KR", "Malgun Gothic", sans-serif;
  --body: Rajdhani, "Noto Sans KR", "Malgun Gothic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--base); color: var(--text); font: 500 18px/1.55 var(--body); }
html:lang(ko) body { font-size: 15px; line-height: 1.72; word-break: keep-all; }
h1, h2, h3, p, figure, ol, dl, dd { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { color: inherit; font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
::selection { background: #9ce6f2; color: #081114; }
.frame { width: min(1190px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 12px; z-index: 5; padding: 8px 14px; color: #001318; background: var(--cyan); }
.skip-link:focus { top: 10px; }

.masthead { background: #0b1115; border-bottom: 1px solid var(--border); }
.masthead-layout, .footer-layout { display: flex; align-items: center; gap: 28px; }
.masthead-layout { min-height: 68px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; width: fit-content; white-space: nowrap; }
.wordmark span { color: #d1e1e9; font: 700 16px/1.2 var(--heading); letter-spacing: .035em; text-transform: uppercase; }
.navigation { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.navigation a, .languages a { color: #b7c9ce; font-weight: 600; }
.navigation a:hover, .quiet-link:hover, summary:hover { color: var(--cyan); }
.languages { display: flex; align-items: center; gap: 3px; border-left: 1px solid var(--border); padding-left: 23px; }
.languages a { display: grid; min-height: 31px; min-width: 38px; padding-inline: 6px; place-items: center; font-size: 13px; }
.languages [aria-current] { background: #172b32; color: #90dff2; box-shadow: inset 0 -1px #3e99af; }
:lang(ko) .navigation { font-size: 13px; }

.engine {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid #2c4448;
  background: radial-gradient(ellipse at 72% 60%, #102b28, transparent 47%), linear-gradient(112deg, #0b141a, #0a1417 61%, #081012);
}
.engine::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: repeating-linear-gradient(30deg, transparent 0 37px, #74c9a526 37px 38px), repeating-linear-gradient(150deg, transparent 0 37px, #74c9a526 37px 38px);
  mask-image: linear-gradient(110deg, transparent 2%, #0002 37%, #0007 70%, transparent);
}
.engine-layout { position: relative; display: flex; align-items: center; min-height: 405px; }
.engine-terrain { position: absolute; z-index: -1; right: -6%; top: 48%; width: 83%; max-width: none; height: auto; transform: translateY(-50%); pointer-events: none; }
.engine-intro { padding-block: 45px; width: min(54%, 585px); }
.engine h1 {
  width: fit-content;
  color: #9be5ff;
  font: 800 clamp(43px, 5.6vw, 76px)/1.12 var(--heading);
  letter-spacing: -.045em;
  text-shadow: 0 0 6px #38cfff52, 0 0 23px #1aaeea45, 0 0 62px #1aaeea2e;
}
.engine-name { margin-top: 10px; color: #90c5d0; font: 600 clamp(11px, 1.15vw, 15px)/1.4 var(--heading); text-transform: uppercase; letter-spacing: .22em; }
.engine-description { margin-top: 22px; color: #d3e1e6; }
.engine-social { margin-top: 10px; color: #b5c6cc; }
summary { width: fit-content; color: #a9d7e4; cursor: pointer; font-weight: 600; }
.download-button, .copy-address { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 700; }
.download-button { padding: 11px 17px; color: #05171b; background: #82dff3; border: 1px solid #b2f2ff; border-radius: 2px; }
.download-button:hover { background: #b3f0ff; }
.line-icon { flex: none; width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.section { padding-block: 45px 53px; }
.section-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 18px; }
h2, .project-banner h3 {
  color: #92dff6;
  font: 650 clamp(24px, 2.6vw, 34px)/1.2 var(--heading);
  text-transform: uppercase;
  letter-spacing: .015em;
  text-shadow: 0 0 12px #38cbff2e;
}
:lang(ko) .section-header h2 { font-size: clamp(23px, 2.4vw, 30px); font-weight: 700; letter-spacing: -.045em; }
.quiet-link { color: var(--muted); font-size: .9em; font-weight: 600; text-decoration: underline; text-decoration-color: #52676d; text-underline-offset: 4px; }
.library { display: grid; grid-template-columns: minmax(228px, 28%) minmax(0, 1fr); border: 1px solid #364a50; background: #0a1015; }
.project-list { display: grid; align-content: start; padding: 6px; gap: 4px; border-right: 1px solid var(--border); }
.project-option { position: relative; display: flex; min-height: 66px; align-items: center; gap: 12px; padding: 8px 13px; border: 1px solid transparent; }
.project-option + .project-option { border-top-color: #233237; }
.project-option:hover { background: #112127; }
.project-option[aria-selected="true"] { border-color: #315761; box-shadow: inset 2px 0 #77e0f7; background: linear-gradient(100deg, #18323a, #112126); }
.project-option[aria-selected="true"] .option-name { color: #9ce7fa; }
.project-option img { flex: none; width: 45px; height: 45px; }
.planned-mark { flex: none; display: grid; place-items: center; width: 45px; height: 45px; }
.planned-mark::before { content: ""; width: 25px; height: 25px; border: 1px dashed #658089; transform: rotate(30deg) skew(-30deg) scaleY(.866); }
.option-name { display: block; font: 600 clamp(12px, 1.15vw, 16px)/1.4 var(--heading); }
.option-kind { display: block; margin-top: 3px; font-size: .79em; line-height: 1.4; color: var(--muted); }
.project-details { min-width: 0; background: var(--surface); }
.project-panel + .project-panel { border-top: 1px solid var(--border); }
.project-panel[role="tabpanel"] { border-top: 0; }
.project-banner { position: relative; isolation: isolate; display: flex; align-items: end; min-height: 100px; padding: 18px 24px; overflow: hidden; border-bottom: 1px solid var(--border); background: linear-gradient(150deg, #101e24, #16272c, #0c1418); }
.banner-art { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project-banner::after { position: absolute; z-index: -1; content: ""; inset: 0; background: linear-gradient(90deg,#081218ed, #07101988 48%, transparent 80%); }
.project-banner h3 { font-size: clamp(25px, 3vw, 38px); }
.banner-text p { margin-top: 4px; color: #c3d2da; font-size: .9em; }
.project-body { padding: 18px 24px 21px; }
.project-body > p:first-child { max-width: 72ch; }
.project-note { margin-top: 7px; color: var(--muted); font-size: .91em; }
.project-body > .quiet-link { display: inline-block; margin: 13px 16px 0 0; }
.address-label { display: block; margin-block: 15px 4px; color: #aec6cd; font-weight: 600; font-size: .9em; }
.address-control { display: flex; align-items: stretch; max-width: 640px; border: 1px solid #415963; background: #080f14; }
.address-control input { flex: 1; width: 1px; min-width: 0; padding: 9px 11px; background: transparent; border: 0; color: #c8e6ed; font: 500 12px/1.5 Consolas, monospace; }
.copy-address { min-width: 70px; border: 0; border-left: 1px solid #415963; background: #1b333b; color: #a5ecfd; padding: 5px 12px; font-size: .92em; }
.copy-address:hover { background: #284650; }
.copy-status { color: #8fddc2; font-size: .85em; }
.copy-status:not(:empty) { margin-top: 4px; }

.mod-installation { border-block: 1px solid var(--border); margin-top: 15px; padding-block: 10px; }
.installation-steps { padding-left: 24px; margin-top: 10px; }
.installation-steps li { padding-left: 7px; }
.installation-steps li + li { margin-top: 7px; }
.installation-steps li::marker { color: #7bd6ea; font: 600 18px var(--body); }
.launcher-figure { max-width: 420px; margin: 16px 0 6px; }
.launcher-figure img { width: 100%; height: auto; border: 1px solid #3a4b53; }
.launcher-download {
  border-top: 1px solid var(--border);
  background: linear-gradient(90deg, #0b151bf7 15%, #0b171ded 52%, #091116aa), url("assets/branding/sc4j-banner.svg") center / cover;
}
.download-layout { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding-block: 44px; }
.download-copy h2 { font-size: clamp(22px, 2.4vw, 32px); }
.download-copy p { margin-top: 8px; max-width: 60ch; color: #bdcfd4; }
.download-action { display: grid; justify-items: center; gap: 5px; }
.download-action .quiet-link { font-size: .8em; }
.footer { border-top: 1px solid var(--border); color: var(--muted); }
.footer-layout { padding-block: 19px; flex-wrap: wrap; gap: 8px 20px; }
.footer .wordmark span { font-size: 12px; }
.footer-layout p { width: 100%; font-size: .78em; }
.footer .navigation a { font-size: .9em; }

@media (max-width: 860px) {
  .frame { width: calc(100% - 48px); }
  .masthead-layout { gap: 16px; }
  .navigation { gap: 15px; }
  .languages { padding-left: 10px; }
  .engine-layout { min-height: 365px; }
  .engine-intro { width: 58%; }
  .engine-terrain { right: -8%; width: 92%; }
  .project-option { padding-inline: 8px; gap: 8px; }
  .download-layout { gap: 15px; }
}
@media (max-width: 680px) {
  .frame { width: calc(100% - 36px); }
  .masthead-layout { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; padding-block: 8px; }
  .wordmark { gap: 5px; }
  .wordmark span { font-size: 14px; }
  .wordmark img { width: 34px; height: 34px; }
  .languages { grid-column: 2; grid-row: 1; border: 0; padding: 0; }
  .navigation { grid-column: span 2; grid-row: 2; margin: 2px 0 0; gap: 22px; }
  .navigation a { padding-block: 5px 2px; }
  .engine-layout { min-height: 326px; }
  .engine-intro { width: min(100%, 440px); padding-block: 30px; }
  .engine h1 { max-width: 70%; font-size: clamp(30px, 7.6vw, 46px); }
  .engine-name { font-size: 10px; letter-spacing: .12em; }
  .engine-terrain { top: -20px; right: -11%; transform: none; width: min(76%, 400px); }
  .engine-description { margin-top: 30px; }
  .section { padding-block: 31px 36px; }
  .library { display: block; }
  .project-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-right: 0; border-bottom: 1px solid var(--border); gap: 3px; }
  .project-option { min-height: 49px; padding: 5px; }
  .project-option img, .planned-mark { width: 32px; height: 32px; }
  .option-name { font-size: clamp(10px, 2.35vw, 14px); }
  .project-banner { min-height: 87px; padding: 13px 14px; }
  .project-body { padding: 14px; }
  .installation-steps { padding-left: 23px; }
  .download-layout { grid-template-columns: auto 1fr; align-items: start; padding-block: 30px; }
  .launcher-mark { width: 44px; height: 44px; }
  .download-action { grid-column: 2; justify-items: start; }
  .footer .navigation { width: 100%; margin: 0; }
}
@media (max-width: 460px) {
  .engine-layout { min-height: 0; }
  .engine-terrain { top: -25px; right: -13%; width: 82%; }
  .engine-description { margin-top: 38px; }
  .engine-name { max-width: 200px; }
  .address-control input { font-size: 11px; }
  .copy-address { min-width: 53px; gap: 4px; padding-inline: 7px; }
}
