:root {
  --bg: #08090a;
  --bg-soft: #0d0f11;
  --panel: #111418;
  --panel-light: #171a1f;
  --line: #262b31;
  --line-soft: rgba(255, 255, 255, 0.09);
  --text: #f4f2ed;
  --muted: #959ca4;
  --muted-2: #666d75;
  --red: #f04444;
  --red-bright: #ff5757;
  --red-dark: #8f171b;
  --amber: #ffb443;
  --green: #56e38d;
  --blue: #61a9ff;
  --purple: #ba80ff;
  --header-h: 76px;
  --shell: min(1180px, calc(100vw - 48px));
  --radius: 2px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  min-width: 320px;
  /* hidden 을 쓰면 body 가 스크롤 컨테이너가 되어
     window.scrollY 와 IntersectionObserver 판정이 어긋난다.
     clip 은 잘라내기만 하고 스크롤 컨테이너를 만들지 않는다. */
  overflow-x: clip;
  color: var(--text);
  background: var(--bg);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--v3-cyan, #65e7df);
  outline-offset: 4px;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

button {
  border: 0;
  cursor: pointer;
}

::selection {
  color: #fff;
  background: var(--red-dark);
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  padding: 10px 14px;
  color: #fff;
  background: var(--red);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, height .25s ease;
}

.site-header.is-scrolled,
.site-header.menu-active {
  background: rgba(8, 9, 10, .92);
  border-color: var(--line-soft);
  backdrop-filter: blur(18px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand-logo {
  width: 42px;
  height: 42px;
  flex: none;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, .16);
  background: #050505;
}

.brand-footer .brand-logo {
  width: 50px;
  height: 50px;
}

.brand-word {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -.04em;
}

.brand-word span {
  color: var(--red);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.2vw, 32px);
}

.nav-links a {
  position: relative;
  padding: 27px 0 24px;
  color: #c5c9ce;
  font-size: 13px;
  font-weight: 650;
  transition: color .2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: #fff;
}

.nav-links .nav-event-link {
  color: #61dff3;
}

.nav-links .nav-event-link::after {
  background: #3de6ff;
  box-shadow: 0 0 12px rgba(61, 230, 255, .55);
}

.footer-links .footer-event-link {
  color: #70e5f7;
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.status-chip {
  min-width: 118px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d5d8dc;
  font: 600 11px/1 var(--mono);
  letter-spacing: .02em;
}

.status-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: #6c7279;
  box-shadow: 0 0 0 4px rgba(108, 114, 121, .12);
}

.status-dot.is-online {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(86, 227, 141, .12), 0 0 16px rgba(86, 227, 141, .4);
}

.status-dot.is-offline {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(240, 68, 68, .12);
}

.nav-toggle {
  width: 42px;
  height: 42px;
  display: none;
  padding: 11px 9px;
  background: transparent;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #fff;
  transition: transform .25s ease, opacity .25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: max(780px, 100svh);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(8, 9, 10, .96) 0%, rgba(8, 9, 10, .88) 47%, rgba(8, 9, 10, .28) 100%),
    radial-gradient(circle at 82% 37%, rgba(149, 18, 22, .42), transparent 31%),
    #090a0c;
}

.hero::before {
  content: "HOLDz";
  position: absolute;
  top: 12%;
  left: 53%;
  color: rgba(255, 255, 255, .018);
  font-size: clamp(180px, 31vw, 520px);
  font-weight: 950;
  letter-spacing: -.1em;
  line-height: .9;
  white-space: nowrap;
  transform: translateX(-18%);
  pointer-events: none;
}

.ash-canvas,
.hero-grid,
.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ash-canvas {
  z-index: 2;
}

.hero-grid {
  opacity: .32;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(to right, #000, transparent 85%);
}

.hero-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0 67%, rgba(240, 68, 68, .12) 67.1% 67.3%, transparent 67.4%);
}

.hero-glow {
  background:
    radial-gradient(circle at 82% 47%, rgba(255, 76, 76, .18), transparent 18%),
    linear-gradient(to bottom, transparent 70%, var(--bg));
}

.hero-layout {
  position: relative;
  z-index: 4;
  min-height: max(780px, 100svh);
  padding-top: calc(var(--header-h) + 76px);
  padding-bottom: 112px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr);
  align-items: center;
  gap: clamp(48px, 8vw, 120px);
}

.hero-copy {
  max-width: 750px;
}

.eyebrow,
.section-index {
  color: var(--muted);
  font: 700 11px/1.2 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 27px;
}

.eyebrow span {
  padding: 6px 9px;
  color: #fff;
  background: var(--red-dark);
  letter-spacing: .08em;
}

.hero h1 {
  max-width: 780px;
  font-size: clamp(54px, 6.7vw, 94px);
  font-weight: 900;
  letter-spacing: -.068em;
  line-height: .98;
}

.hero h1 strong {
  color: var(--red-bright);
  font-weight: inherit;
}

.hero-lead {
  margin-top: 28px;
  color: #b9bec4;
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.7;
}

.hero-actions,
.final-actions {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-top: 38px;
}

.button {
  min-height: 66px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 13px 20px;
  border: 1px solid transparent;
  font-weight: 750;
  transition: transform .2s var(--ease), background .2s ease, border-color .2s ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button-primary {
  position: relative;
  min-width: 270px;
  justify-content: flex-start;
  flex-wrap: wrap;
  column-gap: 10px;
  color: #fff;
  background: var(--red);
  box-shadow: 10px 10px 0 rgba(240, 68, 68, .12);
}

.button-primary::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, transparent 50%, #771519 51%);
}

.button-primary:hover {
  background: var(--red-bright);
}

.button-kicker {
  width: 100%;
  color: rgba(255, 255, 255, .66);
  font: 700 9px/1 var(--mono);
  letter-spacing: .14em;
}

.button-primary strong {
  font: 800 19px/1 var(--mono);
  letter-spacing: -.04em;
}

.copy-mark {
  margin-left: auto;
  padding: 5px 7px;
  color: rgba(255, 255, 255, .78);
  border: 1px solid rgba(255, 255, 255, .28);
  font: 700 9px/1 var(--mono);
  letter-spacing: .08em;
}

.button-secondary {
  min-width: 174px;
  background: rgba(255, 255, 255, .035);
  border-color: rgba(255, 255, 255, .18);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .35);
}

.button-secondary span {
  color: var(--red);
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 42px;
}

.hero-proof li {
  min-width: 138px;
  padding-right: 28px;
  margin-right: 28px;
  border-right: 1px solid var(--line);
}

.hero-proof li:last-child {
  margin-right: 0;
  border-right: 0;
}

.hero-proof span,
.hero-proof strong {
  display: block;
}

.hero-proof span {
  margin-bottom: 7px;
  color: var(--muted-2);
  font: 700 9px/1 var(--mono);
  letter-spacing: .16em;
}

.hero-proof strong {
  color: #d6d9dc;
  font: 700 12px/1 var(--mono);
}

.field-card {
  position: relative;
  padding: 25px;
  background: rgba(15, 17, 20, .78);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 28px 34px 80px rgba(0, 0, 0, .48);
  backdrop-filter: blur(16px);
}

.field-card::before,
.field-card::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  pointer-events: none;
}

.field-card::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--red);
  border-left: 2px solid var(--red);
}

.field-card::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
}

.field-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted-2);
  font: 700 9px/1 var(--mono);
  letter-spacing: .14em;
}

.signal-bars {
  height: 13px;
  display: flex;
  align-items: end;
  gap: 2px;
}

.signal-bars i {
  width: 3px;
  background: var(--red);
}

.signal-bars i:nth-child(1) { height: 4px; opacity: .4; }
.signal-bars i:nth-child(2) { height: 7px; opacity: .6; }
.signal-bars i:nth-child(3) { height: 10px; opacity: .8; }
.signal-bars i:nth-child(4) { height: 13px; }

.field-status {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 29px;
}

.status-dot-large {
  width: 12px;
  height: 12px;
}

.field-status div {
  min-width: 0;
  flex: 1;
}

.field-status small,
.field-status strong {
  display: block;
}

.field-status small {
  margin-bottom: 4px;
  color: var(--muted-2);
  font: 700 9px/1 var(--mono);
  letter-spacing: .14em;
}

.field-status strong {
  overflow: hidden;
  font-size: 15px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.field-status > b {
  color: var(--green);
  font: 700 13px/1 var(--mono);
}

.field-divider {
  height: 1px;
  margin: 24px 0;
  background: var(--line);
}

.field-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.field-stats div {
  min-height: 104px;
  padding: 17px;
  background: rgba(15, 17, 20, .96);
}

.field-stats dt {
  color: var(--muted-2);
  font-size: 11px;
}

.field-stats dd {
  margin-top: 10px;
  color: #fff;
  font: 800 27px/1 var(--mono);
}

.field-stats dd small {
  margin-left: 5px;
  color: var(--muted);
  font-size: 10px;
}

.field-note {
  margin-top: 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.field-note span {
  margin-right: 7px;
  color: var(--red);
  font: 700 9px/1 var(--mono);
}

.hero-bottom {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
}

.hero-bottom-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted-2);
  border-top: 1px solid var(--line-soft);
  font: 700 9px/1 var(--mono);
  letter-spacing: .15em;
}

.hero-bottom a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 1px solid var(--line);
  transition: border-color .2s ease, color .2s ease;
}

.hero-bottom a:hover {
  color: var(--red);
  border-color: var(--red);
}

.marquee {
  overflow: hidden;
  padding: 18px 0;
  color: #090a0b;
  background: var(--red);
  transform: rotate(-1deg) scale(1.02);
}

.marquee-track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 30px;
  animation: marquee 24s linear infinite;
  font: 900 20px/1 var(--mono);
  letter-spacing: .08em;
}

.marquee-track i {
  font-style: normal;
  opacity: .45;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

.section {
  position: relative;
  padding: clamp(100px, 11vw, 160px) 0;
}

.section-dark {
  background: var(--bg-soft);
  border-block: 1px solid var(--line-soft);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 60px;
}

.section-index {
  margin-bottom: 18px;
  color: var(--red);
}

.section-heading h2,
.territory-copy h2 {
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 850;
  letter-spacing: -.058em;
  line-height: 1.08;
}

.heading-copy,
.split-heading > p,
.territory-copy > p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.heading-copy {
  margin-top: 22px;
}

.split-heading {
  max-width: none;
  display: grid;
  grid-template-columns: 1fr .82fr;
  align-items: end;
  gap: 80px;
}

.identity::before {
  content: "";
  position: absolute;
  top: 0;
  right: 8vw;
  width: 1px;
  height: 100%;
  background: linear-gradient(transparent, var(--line), transparent);
}

.identity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.feature-card {
  position: relative;
  min-height: 320px;
  padding: 32px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: transform .3s var(--ease), border-color .3s ease;
}

.feature-card:hover {
  z-index: 2;
  border-color: #444b54;
  transform: translateY(-6px);
}

.feature-card-wide {
  grid-row: span 2;
  min-height: 656px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  background:
    linear-gradient(to top, rgba(17, 20, 24, 1) 0%, rgba(17, 20, 24, .76) 47%, rgba(17, 20, 24, .1) 100%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 16px),
    radial-gradient(circle at 50% 30%, rgba(240, 68, 68, .26), transparent 30%),
    var(--panel);
}

.feature-card-wide::before {
  content: "137";
  position: absolute;
  top: 20px;
  left: 50%;
  color: rgba(255, 255, 255, .035);
  font: 900 190px/.85 var(--mono);
  letter-spacing: -.1em;
  transform: translateX(-50%);
}

.feature-number {
  position: absolute;
  top: 24px;
  right: 25px;
  color: var(--muted-2);
  font: 700 10px/1 var(--mono);
}

.feature-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: auto;
  color: var(--red);
  border: 1px solid var(--line);
  font: 400 26px/1 var(--mono);
}

.feature-card-wide .feature-icon {
  margin-bottom: 110px;
}

.feature-card h3 {
  margin-bottom: 12px;
  font-size: 25px;
  letter-spacing: -.035em;
}

.feature-card p {
  max-width: 480px;
  color: var(--muted);
  font-size: 15px;
}

.feature-meta {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

.feature-meta span {
  padding: 6px 8px;
  color: #afb4bb;
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line);
  font: 700 9px/1 var(--mono);
  letter-spacing: .08em;
}

.survival-loop {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.survival-loop li {
  position: relative;
  min-height: 270px;
  padding: 28px;
  border-right: 1px solid var(--line);
}

.survival-loop li:last-child {
  border-right: 0;
}

.survival-loop > li > span {
  color: var(--red);
  font: 700 11px/1 var(--mono);
}

.survival-loop li div {
  position: absolute;
  right: 28px;
  bottom: 28px;
  left: 28px;
}

.survival-loop small {
  color: var(--muted-2);
  font: 700 9px/1 var(--mono);
  letter-spacing: .14em;
}

.survival-loop h3 {
  margin: 8px 0 12px;
  font-size: 26px;
}

.survival-loop p {
  color: var(--muted);
  font-size: 14px;
}

.survival-loop li::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width .45s var(--ease);
}

.survival-loop li:hover::after {
  width: 100%;
}

.arsenal-block {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 70px;
  margin-top: 100px;
  padding: clamp(32px, 5vw, 70px);
  background:
    linear-gradient(135deg, rgba(240, 68, 68, .08), transparent 42%),
    #0a0c0e;
  border: 1px solid var(--line);
}

.arsenal-copy h3 {
  margin: 18px 0 20px;
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: -.055em;
  line-height: 1.12;
}

.arsenal-copy > p:not(.section-index) {
  max-width: 430px;
  color: var(--muted);
}

.arsenal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.arsenal-tags span {
  padding: 6px 10px;
  color: #aeb4ba;
  border: 1px solid var(--line);
  font-size: 11px;
}

.weapon-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 12px;
}

.weapon {
  display: block;
  padding: 16px 18px 18px;
  background: var(--panel);
  border-left: 3px solid #58616b;
}

.weapon-rare {
  border-left-color: var(--red);
}

.weapon > div span {
  color: var(--muted-2);
  font: 700 8px/1 var(--mono);
  letter-spacing: .1em;
}

.weapon h4 {
  margin-top: 8px;
  font: 800 19px/1 var(--mono);
  letter-spacing: -.05em;
}

.weapon dl {
  display: grid;
  gap: 10px;
}

.weapon dl div {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 10px;
}

.weapon dt {
  color: var(--muted-2);
  font-size: 10px;
}

.weapon dd {
  position: relative;
  height: 4px;
  overflow: hidden;
  background: #2a2f35;
}

.weapon dd::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--level);
  background: var(--red);
}

/* ---------- 무기고 쇼케이스 ---------- */

/* 분류별 목록은 폭이 넓어야 카드가 여러 열로 깔린다.
   설명은 위로 올리고 화기 목록이 전체 폭을 쓰도록 한다. */
.arsenal-block-full {
  grid-template-columns: 1fr;
  gap: 38px;
}

.arsenal-block-full .arsenal-copy > p:not(.section-index) {
  max-width: 640px;
}

.weapon-groups {
  display: grid;
  gap: 34px;
}

.weapon-group-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.weapon-group-title span {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.03em;
}

.weapon-group-title em {
  color: var(--muted-2);
  font: 700 10px/1 var(--mono);
  font-style: normal;
  letter-spacing: .14em;
}

.weapon-group-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

/* 총기 렌더는 470x132 캔버스에 모든 화기를 같은 배율로 그려 넣었다.
   따라서 이미지를 통째로 보여주기만 하면 권총과 저격총의 크기 차이가
   실제 비율대로 나타난다. 잘라내거나 늘리면 안 된다. */
.weapon-shot {
  position: relative;
  width: 100%;
  margin: 0 0 14px;
  aspect-ratio: 470 / 132;
  background:
    radial-gradient(ellipse at 50% 118%, rgba(240, 68, 68, .13), transparent 60%),
    linear-gradient(180deg, #1b1f24, #101316);
  border: 1px solid #262c33;
}

.weapon-shot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 3px 7px rgba(0, 0, 0, .7));
}

.weapon-meta {
  margin-top: 6px;
  color: var(--muted-2);
  font-size: 10px;
}

.weapon-empty {
  grid-column: 1 / -1;
  padding: 36px 0;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.loot-section {
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 180, 67, .08), transparent 22%),
    var(--bg);
}

.crate-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.crate-card {
  --crate: #a8afb8;
  min-height: 330px;
  padding: 25px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--crate);
  transition: transform .25s var(--ease), background .25s ease;
}

.crate-card:hover {
  background: var(--panel-light);
  transform: translateY(-5px);
}

.crate-rare { --crate: var(--blue); }
.crate-special { --crate: var(--purple); }
.crate-unique { --crate: var(--amber); }

.crate-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--crate);
  font: 700 9px/1 var(--mono);
  letter-spacing: .14em;
}

.crate-top b {
  color: rgba(255, 255, 255, .14);
  font-size: 32px;
}

.crate-card h3 {
  margin-top: 36px;
  font-size: 23px;
}

.crate-card > p {
  min-height: 48px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.crate-card dl {
  margin-top: 38px;
  border-top: 1px solid var(--line);
}

.crate-card dl div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.crate-card dt {
  color: var(--muted-2);
}

.crate-card dd {
  color: var(--crate);
  font-family: var(--mono);
  font-weight: 700;
}

.loot-preview {
  position: relative;
  width: 100%;
  max-height: 340px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 25px;
  margin-top: 20px;
  padding: 0;
  overflow: hidden;
  color: #fff;
  background: #0b0d0f;
  border: 1px solid var(--line);
  text-align: left;
}

.loot-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 9, 10, .92), transparent 80%);
  pointer-events: none;
}

.loot-preview img {
  width: 100%;
  opacity: .42;
  transition: opacity .3s ease, transform .7s var(--ease);
}

.loot-preview:hover img {
  opacity: .58;
  transform: scale(1.015);
}

.loot-preview > span,
.loot-preview > i {
  position: absolute;
  z-index: 2;
  bottom: 24px;
}

.loot-preview > span {
  left: 25px;
}

.loot-preview b,
.loot-preview small {
  display: block;
}

.loot-preview b {
  font-size: 17px;
}

.loot-preview small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.loot-preview > i {
  right: 25px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .22);
  font-style: normal;
}

.territory-section {
  background:
    linear-gradient(90deg, rgba(8, 9, 10, .99), rgba(8, 9, 10, .7)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 14px);
  border-top: 1px solid var(--line);
}

.territory-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: clamp(60px, 9vw, 130px);
}

.territory-copy > p:not(.section-index) {
  margin-top: 25px;
}

.territory-copy ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 40px;
  background: var(--line);
  border: 1px solid var(--line);
}

.territory-copy li {
  padding: 16px;
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
}

.territory-copy li span {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font: 800 24px/1 var(--mono);
}

.territory-levels {
  position: relative;
}

.territory-levels::before {
  content: "";
  position: absolute;
  top: 9%;
  bottom: 9%;
  left: 28px;
  width: 1px;
  background: linear-gradient(var(--red), var(--amber));
}

.level-row {
  position: relative;
  min-height: 86px;
  display: grid;
  grid-template-columns: 58px 1fr auto 18px;
  align-items: center;
  gap: 18px;
  margin-bottom: 9px;
  padding: 17px 20px;
  background: rgba(17, 20, 24, .94);
  border: 1px solid var(--line);
}

.level-row > span {
  position: relative;
  z-index: 2;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--panel);
  border: 1px solid var(--red);
  font: 700 7px/1 var(--mono);
}

.level-row strong {
  font-size: 18px;
}

.level-row small {
  color: var(--muted);
  font-size: 12px;
}

.level-row i {
  width: 8px;
  height: 8px;
  border-top: 1px solid var(--muted-2);
  border-right: 1px solid var(--muted-2);
  transform: rotate(45deg);
}

.level-active,
.level-final {
  border-color: rgba(240, 68, 68, .46);
}

.level-final {
  background: linear-gradient(90deg, rgba(240, 68, 68, .14), var(--panel));
}

.centered {
  margin-inline: auto;
  text-align: center;
}

.join-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
}

.join-steps li {
  min-height: 285px;
  padding: 32px;
  border-right: 1px solid var(--line);
}

.join-steps li:last-child {
  border-right: 0;
}

.join-steps > li > span {
  color: var(--red);
  font: 700 9px/1 var(--mono);
  letter-spacing: .14em;
}

.join-steps strong {
  display: block;
  margin: 62px 0 12px;
  font-size: 22px;
}

.join-steps p {
  color: var(--muted);
  font-size: 14px;
}

.join-steps p b {
  color: #fff;
}

.join-steps code,
.command-grid code,
.inline-copy code {
  font-family: var(--mono);
}

.inline-copy {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding: 10px 12px;
  color: #fff;
  background: #0a0c0e;
  border: 1px solid var(--line);
}

.inline-copy code {
  color: var(--red-bright);
  font-weight: 800;
}

.inline-copy span {
  color: var(--muted-2);
  font: 700 9px/1 var(--mono);
  letter-spacing: .1em;
}

.command-panel {
  margin-top: 28px;
  background: #0a0c0e;
  border: 1px solid var(--line);
}

.command-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 23px 27px;
  border-bottom: 1px solid var(--line);
}

.command-panel-head span,
.command-panel-head strong {
  display: block;
}

.command-panel-head span {
  margin-bottom: 4px;
  color: var(--red);
  font: 700 9px/1 var(--mono);
  letter-spacing: .14em;
}

.command-panel-head strong {
  font-size: 17px;
}

.command-panel-head small {
  color: var(--muted);
  font: 700 10px/1 var(--mono);
}

.command-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.command-grid div {
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 20px;
  padding: 17px 27px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.command-grid div:nth-child(even) {
  border-right: 0;
}

.command-grid code {
  color: var(--red-bright);
  font-size: 12px;
}

.command-grid span {
  color: var(--muted);
  font-size: 13px;
}

.protocol-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 12px;
}

.protocol-card {
  min-height: 320px;
  padding: 30px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.protocol-card > span {
  color: var(--muted-2);
  font: 700 9px/1 var(--mono);
  letter-spacing: .14em;
}

.protocol-card h3 {
  margin: 42px 0 20px;
  font-size: 22px;
}

.protocol-card li {
  position: relative;
  padding: 8px 0 8px 17px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.protocol-card li::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 0;
  width: 5px;
  height: 5px;
  background: #59616b;
}

.protocol-danger {
  background: linear-gradient(145deg, rgba(143, 23, 27, .2), var(--panel) 62%);
  border-color: rgba(240, 68, 68, .42);
}

.protocol-danger > span,
.protocol-danger h3 {
  color: var(--red-bright);
}

.protocol-danger li::before {
  background: var(--red);
}

.final-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(110px, 14vw, 200px) 0;
  background:
    radial-gradient(circle at 70% 45%, rgba(240, 68, 68, .22), transparent 28%),
    linear-gradient(130deg, #0b0d0f 0 55%, #160a0b 100%);
  border-top: 1px solid var(--line);
}

.final-cta::before {
  content: "HOLDz";
  position: absolute;
  right: -4vw;
  bottom: -3vw;
  color: rgba(255, 255, 255, .025);
  font-size: clamp(160px, 27vw, 420px);
  font-weight: 950;
  letter-spacing: -.1em;
  line-height: .7;
}

.final-noise {
  position: absolute;
  inset: 0;
  opacity: .35;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 46px 46px;
}

.final-inner {
  position: relative;
  z-index: 2;
}

.final-inner > p {
  margin-bottom: 25px;
  color: var(--muted);
  font: 700 9px/1 var(--mono);
  letter-spacing: .14em;
}

.final-inner h2 {
  font-size: clamp(52px, 7.8vw, 105px);
  font-weight: 900;
  letter-spacing: -.075em;
  line-height: .92;
}

.final-inner h2 span {
  color: var(--red-bright);
}

.final-actions {
  margin-top: 46px;
}

.site-footer {
  padding: 42px 0;
  background: #050607;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  /* .footer-company 가 flex: 0 0 100% 로 한 줄을 차지하려면 줄바꿈이 필요하다.
     wrap 이 없으면 셸 밖으로 밀려나 잘려 보이지 않는다. */
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.brand-footer {
  margin-bottom: 12px;
}

.footer-inner > div > p {
  color: var(--muted-2);
  font: 700 9px/1 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.footer-inner > p {
  max-width: 610px;
  color: var(--muted-2);
  font-size: 11px;
  text-align: right;
}

.footer-company {
  flex: 0 0 100%;
  position: relative;
  display: grid;
  grid-template-columns: minmax(210px, .58fr) minmax(0, 1.72fr);
  gap: 34px;
  margin-top: 4px;
  padding: 27px 28px;
  overflow: hidden;
  background:
    linear-gradient(105deg, rgba(240, 68, 80, .07), transparent 34%),
    #090b0e;
  border: 1px solid rgba(255, 255, 255, .09);
  color: #aeb4bc;
}

.footer-company::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 86px;
  height: 2px;
  background: var(--red);
}

.footer-company-brand {
  align-self: center;
}

.footer-company-brand small,
.footer-company-brand a {
  display: block;
}

.footer-company-brand small {
  margin-bottom: 9px;
  color: var(--red-bright);
  font: 800 9px/1 var(--mono);
  letter-spacing: .13em;
}

.footer-company-brand > a {
  width: fit-content;
  color: #f2f3f5;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.25;
  transition: color .2s ease;
}

.footer-company-brand > a span {
  color: var(--red-bright);
  font: 700 15px/1 var(--mono);
}

.footer-company-details {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 26px;
  margin: 0;
}

.footer-company-details > div {
  min-width: 0;
}

.footer-company-details dt {
  color: #717983;
  font: 750 9px/1.25 var(--mono);
  letter-spacing: .055em;
}

.footer-company-details dd {
  margin: 6px 0 0;
  color: #c4c9cf;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.footer-company-details .footer-company-wide {
  grid-column: 1 / -1;
}

.footer-company a {
  transition: color .2s ease;
}

.footer-company a:hover,
.footer-company a:focus-visible {
  color: #fff;
}

.loot-dialog {
  width: min(1480px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  padding: 0;
  overflow: hidden;
  color: var(--text);
  background: #0b0d0f;
  border: 1px solid #343a41;
}

.loot-dialog::backdrop {
  background: rgba(0, 0, 0, .9);
  backdrop-filter: blur(8px);
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.dialog-head small {
  color: var(--red);
  font: 700 9px/1 var(--mono);
  letter-spacing: .14em;
}

.dialog-head h2 {
  margin-top: 4px;
  font-size: 19px;
}

.dialog-head button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  background: transparent;
  border: 1px solid var(--line);
  font-size: 28px;
  line-height: 1;
}

.dialog-image {
  max-height: calc(100vh - 130px);
  overflow: auto;
}

.dialog-image img {
  width: 100%;
  min-width: 980px;
}

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  z-index: 100;
  min-width: 280px;
  padding: 14px 20px;
  color: #fff;
  background: #16191d;
  border: 1px solid var(--red);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .55);
  font: 700 12px/1.3 var(--mono);
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 30px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* 등장 애니메이션
   기본값은 '보임'이다. 스크립트가 정상 동작할 때만 숨겼다가 나타낸다.
   이렇게 해두면 JS 오류·IntersectionObserver 미동작·구형 브라우저에서도
   내용이 사라지지 않는다. */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1080px) {
  :root {
    --shell: min(100% - 36px, 980px);
  }

  .status-chip {
    display: none;
  }

  .nav-links {
    gap: 14px;
  }

  .nav-links a {
    font-size: 12px;
  }

  .header-inner {
    gap: 18px;
  }

  .hero-layout {
    grid-template-columns: 1fr 355px;
    gap: 42px;
  }

  .hero h1 {
    font-size: clamp(52px, 7vw, 72px);
  }

  .hero-proof li {
    min-width: 118px;
    padding-right: 18px;
    margin-right: 18px;
  }

  .split-heading {
    gap: 50px;
  }

  .crate-grid {
    grid-template-columns: 1fr 1fr;
  }

  .protocol-grid {
    grid-template-columns: 1fr 1fr;
  }

  .protocol-danger {
    grid-column: span 2;
  }
}

@media (max-width: 840px) {
  :root {
    --header-h: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
    gap: 0;
    padding: 30px 18px;
    background: rgba(8, 9, 10, .98);
    border-top: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
  }

  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-links a {
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
    font-size: 18px;
  }

  .nav-links a::after {
    bottom: -1px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    align-content: center;
    padding-top: calc(var(--header-h) + 76px);
    padding-bottom: 120px;
  }

  .field-card {
    max-width: 590px;
  }

  .split-heading {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .split-heading > p {
    max-width: 650px;
  }

  .survival-loop {
    grid-template-columns: 1fr 1fr;
  }

  .survival-loop li:nth-child(2) {
    border-right: 0;
  }

  .survival-loop li:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .arsenal-block,
  .territory-layout {
    grid-template-columns: 1fr;
  }

  .join-steps {
    grid-template-columns: 1fr;
  }

  .join-steps li {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .join-steps li:last-child {
    border-bottom: 0;
  }

  .join-steps strong {
    margin-top: 36px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-inner > p {
    text-align: left;
  }
}

@media (max-width: 620px) {
  :root {
    --shell: calc(100% - 28px);
  }

  .desktop-only {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-layout {
    min-height: auto;
    padding-top: 130px;
    padding-bottom: 124px;
  }

  .eyebrow {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero h1 {
    font-size: clamp(43px, 13vw, 61px);
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-actions,
  .final-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .button-primary,
  .button-secondary {
    width: 100%;
  }

  .hero-proof {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .hero-proof li {
    min-width: 0;
    margin: 0;
    padding: 0;
    border-right: 0;
  }

  .field-card {
    padding: 20px;
  }

  .field-stats div {
    min-height: 90px;
    padding: 14px;
  }

  .hero-bottom-inner span {
    max-width: 230px;
  }

  .section {
    padding: 90px 0;
  }

  .section-heading {
    margin-bottom: 40px;
  }

  .section-heading h2,
  .territory-copy h2 {
    font-size: 40px;
  }

  .heading-copy,
  .split-heading > p,
  .territory-copy > p {
    font-size: 15px;
  }

  .identity-grid {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .feature-card-wide {
    min-height: 320px;
    grid-row: auto;
  }

  .feature-card-wide .feature-icon {
    margin-bottom: auto;
  }

  .survival-loop {
    grid-template-columns: 1fr;
  }

  .survival-loop li {
    min-height: 235px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .survival-loop li:last-child {
    border-bottom: 0;
  }

  .arsenal-block {
    gap: 45px;
    margin-top: 70px;
    padding: 25px 18px;
  }

  /* .weapon 은 아래 620px 구간에서 가로형으로 압축하므로 여기서 덮어쓰지 않는다 */

  .crate-grid {
    grid-template-columns: 1fr;
  }

  .crate-card {
    min-height: auto;
  }

  .loot-preview {
    min-height: 230px;
  }

  .loot-preview img {
    width: auto;
    height: 230px;
    max-width: none;
  }

  .territory-layout {
    gap: 55px;
  }

  .level-row {
    grid-template-columns: 42px 1fr 18px;
  }

  .level-row small {
    display: none;
  }

  .territory-levels::before {
    left: 25px;
  }

  .command-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .command-grid {
    grid-template-columns: 1fr;
  }

  .command-grid div,
  .command-grid div:nth-child(even) {
    grid-template-columns: 120px 1fr;
    border-right: 0;
  }

  .protocol-grid {
    grid-template-columns: 1fr;
  }

  .protocol-danger {
    grid-column: auto;
  }

  .final-inner h2 {
    font-size: 50px;
  }

  .loot-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .ash-canvas {
    display: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
/* 실시간 운영 배너 — 관리자 콘솔 설정과 연동 */
.site-ops-banner {
  position: fixed;
  z-index: 18;
  inset: 76px 0 auto;
  min-height: 46px;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 10px max(22px, calc((100vw - 1240px) / 2));
  color: #fff;
  background: linear-gradient(90deg, #8c1f2a, #50151b 64%, #241116);
  border-bottom: 1px solid rgba(255, 255, 255, .13);
  box-shadow: 0 12px 35px rgba(0, 0, 0, .28);
}

.site-ops-banner > span {
  font: 750 8px/1 var(--mono);
  letter-spacing: .14em;
}

.site-ops-banner > strong { font-size: 12px; }

.site-ops-banner > p {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, .76);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-ops-banner > i {
  font-size: 10px;
  font-style: normal;
  font-weight: 750;
}

@media (max-width: 840px) {
  .site-ops-banner {
    inset-block-start: 68px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    padding-inline: 15px;
  }

  .site-ops-banner > span,
  .site-ops-banner > p { display: none; }
}

/* Footer business identity — responsive legal information */
@media (max-width: 960px) {
  .footer-company {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-company-brand {
    align-self: auto;
  }
}

@media (max-width: 720px) {
  .footer-company-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-company-details .footer-company-wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .site-footer {
    padding-block: 36px;
  }

  .footer-inner {
    gap: 30px;
  }

  .footer-company {
    gap: 22px;
    margin-top: 0;
    padding: 23px 19px;
  }

  .footer-company-brand small {
    font-size: 9px;
  }

  .footer-company-brand > a {
    font-size: 19px;
  }

  .footer-company-details {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .footer-company-details .footer-company-wide {
    grid-column: auto;
  }

  .footer-company-details dt {
    font-size: 9px;
  }

  .footer-company-details dd {
    margin-top: 5px;
    font-size: 12.5px;
    line-height: 1.55;
  }
}

/* =========================================================
   실시간 월드 지도 (BlueMap)
   우하단 플로팅 버튼 → 전체화면 모달. iframe 은 열 때 처음 붙인다.
   ========================================================= */

/* 레이어 순서
   50 헤더 · 60 모바일 메뉴 · 70 헤더 브랜드/액션
   99 body::after(비네트) · 100 body::before(그레인) · 999 토스트
   FAB 는 전면 오버레이 위, 토스트 아래여야 한다. */
.map-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 101;
  display: flex;
  align-items: center;
  gap: 0;
  height: 56px;
  padding: 0;
  color: #fff;
  background: var(--red);
  border: 1px solid var(--red-bright);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .55), 6px 6px 0 rgba(240, 68, 68, .16);
  cursor: pointer;
  overflow: hidden;
  transition: background .2s ease, transform .2s var(--ease), box-shadow .2s ease, opacity .2s ease;
}

.map-fab:hover {
  background: var(--red-bright);
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .6), 6px 6px 0 rgba(240, 68, 68, .26);
}

.map-fab:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* 모바일 메뉴(z-index 60)보다 위라 열려 있을 때 메뉴를 가린다. 그동안은 숨긴다. */
body.menu-open .map-fab {
  opacity: 0;
  pointer-events: none;
}

.map-fab-icon {
  flex: none;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
}

.map-fab-icon svg {
  width: 24px;
  height: 24px;
}

/* 라벨은 넓은 화면에서만 펼친다 */
.map-fab-text {
  display: grid;
  gap: 1px;
  max-width: 0;
  padding-right: 0;
  text-align: left;
  white-space: nowrap;
  opacity: 0;
  transition: max-width .28s var(--ease), padding-right .28s var(--ease), opacity .2s ease;
}

.map-fab-text b {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.map-fab-text span {
  color: rgba(255, 255, 255, .72);
  font: 700 9px/1 var(--mono);
  letter-spacing: .12em;
}

@media (hover: hover) and (min-width: 700px) {
  .map-fab:hover .map-fab-text,
  .map-fab:focus-visible .map-fab-text {
    max-width: 190px;
    padding-right: 20px;
    opacity: 1;
  }
}

.map-dialog {
  width: min(1560px, calc(100vw - 32px));
  height: min(920px, calc(100vh - 32px));
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: hidden;
  color: var(--text);
  background: #0b0d0f;
  border: 1px solid #343a41;
}

.map-dialog::backdrop {
  background: rgba(0, 0, 0, .9);
  backdrop-filter: blur(8px);
}

.map-dialog-inner {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
}

.map-dialog .dialog-head {
  gap: 16px;
}

.map-dialog-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.map-open-tab {
  padding: 10px 14px;
  color: #d5dade;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.map-open-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, .09);
  border-color: rgba(255, 255, 255, .3);
}

.map-frame-wrap {
  position: relative;
  min-height: 0;
  background: #05070a;
}

.map-frame-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  color: var(--muted);
  background: #05070a;
  font-size: 13px;
  transition: opacity .3s ease;
}

.map-loading[hidden] {
  display: none;
}

.map-loading::before {
  content: "";
  width: 34px;
  height: 34px;
  border: 2px solid rgba(240, 68, 68, .25);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: map-spin .8s linear infinite;
}

@keyframes map-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .map-loading::before { animation-duration: 3s; }
  .map-fab { transition: background .2s ease; }
  .map-fab:hover { transform: none; }
}

@media (max-width: 860px) {
  .map-fab {
    /* 아이폰 홈 인디케이터·주소창 영역에 가려지지 않도록 안전영역을 더한다 */
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, calc(env(safe-area-inset-bottom) + 8px));
    height: 50px;
  }

  .map-fab-icon {
    width: 50px;
    height: 50px;
  }

  .map-dialog {
    width: 100vw;
    height: 100dvh;
    border: none;
  }

  .map-dialog .dialog-head {
    padding: 14px 16px;
  }

  .map-dialog .dialog-head h2 {
    font-size: 16px;
  }

  .map-open-tab {
    padding: 9px 11px;
    font-size: 11px;
  }
}
