:root {
  --bg-top: #f6efe3;
  --bg-bottom: #d7e8ff;
  --panel: rgba(255, 252, 245, 0.9);
  --panel-strong: rgba(255, 255, 255, 0.96);
  --text: #172033;
  --muted: #5e6778;
  --line: rgba(23, 32, 51, 0.12);
  --accent: #e85d2a;
  --accent-dark: #c74414;
  --accent-soft: #fff0e8;
  --shadow: 0 28px 80px rgba(34, 47, 77, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", "Noto Sans KR", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.7), transparent 30%),
    linear-gradient(160deg, var(--bg-top), var(--bg-bottom));
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 999px;
  filter: blur(10px);
  pointer-events: none;
}

body::before {
  width: 240px;
  height: 240px;
  top: 40px;
  right: 7vw;
  background: rgba(232, 93, 42, 0.16);
}

body::after {
  width: 320px;
  height: 320px;
  bottom: -80px;
  left: -60px;
  background: rgba(53, 119, 239, 0.16);
}

.app-shell {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 56px;
}

.hero-card,
.board-card,
.guide-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-card {
  padding: 36px;
}

.eyebrow,
.section-label {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

h1,
h2 {
  margin: 0;
  font-family: "Black Han Sans", "Space Grotesk", sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(2.3rem, 5vw, 4.5rem);
  line-height: 1.02;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.hero-copy {
  max-width: 580px;
  margin: 18px 0 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

button,
.action-link {
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  font: inherit;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: transform 160ms ease, opacity 160ms ease, background-color 160ms ease;
}

button:hover,
.action-link:hover {
  transform: translateY(-1px);
}

button:active,
.action-link:active {
  transform: translateY(1px);
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}

.secondary-button {
  color: var(--text);
  background: var(--panel-strong);
  border: 1px solid var(--line);
}

.board-card {
  margin-top: 22px;
  padding: 28px;
}

.board-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.timestamp {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.combination-item {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  background: var(--panel-strong);
  border: 1px solid rgba(23, 32, 51, 0.08);
}

.set-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.set-label {
  font-size: 1rem;
  font-weight: 700;
}

.set-summary {
  color: var(--muted);
  font-size: 0.92rem;
}

.ball-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ball {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  box-shadow: inset 0 -6px 12px rgba(0, 0, 0, 0.12);
}

.ball-tier-1 { background: #f4b400; }
.ball-tier-2 { background: #3577ef; }
.ball-tier-3 { background: #ef4444; }
.ball-tier-4 { background: #6b7280; }
.ball-tier-5 { background: #22a06b; }

.guide-card {
  margin-top: 22px;
  padding: 24px 28px;
}

.guide-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.tile-gallery-card {
  overflow: hidden;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tile-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tile-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: var(--panel-strong);
  border: 2px solid #e53935;
  box-shadow: 0 18px 42px rgba(34, 47, 77, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.upload-card .tile-image {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0)),
    #ebe3d8;
}

.upload-card.is-dragover {
  border-color: #1f6feb;
  box-shadow: 0 22px 46px rgba(31, 111, 235, 0.18);
  transform: translateY(-2px);
}

.upload-card.has-upload {
  border-color: #22a06b;
}

.tile-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0)),
    #ddd6cb;
}

.upload-overlay {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(23, 32, 51, 0.72);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
}

.upload-card.is-dragover .upload-overlay,
.upload-card.has-upload .upload-overlay {
  opacity: 1;
  transform: translateY(0);
}

.upload-card.has-upload .upload-overlay {
  background: rgba(34, 160, 107, 0.88);
}

.tile-content {
  padding: 18px 18px 20px;
}

.tile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tile-head strong {
  font-size: 1.05rem;
}

.tile-head span {
  color: var(--accent-dark);
  font-size: 0.88rem;
  font-weight: 700;
}

.tile-content p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.upload-help {
  font-size: 0.86rem;
  color: var(--accent-dark);
}

.tile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tile-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 700;
}

@media (max-width: 720px) {
  .app-shell {
    width: min(100% - 20px, 960px);
    padding: 20px 0 36px;
  }

  .hero-card,
  .board-card,
  .guide-card {
    border-radius: 22px;
  }

  .hero-card,
  .board-card {
    padding: 22px;
  }

  .guide-card {
    padding: 20px 22px;
  }

  .tile-grid {
    grid-template-columns: 1fr;
  }

  .tile-grid-4 {
    grid-template-columns: 1fr;
  }

  .board-header,
  .set-meta {
    align-items: start;
    flex-direction: column;
  }

  .ball {
    width: 46px;
    height: 46px;
  }
}

.hub-target-section {
  padding: 120px 24px;
  background: #f5f5f7;
}

.hub-target-wrap {
  max-width: 1180px;
  margin: 0 auto;
}

.hub-target-head {
  max-width: 760px;
  margin: 0 auto 52px;
  text-align: center;
}

.hub-target-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: #e9eaee;
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 18px;
}

.hub-target-head h2 {
  margin: 0 0 14px;
  font-size: clamp(34px, 4.8vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: #111111;
}

.hub-target-head p {
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
  color: #6b7280;
}

.hub-target-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.hub-target-card {
  display: block;
  padding: 32px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 28px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hub-target-card:hover {
  transform: translateY(-4px);
  border-color: #d1d5db;
  box-shadow: 0 18px 40px rgba(17, 17, 17, 0.06);
}

.hub-target-no {
  display: inline-block;
  margin-bottom: 18px;
  color: #b42318;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.hub-target-card h3 {
  margin: 0 0 12px;
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #111111;
}

.hub-target-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: #6b7280;
}

@media (max-width: 900px) {
  .hub-target-section {
    padding: 88px 20px;
  }

  .hub-target-grid {
    grid-template-columns: 1fr;
  }

  .hub-target-head h2 {
    font-size: 34px;
  }

  .hub-target-head p {
    font-size: 16px;
  }

  .hub-target-card {
    padding: 24px;
    border-radius: 24px;
  }

  .hub-target-card h3 {
    font-size: 22px;
  }
}
