:root {
  --bg: #060707;
  --panel: rgba(8, 10, 10, 0.9);
  --panel-2: rgba(18, 19, 18, 0.93);
  --line: rgba(214, 157, 74, 0.38);
  --gold: #d69d4a;
  --gold-2: #ffe1a1;
  --red: #8d2019;
  --red-2: #c43a2d;
  --paper: #eadcca;
  --text: #f4ecdc;
  --muted: rgba(244, 236, 220, 0.64);
  --max: 1240px;
  --radius: 6px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body.site-shell {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 0, rgba(214, 157, 74, 0.12), transparent 34%),
    linear-gradient(180deg, #050607 0%, #10100e 48%, #070807 100%);
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", Arial, sans-serif;
  word-break: keep-all;
  overflow-x: hidden;
}

body.site-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.36)),
    url("/assets/paper-texture.jpg") center / cover;
  opacity: 0.18;
  pointer-events: none;
}

body.site-shell a {
  color: inherit;
  text-decoration: none;
}

body.site-shell button,
body.site-shell input,
body.site-shell select,
body.site-shell textarea {
  font: inherit;
}

body.site-shell button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.site-header,
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 180px 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: 74px;
  padding: 0 max(28px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 9, 8, 0.95), rgba(8, 9, 8, 0.78));
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  flex-direction: column;
  min-width: 120px;
  line-height: 1;
}

.brand span {
  color: #fff4d3;
  font-family: Georgia, "Batang", serif;
  font-size: 42px;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 0 24px rgba(214, 157, 74, 0.42);
}

.brand small {
  margin-top: 4px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.nav-list {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.nav-list a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 74px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transform: translateX(-50%);
  transition: width 0.18s ease;
}

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

.nav-list a:hover::after,
.nav-list a.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.top-admin,
.btn,
a.btn,
button.btn,
.startBtn,
.darkBtn,
.redBtn,
.panel button,
.itemCard button,
.shop-item button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255, 225, 161, 0.42);
  border-radius: var(--radius);
  color: #f6e5bf;
  background: linear-gradient(180deg, #20201c, #090a09);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.top-admin {
  min-width: 82px;
  background: rgba(0, 0, 0, 0.32);
  color: var(--gold-2);
}

.btn:hover,
.top-admin:hover,
.startBtn:hover,
.darkBtn:hover,
.redBtn:hover,
.panel button:hover,
.itemCard button:hover,
.shop-item button:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  border-color: rgba(255, 225, 161, 0.72);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.36);
}

.btn-primary,
.startBtn,
a.btn-primary,
button.btn-primary {
  color: #170e05;
  background: linear-gradient(180deg, #f5d895, #b57931);
  border-color: rgba(255, 225, 161, 0.52);
}

.btn-red,
.redBtn,
a.btn-red,
button.btn-red {
  color: #fff0df;
  background: linear-gradient(180deg, var(--red-2), #6d1511);
}

.header-account {
  color: #170e05;
  background: linear-gradient(180deg, #f5d895, #b57931);
}

main {
  min-height: 100vh;
}

.page-screen {
  position: relative;
  isolation: isolate;
}

.section-inner {
  width: min(var(--max), calc(100vw - 48px));
  margin-inline: auto;
}

.hero {
  min-height: 920px;
  padding-top: 74px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), #080909 96%),
    url("/assets/hero-bg.jpg") center top / cover no-repeat;
}

.heroShade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.18) 43%, rgba(0, 0, 0, 0.74)),
    radial-gradient(circle at 50% 36%, rgba(214, 157, 74, 0.18), transparent 35%);
}

.heroInner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 270px 1fr 280px;
  align-items: center;
  gap: 28px;
  padding-top: 120px;
}

.panel,
.card,
.adminBox {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.panel::before,
.card::before,
.adminBox::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(214, 157, 74, 0.16);
  border-radius: 4px;
  pointer-events: none;
}

.loginPanel,
.serverPanel {
  padding: 24px;
}

.panelTitle {
  margin-bottom: 18px;
  color: var(--gold-2);
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
}

.loginPanel input,
.serviceBox input,
.serviceBox select,
.supportForm input,
.supportForm select,
.supportForm textarea,
.adminBox input {
  width: 100%;
  min-height: 45px;
  margin-bottom: 10px;
  padding: 0 12px;
  border: 1px solid rgba(255, 225, 161, 0.22);
  border-radius: var(--radius);
  outline: none;
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
}

.loginPanel input:focus,
.serviceBox input:focus,
.serviceBox select:focus,
.supportForm input:focus,
.supportForm select:focus,
.supportForm textarea:focus,
.adminBox input:focus,
.btn:focus-visible,
.top-admin:focus-visible {
  border-color: var(--gold-2);
  box-shadow: 0 0 0 3px rgba(214, 157, 74, 0.16);
}

.loginPanel .redBtn,
.serviceBox button,
.supportForm button {
  width: 100%;
}

.miniLinks {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.miniLinks a:hover {
  color: var(--gold-2);
}

.heroText {
  position: relative;
  min-height: 420px;
  display: grid;
  align-content: center;
  text-align: center;
  text-shadow: 0 14px 40px rgba(0, 0, 0, 0.65);
}

.heroText::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(440px, 76vw);
  aspect-ratio: 1;
  z-index: -1;
  background:
    radial-gradient(circle, rgba(214, 157, 74, 0.18), transparent 44%),
    radial-gradient(circle, rgba(0, 0, 0, 0.35), transparent 62%);
  opacity: 1;
  transform: translate(-50%, -50%);
  filter: none;
}

.serverTag {
  margin: 0 0 18px;
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.heroText h1 {
  margin: 0;
  color: #fff4d3;
  font-family: Georgia, "Batang", serif;
  font-size: 132px;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0;
}

.heroText h2 {
  margin: 18px 0 30px;
  color: #fff;
  font-size: 36px;
  font-weight: 900;
  letter-spacing: 0;
}

.heroCtas {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.startBtn {
  min-width: 190px;
}

.statusLine {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.statusLine b {
  color: #61e47d;
}

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

.serverNum {
  margin: 28px 0 0;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 62px;
  font-weight: 900;
}

.serverPanel p {
  margin: 0 0 18px;
  color: var(--gold-2);
  font-weight: 900;
}

.statusMini {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
}

.statusMini div {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(214, 157, 74, 0.14);
  padding-bottom: 8px;
}

.statusMini dt,
.statusMini dd {
  margin: 0;
}

.statusMini dt {
  color: var(--muted);
}

.statusMini dd {
  color: var(--gold-2);
  font-weight: 900;
}

.rateBar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin-top: 90px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(4, 5, 5, 0.78);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.48);
}

.rateBar div {
  padding: 20px 10px;
  border-right: 1px solid rgba(214, 157, 74, 0.22);
  text-align: center;
}

.rateBar div:last-child {
  border-right: 0;
}

.rateBar span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.rateBar b {
  display: block;
  margin-top: 5px;
  color: var(--gold-2);
  font-family: Georgia, serif;
  font-size: 34px;
}

.promoStrip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.promoStrip span {
  padding: 14px;
  border: 1px solid rgba(214, 157, 74, 0.26);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: #fff4d7;
  font-weight: 900;
  text-align: center;
}

.sectionBlock {
  min-height: 100vh;
  padding: 120px 24px 110px;
  background:
    linear-gradient(180deg, rgba(10, 11, 10, 0.92), rgba(10, 11, 10, 0.96)),
    url("/assets/hero-ink.jpg") center / cover fixed;
}

.sectionBlock:nth-of-type(odd) {
  background:
    linear-gradient(180deg, rgba(15, 16, 14, 0.94), rgba(10, 11, 10, 0.97)),
    url("/assets/saebyeok-hero.jpg") center / cover fixed;
}

.sectionHead {
  margin-bottom: 36px;
  text-align: center;
}

.sectionHead small {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.sectionHead h2 {
  margin: 8px 0 0;
  color: #fff4d3;
  font-family: Georgia, "Batang", serif;
  font-size: 52px;
  font-weight: 900;
  letter-spacing: 0;
}

.boardGrid,
.downloadGrid,
.serviceGrid {
  display: grid;
  gap: 20px;
}

.boardGrid {
  grid-template-columns: 1.2fr 0.7fr 0.7fr;
}

.noticeList {
  padding: 18px;
}

.noticeRow {
  display: grid;
  grid-template-columns: 74px 1fr 70px;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  border-bottom: 1px solid rgba(214, 157, 74, 0.15);
}

.noticeRow:last-child {
  border-bottom: 0;
}

.noticeRow em {
  padding: 5px 8px;
  border: 1px solid rgba(255, 225, 161, 0.23);
  background: #71201b;
  color: #fff;
  font-size: 12px;
  font-style: normal;
  text-align: center;
}

.noticeRow span {
  font-weight: 900;
}

.noticeRow time {
  color: var(--muted);
  text-align: right;
}

.eventCard {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.78)),
    url("/assets/event-open.jpg") center / cover;
}

.eventCard.second {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.78)),
    url("/assets/shop-bg.jpg") center / cover;
}

.eventCard strong {
  font-family: Georgia, "Batang", serif;
  font-size: 28px;
}

.eventCard span {
  margin: 8px 0 18px;
  color: #ffe6b8;
  font-weight: 900;
}

.eventCard a {
  align-self: flex-start;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.38);
  font-weight: 900;
}

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

.downloadMain {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 38px;
}

.downloadMain b {
  color: var(--gold-2);
  font-size: 20px;
}

.downloadMain strong {
  margin: 14px 0 28px;
  color: #fff;
  font-size: 34px;
}

.downloadMeta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -10px 0 24px;
}

.downloadMeta span,
.panelKicker,
.serviceMark {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(214, 157, 74, 0.26);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.28);
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 900;
}

.installPanel {
  padding-top: 18px;
}

.installPanel .panelKicker {
  margin: 12px 0 0 34px;
}

.downloadActions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.downloadMain p,
.form-result,
.serviceBox p,
.public-empty p {
  color: var(--muted);
}

.downloadMain p.ok {
  color: #8cf09a;
}

.downloadMain p.fail,
.form-result.fail {
  color: #ff9a8d;
}

.installSteps {
  margin: 0;
  padding: 34px 34px 34px 64px;
  counter-reset: step;
}

.installSteps li {
  position: relative;
  margin: 0 0 18px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.installSteps li:last-child {
  margin-bottom: 0;
}

.installSteps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: -42px;
  color: var(--gold-2);
  font-family: Georgia, serif;
}

.topRank {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 20px;
}

.rankMedal {
  min-height: 180px;
  padding: 28px;
  text-align: center;
  background: radial-gradient(circle at 50% 0, rgba(214, 157, 74, 0.22), transparent 48%), rgba(0, 0, 0, 0.58);
}

.rankMedal i {
  display: block;
  width: 54px;
  height: 54px;
  margin: 0 auto 12px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #111;
  color: var(--gold-2);
  font-family: Georgia, serif;
  font-size: 30px;
  font-style: normal;
  line-height: 54px;
}

.rankMedal b {
  display: block;
  color: #fff;
  font-size: 24px;
}

.rankMedal span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.rankMedal.is-live {
  background:
    radial-gradient(circle at 50% 0, rgba(255, 225, 161, 0.32), transparent 50%),
    linear-gradient(180deg, rgba(42, 31, 18, 0.72), rgba(0, 0, 0, 0.62));
}

.rankMedal.is-live span {
  color: var(--gold-2);
}

.rank1 {
  transform: translateY(-10px);
  border-color: rgba(255, 225, 161, 0.66);
}

.tableWrap {
  overflow: hidden;
}

.tableToolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(214, 157, 74, 0.18);
}

.tableToolbar span {
  color: var(--gold-2);
  font-weight: 900;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(214, 157, 74, 0.16);
  text-align: left;
}

th {
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

td {
  color: rgba(255, 255, 255, 0.86);
}

tbody tr:hover {
  background: rgba(214, 157, 74, 0.06);
}

.shopTop {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
  padding: 20px 24px;
}

.shopTop b {
  color: var(--muted);
}

.shopTop strong {
  color: var(--gold-2);
  font-size: 24px;
}

.shopTop span {
  margin-left: auto;
  color: #ffe2b0;
  font-weight: 900;
}

.shopTabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.shopTabs button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(214, 157, 74, 0.24);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.34);
  color: var(--muted);
  font-weight: 900;
}

.shopTabs button.active,
.shopTabs button:hover {
  color: #170e05;
  background: linear-gradient(180deg, #f5d895, #b57931);
}

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

.itemCard,
.shop-item,
.shop-card {
  position: relative;
  min-height: 260px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #171815, #090a09);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

.itemCard i,
.shop-item .code {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 8px;
  background: #711a15;
  color: #fff0dc;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.shopCategory {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 14px;
  padding: 0 10px;
  border: 1px solid rgba(214, 157, 74, 0.26);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.28);
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 900;
}

.itemIcon,
.shop-item::after {
  content: "";
  display: block;
  height: 92px;
  margin: 18px 0 20px;
  border: 1px solid rgba(214, 157, 74, 0.24);
  border-radius: var(--radius);
  background:
    radial-gradient(circle, rgba(255, 225, 161, 0.24), transparent 48%),
    linear-gradient(135deg, rgba(214, 157, 74, 0.18), rgba(0, 0, 0, 0.1));
}

.shop-item.empty::after,
.shop-card.empty::after {
  display: none;
}

.shop-item.empty,
.shop-card.empty {
  display: grid;
  align-content: center;
}

.itemCard b,
.shop-item h3 {
  display: block;
  min-height: 48px;
  margin: 0;
  color: #fff;
  font-size: 20px;
}

.itemCard span {
  display: block;
  margin: 10px 0 18px;
  color: var(--gold-2);
  font-size: 22px;
  font-weight: 900;
}

.shop-item p {
  color: var(--muted);
}

.shop-item dl {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
}

.shop-item dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(214, 157, 74, 0.12);
  padding-bottom: 6px;
}

.shop-item dt,
.shop-item dd {
  margin: 0;
}

.shop-item dt {
  color: var(--muted);
}

.shop-item dd {
  color: var(--gold-2);
  font-weight: 900;
}

.serviceGrid {
  grid-template-columns: repeat(3, 1fr);
}

.serviceBox {
  padding: 26px;
}

.serviceBox h3 {
  margin: 0 0 18px;
  color: var(--gold-2);
  font-size: 24px;
}

.serviceMark {
  margin-bottom: 12px;
}

.supportLink {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 12px;
  padding: 0 14px;
  border: 1px solid rgba(255, 225, 161, 0.34);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.36);
  color: var(--gold-2);
  font-weight: 900;
}

.supportLink:hover {
  background: linear-gradient(180deg, #20201c, #090a09);
}

.accountStatus {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
  padding: 20px 24px;
}

.accountStatus strong {
  color: var(--gold-2);
  font-size: 20px;
}

.accountStatus span {
  color: var(--muted);
}

.accountStatus button {
  margin-left: auto;
}

.resultBox,
.teleportList,
pre {
  min-height: 72px;
  margin: 12px 0 0;
  padding: 12px;
  overflow: auto;
  border: 1px solid rgba(214, 157, 74, 0.18);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.28);
  color: var(--muted);
  white-space: pre-wrap;
}

.character-card {
  display: grid;
  gap: 8px;
}

.character-card div,
.teleport-entry {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(214, 157, 74, 0.12);
  padding-bottom: 8px;
}

.character-card div:last-child,
.teleport-entry:last-child {
  border-bottom: 0;
}

.character-card span,
.teleport-entry span {
  color: var(--muted);
}

.character-card strong,
.teleport-entry strong {
  color: #fff;
}

.public-empty {
  display: grid;
  gap: 8px;
  text-align: center;
}

.public-empty span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.public-empty strong {
  color: #fff;
  font-size: 20px;
}

.public-empty em {
  color: var(--gold-2);
  font-style: normal;
  font-weight: 900;
}

footer {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 34px 24px;
  border-top: 1px solid rgba(214, 157, 74, 0.18);
  background: #050606;
  color: var(--muted);
}

footer strong {
  color: var(--gold-2);
}

.admin-dialog {
  width: min(620px, calc(100vw - 40px));
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
}

.admin-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.adminBox {
  padding: 34px;
}

.adminBox h2 {
  margin: 0 0 20px;
  color: #fff4d3;
  font-family: Georgia, "Batang", serif;
  font-size: 36px;
}

.close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #111;
  color: #fff;
}

.adminTabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 0;
}

.adminTabs button.active {
  color: #170e05;
  background: linear-gradient(180deg, #f5d895, #b57931);
}

.adminView {
  display: none;
}

.adminView.active {
  display: block;
}

@media (max-width: 1080px) {
  .site-header,
  .topbar {
    position: sticky;
    grid-template-columns: 1fr auto;
    min-height: auto;
    padding: 12px 20px;
  }

  .nav-list {
    grid-column: 1 / 3;
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
  }

  .nav-list a {
    min-height: 44px;
  }

  .hero {
    min-height: auto;
  }

  .heroInner {
    grid-template-columns: 1fr;
    padding-top: 60px;
  }

  .heroText {
    order: -1;
  }

  .loginPanel,
  .serverPanel {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
  }

  .rateBar {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 46px;
  }

  .promoStrip,
  .boardGrid,
  .downloadGrid,
  .serviceGrid,
  .shopGrid,
  .topRank {
    grid-template-columns: 1fr 1fr;
  }

  .heroText h1 {
    font-size: 104px;
  }
}

@media (max-width: 680px) {
  .site-header,
  .topbar {
    grid-template-columns: 1fr;
  }

  .header-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .nav-list {
    grid-column: 1;
    flex-wrap: wrap;
    gap: 8px 14px;
    overflow: visible;
  }

  .nav-list a {
    min-height: 34px;
    font-size: 14px;
  }

  .section-inner,
  .heroInner,
  .rateBar,
  .promoStrip,
  .boardGrid,
  .downloadGrid,
  .serviceGrid,
  .shopGrid,
  .topRank,
  .tableWrap,
  .shopTop {
    width: calc(100vw - 28px);
  }

  .heroText {
    min-height: 330px;
  }

  .heroText h1 {
    font-size: 82px;
  }

  .heroText h2 {
    font-size: 28px;
  }

  .heroCtas,
  .downloadActions,
  .shopTop,
  .accountStatus {
    flex-direction: column;
    align-items: stretch;
  }

  .rateBar,
  .promoStrip,
  .boardGrid,
  .downloadGrid,
  .serviceGrid,
  .shopGrid,
  .topRank {
    grid-template-columns: 1fr;
  }

  .sectionBlock {
    padding: 74px 14px;
  }

  .tableWrap {
    overflow-x: auto;
  }

  th,
  td {
    padding: 12px;
  }
}
