:root {
  --ink: #12313f;
  --muted: #607882;
  --line: rgba(18, 49, 63, 0.12);
  --white: #ffffff;
  --foam: #f2fbf8;
  --sand: #fff7df;
  --aqua: #11a9a4;
  --aqua-deep: #087b8f;
  --coral: #ff6f59;
  --sun: #ffc857;
  --leaf: #5e9f62;
  --shadow: 0 18px 46px rgba(9, 69, 86, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(4, 101, 116, 0.08), rgba(13, 164, 158, 0.2)),
    url("./assets/sea-bg.jpg") center / cover fixed;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Segoe UI", sans-serif;
  min-height: 100svh;
  overflow: hidden;
}

button,
input {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.76);
  border-bottom: 1px solid rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(18px);
}

.brand,
.nav a,
.home-shortcuts a {
  color: inherit;
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--white);
  background: linear-gradient(135deg, var(--aqua), var(--aqua-deep));
  border-radius: 50%;
  font-size: 12px;
}

.nav {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
}

.nav a {
  display: grid;
  place-items: center;
  min-height: 32px;
  padding: 0 10px;
  color: #45636d;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.nav a:hover {
  color: var(--aqua-deep);
  background: rgba(17, 169, 164, 0.12);
}

.hero {
  position: relative;
  min-height: 100%;
  padding: 34px 16px 30px;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 94, 111, 0.04), rgba(0, 112, 123, 0.1) 42%, rgba(240, 255, 249, 0.82)),
    url("./assets/sea-bg.jpg") center / cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: end;
  width: min(520px, 100%);
  min-height: calc(100svh - 150px);
  margin: 0 auto;
  padding-top: 84px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 320px;
  margin: 0;
  color: var(--white);
  text-shadow: 0 4px 20px rgba(0, 80, 90, 0.48);
  font-size: clamp(42px, 14vw, 68px);
  line-height: 0.98;
}

.hero p:not(.eyebrow) {
  max-width: 330px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 2px 14px rgba(0, 80, 90, 0.38);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.58;
}

.home-shortcuts {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.shortcut {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "kicker kicker"
    "title arrow"
    "desc desc";
  gap: 4px 12px;
  min-height: 108px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.shortcut::after {
  content: ">";
  grid-area: arrow;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--white);
  background: var(--aqua-deep);
  border-radius: 50%;
  font-weight: 950;
}

.shortcut-kicker {
  grid-area: kicker;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.shortcut strong {
  grid-area: title;
  align-self: center;
  font-size: 26px;
  line-height: 1.1;
}

.shortcut small {
  grid-area: desc;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.shortcut.food {
  border-left: 8px solid var(--coral);
}

.shortcut.hotel {
  border-left: 8px solid var(--aqua);
}

.shortcut.game {
  border-left: 8px solid var(--sun);
}

button {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 900;
}

.section {
  padding: 48px 16px;
  background: rgba(247, 251, 248, 0.88);
}

.food-section {
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
}

.section-head {
  display: grid;
  gap: 10px;
  max-width: 1080px;
  margin: 0 auto 18px;
}

.section-head h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.13;
}

.section-head > p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
}

.tool-layout,
.game-board {
  display: grid;
  gap: 14px;
  max-width: 1080px;
  margin: 0 auto;
}

.filter-panel,
.game-play,
.hotel-detail,
.restaurant-card,
.facility-item,
.game-item {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(9, 69, 86, 0.08);
}

.filter-panel {
  padding: 16px;
}

.search-box,
.filter-group {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.search-box span,
.filter-group > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.search-box input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: var(--ink);
  background: #f8fffc;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
}

.search-box input:focus {
  border-color: var(--aqua);
  box-shadow: 0 0 0 4px rgba(17, 169, 164, 0.14);
}

.chip-row {
  display: flex;
  gap: 8px;
  padding-bottom: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.chip-row::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 13px;
  color: var(--muted);
  background: #eef8f5;
  border: 1px solid rgba(17, 169, 164, 0.12);
  border-radius: 999px;
}

.chip.active {
  color: var(--white);
  background: linear-gradient(135deg, var(--aqua), var(--aqua-deep));
}

.toggle-line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin: 8px 0 14px;
  padding: 0 12px;
  background: var(--sand);
  border-radius: 14px;
  font-weight: 900;
}

.toggle-line input {
  width: 19px;
  height: 19px;
  accent-color: var(--coral);
}

.notice {
  padding: 14px;
  background: #fff8df;
  border: 1px solid rgba(255, 200, 87, 0.42);
  border-radius: 16px;
}

.notice p {
  margin: 7px 0 0;
  color: #6e5a22;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}

.result-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  margin: 0 0 12px;
  padding: 0;
  background: transparent;
}

.result-summary button,
.game-play-head button,
.game-controls button {
  padding: 0 14px;
  color: var(--white);
  background: var(--aqua-deep);
}

.restaurant-grid,
.facility-grid {
  display: grid;
  gap: 12px;
}

.restaurant-card {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 16px;
  overflow: hidden;
}

.restaurant-card.featured {
  border: 2px solid #ff3d7f;
  background:
    linear-gradient(135deg, rgba(255, 246, 87, 0.2), rgba(255, 61, 127, 0.1)),
    rgba(255, 255, 255, 0.98);
  box-shadow:
    0 14px 34px rgba(255, 61, 127, 0.18),
    0 0 0 4px rgba(255, 246, 87, 0.34);
}

.restaurant-card.featured::before {
  content: "상우 픽";
  position: absolute;
  top: 12px;
  right: -36px;
  width: 132px;
  padding: 6px 0;
  color: #301000;
  background: #fff657;
  box-shadow: 0 6px 16px rgba(255, 61, 127, 0.2);
  font-size: 12px;
  font-weight: 950;
  text-align: center;
  transform: rotate(35deg);
}

.restaurant-card.featured::after {
  content: "★";
  position: absolute;
  right: 16px;
  bottom: 12px;
  color: rgba(255, 61, 127, 0.18);
  font-size: 58px;
  font-weight: 950;
  line-height: 1;
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.restaurant-card h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.28;
}

.badge {
  align-self: start;
  white-space: nowrap;
  padding: 7px 10px;
  color: #301000;
  background: linear-gradient(135deg, #fff657, #ff9f1c 52%, #ff3d7f);
  border-radius: 999px;
  box-shadow: 0 5px 0 #301000, 0 10px 18px rgba(255, 61, 127, 0.24);
  font-size: 12px;
  font-weight: 950;
  transform: rotate(-3deg);
  animation: sangwoo-pop 1.4s ease-in-out infinite;
}

@keyframes sangwoo-pop {
  0%,
  100% {
    transform: rotate(-3deg) scale(1);
  }

  50% {
    transform: rotate(2deg) scale(1.06);
  }
}

.meta-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.meta-row span,
.tag-row span {
  padding: 6px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.meta-row span {
  color: #4f6871;
  background: #eff8f8;
}

.tag-row span {
  color: #236e67;
  background: #e3f6ef;
}

.restaurant-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}

.hotel-tabs {
  display: flex;
  max-width: 1080px;
  margin: 0 auto 12px;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.hotel-tabs::-webkit-scrollbar {
  display: none;
}

.hotel-tabs button {
  flex: 0 0 auto;
  padding: 0 15px;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.hotel-tabs button.active {
  color: var(--white);
  background: var(--leaf);
}

.hotel-detail {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px;
}

.hotel-detail h3 {
  margin: 0 0 8px;
  font-size: 25px;
}

.hotel-detail > p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.55;
}

.facility-grid {
  margin-top: 14px;
}

.facility-item {
  padding: 15px;
  box-shadow: none;
}

.facility-item strong {
  display: block;
  margin-bottom: 7px;
  color: var(--aqua-deep);
  font-size: 16px;
}

.facility-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

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

.game-item {
  min-height: 88px;
  padding: 14px;
  text-align: left;
  color: var(--ink);
}

.game-item.active {
  color: var(--white);
  background: linear-gradient(135deg, var(--aqua-deep), var(--aqua));
}

.game-item span {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  opacity: 0.78;
}

.game-play {
  padding: 18px;
}

.game-play-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.game-play-head span {
  color: var(--coral);
  font-size: 13px;
  font-weight: 950;
}

.game-play h3 {
  margin: 3px 0 0;
  font-size: 26px;
}

.word-card {
  display: grid;
  place-items: center;
  min-height: 230px;
  margin: 18px 0;
  padding: 22px;
  text-align: center;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(8, 123, 143, 0.94), rgba(17, 169, 164, 0.9)),
    url("https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1200&q=70") center / cover;
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  font-size: clamp(34px, 11vw, 64px);
  font-weight: 950;
  line-height: 1.12;
  word-break: keep-all;
}

.game-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.game-tip {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.footer {
  display: grid;
  gap: 4px;
  padding: 24px 16px 34px;
  color: var(--muted);
  background: #f7fbf8;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 800;
}

.app-shell {
  position: relative;
  height: calc(100svh - 60px);
  overflow: hidden;
}

.view {
  position: absolute;
  inset: 0;
  display: none;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.view.active-view {
  display: block;
}

.section.view {
  border-top-left-radius: 26px;
  border-top-right-radius: 26px;
  margin-top: 12px;
  height: calc(100% - 12px);
  box-shadow: 0 -18px 60px rgba(0, 93, 103, 0.18);
}

.nav a.active-nav {
  color: var(--white);
  background: linear-gradient(135deg, var(--aqua), var(--aqua-deep));
}

.footer {
  display: none;
}

@media (min-width: 760px) {
  body {
    background-size: cover;
  }

  .topbar {
    padding-inline: 44px;
  }

  .hero {
    padding-inline: 44px;
  }

  .hero-content {
    width: min(1000px, 100%);
  }

  .home-shortcuts {
    grid-template-columns: repeat(3, 1fr);
  }

  .tool-layout {
    grid-template-columns: 310px minmax(0, 1fr);
    align-items: start;
  }

  .filter-panel {
    position: sticky;
    top: 82px;
  }

  .result-summary {
    margin: 0 0 12px;
    padding: 0;
    background: transparent;
  }

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

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

  .game-board {
    grid-template-columns: 330px minmax(0, 1fr);
  }

  .game-list {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 72px 44px;
  }
}
