:root {
  --bg: #FEFBF4;
  --card: #F5EEE0;
  --line: #E0D5C0;
  --gold: #B08D2E;
  --text: #2C2418;
  --muted: #8C8070;
  --ok: #4caf50;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 28px 0 60px;
}

.hero {
  background: linear-gradient(135deg, #F5EEE0, #FEFBF4);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  margin-bottom: 18px;
}

h1, h2, h3 { margin: 0 0 12px; }
p { margin: 0 0 10px; color: var(--muted); }

.btn {
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-weight: 600;
}
.btn.primary {
  background: var(--gold);
  color: #FEFBF4;
}

.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}

.kv {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 6px;
  font-size: 14px;
}

.value { color: var(--text); }
.mono { font-family: Consolas, monospace; }

.pill {
  display: inline-block;
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  margin-right: 8px;
  color: var(--muted);
}

.status-ok { color: var(--ok); font-weight: 700; }
.hidden { display: none; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th, td {
  border-bottom: 1px solid var(--line);
  padding: 8px 6px;
  text-align: left;
}
th { color: var(--gold); font-weight: 600; }

/* —— 참여 로그인 / 참여자 정보 (index·participate 공통) —— */
body.has-ob-header { padding-top: 48px; }
.ob-site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10000;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 0 24px;
  background: rgba(254,251,244,0.95);
  border-bottom: 1px solid rgba(176,141,46,0.18);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.ob-site-logo {
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  font-size: 16px;
  letter-spacing: 0.06em;
}
.ob-site-nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.ob-header-btn {
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 7px 12px;
  background: rgba(215, 181, 109, 0.12);
  border: 1px solid rgba(215, 181, 109, 0.45);
  color: var(--text);
  cursor: pointer;
}
.ob-header-btn:hover { background: rgba(215, 181, 109, 0.22); }
.ob-user-greeting {
  font-size: 12px;
  color: var(--muted);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ob-hidden { display: none !important; }
.ob-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 11000;
  background: rgba(44,36,24,0.5);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}
.ob-auth-overlay.open { display: flex; }
.ob-auth-panel {
  background: var(--card);
  border: 1px solid var(--line);
  max-width: 440px;
  width: 100%;
  padding: 36px 32px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}
.ob-auth-panel.wide { max-width: 520px; }
.ob-auth-title {
  font-size: 20px;
  color: var(--gold);
  margin-bottom: 8px;
  font-weight: 700;
}
.ob-auth-lead {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 22px;
  line-height: 1.55;
}
.ob-auth-divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 20px 0 14px;
}
.ob-id-section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin-bottom: 12px;
}
.ob-id-form { margin-bottom: 6px; }
.ob-id-form .ob-form-row { margin-bottom: 10px; }
.ob-btn-email {
  width: 100%;
  padding: 12px 16px;
  margin-top: 4px;
  border: 1px solid var(--gold);
  background: rgba(215, 181, 109, 0.12);
  color: var(--gold);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.ob-btn-email:hover { background: rgba(215, 181, 109, 0.22); }
.ob-auth-link-toggle {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  width: 100%;
}
.ob-auth-link-toggle:hover { color: var(--gold); }
.ob-sns-section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin-bottom: 12px;
}
.ob-sns-row { display: flex; flex-direction: column; gap: 10px; }
.ob-sns-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: rgba(215, 181, 109, 0.08);
  color: var(--text);
  font-size: 15px;
  cursor: pointer;
}
.ob-sns-btn:hover { background: rgba(215, 181, 109, 0.15); }
.ob-sns-google { border-left: 3px solid #4285f4; }
.ob-sns-kakao { border-left: 3px solid #fee500; }
.ob-sns-naver { border-left: 3px solid #03c75a; }
.ob-sns-apple { border-left: 3px solid #fff; }
.ob-auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.35);
  border: none;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 2px 8px;
}
.ob-auth-close:hover { color: var(--gold); }
.ob-form-row { margin-bottom: 14px; }
.ob-form-row label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 6px;
  font-weight: 600;
}
.ob-form-row input,
.ob-form-row textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 15px;
}
.ob-form-row textarea { min-height: 72px; resize: vertical; }
.ob-form-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; }
.ob-form-check input { width: auto; margin-top: 4px; }
.ob-form-check label { font-size: 13px; color: var(--muted); line-height: 1.5; letter-spacing: 0; font-weight: 400; }
.ob-auth-note { font-size: 12px; color: var(--muted); margin-top: 16px; line-height: 1.5; }
