﻿:root {
  --bg: #eef3f1;
  --panel: #ffffff;
  --ink: #192127;
  --muted: #56636f;
  --line: #d8e2df;
  --accent: #0e5f55;
  --accent-strong: #0b4942;
  --accent-soft: #e6f3f0;
  --warning: #9a4417;
  --danger: #b42318;
  --success: #117a46;
  --shadow: 0 14px 38px rgba(11, 44, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  color: var(--ink);
  font-family: "Pretendard", "Noto Sans KR", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 4% 0%, #f3d7bc 0, transparent 42%),
    radial-gradient(circle at 100% 100%, #d7ece7 0, transparent 44%),
    var(--bg);
  min-height: 100vh;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.app-shell {
  max-width: 880px;
  margin: 0 auto;
  padding: 16px 14px calc(16px + env(safe-area-inset-bottom));
}

.hero {
  padding: 8px 4px 4px;
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 36px;
  line-height: 1;
  margin-top: 4px;
}

.hero p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.panel {
  margin-top: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.hidden {
  display: none !important;
}

.field-label {
  display: block;
  margin-top: 10px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 14px;
}

input,
select,
textarea,
button {
  font: inherit;
  border-radius: 12px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  padding: 11px 12px;
  font-size: 16px;
  color: var(--ink);
}

textarea {
  min-height: 86px;
  resize: vertical;
}

button {
  min-height: 46px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
}

button:hover {
  background: var(--accent-strong);
}

button:disabled {
  opacity: 0.65;
  cursor: wait;
}

button.ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

button.ghost:hover {
  background: #f6faf9;
}

.auth-actions {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.join-wrap {
  display: grid;
  gap: 8px;
}

.party-overview {
  display: grid;
  gap: 10px;
}

.party-overview h2 {
  margin-top: 3px;
  font-size: 28px;
  letter-spacing: 0.04em;
}

.party-tools {
  display: grid;
  gap: 8px;
}

.hint {
  color: var(--muted);
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.4;
}

.stat-row {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.stat-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
  background: #fcfefd;
}

.stat-card p {
  font-size: 12px;
  color: var(--muted);
}

.stat-card strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
  color: var(--accent-strong);
}

.tab-nav {
  margin-top: 12px;
  background: #f4faf8;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  position: sticky;
  top: 8px;
  z-index: 8;
}

.tab-btn {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.tab-btn:hover {
  background: #e7f3ef;
}

.tab-btn.is-active {
  background: var(--accent);
  color: #fff;
}

.tab-panel {
  margin-top: 12px;
}

.tab-panel h3 {
  margin-bottom: 8px;
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.list li {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: #fff;
}

.list.compact li {
  font-size: 13px;
}

.member-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.member-main strong {
  font-size: 15px;
}

.member-main p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.score-badge {
  min-width: 52px;
  text-align: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 700;
}

.prediction-form {
  display: grid;
  gap: 10px;
}

.prediction-row {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 10px;
  display: grid;
  gap: 7px;
  background: #fdfefe;
}

.prediction-row label {
  color: var(--muted);
  font-size: 13px;
}

.primary-action {
  position: sticky;
  bottom: 12px;
  z-index: 6;
  margin-top: 10px;
}

.stack {
  display: grid;
  gap: 8px;
}

.claim-card {
  display: grid;
  gap: 6px;
}

.claim-title {
  font-size: 14px;
}

.claim-text {
  line-height: 1.4;
}

.claim-meta {
  color: var(--muted);
  font-size: 13px;
}

.claim-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 6px;
}

.status-open,
.status-approved,
.status-rejected {
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 12px;
}

.status-open {
  color: var(--warning);
}

.status-approved {
  color: var(--success);
}

.status-rejected {
  color: var(--danger);
}

.notice {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(92vw, 460px);
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
  z-index: 40;
}

.notice.info {
  border-color: #b8d2ce;
}

.notice.error {
  border-color: #e8b6b2;
  color: #7e0f07;
}

@media (min-width: 720px) {
  .app-shell {
    padding: 22px 18px 30px;
  }

  .panel {
    padding: 18px;
  }

  .auth-actions {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }

  .join-wrap {
    grid-template-columns: 1fr auto;
  }

  .join-wrap button {
    width: auto;
    min-width: 120px;
  }

  .party-overview {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .party-tools {
    grid-template-columns: repeat(3, auto);
    justify-content: end;
  }

  .party-tools button {
    width: auto;
    min-width: 108px;
  }

  .tab-btn {
    font-size: 14px;
  }

  .claim-actions {
    grid-template-columns: repeat(2, max-content);
    justify-content: start;
  }

  .claim-actions button {
    width: auto;
    min-width: 92px;
  }
}
