/* Portal chrome (2026-10 redesign): fonts, colour tokens, header (.gnb) and footer (.foot).
   Loaded on every page. Rules are scoped to .gnb / .foot so older page styles are untouched. */

@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/BarlowCondensed-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/BarlowCondensed-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/BarlowCondensed-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/BarlowCondensed-600-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/BarlowCondensed-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/BarlowCondensed-700-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Noto Sans"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../assets/fonts/NotoSans-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Noto Sans"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../assets/fonts/NotoSans-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --p-bg: #07090e;
  --p-panel: rgba(13, 17, 26, 0.92);
  --p-gold: #d9ad57;
  --p-gold-hi: #f7dd9b;
  --p-gold-lo: #7d5e25;
  --p-text: #e9e3d2;
  --p-muted: #a59f8e;
  --p-dim: #8a8577;
  --p-light: #6db8ff;
  --p-fury: #e0563c;
  --p-ok: #78d48a;
  --p-line: #2a2418;
  --p-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --p-body: "Noto Sans", system-ui, sans-serif;
  --p-gl: max(16px, env(safe-area-inset-left, 0px));
  --p-gr: max(16px, env(safe-area-inset-right, 0px));
}

/* ---------- Buttons (header, and every portal page) ---------- */
:is(.gnb, .portal-page) .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 20px; font: 700 0.85rem/1 var(--p-display); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; border-radius: 2px; cursor: pointer; transition: filter 150ms ease, transform 100ms ease, background-color 150ms ease, border-color 150ms ease; }
:is(.gnb, .portal-page) .btn:active { transform: translateY(1px); }
:is(.gnb, .portal-page) .btn--gold { color: #2b1a03; background: linear-gradient(180deg, #fbe39f 0%, #e4ad4c 48%, #b8792a 100%); border: 1px solid #6f4f17; box-shadow: inset 0 1px 0 rgba(255, 246, 214, 0.8), 0 0 18px rgba(228, 173, 76, 0.25); }
:is(.gnb, .portal-page) .btn--gold:hover { filter: brightness(1.1); color: #2b1a03; }
:is(.gnb, .portal-page) .btn--line { color: var(--p-gold-hi); background: rgba(0, 0, 0, 0.35); border: 1px solid var(--p-gold-lo); }
:is(.gnb, .portal-page) .btn--line:hover { border-color: var(--p-gold); background: rgba(217, 173, 87, 0.08); color: var(--p-gold-hi); }

/* ---------- Header ---------- */
.gnb { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 900; background: linear-gradient(180deg, rgba(10, 12, 18, 0.97), rgba(7, 9, 14, 0.95)); font-family: var(--p-body); color: var(--p-text); }
.gnb::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--p-gold) 20%, var(--p-gold-hi) 50%, var(--p-gold) 80%, transparent); opacity: 0.8; pointer-events: none; }
.gnb a { text-decoration: none; }
.gnb__in { display: flex; align-items: center; gap: 24px; max-width: 1280px; height: 76px; margin: 0 auto; padding-left: var(--p-gl); padding-right: var(--p-gr); }
.gnb__logo { flex: none; display: block; }
.gnb__logo img { display: block; height: 68px; width: auto; max-width: none; filter: drop-shadow(0 0 12px rgba(80, 150, 255, 0.35)); }
.gnb__nav { height: 100%; }
.gnb .menu { display: flex; height: 100%; margin: 0; padding: 0; list-style: none; }
.gnb .menu__group { position: relative; display: flex; }
.gnb .menu__top { position: relative; display: flex; align-items: center; padding: 0 18px; font: 600 0.98rem/1 var(--p-display); letter-spacing: 0.08em; text-transform: uppercase; color: #d8d1bf; white-space: nowrap; transition: color 160ms ease; }
.gnb .menu__top::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 0; height: 3px; background: var(--p-gold); box-shadow: 0 0 12px var(--p-gold); transform: scaleX(0); transition: transform 220ms ease; }
.gnb .menu__group:hover > .menu__top, .gnb .menu__group:focus-within > .menu__top, .gnb .menu__group.is-on > .menu__top { color: var(--p-gold-hi); }
.gnb .menu__group:hover > .menu__top::after, .gnb .menu__group:focus-within > .menu__top::after, .gnb .menu__group.is-on > .menu__top::after { transform: scaleX(1); }
.gnb .sub { position: absolute; top: 100%; left: 0; min-width: 210px; margin: 0; padding: 10px 0; list-style: none; background: rgba(10, 13, 20, 0.98); border: 1px solid var(--p-gold-lo); border-top: 0; box-shadow: 0 18px 30px rgba(0, 0, 0, 0.55); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 160ms ease, transform 160ms ease, visibility 160ms; }
.gnb .menu__group:hover .sub, .gnb .menu__group:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.gnb .sub a { display: block; padding: 8px 20px; color: var(--p-muted); font-size: 0.98rem; white-space: nowrap; }
.gnb .sub a:hover, .gnb .sub a:focus-visible { color: var(--p-gold-hi); background: rgba(217, 173, 87, 0.08); }
.gnb .sub a[aria-current="page"] { color: var(--p-gold-hi); }
.gnb__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.gnb__lang select { height: 42px; padding: 0 8px; color: var(--p-text); background: rgba(0, 0, 0, 0.35); border: 1px solid #3a2f1a; border-radius: 2px; font: 600 0.92rem/1 var(--p-display); letter-spacing: 0.06em; cursor: pointer; color-scheme: dark; }
.gnb__lang select:hover { border-color: var(--p-gold-lo); }
.gnb__lang noscript button { margin-left: 4px; }
.gnb__acct { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block !important; line-height: 42px !important; }
.gnb .menu__acct { display: none; }
.gnb__burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 42px; padding: 0 11px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--p-gold-lo); border-radius: 2px; cursor: pointer; }
.gnb__burger span { display: block; height: 2px; background: var(--p-gold-hi); transition: transform 200ms ease, opacity 200ms ease; }
.gnb.is-open .gnb__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.gnb.is-open .gnb__burger span:nth-child(2) { opacity: 0; }
.gnb.is-open .gnb__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.gnb :focus-visible { outline: 2px solid var(--p-gold-hi); outline-offset: 2px; }

@media (max-width: 1240px) {
  .gnb .menu__top { padding: 0 11px; font-size: 0.92rem; }
  .gnb .menu__top::after { left: 11px; right: 11px; }
  .gnb__in { gap: 14px; }
}
@media (max-width: 1060px) {
  .gnb__burger { display: inline-flex; }
  .gnb__nav { position: absolute; top: 100%; left: 0; right: 0; height: auto; max-height: calc(100vh - 76px); overflow-y: auto; background: #080a0f; border-bottom: 1px solid var(--p-gold-lo); box-shadow: 0 24px 40px rgba(0, 0, 0, 0.6); display: none; }
  .gnb.is-open .gnb__nav { display: block; }
  .gnb .menu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 24px; height: auto; max-width: 1280px; margin: 0 auto; padding: 18px var(--p-gr) 22px var(--p-gl); }
  .gnb .menu__group { display: block; }
  .gnb .menu__top { padding: 10px 0 8px; border-bottom: 1px solid var(--p-line); color: var(--p-gold-hi); }
  .gnb .menu__top::after { display: none; }
  .gnb .sub { position: static; min-width: 0; padding: 4px 0 0; background: none; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .gnb .sub a { padding: 8px 0; }
}
@media (max-width: 640px) {
  .gnb__in { height: 64px; gap: 10px; }
  .gnb__logo img { height: 52px; }
  .gnb__nav { max-height: calc(100vh - 64px); }
  .gnb .menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gnb__login { display: none !important; }
  .gnb .menu__acct { display: block; grid-column: 1 / -1; padding-top: 8px; }
  .gnb .menu__acct .btn { width: 100%; }
  .gnb .btn { padding: 0 12px; }
  .gnb__lang select { padding: 0 4px; }
  .gnb__acct { max-width: 110px; }
}
@media (max-width: 380px) {
  .gnb .menu { grid-template-columns: minmax(0, 1fr); }
  .gnb__logo img { height: 44px; }
}

/* ---------- Footer ---------- */
.foot { margin-top: 80px; padding-block: 40px 30px; background: #040508; border-top: 1px solid var(--p-gold-lo); color: var(--p-dim); font: 400 0.92rem/1.6 var(--p-body); }
.foot__in { max-width: 1280px; margin: 0 auto; padding-left: var(--p-gl); padding-right: var(--p-gr); }
.foot__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid #1a1710; }
.foot__top img { display: block; height: 74px; width: auto; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { color: var(--p-dim); text-decoration: none; transition: color 150ms ease; }
.foot nav a:hover, .foot nav a:focus-visible { color: var(--p-gold-hi); }
.foot p { margin: 18px 0 0; line-height: 1.7; }

@media (prefers-reduced-motion: reduce) {
  .gnb *, .foot * { transition: none !important; }
}
