:root {
  color-scheme: dark;
  font-family: "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --text: #fff8ed;
  --muted: rgba(255, 248, 237, 0.72);
  --line: rgba(255, 230, 188, 0.24);
  --panel: rgba(19, 10, 6, 0.78);
  --panel-soft: rgba(255, 248, 237, 0.08);
  --gold: #f1c889;
  --gold-strong: #ffdca6;
  --ink: #180d08;
  --error: #ffcf9b;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: #110905;
  color: var(--text);
}

a,
button,
input {
  font: inherit;
}

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

.landing-page {
  min-height: 100svh;
  overflow: hidden;
}

.match-landing {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #130a06;
}

.hero-art,
.hero-art img,
.landing-shade {
  position: absolute;
  inset: 0;
}

.hero-art {
  z-index: -2;
}

.hero-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

.landing-shade {
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(16, 8, 4, 0.15), transparent 38%, rgba(16, 8, 4, 0.18)),
    linear-gradient(180deg, transparent 68%, rgba(15, 7, 4, 0.4));
}

.cta-zone {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  gap: 14px;
  justify-items: center;
  transform: translate(-50%, -50%);
}

.contact-button {
  display: grid;
  width: min(280px, 31vw);
  min-width: 220px;
  min-height: 72px;
  place-items: center;
  padding: 14px 24px 16px;
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  border: 1px solid rgba(255, 248, 237, 0.76);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 248, 237, 0.94), rgba(238, 194, 127, 0.96)),
    #f1c889;
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.44),
    0 0 0 8px rgba(241, 200, 137, 0.12);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.contact-button--telegram {
  color: #fff8ed;
  border-color: rgba(255, 248, 237, 0.44);
  background:
    linear-gradient(180deg, rgba(55, 49, 76, 0.96), rgba(20, 33, 54, 0.98)),
    #21324d;
}

.contact-button--telegram .contact-button__sub {
  color: rgba(255, 248, 237, 0.68);
}

.contact-button:hover,
.contact-button:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.04);
  outline: none;
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.5),
    0 0 0 9px rgba(241, 200, 137, 0.17);
}

.contact-button.is-loading {
  pointer-events: none;
  filter: saturate(0.92);
}

.contact-button__main {
  font-size: clamp(23px, 2.2vw, 31px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0;
}

.contact-button__sub {
  margin-top: 2px;
  color: rgba(24, 13, 8, 0.66);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.link-status {
  max-width: min(310px, 78vw);
  margin: 0;
  padding: 10px 14px;
  color: var(--text);
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 9, 5, 0.78);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
}

.admin-page {
  min-height: 100svh;
  background:
    linear-gradient(135deg, rgba(62, 31, 16, 0.96), rgba(12, 6, 4, 0.98) 58%, #1b100b),
    #140b07;
}

.admin-shell {
  width: min(1060px, 100%);
  min-height: 100svh;
  margin: 0 auto;
  padding: 48px 20px;
}

.admin-login {
  width: min(620px, 100%);
  margin: 12vh auto 0;
}

.admin-kicker {
  margin: 0 0 10px;
  color: var(--gold-strong);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.admin-login h1,
.admin-header h1 {
  margin: 0 0 22px;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: 0;
}

.admin-card,
.admin-stat {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.admin-card {
  margin: 0;
  padding: 22px;
}

.admin-card legend {
  padding: 0 7px;
  color: #fff8ed;
  font-size: 18px;
  font-weight: 900;
}

.admin-card label {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-card input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  color: var(--text);
  border: 1px solid rgba(255, 230, 188, 0.2);
  border-radius: 8px;
  background: var(--panel-soft);
  outline: none;
  font-size: 16px;
}

.admin-card input:focus {
  border-color: rgba(255, 220, 166, 0.86);
  box-shadow: 0 0 0 3px rgba(241, 200, 137, 0.14);
}

.admin-password-row,
.admin-actions,
.admin-header,
.link-row,
.link-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-password-row input,
.link-row input {
  min-width: 0;
  flex: 1;
}

.admin-card button,
.admin-actions button,
.admin-header a,
.link-tools button {
  min-height: 52px;
  padding: 0 22px;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
  border: 1px solid rgba(255, 248, 237, 0.44);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff4df, #eec27f);
  cursor: pointer;
}

.admin-card button:hover,
.admin-actions button:hover,
.admin-header a:hover,
.link-tools button:hover {
  filter: brightness(1.04);
}

.admin-password-row button {
  min-width: 122px;
}

.admin-header {
  justify-content: space-between;
  margin-bottom: 22px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.admin-stat {
  padding: 18px;
}

.admin-stat span,
.admin-note {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-stat strong {
  display: block;
  margin-top: 8px;
  color: var(--gold-strong);
  font-size: 24px;
  line-height: 1.2;
}

.settings-form {
  display: grid;
  gap: 14px;
}

.link-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.link-row {
  padding: 12px;
  border: 1px solid rgba(255, 230, 188, 0.14);
  border-radius: 8px;
  background: rgba(255, 248, 237, 0.05);
}

.link-number {
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--ink);
  font-weight: 900;
  border-radius: 50%;
  background: #eec27f;
}

.link-tools {
  justify-content: space-between;
  margin-top: 14px;
}

.link-tools button,
.admin-actions button:first-child,
.admin-actions button:nth-child(2),
.link-row button {
  color: var(--text);
  border-color: rgba(255, 230, 188, 0.18);
  background: rgba(255, 248, 237, 0.08);
}

.link-row button {
  min-width: 74px;
  min-height: 46px;
  padding: 0 14px;
}

.admin-actions {
  justify-content: flex-end;
}

.admin-error,
.admin-saved {
  margin: 14px 0 0;
  color: var(--error);
  font-weight: 900;
}

.admin-saved {
  min-height: 22px;
  margin: 0;
  text-align: right;
}

@media (max-width: 900px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .hero-art img {
    object-position: center center;
  }

  .landing-shade {
    background:
      linear-gradient(180deg, rgba(16, 8, 4, 0.04) 55%, rgba(15, 7, 4, 0.48)),
      linear-gradient(90deg, rgba(16, 8, 4, 0.12), transparent 42%, rgba(16, 8, 4, 0.12));
  }

  .cta-zone {
    top: calc(60% + clamp(24px, 4svh, 36px));
    width: min(320px, calc(100vw - 42px));
  }

  .contact-button {
    width: 100%;
    min-width: 0;
    min-height: 64px;
  }

  .admin-shell {
    padding: 34px 16px;
  }

  .admin-header,
  .admin-password-row,
  .admin-actions,
  .link-tools,
  .link-row {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-header a,
  .admin-actions button,
  .admin-card button,
  .link-tools button {
    display: inline-grid;
    width: 100%;
    place-items: center;
  }

  .link-number {
    width: 34px;
    height: 34px;
  }
}
