/* 공통 스타일 (index.html, admin.html) */
:root {
  --ink: #0e0e10;
  --accent: #f2261b;
  --paper: #e8e9eb;
  --card: #ffffff;
  --line: #d6d8dc;
  --muted: #6e7178;
  --danger: #e5484d;
  --display: "Arial Black", "Helvetica Neue", "Archivo Black", Impact, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --body: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { overflow-x: hidden; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}
/* concrete texture */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .4  0 0 0 0 .4  0 0 0 0 .42  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
    radial-gradient(ellipse at 15% 20%, rgba(255,255,255,.7), transparent 55%),
    radial-gradient(ellipse at 85% 70%, rgba(0,0,0,.06), transparent 60%);
  opacity: .55;
}
.wrap { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: 0 20px 56px; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 13px; letter-spacing: .02em; text-transform: none; color: inherit; text-decoration: none; }
.logo-mark { width: 18px; height: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.logo-mark i { background: var(--ink); border-radius: 2px; }
.logo-mark i:nth-child(2) { background: var(--accent); border-radius: 50%; }

.label { display: block; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 6px; }

.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 14px; border-radius: 999px;
  font-size: 12px; font-weight: 700; background: var(--c, var(--accent)); color: var(--fg, #fff); white-space: nowrap;
}
.pill.outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }

/* platform logo (image or letter fallback) */
.plogo {
  flex: none; display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
  width: 20px; height: 20px; border-radius: 50%; object-fit: cover;
  background: var(--c, var(--accent)); color: var(--fg, #fff); font-weight: 900; font-size: 10px; line-height: 1;
}
img.plogo { background: #fff; }

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

dialog {
  border: 2px solid var(--ink); border-radius: 26px; padding: 0; width: min(480px, calc(100vw - 28px));
  background: var(--card); color: var(--ink); overflow: hidden;
}
dialog::backdrop { background: rgba(14, 14, 16, .55); backdrop-filter: blur(2px); }
.dlg-close {
  position: absolute; top: 14px; right: 14px; appearance: none; border: 0; width: 40px; height: 40px; border-radius: 12px;
  background: rgba(0,0,0,.06); color: inherit; font-size: 22px; cursor: pointer;
}
.dlg-close:hover { background: rgba(0,0,0,.12); }

@media (max-width: 720px) { .wrap { padding: 0 12px 40px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
