:root {
  color-scheme: dark;
  --bg: #0c0c0c;
  --raised: #141414;
  --raised-2: #1b1b1b;
  --ghost: #242424;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #ececec;
  --dim: #a3a3a3;
  --mute: #7c7c7c;
  --white: #fff;
  --map-empty: #2e2e2e;
  --map-done: #565656;
  --map-has: #7d7d7d;
  --map-hover: #b5b5b5;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
main { flex: 1; outline: none; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
[hidden] { display: none !important; }

.top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  transition: background 0.25s, backdrop-filter 0.25s, box-shadow 0.25s;
}
.top.scrolled {
  background: rgba(12, 12, 12, 0.62);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 1px 0 var(--line);
}
.top-row {
  max-width: 88rem;
  margin: 0 auto;
  padding: 0.65rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 2rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; font-size: 0.9rem; white-space: nowrap; }
.brand img { height: 30px; width: auto; }
.top-nav { display: flex; align-items: center; gap: 0.35rem; flex: 1; font-size: 0.9rem; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.75rem;
  border-radius: 0.5rem;
  color: #c9c9c9;
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover, .nav-link.on, .drop:hover > .drop-btn, .drop.open > .drop-btn { color: var(--white); }
.chev { width: 0.85rem; height: 0.85rem; transition: transform 0.18s; }
.drop { position: relative; }
.drop-btn { background: none; border: 0; }
.drop:hover .chev, .drop.open .chev { transform: rotate(180deg); }
.drop-panel {
  position: absolute;
  top: 100%;
  left: 0;
  width: 19rem;
  margin-top: 0.4rem;
  padding: 0.85rem;
  background: rgba(20, 20, 20, 0.92);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.16s, transform 0.16s, visibility 0.16s;
}
/* Keeps the menu open while the pointer crosses the gap under the button. */
.drop-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -0.6rem; height: 0.6rem; }
.drop.open > .drop-panel { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) {
  .drop:hover > .drop-panel { opacity: 1; visibility: visible; transform: none; }
}
.drop-wide { width: 34rem; }
.drop-right .drop-panel { left: auto; right: 0; }
.drop-label { font-size: 0.8rem; color: var(--dim); padding: 0.1rem 0.5rem 0.4rem; }
.drop-grid + .drop-label { margin-top: 0.6rem; }
.drop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.15rem; }
.drop-grid.one { grid-template-columns: minmax(0, 1fr); }
.drop-item { display: flex; gap: 0.7rem; padding: 0.55rem 0.5rem; border-radius: 0.6rem; transition: background 0.14s; }
.drop-item:hover { background: rgba(255, 255, 255, 0.06); }
.drop-item b { display: block; font-size: 0.875rem; font-weight: 600; color: var(--white); line-height: 1.25; }
.drop-item small { display: block; margin-top: 0.15rem; font-size: 0.775rem; color: var(--dim); line-height: 1.3; }
.drop-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.06);
  color: #dcdcdc;
}
.drop-icon svg { width: 1.1rem; height: 1.1rem; }
.top-user { margin-left: auto; display: flex; align-items: center; }
.signin { color: var(--white); font-weight: 600; }
.avatar-btn { display: block; padding: 0; border-radius: 50%; overflow: hidden; width: 2rem; height: 2rem; background: var(--raised-2); }
.avatar-btn img { width: 100%; height: 100%; object-fit: cover; }
.account-panel { width: 15rem; padding: 0.5rem; }
.account-head { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem; margin-bottom: 0.2rem; overflow: hidden; }
.account-head img { width: 1.9rem; height: 1.9rem; border-radius: 50%; flex: none; }
.account-head b { font-size: 0.875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-item { display: flex; align-items: center; gap: 0.65rem; padding: 0.55rem 0.6rem; border-radius: 0.5rem; font-size: 0.875rem; font-weight: 500; color: #e2e2e2; transition: background 0.14s; }
.account-item svg { width: 1rem; height: 1rem; flex: none; }
.account-item:hover { background: rgba(255, 255, 255, 0.07); }
.account-item.danger { color: #f0a6a6; margin-top: 0.2rem; }
.account-item.danger:hover { background: rgba(200, 60, 60, 0.22); }
.menu-btn { display: none; margin-left: auto; padding: 0.35rem; color: var(--white); }
.menu-btn svg { display: block; width: 1.5rem; height: 1.5rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: 0.4rem;
  background: var(--white);
  color: #0c0c0c;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.15s;
}
.btn:hover { background: #d4d4d4; }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn.ghost:hover { background: var(--raised-2); }
.btn.small { padding: 0.35rem 0.7rem; font-size: 0.8rem; }
.btn.danger { background: transparent; color: #f0b4b4; box-shadow: inset 0 0 0 1px rgba(240, 180, 180, 0.4); }

.shell { max-width: 88rem; margin: 0 auto; padding: 1.75rem var(--gutter) 4rem; }
.shell.pad-top { padding-top: 7rem; min-height: 60vh; }
.shell.narrow > * { max-width: 46rem; }
h1, h2, h3 { line-height: 1.15; }
.page-title { font-size: clamp(1.8rem, 4.5vw, 3rem); font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; margin-bottom: 0.5rem; }
.page-sub { color: var(--dim); max-width: 42rem; margin-bottom: 2rem; }
.section-title { font-size: 1.05rem; font-weight: 700; margin: 2.25rem 0 0.9rem; }
.muted { color: var(--dim); }
.note { font-size: 0.875rem; color: var(--dim); }

.hero {
  position: relative;
  min-height: min(62vh, 29rem);
  display: flex;
  align-items: flex-end;
  padding: 6rem 0 clamp(2rem, 4vw, 3rem);
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 45%;
  pointer-events: none;
  user-select: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 12, 12, 0.6) 0%, rgba(12, 12, 12, 0.42) 40%, rgba(12, 12, 12, 0.78) 72%, var(--bg) 100%),
    linear-gradient(90deg, rgba(12, 12, 12, 0.55) 0%, rgba(12, 12, 12, 0) 75%);
  pointer-events: none;
}
.hero-mark {
  position: absolute;
  z-index: 1;
  right: var(--gutter);
  bottom: 1.25rem;
  width: clamp(2.25rem, 4.5vw, 3.75rem);
  height: auto;
  opacity: 0.4;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 88rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  padding: 0 var(--gutter);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}
.hero h1 { font-size: clamp(2.8rem, 7vw, 5.75rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; }
.hero h1 em { font-style: normal; color: #c2c2c2; }
.hero-side p { color: #d0d0d0; font-size: 1.05rem; margin-bottom: 1.25rem; max-width: 30rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
.stats.single { grid-template-columns: minmax(0, 1fr); }
.stats.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { background: var(--raised); border: 1px solid var(--line); border-radius: 0.7rem; padding: 1.1rem 1.25rem; }
.stat strong { display: block; font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 0.85rem; color: var(--dim); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.steps > div { background: var(--raised); border: 1px solid var(--line); border-radius: 0.7rem; padding: 1.25rem; }
.steps h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.steps p { color: var(--dim); font-size: 0.925rem; }
.steps b { display: block; color: #6a6a6a; font-size: 2rem; font-weight: 900; line-height: 1; margin-bottom: 0.5rem; }

.pack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr)); gap: 1rem; }
.pack { display: flex; flex-direction: column; background: var(--raised); border: 1px solid var(--line); border-radius: 0.7rem; overflow: hidden; transition: background 0.15s, transform 0.15s, border-color 0.15s; }
.pack:hover { background: var(--raised-2); border-color: var(--line-strong); transform: translateY(-2px); }
.pack-art { position: relative; display: block; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #222, #161616); overflow: hidden; }
.pack-art img { width: 100%; height: 100%; object-fit: cover; }
.pack-word { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.5rem; color: #3f3f3f; text-transform: uppercase; }
.pack-body { padding: 0.8rem 0.9rem 0.9rem; display: flex; flex-direction: column; gap: 0.2rem; flex: 1; }
.pack-body h3 { font-size: 0.975rem; font-weight: 700; }
.pack-meta { font-size: 0.8rem; color: var(--dim); }
.pack-price { margin-top: auto; padding-top: 0.45rem; font-weight: 800; font-size: 0.95rem; }
.side .pack-grid { grid-template-columns: 1fr; }
.side .pack { flex-direction: row; }
.side .pack-art { width: 6.5rem; flex: none; aspect-ratio: auto; }
.side .pack-word { font-size: 0.75rem; }

.empty { padding: 1.75rem 1.25rem; background: var(--raised); border: 1px solid var(--line); border-radius: 0.7rem; color: var(--dim); font-size: 0.925rem; }
.empty .btn { margin-top: 0.85rem; }

.map-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(19rem, 24rem); gap: 1.5rem; align-items: start; }
.map-box { position: relative; background: var(--raised); border: 1px solid var(--line); border-radius: 0.7rem; overflow: hidden; }
.map-box svg { display: block; width: 100%; height: auto; touch-action: manipulation; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-size: 0.875rem; color: var(--dim); margin-bottom: 0.75rem; min-height: 1.6rem; }
.crumbs a:hover { color: var(--white); }
.crumbs b { color: var(--white); font-weight: 700; }
.legend { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.8rem; color: var(--dim); margin-top: 0.7rem; }
.legend i { display: inline-block; width: 0.8rem; height: 0.8rem; border-radius: 2px; margin-right: 0.4rem; vertical-align: -1px; }
.st, .co { stroke: var(--bg); stroke-width: 0.8; vector-effect: non-scaling-stroke; cursor: pointer; transition: fill 0.15s, opacity 0.25s; outline: none; }
.st { fill: var(--map-empty); }
.st.done { fill: var(--map-done); }
.st.has { fill: var(--map-has); }
.st.dim { opacity: 0.35; }
.st.off { opacity: 0; pointer-events: none; }
.co { fill: #424242; stroke-width: 0.6; animation: co-in 0.3s ease both; }
.co.has { fill: var(--map-has); }
.co:hover, .co:focus-visible { fill: var(--map-hover); }
.co.sel { fill: var(--white); }
@keyframes co-in { from { opacity: 0; } to { opacity: 1; } }
.hover-shape {
  fill: var(--map-hover);
  stroke: var(--white);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.14s ease-out;
  paint-order: stroke;
}
.tip {
  position: fixed;
  z-index: 60;
  padding: 0.3rem 0.6rem;
  background: var(--white);
  color: #0c0c0c;
  border-radius: 0.3rem;
  font-size: 0.8rem;
  font-weight: 700;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 12px));
  white-space: nowrap;
}
.side h2 { font-size: 1.35rem; font-weight: 800; margin-bottom: 0.25rem; }
.side .note { margin-bottom: 1rem; }
.side-group { margin-top: 1.25rem; }
.side-group > h3 { font-size: 0.8rem; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.5rem; }
.chip-list { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip { padding: 0.3rem 0.65rem; border-radius: 99px; background: var(--raised-2); font-size: 0.825rem; }
.chip:hover { background: #2c2c2c; }

.form { display: grid; gap: 1rem; }
.field { display: grid; gap: 0.3rem; font-size: 0.875rem; font-weight: 600; }
.field small { font-weight: 400; color: var(--dim); }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--raised);
  border: 1px solid var(--line-strong);
  border-radius: 0.4rem;
  padding: 0.6rem 0.7rem;
  font-weight: 400;
  font-size: 1rem;
}
.field textarea { min-height: 7rem; resize: vertical; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form-error { color: #f0b4b4; font-size: 0.875rem; min-height: 1.25rem; }
.form-ok { color: #cfcfcf; font-size: 0.875rem; min-height: 1.25rem; }
.filters { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.25rem; }
.filters .field { min-width: 11rem; flex: 1 1 11rem; max-width: 18rem; }

.detail { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(18rem, 1fr); gap: 2rem; align-items: start; }
.gallery { display: grid; gap: 0.6rem; }
.gallery .pack-art { border-radius: 0.5rem; aspect-ratio: 16 / 10; }
.gallery .pack-art img { object-fit: contain; }
.gallery .pack-word { font-size: clamp(2rem, 6vw, 4rem); }
.buy { background: var(--raised); border: 1px solid var(--line); border-radius: 0.7rem; padding: 1.25rem; }
.buy .price { font-size: 1.8rem; font-weight: 800; line-height: 1.1; margin-bottom: 0.25rem; }
.buy .form { margin-top: 1rem; }
.pay-note { background: var(--raised-2); border-radius: 0.4rem; padding: 0.75rem 0.85rem; font-size: 0.875rem; color: #c8c8c8; white-space: pre-wrap; }

.order-card { display: grid; gap: 0.55rem; background: var(--raised); border: 1px solid var(--line); border-radius: 0.7rem; padding: 1rem 1.1rem; transition: background 0.15s; }
a.order-card:hover { background: var(--raised-2); }
.order-list { display: grid; gap: 0.6rem; }
.order-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; font-weight: 700; }
.order-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; font-size: 0.8rem; }
.tag { padding: 0.12rem 0.55rem; border-radius: 99px; background: #2a2a2a; color: #dcdcdc; font-weight: 600; white-space: nowrap; }
.tag.solid { background: var(--white); color: #0c0c0c; }
.tag.outline { background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.notice:has(.spin) { display: flex; align-items: center; gap: 0.5rem; }
.notice { background: var(--raised-2); border-radius: 0.5rem; padding: 0.7rem 0.9rem; font-size: 0.9rem; }
.notice.bad { color: #f4c4c4; background: rgba(170, 50, 50, 0.16); }
.spin { width: 0.9rem; height: 0.9rem; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--white); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.spot { font-size: 0.9rem; color: var(--dim); }
.spot b { color: var(--white); font-size: 1.05rem; }

.ticket { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(16rem, 1fr); gap: 1.5rem; align-items: start; }
.chat { background: var(--raised); border-radius: 0.5rem; padding: 1rem; display: grid; gap: 0.75rem; }
.chat-log { display: grid; gap: 0.6rem; max-height: 26rem; overflow-y: auto; }
.msg { max-width: 85%; padding: 0.5rem 0.75rem; border-radius: 0.5rem; background: var(--raised-2); font-size: 0.925rem; overflow-wrap: anywhere; white-space: pre-wrap; }
.msg.me { justify-self: end; background: #2c2c2c; }
.msg small { display: block; color: var(--dim); font-size: 0.75rem; margin-bottom: 0.1rem; }
.facts { display: grid; gap: 0.5rem; font-size: 0.9rem; }
.facts div { display: flex; justify-content: space-between; gap: 1rem; }
.facts dt { color: var(--dim); }
.facts dd { text-align: right; overflow-wrap: anywhere; }

.tabs { display: flex; gap: 0.4rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.tabs button { padding: 0.4rem 0.9rem; border-radius: 99px; background: var(--raised); font-size: 0.875rem; color: var(--dim); }
.tabs button.on { background: var(--white); color: #0c0c0c; font-weight: 700; }
.manage-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 2rem; align-items: start; }
.image-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr)); grid-auto-rows: 5.5rem; gap: 0.4rem; max-height: 15rem; overflow-y: auto; padding: 0.15rem; }
.image-pick button { border-radius: 0.3rem; overflow: hidden; background: #000; opacity: 0.65; }
.image-pick button img { width: 100%; height: 100%; object-fit: cover; }
.image-pick button:hover { opacity: 1; }
.image-pick button.on { opacity: 1; outline: 2px solid var(--white); outline-offset: 1px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.admin-controls { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: end; }
.admin-controls .field { font-size: 0.75rem; }
.admin-controls select, .admin-controls input { padding: 0.35rem 0.5rem; font-size: 0.875rem; width: auto; max-width: 9rem; }
a.order-head:hover { color: var(--white); text-decoration: underline; }

.page-banner {
  position: relative;
  height: clamp(13rem, 26vw, 16rem);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 0 0 1.5rem;
}
.page-banner-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 42%; pointer-events: none; user-select: none; }
.page-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 12, 12, 0.62) 0%, rgba(12, 12, 12, 0.6) 45%, var(--bg) 100%); pointer-events: none; }
.page-banner-mark { position: absolute; z-index: 1; right: var(--gutter); bottom: 1.25rem; width: 2.5rem; height: auto; opacity: 0.4; pointer-events: none; }
.page-banner-inner { position: relative; z-index: 1; width: 100%; max-width: 88rem; margin: 0 auto; padding: 0 calc(var(--gutter) + 3rem) 0 var(--gutter); }
.page-banner h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 800; letter-spacing: -0.02em; }
.page-banner p { color: #d4d4d4; margin-top: 0.3rem; max-width: 44rem; }

.home { display: grid; gap: clamp(2rem, 4vw, 3rem); padding-top: 0; }
.home-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem; margin-bottom: 0.9rem; }
.home-head h2 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); font-weight: 800; letter-spacing: -0.01em; }
.home-head a { font-size: 0.9rem; color: var(--dim); }
.home-head a:hover { color: var(--white); }
.type-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.type-tile { position: relative; display: block; height: clamp(12rem, 22vw, 17rem); border: 1px solid var(--line); border-radius: 0.8rem; overflow: hidden; background: linear-gradient(135deg, #252525, #171717); }
.type-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.type-tile:hover img { transform: scale(1.04); }
.type-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 12, 12, 0) 35%, rgba(12, 12, 12, 0.9) 100%); }
.type-tile span { position: absolute; z-index: 1; left: 1.15rem; right: 1.15rem; bottom: 1rem; }
.type-tile b { display: block; font-size: 1.35rem; font-weight: 800; }
.type-tile small { color: #d4d4d4; font-size: 0.9rem; }
.roadmap-band, .cta-band { display: grid; align-items: center; gap: 1.5rem; background: var(--raised); border: 1px solid var(--line); border-radius: 0.9rem; padding: clamp(1.25rem, 3vw, 2.25rem); }
.roadmap-band { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.roadmap-band h2, .cta-band h2 { font-size: clamp(1.35rem, 2.8vw, 1.9rem); font-weight: 800; letter-spacing: -0.01em; margin-bottom: 0.4rem; }
.roadmap-band p, .cta-band p { color: var(--dim); }
.meter { height: 0.5rem; margin: 1rem 0 1.15rem; background: var(--raised-2); border-radius: 99px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--white); border-radius: 99px; }
.mini-map { display: block; width: 100%; height: auto; }
.mini-map path { fill: #2e2e2e; stroke: var(--raised); stroke-width: 1; transition: fill 0.15s; }
.mini-map path.done { fill: #9a9a9a; }
.mini-map-link:hover path { fill: #383838; }
.mini-map-link:hover path.done { fill: #bdbdbd; }
.cta-band { grid-template-columns: minmax(0, 1fr) auto; }

.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr)); gap: 0.6rem; }
.home-work { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.work-tile { display: block; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--line); border-radius: 0.6rem; background: #0a0a0a; }
.work-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s; }
.work-tile img.pixel { image-rendering: pixelated; }
.work-tile:hover img { transform: scale(1.04); }
.lightbox { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 1.5rem; background: rgba(0, 0, 0, 0.9); }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: 0.5rem; }
.lightbox button { position: absolute; top: 1rem; right: 1rem; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--raised-2); color: var(--white); font-size: 1rem; }

.profile-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 0.75rem; margin-bottom: 1.25rem; }
.profile, .server-card { display: flex; align-items: center; gap: 0.9rem; background: var(--raised); border: 1px solid var(--line); border-radius: 0.8rem; padding: 0.9rem 1.1rem; min-width: 0; }
.profile img { width: 4rem; height: 4rem; border-radius: 50%; object-fit: cover; flex: none; }
.profile > div { flex: 1; min-width: 0; }
.profile h2 { font-size: 1.15rem; font-weight: 800; }
.server-card img { width: 2.75rem; height: 2.75rem; border-radius: 0.6rem; flex: none; }
.server-card span { flex: 1; min-width: 0; }
.server-card b { display: block; font-size: 0.95rem; }
.server-card small { color: var(--dim); font-size: 0.8rem; }
.server-card small i { font-style: normal; color: var(--text); font-weight: 600; }
.server-card em { font-style: normal; font-size: 0.8rem; font-weight: 700; padding: 0.3rem 0.8rem; border-radius: 99px; background: var(--raised-2); }
.server-card:hover { border-color: var(--line-strong); }
.tabs a { padding: 0.4rem 0.95rem; border-radius: 99px; background: var(--raised); border: 1px solid var(--line); font-size: 0.875rem; font-weight: 600; color: var(--dim); }
.tabs a:hover { color: var(--white); }
.tabs a.on { background: var(--white); border-color: var(--white); color: #0c0c0c; }
.segmented { display: inline-flex; gap: 0.25rem; padding: 0.25rem; margin-bottom: 1rem; background: var(--raised); border: 1px solid var(--line); border-radius: 0.6rem; max-width: 100%; }
.segmented button { padding: 0.35rem 0.85rem; border-radius: 0.4rem; font-size: 0.85rem; font-weight: 600; color: var(--dim); }
.segmented button.on { background: var(--white); color: #0c0c0c; }
.page-note { color: var(--dim); margin-bottom: 1rem; }
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.plan { display: grid; gap: 0.9rem; align-content: start; background: var(--raised); border: 1px solid var(--line); border-radius: 0.8rem; padding: 1.35rem; }
.plan h3 { font-size: 1.2rem; font-weight: 800; }
.plan ul { list-style: none; display: grid; }
.plan li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.plan li b { white-space: nowrap; }
.reviews-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 1rem; }
.reviews-head strong { font-size: 1.8rem; font-weight: 800; margin-right: 0.5rem; }
.reviews-head .note { display: block; }
.reviews-head + .notice, .notice + .notice, .notice + .review-grid { margin-bottom: 1rem; }
.stars { color: var(--white); letter-spacing: 0.06em; font-size: 0.9rem; }
.stars i { font-style: normal; color: #3d3d3d; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(19rem, 100%), 1fr)); gap: 0.75rem; align-items: start; }
.review-card { display: grid; gap: 0.6rem; background: var(--raised); border: 1px solid var(--line); border-radius: 0.8rem; padding: 1.1rem; }
.review-card header { display: flex; align-items: center; gap: 0.7rem; }
.review-card header img { width: 2.5rem; height: 2.5rem; border-radius: 50%; object-fit: cover; flex: none; }
.review-card header b { display: block; font-size: 0.95rem; }
.review-card p { color: #dcdcdc; font-size: 0.925rem; overflow-wrap: anywhere; }
.review-card time { color: var(--mute); font-size: 0.78rem; }
.dialog-wrap { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 1rem; background: rgba(0, 0, 0, 0.75); }
.dialog { display: grid; gap: 0.85rem; width: min(30rem, 100%); background: var(--raised); border: 1px solid var(--line-strong); border-radius: 0.9rem; padding: 1.35rem; }
.dialog h2 { font-size: 1.2rem; font-weight: 800; }
.star-pick { display: flex; gap: 0.2rem; }
.star-pick button { font-size: 1.6rem; line-height: 1; color: #3d3d3d; }
.star-pick button.on { color: var(--white); }
.gallery .pack-art { border: 1px solid var(--line); }

.perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; margin-top: 1.5rem; max-width: none !important; }
.perks div { background: var(--raised); border: 1px solid var(--line); border-radius: 0.7rem; padding: 1.15rem; }
.perks b { display: block; margin-bottom: 0.25rem; }
.perks p { color: var(--dim); font-size: 0.9rem; }

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 1.25rem var(--gutter);
  border-top: 1px solid var(--line);
  font-size: 0.825rem;
  color: var(--mute);
}
.foot-links { display: flex; gap: 1rem; }
.foot a:hover { color: var(--white); }

@media (max-width: 960px) {
  .map-layout, .detail, .ticket, .manage-grid { grid-template-columns: minmax(0, 1fr); }
  .side .pack-grid { grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr)); }
}
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .top-row { flex-wrap: wrap; gap: 0.5rem; }
  .top:has(.top-nav.open) { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .top-nav { display: none; flex: 0 0 100%; width: 100%; flex-direction: column; align-items: stretch; gap: 0.1rem; padding-bottom: 0.6rem; max-height: calc(100vh - 4rem); overflow-y: auto; font-size: 1rem; }
  .top-nav.open { display: flex; }
  .nav-link { width: 100%; justify-content: space-between; padding: 0.6rem 0.25rem; }
  .drop-panel, .drop-wide, .account-panel {
    position: static;
    display: none;
    width: 100%;
    margin: 0 0 0.4rem;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: var(--raised);
    box-shadow: none;
  }
  .drop.open > .drop-panel { display: block; }
  .drop-grid { grid-template-columns: minmax(0, 1fr); }
  .top-user { margin: 0.4rem 0 0; padding: 0 0.25rem; }
  .drop-right { width: 100%; }
  .avatar-btn { display: block; }
  .hero { min-height: 25rem; padding-top: 6rem; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .hero-mark { top: 5rem; right: var(--gutter); bottom: auto; }
  .hero-photo { object-position: 62% 40%; }
  .steps, .roadmap-band, .cta-band, .profile-row, .price-grid, .perks { grid-template-columns: minmax(0, 1fr); }
  .home-work { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .type-grid { grid-template-columns: minmax(0, 1fr); }
  .profile { flex-wrap: wrap; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .filters .field { max-width: none; }
  .stat { padding: 0.8rem 0.75rem; }
  .stats.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .side .pack { flex-direction: row; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Account button: avatar and Discord name in a see-through gray box. */
.account-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: auto;
  height: auto;
  max-width: 13rem;
  padding: 0.28rem 0.7rem 0.28rem 0.3rem;
  border-radius: 0.65rem;
  background: rgba(150, 150, 150, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.15s;
}
.account-btn:hover, .drop.open > .account-btn { background: rgba(170, 170, 170, 0.34); }
.account-btn img { width: 1.75rem; height: 1.75rem; border-radius: 50%; object-fit: cover; flex: none; }
.account-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Custom dropdowns, see studio-select.js. */
.cs { position: relative; display: block; width: 100%; min-width: 0; font-weight: 400; }
.cs-native { position: absolute; left: 0; bottom: 0; width: 100% !important; height: 100% !important; padding: 0 !important; margin: 0; border: 0 !important; opacity: 0; pointer-events: none; }
.cs-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 0.7rem;
  background: var(--raised);
  border: 1px solid var(--line-strong);
  border-radius: 0.55rem;
  color: var(--text);
  font-size: 1rem;
  font-weight: 400;
  text-align: left;
  transition: border-color 0.14s, background 0.14s;
}
.cs-btn:hover:not(:disabled) { background: var(--raised-2); }
.cs.open .cs-btn { border-color: rgba(255, 255, 255, 0.5); }
.cs-btn:disabled { opacity: 0.5; cursor: default; }
.cs.placeholder .cs-label { color: var(--dim); }
.cs-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-chev { flex: none; width: 1rem; height: 1rem; color: var(--dim); transition: transform 0.16s; }
.cs.open .cs-chev { transform: rotate(180deg); }
.cs-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  min-width: 11rem;
  display: block;
  padding: 0.35rem;
  background: rgba(24, 24, 24, 0.97);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line-strong);
  border-radius: 0.65rem;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
  animation: cs-in 0.12s ease-out;
}
.cs.up .cs-panel { top: auto; bottom: calc(100% + 0.35rem); }
@keyframes cs-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.cs-search { display: block; width: 100%; margin-bottom: 0.35rem; padding: 0.45rem 0.6rem !important; background: var(--bg) !important; border: 1px solid var(--line) !important; border-radius: 0.4rem !important; font-size: 0.9rem !important; font-weight: 400; color: var(--text); }
.cs-search[hidden] { display: none; }
.cs-list { list-style: none; max-height: 15rem; overflow-y: auto; }
.cs-option { padding: 0.45rem 0.6rem; border-radius: 0.4rem; font-size: 0.925rem; font-weight: 500; color: #dcdcdc; cursor: pointer; overflow-wrap: anywhere; }
.cs-option.active { background: rgba(255, 255, 255, 0.09); color: var(--white); }
.cs-option[aria-selected="true"] { background: var(--white); color: #0c0c0c; }
.cs-option[aria-disabled="true"] { opacity: 0.4; cursor: not-allowed; }
.cs-none { padding: 0.5rem 0.6rem; font-size: 0.875rem; color: var(--dim); }
.assign-row .cs-btn { min-height: 2.25rem; padding: 0.35rem 0.55rem; font-size: 0.875rem; }

.busy-note { position: fixed; z-index: 60; left: 50%; bottom: 1.25rem; transform: translateX(-50%); width: min(30rem, calc(100vw - 2rem)); padding: 0.7rem 1rem; background: var(--raised-2); border: 1px solid var(--line-strong); border-radius: 0.6rem; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); font-size: 0.9rem; text-align: center; }

/* Page changes inside the site, see route() in studio.js. */
#page { transition: opacity 0.15s ease, transform 0.15s ease; }
#page.page-leave { opacity: 0; transform: translateY(-6px); }
#page.page-enter { animation: page-in 0.32s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
@keyframes page-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Fades between full page loads too, like going to the admin panel. */
@view-transition { navigation: auto; }

/* Homepage: five packages across, so the row always fills the page. */
.home-packs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .home-packs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .home-packs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .home-packs { grid-template-columns: minmax(0, 1fr); } }
