/* ==========================================================================
   Henry - game-hub style (layout modeled on craftm.kr):
   background-image hero, notices panel, icon card grid, company footer.
   Dark theme, green accent, Pretendard.
   ========================================================================== */

@import url("https://cdn.jsdelivr.net/npm/galmuri/dist/galmuri.css");

:root {
  --bg:       #0a0a0a;
  --panel:    rgba(18, 18, 18, 0.72);
  --panel-2:  rgba(26, 26, 26, 0.88);
  --border:   rgba(255, 255, 255, 0.08);
  --border-2: rgba(163, 230, 53, 0.45);
  --green:    #a3e635;
  --green-br: #bef264;
  --green-dk: #4d7c0f;
  --text:     #f0f0f0;
  --muted:    #8f8f8f;
  --muted2:   #5c5c5c;
  --maxw:     1280px;
  --font: "Galmuri11", monospace;
}

* { box-sizing: border-box; }
.sprite { display: none; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--bg);
  line-height: 1.6; min-height: 100vh; -webkit-font-smoothing: antialiased;
  overflow-x: hidden; letter-spacing: 0;
  transition: opacity .2s ease;
}
body.lang-switching { opacity: 0; }
a { color: inherit; text-decoration: none; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ===================== Header ===================== */
.header { position: sticky; top: 0; z-index: 50; background: rgba(10, 13, 11, 0.82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.header-row { position: relative; max-width: none; margin: 0; padding: 14px 30px; display: flex; align-items: center; gap: 16px; }
.header-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.ticker { display: inline-flex; align-items: center; gap: 10px; max-width: 460px; padding: 6px 14px 6px 6px;
  border: 1px solid var(--border); border-radius: 999px; background: rgba(255,255,255,.04); transition: .14s; }
.ticker:hover { border-color: var(--border-2); background: rgba(255,255,255,.07); }
.tk-badge { font-size: 11px; font-weight: 700; color: #0a0a0a; background: var(--green); padding: 3px 10px; border-radius: 999px; flex: none; }
.tk-text { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 360px; transition: opacity .25s, transform .25s; }
.tk-text.tk-out { opacity: 0; transform: translateY(-5px); }
@media (max-width: 880px) { .header-center { display: none; } }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: 0.5px; white-space: nowrap; }
.brand .mark { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(145deg, var(--green), var(--green-dk)); box-shadow: 0 2px 10px rgba(163,230,53,.35); }
.brand .mark svg { width: 16px; height: 16px; color: #0a0a0a; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { font-size: 14px; font-weight: 600; color: var(--muted); padding: 8px 12px; border-radius: 8px; transition: .14s; }
.nav a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.lang { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--border); border-radius: 8px; margin-left: 4px; }
.lang button { font: 600 12.5px var(--font); color: var(--muted); background: transparent; border: 0; padding: 5px 10px; border-radius: 6px; cursor: pointer; transition: .14s; }
.lang button:hover { color: var(--text); }
.lang button.active { color: #0a0a0a; background: var(--green); }

/* ===================== Auth (Discord login) ===================== */
.auth { display: inline-flex; align-items: center; gap: 8px; }
.dc-login { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700;
  color: #fff; background: #5865F2; border: 0; border-radius: 9px; padding: 8px 14px; cursor: pointer; transition: .14s; }
.dc-login:hover { background: #4752c4; }
.dc-login svg { width: 18px; height: 18px; }
.auth-user { position: relative; }
.auth-btn { display: inline-flex; align-items: center; gap: 9px; background: transparent; border: 1px solid var(--border);
  border-radius: 999px; padding: 4px 12px 4px 4px; cursor: pointer; color: var(--text); font: 600 13.5px var(--font); transition: .14s; }
.auth-btn:hover { border-color: var(--border-2); background: rgba(255,255,255,.04); }
.auth-btn img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: #222; }
.auth-btn .nm { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-btn .caret { color: var(--muted); font-size: 10px; }
.auth-menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 170px; background: var(--panel-2);
  border: 1px solid var(--border); border-radius: 10px; padding: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.5); display: none; z-index: 60; }
.auth-menu.open { display: block; }
.auth-menu .mi { display: block; width: 100%; text-align: left; background: transparent; border: 0; color: var(--text);
  font: 600 13px var(--font); padding: 9px 12px; border-radius: 7px; cursor: pointer; }
.auth-menu .mi:hover { background: rgba(255,255,255,.06); color: var(--green-br); }
.auth-menu .mu { padding: 9px 12px 10px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.auth-menu .mu b { display: block; font-size: 13px; }
.auth-menu .mu span { font-size: 11px; color: var(--muted); }

/* ===================== Popup modal ===================== */
.modal-overlay { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.6); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); padding: 20px;
  animation: modalIn .18s ease; }
@keyframes modalIn { from { opacity: 0; } to { opacity: 1; } }
.modal-box { background: var(--panel-2); border: 1px solid var(--border-2); border-radius: 16px;
  padding: 30px 28px; max-width: 360px; width: 100%; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,.6); }
.modal-box .ic { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(163,230,53,.14); border: 1px solid var(--border-2); color: var(--green-br); }
.modal-box .ic svg { width: 28px; height: 28px; }
.modal-box h3 { font-size: 17px; font-weight: 700; margin: 0 0 8px; }
.modal-box p { font-size: 13px; color: var(--muted); margin: 0 0 22px; line-height: 1.6; }
.modal-box .modal-ok { width: 100%; }
.modal-box .modal-ok + .btn-ghost { display: block; width: fit-content; margin: 10px auto 0; }

/* ===================== Shop / purchase modal ===================== */
.shop-box { max-width: 410px; text-align: left; }
.shop-title { text-align: center; margin: 0 0 16px; font-size: 17px; }
.pform .fl { display: block; font-size: 12px; color: var(--muted); margin: 12px 0 5px; font-weight: 600; }
.pform .fi { width: 100%; background: #141414; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; color: var(--text); font-family: var(--font); font-size: 14px; }
.pform .fi:focus { outline: none; border-color: var(--green); }
.pm-group { display: flex; flex-direction: column; gap: 8px; }
.pm { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; cursor: pointer; font-size: 13px; }
.pm input, .chk input { accent-color: var(--green); }
.chk { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; font-size: 13px; color: var(--text); cursor: pointer; }
.chk input { width: 16px; height: 16px; flex: none; }
.chk a { color: var(--green-br); text-decoration: underline; }
.sp-err { color: #e06464; font-size: 12.5px; min-height: 15px; margin: 10px 0 0; }
.pform .modal-ok { margin-top: 16px; }
.pform .modal-ok:disabled { opacity: .5; cursor: not-allowed; }
.pay-sub { font-size: 13px; color: var(--muted); text-align: center; margin: 0 0 14px; }
.qr { display: block; width: 180px; height: 180px; margin: 0 auto 14px; border-radius: 10px; background: #fff; padding: 8px; }
.pay-amt { text-align: center; font-size: 20px; font-weight: 800; margin-bottom: 12px; }
.pay-amt small { font-size: 13px; color: var(--muted); font-weight: 600; }
.pay-row { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; }
.pay-row code, .pay-row span { flex: 1; min-width: 0; font-size: 12px; word-break: break-all; color: var(--text); }
.copy { flex: none; background: var(--green); color: #0a0a0a; border: 0; border-radius: 6px; padding: 5px 10px; font: 600 12px var(--font); cursor: pointer; }
.pay-info { font-size: 12.5px; color: var(--muted); text-align: center; margin-bottom: 6px; }
.pay-wait { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: var(--green-br); margin: 14px 0; }
.spin { width: 14px; height: 14px; border: 2px solid rgba(163,230,53,.3); border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pay-note { font-size: 11.5px; color: var(--muted2); text-align: center; margin: 8px 0 0; }
.items { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.items code { display: block; background: #141414; border: 1px solid var(--border-2); border-radius: 8px; padding: 12px; font-size: 13px; color: var(--green-br); word-break: break-all; }
.pk-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.pk-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; font-size: 13px; }

/* ===================== Hero ===================== */
.hero {
  position: relative; overflow: hidden; text-align: center; padding: 124px 20px 108px;
  background: radial-gradient(130% 100% at 50% -10%, #141a08 0%, #0d0d0b 55%, #0a0a0a 100%);
  border-bottom: 1px solid var(--border);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(72% 64% at 50% 44%, transparent 38%, rgba(10,13,11,.58) 100%); }
.hero-inner { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(32px, 6vw, 54px); font-weight: 800; margin: 0 0 16px; letter-spacing: 0.5px;
  text-shadow: 0 2px 20px rgba(0,0,0,.6); }
.hero h1 .g { color: var(--green-br); }
.hero p { font-size: clamp(14px, 2.4vw, 17px); color: #cfd6cf; max-width: 560px; margin: 0 auto 28px; line-height: 1.7; text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.hero-cta { display: inline-flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* ===================== Buttons ===================== */
.btn { font: 700 14px var(--font); color: #0a0a0a; background: var(--green); border: 0;
  padding: 12px 22px; border-radius: 10px; cursor: pointer; transition: .14s; display: inline-block; }
.btn:hover { background: var(--green-br); transform: translateY(-1px); }
.btn-ghost { color: var(--text); background: rgba(255,255,255,.06); border: 1px solid var(--border); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: var(--border-2); color: #fff; }

/* ===================== Section head ===================== */
.section { padding: 34px 0 4px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 14px; padding: 0 2px; }
.sec-head h2 { font-size: 16px; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 9px; }
.sec-head h2::before { content: ""; width: 10px; height: 10px; background: var(--green); border-radius: 2px; box-shadow: 0 0 10px rgba(163,230,53,.6); }
.sec-head .more { font-size: 13px; color: var(--muted); }
.sec-head .more:hover { color: var(--green-br); }

/* ===================== Notices ===================== */
.notices { background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); overflow: hidden; }
.notices .row { display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 15px 20px; font-size: 14px; border-bottom: 1px solid var(--border); transition: background .14s; }
.notices .row:last-child { border-bottom: 0; }
.notices .row:hover { background: rgba(255,255,255,.04); }
.notices .t { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notices .t::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin-right: 11px; vertical-align: middle; }
.notices .d { color: var(--muted2); font-size: 12.5px; white-space: nowrap; }

/* ===================== Card grid ===================== */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card { position: relative; display: block; background: var(--panel); border: 1px solid var(--border);
  border-radius: 14px; padding: 24px 22px; min-height: 128px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform .16s, border-color .16s, background .16s, box-shadow .16s; }
.card:hover { transform: translateY(-3px); border-color: var(--border-2); background: var(--panel-2); box-shadow: 0 14px 34px rgba(0,0,0,.4); }
.card .ico { width: 30px; height: 30px; color: var(--green); margin-bottom: 16px; display: block; }
.card:hover .ico { color: var(--green-br); }
.card h3 { font-size: 16px; font-weight: 700; margin: 0 0 6px; }
.card p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.6; }
.card .arrow { position: absolute; top: 22px; right: 22px; color: var(--muted2); font-size: 18px; transition: .16s; }
.card:hover .arrow { color: var(--green-br); transform: translateX(3px); }
.card .soon { display: inline-block; margin-top: 12px; font-size: 11px; font-weight: 600; color: var(--green-br);
  border: 1px solid var(--border-2); background: rgba(163,230,53,.08); padding: 3px 10px; border-radius: 999px; }

/* ===================== Live catalog ===================== */
.catalog-state { padding: 40px 10px; text-align: center; color: var(--muted); font-size: 14px; }
.cat { margin-bottom: 30px; }
.cat .sec-head { margin: 8px 0 14px; }
.plist { display: flex; flex-direction: column; gap: 10px; }
.prow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px;
  transition: border-color .14s, background .14s; }
.prow:hover { border-color: var(--border-2); background: var(--panel-2); }
.prow .thumb { width: 56px; height: 56px; flex: none; border-radius: 10px; object-fit: cover;
  background: #141a16; border: 1px solid var(--border); }
.prow .pmain { flex: 1 1 220px; min-width: 0; }
.prow .pname { font-size: 14px; font-weight: 700; margin: 0; line-height: 1.4; word-break: break-word; }
.prow .pdesc { font-size: 12px; color: var(--muted); margin: 2px 0 0; line-height: 1.5; }
.prow .pstock { display: inline-block; margin-top: 5px; font-size: 12px; font-weight: 700; }
.prow .pstock.ok { color: var(--green-br); }
.prow .pstock.so { color: #e06464; }
.prow .pprice { margin-left: auto; text-align: right; white-space: nowrap; display: flex; flex-direction: column; gap: 1px; }
.prow .pprice .pk { font-size: 16px; font-weight: 800; color: #fff; }
.prow .pprice .pu { font-size: 11px; color: var(--muted); }
.prow.is-soldout { opacity: .6; }
.btn-sm { padding: 8px 14px; font-size: 12px; border-radius: 8px; }
.btn.is-disabled { color: var(--muted); background: rgba(255,255,255,.05); border: 1px solid var(--border);
  cursor: not-allowed; pointer-events: none; flex: none; }
@media (max-width: 560px) {
  .prow .pprice { margin-left: 70px; text-align: left; }
  .prow .btn-sm { margin-left: 70px; }
}

/* ===================== Admin log site ===================== */
.admin-wrap { max-width: 960px; margin: 0 auto; padding: 24px 20px 60px; }
.admin-gate { text-align: center; padding: 80px 20px; }
.admin-gate h2 { font-size: 18px; margin: 0 0 10px; }
.admin-gate p { color: var(--muted); font-size: 13px; margin: 0 0 22px; }
.log-controls { display: flex; gap: 10px; margin: 8px 0 18px; flex-wrap: wrap; }
.log-controls .fi, .log-controls select { background: #141414; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; color: var(--text); font-family: var(--font); font-size: 13px; }
.log-controls .fi { flex: 1; min-width: 180px; }
.log-controls .fi:focus, .log-controls select:focus { outline: none; border-color: var(--green); }
.log-list { display: flex; flex-direction: column; gap: 8px; }
.log-item { border: 1px solid var(--border); border-radius: 10px; background: var(--panel); padding: 12px 14px; }
.log-item .lh { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; margin-bottom: 6px; }
.log-item .lt { font-size: 13px; font-weight: 700; color: var(--green-br); }
.log-item .ld { font-size: 11px; color: var(--muted2); white-space: nowrap; }
.log-item .lb { font-size: 12.5px; color: #cdd4cc; word-break: break-word; line-height: 1.7; }
.log-item .lb b { color: #fff; font-weight: 700; }
.log-item .lb code { background: #141414; border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; font-size: 11.5px; color: var(--green-br); }
.log-item .lb a { color: var(--green-br); text-decoration: underline; word-break: break-all; }
.log-item .lb .mention { color: #9db4ff; background: rgba(120,140,255,.14); border-radius: 4px; padding: 0 4px; }
.log-item .lb .muted-line { color: var(--muted2); font-size: 11px; }
.log-item .lcat { display: inline-block; font-size: 10px; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 2px 8px; margin-top: 8px; }
.log-empty { text-align: center; color: var(--muted); padding: 40px; font-size: 13px; }

/* ===================== Footer ===================== */
.footer { margin-top: 56px; border-top: 1px solid var(--border); background: rgba(8,11,9,.6); }
.footer .wrap { padding: 32px 20px 36px; }
.footer .f-top { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }
.footer .f-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; }
.footer .f-brand .mark { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(145deg, var(--green), var(--green-dk)); }
.footer .f-brand .mark svg { width: 14px; height: 14px; color: #0a0a0a; }
.footer .f-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer .f-links a { font-size: 13px; color: var(--muted); }
.footer .f-links a:hover { color: var(--green-br); }
.footer .f-info { font-size: 12px; color: var(--muted2); line-height: 1.9; border-top: 1px solid var(--border); padding-top: 18px; }

/* ===================== Terms page ===================== */
.page-head { padding: 40px 0 6px; }
.page-head h1 { font-size: clamp(24px, 4vw, 34px); font-weight: 800; margin: 0 0 8px; }
.page-head p { color: var(--muted); font-size: 14px; margin: 0; }
.doc { border: 1px solid var(--border); border-radius: 14px; background: var(--panel); padding: 30px 28px; margin: 20px 0 10px; }
.doc h2 { font-size: 16px; font-weight: 700; color: var(--green-br); margin: 26px 0 10px; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { font-size: 14px; color: #ccd4cc; line-height: 1.85; }
.doc ul { padding-left: 20px; }
.doc .back { margin-top: 22px; }

/* ===================== Responsive ===================== */
@media (max-width: 620px) {
  .grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 16px 56px; }
  .nav a { padding: 7px 9px; font-size: 13px; }
}

.brand .mark img, .f-brand .mark img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }

/* ===================== Catalog: gallery (card grid) ===================== */
.pgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.pcard { display: flex; flex-direction: column; max-width: 300px; border: 1px solid var(--border); border-radius: 14px;
  background: var(--panel); overflow: hidden; transition: transform .15s, box-shadow .15s, border-color .15s; }
.pcard:hover { border-color: var(--border-2); background: var(--panel-2); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.28); }
.pcard-img { position: relative; aspect-ratio: 1 / 1; background: #141414; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard-img .pstock { position: absolute; left: 8px; top: 8px; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(8,11,9,.82); }
.pcard-img .pstock.ok { color: var(--green-br); }
.pcard-img .pstock.so { color: #ff9a9a; }
.prow .pstock.res, .pcard-img .pstock.res { color: var(--green-br); }
.pbtns { display: flex; gap: 8px; align-items: stretch; }
.pbtns .btn { flex: 1; white-space: nowrap; display: flex; align-items: center; justify-content: center; }
.pbtns .pbtn-buy { flex: 0 0 68px; }
.pbtns .pbtn-res { flex: 1; }
.pbtns .sold-buy { pointer-events: auto; cursor: pointer; }
.res-notice { font-size: 12.5px; line-height: 1.55; color: var(--green-br); background: rgba(163,230,53,.1);
  border: 1px solid var(--border-2); border-radius: 10px; padding: 10px 12px; margin: 0 0 4px; }
.pcard-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 13px 13px; flex: 1; }
.pcard .pname { font-size: 14px; font-weight: 700; margin: 0; line-height: 1.4; word-break: break-word; }
.pcard .pdesc { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .pprice { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.pcard .pprice .pk { font-size: 16px; font-weight: 800; color: #fff; }
.pcard .pprice .pu { font-size: 11px; color: var(--muted); }
.pcard .btn { width: 100%; margin-top: 0; }
.pcard .pprice { margin-bottom: 4px; }
.pcard.is-soldout { opacity: .6; }
@media (max-width: 960px) { .pgrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .pgrid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* ===================== Mobile (main site) ===================== */
@media (max-width: 600px) {
  .header-row { padding: 11px 14px; gap: 8px; flex-wrap: wrap; row-gap: 10px; }
  .auth { margin-left: auto; }
  .brand { font-size: 16px; gap: 7px; }
  .brand .mark { width: 24px; height: 24px; }
  .nav { width: 100%; margin-left: 0; gap: 8px; justify-content: center; flex-wrap: wrap; }
  .nav a { white-space: nowrap; padding: 6px 9px; }
  .lang { margin-left: 0; }
  .lang button { padding: 4px 7px; font-size: 11px; }
  .dc-login { font-size: 12px; padding: 7px 10px; gap: 6px; }
  .auth-btn .nm { max-width: 90px; }

  .hero { padding: 56px 16px 48px; }
  .hero h1 { font-size: clamp(26px, 8vw, 42px); }
  .sec-head h2 { font-size: 15px; }

  /* purchase / popup modals fit the phone */
  .modal-overlay { padding: 16px; }
  .modal-box { width: 100%; max-height: 88vh; overflow-y: auto; }
  .pcard { max-width: none; }
}
@media (max-width: 430px) {
  .dc-login span { display: none; }   /* icon-only login on very small screens */
  .dc-login { padding: 8px 9px; gap: 0; }
}

/* ===================== Access block overlay ===================== */
html.site-blocked, html.site-blocked body { overflow: hidden; }
.site-block { position: fixed; inset: 0; z-index: 10000; background: radial-gradient(circle at 50% 32%, rgba(20,20,20,.99), #060606 72%); display: grid; place-items: center; text-align: center; padding: 24px; }
.site-block .sb-inner { max-width: 440px; }
.site-block .sb-code { font-size: clamp(56px, 16vw, 112px); font-weight: 800; color: var(--green-br); line-height: 1; letter-spacing: 2px; text-shadow: 0 0 44px rgba(163,230,53,.3); }
.site-block .sb-title { font-size: clamp(20px, 5vw, 28px); font-weight: 800; margin: 14px 0 10px; }
.site-block .sb-msg { font-size: 14px; color: #cfd6cf; line-height: 1.7; margin: 0 0 18px; }
.site-block .sb-note { font-size: 12px; color: var(--muted); }

/* ===================== Notices modal ===================== */
.nt-box { max-width: 460px; text-align: left; }
.nt-box h3 { font-size: 17px; font-weight: 700; margin: 0 0 14px; }
.nt-list { display: flex; flex-direction: column; gap: 12px; max-height: 60vh; overflow-y: auto; margin-bottom: 18px; }
.nt-item { border: 1px solid var(--border); border-radius: 10px; background: var(--panel); padding: 12px 14px; }
.nt-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.nt-head b { font-size: 14px; color: #fff; }
.nt-date { font-size: 11px; color: var(--muted2); white-space: nowrap; }
.nt-body { font-size: 13px; color: #cfd6cf; line-height: 1.7; margin-top: 6px; word-break: break-word; }
.nt-body b { color: #fff; }
.nt-body a { color: var(--green-br); text-decoration: underline; }
.nt-body code { background: #141414; border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; font-size: 12px; color: var(--green-br); }
.ticker { cursor: pointer; }

/* ===================== Special notice (section + pop-up) ===================== */
.special-card { display: flex; gap: 16px; align-items: flex-start; border: 1px solid rgba(163,230,53,.35); border-radius: 16px; background: linear-gradient(145deg, rgba(163,230,53,.09), var(--panel)); padding: 18px 20px; margin: 22px 0 4px; }
.special-img { width: 120px; height: 120px; object-fit: cover; border-radius: 12px; flex: none; }
.special-body { flex: 1; min-width: 0; }
.special-badge { display: inline-block; font-size: 11px; font-weight: 700; color: #0a0a0a; background: var(--green); padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }
.special-title { font-size: 17px; font-weight: 800; margin: 0 0 8px; }
.special-text { font-size: 13.5px; color: #cfd6cf; line-height: 1.7; word-break: break-word; }
.special-text b { color: #fff; }
.special-text a { color: var(--green-br); text-decoration: underline; }
.special-text code { background: #141414; border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; font-size: 12px; color: var(--green-br); }
.sp-pop-box { max-width: 420px; text-align: center; }
.sp-pop-img { width: 100%; max-height: 220px; object-fit: cover; border-radius: 12px; margin-bottom: 14px; }
.sp-pop-box h3 { font-size: 18px; font-weight: 800; margin: 8px 0 10px; }
.sp-pop-text { font-size: 13.5px; color: #cfd6cf; line-height: 1.7; text-align: left; margin-bottom: 18px; word-break: break-word; }
.sp-pop-text b { color: #fff; }
.sp-pop-text a { color: var(--green-br); text-decoration: underline; }
@media (max-width: 560px) { .special-card { flex-direction: column; } .special-img { width: 100%; height: 160px; } }

/* ===================== Customer support (chat) ===================== */
.nav a.active { color: var(--green-br); }
.legal-warn { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; padding: 12px 14px;
  border: 1px solid rgba(240,180,80,.35); background: rgba(240,180,80,.08); border-radius: 12px;
  font-size: 12.5px; line-height: 1.6; color: #e9c983; }
.legal-warn .lw-ico { flex: none; margin-top: 1px; color: #e9c983; }
.chat { display: flex; flex-direction: column; height: min(62vh, 560px); min-height: 380px;
  border: 1px solid var(--border); border-radius: 16px; background: var(--panel); overflow: hidden; margin-bottom: 40px; }
.chat-head { display: flex; align-items: center; gap: 11px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.02); }
.chat-head .ch-av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #141414; flex: none; }
.chat-head .ch-who { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.chat-head .ch-name { font-size: 14px; font-weight: 700; color: var(--text); }
.chat-head .ch-title { font-size: 11px; font-weight: 700; color: #0a0a0a; background: var(--green); border-radius: 999px; padding: 1px 8px; width: fit-content; }
.chat-head .ch-on { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px rgba(163,230,53,.7); margin-left: auto; flex: none; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-state, .chat-login { margin: auto; text-align: center; color: var(--muted); font-size: 13px; padding: 20px; }
.chat-login p { margin: 0 0 14px; }
.msg { display: flex; align-items: flex-end; gap: 8px; max-width: 78%; }
.msg.me { align-self: flex-end; flex-direction: row-reverse; }
.msg.them { align-self: flex-start; }
.msg .mb-av { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: #141414; flex: none; }
.mb { border-radius: 16px; padding: 9px 13px; }
.msg.me .mb { background: var(--green); color: #0a0a0a; border-bottom-right-radius: 5px; }
.msg.them .mb { background: var(--panel-2); color: var(--text); border: 1px solid var(--border); border-bottom-left-radius: 5px; }
.mb-text { font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.mb-time { font-size: 10px; margin-top: 4px; opacity: .6; }
.msg.me .mb-time { color: #0a0a0a; }
.msg.them .mb-time { color: var(--muted); }
.chat-input { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--border); background: rgba(255,255,255,.02); }
.chat-input.disabled { display: none; }
.chat-input textarea { flex: 1; resize: none; max-height: 120px; background: #141414; border: 1px solid var(--border); border-radius: 12px;
  padding: 10px 12px; color: var(--text); font-family: var(--font); font-size: 13.5px; line-height: 1.5; outline: none; }
.chat-input textarea:focus { border-color: var(--green); }
.chat-send { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 12px;
  background: var(--green); color: #0a0a0a; cursor: pointer; transition: .14s; }
.chat-send:hover { background: var(--green-br); }
.chat-send:disabled { opacity: .5; cursor: default; }
@media (max-width: 560px) {
  .chat { height: min(70vh, 520px); }
  .msg { max-width: 86%; }
}

/* ===================== Support pop-up modal ===================== */
.support-modal { width: min(560px, 94vw); max-width: 560px; max-height: 86vh; padding: 0;
  display: flex; flex-direction: column; overflow: hidden; text-align: left; }
.sm-top { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px 10px; flex: none; }
.sm-title { margin: 0; font-size: 17px; font-weight: 700; }
.sm-x { background: transparent; border: 0; color: var(--muted); font-size: 15px; cursor: pointer; padding: 5px 9px; border-radius: 8px; font-family: var(--font); }
.sm-x:hover { color: var(--text); background: rgba(255,255,255,.06); }
.support-modal .legal-warn { margin: 0 14px 12px; flex: none; }
.support-modal .chat { height: auto; flex: 1; min-height: 0; border: 0; border-top: 1px solid var(--border); border-radius: 0; margin: 0; background: transparent; }
@media (max-width: 560px) {
  .support-modal { width: 96vw; max-height: 90vh; }
}

html.modal-open { overflow: hidden; }

/* ===================== Shared card (support embed) ===================== */
.mb-card { padding: 0 !important; overflow: hidden; max-width: 300px; }
.msg.me .mb-card, .msg.them .mb-card { background: var(--panel-2); color: var(--text); border: 1px solid var(--border-2); }
.cardm-title { font-size: 11.5px; font-weight: 700; color: var(--green-br); padding: 10px 13px 3px; letter-spacing: .3px; }
.cardm-sub { font-size: 13.5px; font-weight: 700; padding: 0 13px 9px; }
.cardm-fields { border-top: 1px solid var(--border); }
.cf { display: flex; justify-content: space-between; gap: 14px; padding: 6px 13px; font-size: 12px; }
.cf + .cf { border-top: 1px solid rgba(255,255,255,.04); }
.cf-k { color: var(--muted); flex: none; }
.cf-v { color: var(--text); text-align: right; word-break: break-all; }
.cardm-foot { font-size: 10.5px; color: var(--muted2); padding: 8px 13px; border-top: 1px solid var(--border); }
.mb-card .mb-time { padding: 0 13px 9px; color: var(--muted) !important; }
.cardm-body { font-size: 12.5px; line-height: 1.5; color: var(--text); padding: 2px 13px 9px; white-space: pre-wrap; word-break: break-word; }

/* ===================== Product detail pop-up (summary) ===================== */
.detail-btn { width: 100%; margin-bottom: 0; }
.detail-box { width: min(440px, 94vw); max-width: 440px; max-height: 88vh; padding: 0; display: flex; flex-direction: column; overflow: hidden; text-align: left; }
.dt-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 18px 6px; flex: none; }
.dt-title { margin: 0; font-size: 17px; font-weight: 700; }
.dt-x { background: transparent; border: 0; color: var(--muted); font-size: 15px; cursor: pointer; padding: 5px 9px; border-radius: 8px; font-family: var(--font); flex: none; }
.dt-x:hover { color: var(--text); background: rgba(255,255,255,.06); }
.dt-main { display: flex; gap: 14px; align-items: flex-start; padding: 8px 18px 12px; flex: none; }
.dt-thumb { position: relative; width: 84px; height: 84px; border-radius: 12px; overflow: hidden; background: #141414; flex: none; }
.dt-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dt-thumb .pstock { position: absolute; left: 5px; top: 5px; background: rgba(8,8,8,.85); padding: 2px 6px; border-radius: 999px; font-size: 9.5px; font-weight: 700; }
.dt-summary { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; order: -1; }
.dt-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,.05); }
.dt-row:last-child { border-bottom: 0; }
.dt-k { color: var(--muted); flex: none; }
.dt-v { color: var(--text); text-align: right; word-break: break-word; font-weight: 600; }
.dt-v.dt-price { display: flex; gap: 7px; align-items: baseline; justify-content: flex-end; flex-wrap: wrap; }
.dt-v.war-on { color: var(--green-br); }
.dt-v.war-off { color: var(--muted); }
.dt-sec-label { font-size: 11.5px; font-weight: 700; color: var(--muted); padding: 10px 18px 4px; border-top: 1px solid var(--border); flex: none; }
.dt-desc { padding: 2px 18px 16px; font-size: 13.5px; line-height: 1.7; color: var(--muted); overflow-y: auto; white-space: pre-wrap; word-break: break-word; }
.dt-actions { padding: 12px 18px 18px; border-top: 1px solid var(--border); flex: none; }
.dt-actions .btn, .dt-actions .pbtns { width: 100%; }

/* close (✕) button present on every pop-up */
.modal-box { position: relative; }
.modal-x { position: absolute; top: 10px; right: 12px; z-index: 3; background: transparent; border: 0; color: var(--muted); font-size: 14px; line-height: 1; cursor: pointer; padding: 6px 9px; border-radius: 8px; font-family: var(--font); }
.modal-x:hover { color: var(--text); background: rgba(255,255,255,.08); }
