/* Design tokens + reset. Every other stylesheet uses these variables; don't hardcode colors elsewhere. */
/* Dark nightlife theme. Font + spacing rhythm borrowed from ACRO (Pretendard 500 base, pill inputs,
   20px big cards / 10px small), colors are this site's own: Saigon-at-night indigo, neon-sign red, lantern yellow. */
:root {
  --bg: #0E1220;          /* page */
  --paper: #161B2E;       /* panels / boards */
  --paper-2: #1D2340;     /* raised: hover rows, inputs */
  --night: #0A0D18;       /* header / footer */
  --night-2: #2A3358;
  --line: #262D48;
  --line-2: #1F2540;
  --ink: #ECEEF5;         /* main text */
  --ink-2: #A9AFC6;       /* secondary */
  --ink-3: #6C7391;       /* meta */
  --neon: #FF4D5E;        /* actions, unread, hot */
  --neon-dark: #E23347;
  --lantern: #F5B83D;     /* highlights: partner badge, best */
  --ok: #34C38F;

  /* district tags: the site's signature system, same hue everywhere a district appears */
  --d1: #FF5A6A;
  --d3: #A27BFF;
  --d5: #F29A3F;
  --d7: #38C3D6;
  --d2: #5B9BFF;
  --d-other: #8A90AA;

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-cn: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", var(--font);

  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-md: 15px;
  --fs-lg: 18px;
  --fs-xl: 22px;
  --fs-2xl: 30px;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 20px;
  --r-pill: 999px;

  --wrap: 1240px;
  --gutter: 16px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-md);
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-wrap: anywhere; /* ACRO: default Korean wrapping, no keep-all; break lines with <br> where it matters */
}
html[lang="zh-Hans"] body { font-family: var(--font-cn); }
html[lang="en"] body { overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-weight: 700; line-height: 1.32; letter-spacing: -0.4px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* district tag — use: <span class="dtag" data-d="D1">1군</span> */
.dtag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 1px 7px; border-radius: var(--r-sm);
  font-size: var(--fs-xs); font-weight: 700; line-height: 18px; white-space: nowrap;
  color: var(--dc, var(--d-other));
  background: color-mix(in srgb, var(--dc, var(--d-other)) 16%, transparent);
}
.dtag[data-d="D1"] { --dc: var(--d1); }
.dtag[data-d="D3"] { --dc: var(--d3); }
.dtag[data-d="D5"] { --dc: var(--d5); }
.dtag[data-d="D7"] { --dc: var(--d7); }
.dtag[data-d="D2"] { --dc: var(--d2); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px; padding: 0 20px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--paper);
  font-size: var(--fs-sm); font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background-color .3s ease-out, border-color .3s ease-out, color .3s ease-out;
}
.btn-lg { height: 52px; padding: 0 28px; font-size: 16px; font-weight: 700; }
@media (max-width: 767px) { .btn-lg { height: 48px; } }
.btn:hover { border-color: var(--ink-3); }
.btn-primary { background: var(--neon); border-color: var(--neon); color: #fff; }
.btn-primary:hover { background: var(--neon-dark); border-color: var(--neon-dark); }
.btn-primary:active { background: color-mix(in srgb, var(--neon-dark) 80%, black); }
.btn-line { background: transparent; border: 1.5px solid var(--neon); color: var(--neon); }
.btn-dark { background: var(--paper-2); border-color: var(--line); color: var(--ink); }
.btn-sm { height: 34px; padding: 0 14px; font-size: var(--fs-xs); }

/* form controls */
.input, .select, .textarea {
  width: 100%; height: 46px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--paper-2);
  font-size: 16px; /* 16px: no iOS zoom on focus */
  transition: border-color .2s, box-shadow .2s;
}
.textarea { height: auto; min-height: 140px; padding: 14px 18px; border-radius: var(--r-lg); resize: vertical; }
.field-error { color: var(--neon); font-size: var(--fs-sm); } /* ACRO copy style: "*닉네임을 입력해주세요" */
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--neon); box-shadow: 0 0 0 3px color-mix(in srgb, var(--neon) 20%, transparent); }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }

/* flash messages */
.flash { margin: 12px 0; padding: 10px 14px; border-radius: var(--r-md); font-size: var(--fs-sm); background: var(--paper); border-left: 4px solid var(--ink-3); }
.flash-success { border-color: var(--ok); }
.flash-error { border-color: var(--neon); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
