@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700;800;900&display=swap');
:root {
  --lime: #b9e431;
  --ink: #202521;
  --muted: #858981;
  --line: #edf0e9;
  --wash: #f6f7f3
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  background: #eceee8;
  color: var(--ink);
  font: 14px 'Noto Sans KR',sans-serif;
  letter-spacing: -.4px
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit
}

button,
a {
  -webkit-tap-highlight-color: transparent
}

button {
  border: 0;
  background: none;
  cursor: pointer
}

button:disabled {
  opacity: .4;
  cursor: default
}

a {
  color: inherit
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid #729600;
  outline-offset: 3px
}

#app {
  max-width: 480px;
  background: #fff;
  min-height: 100dvh;
  margin: auto;
  padding-bottom: 150px;
  overflow: hidden
}

header {
  height: 68px;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  gap: 12px
}

header.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  color: #fff;
  background: linear-gradient(#142c2b60,transparent)
}

.logo {
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -1.4px
}

.logo em {
  font-size: 23px;
  font-style: italic;
  color: var(--lime)
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px
}

.icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  position: relative
}

.icon svg,
nav svg {
  width: 23px;
  height: 23px;
  stroke: currentColor;
  stroke-width: 1.65;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round
}

.dot {
  position: absolute;
  right: 3px;
  top: 3px;
  border: 2px solid white;
  background: #ff6552;
  width: 9px;
  height: 9px;
  border-radius: 50%
}

h1,
h2,
h3,
p {
  margin-top: 0
}

h2 {
  font-size: 19px;
  line-height: 1.5;
  letter-spacing: -.7px
}

h3 {
  font-size: 16px
}

.section {
  padding: 24px 22px 10px
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px
}

.section-title h2 {
  margin: 0
}

.more {
  font-size: 11px;
  color: var(--muted);
  padding: 4px
}

.muted {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7
}

.small {
  font-size: 11px
}

.row {
  display: flex;
  gap: 10px;
  align-items: center
}

.between {
  justify-content: space-between
}

.hero-wrap {
  position: relative
}

.hero-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none
}

.hero {
  flex: 0 0 100%;
  height: 430px;
  color: #fff;
  position: relative;
  scroll-snap-align: start;
  border-radius: 0 0 26px 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 88px 24px 38px;
  background: #213932
}

.hero .backdrop {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  z-index: 0
}

.hero:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,#10252499 0%,#1025240d 45%,#102524d9 100%)
}

.hero>*:not(.backdrop) {
  position: relative;
  z-index: 1
}

.hero h1 {
  font-size: 23px;
  line-height: 1.5;
  margin: 10px 0
}

.hero .hero-title {
  font-size: 30px;
  line-height: 1.25;
  font-weight: 800
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 1.7px;
  margin-bottom: 10px;
  opacity: .85
}

.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: end
}

.circle-next {
  border-radius: 50%;
  width: 42px;
  height: 42px;
  background: var(--lime);
  color: #203315;
  font-size: 24px
}

.carousel-dots {
  position: absolute;
  bottom: 17px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 3
}

.carousel-dots button {
  padding: 0;
  width: 6px;
  height: 4px;
  border-radius: 5px;
  background: #ffffff6b
}

.carousel-dots button.on {
  width: 24px;
  background: white
}

.shelf {
  display: flex;
  gap: 12px;
  overflow: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  margin: 0 -22px;
  padding: 0 22px 12px
}

.poster-card {
  flex: 0 0 146px;
  min-width: 0;
  scroll-snap-align: start
}

.poster {
  height: 194px;
  position: relative;
  border-radius: 13px;
  overflow: hidden;
  background: #1b3d35;
  color: white;
  cursor: pointer
}

.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.poster:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 35%,#0b252ad9)
}

.poster .poster-title {
  position: absolute;
  bottom: 17px;
  left: 14px;
  right: 12px;
  z-index: 1;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 800
}

.poster .heart {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 2;
  color: #fff;
  background: #0b252a35;
  border-radius: 50%;
  width: 31px;
  height: 31px
}

.heart.saved {
  color: #c8ef52!important
}

.rank {
  position: absolute;
  bottom: -4px;
  left: 8px;
  z-index: 2;
  font-size: 53px;
  font-weight: 900;
  line-height: 1;
  color: white;
  text-shadow: 0 1px 8px #0003
}

.ranked .poster-title {
  bottom: 53px
}

.card-meta {
  padding: 9px 1px
}

.card-meta p {
  margin: 3px 0
}

.card-meta b {
  font-size: 13px;
  display: block;
  line-height: 1.5
}

.device-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: flex;
  gap: 3px
}

.device-badges span {
  background: #ffffffea;
  color: #263d31;
  border-radius: 5px;
  padding: 4px;
  display: flex
}

.device-badges svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6
}

.chips {
  display: flex;
  gap: 7px;
  overflow: auto;
  scrollbar-width: none;
  margin: 0 0 16px
}

.chip {
  border: 1px solid #e0e4da;
  border-radius: 20px;
  white-space: nowrap;
  padding: 7px 12px;
  font-size: 11px;
  background: white
}

.chip.on {
  background: #222b22;
  color: white;
  border-color: #222b22
}

.bar {
  height: 4px;
  background: #e7ebdf;
  border-radius: 5px;
  overflow: hidden
}

.bar i {
  display: block;
  background: var(--lime);
  height: 100%
}

.split {
  height: 8px;
  background: var(--wash);
  margin-top: 20px
}

.empty {
  background: var(--wash);
  border: 1px dashed #dfe4d4;
  border-radius: 15px;
  padding: 25px 20px;
  text-align: center;
  line-height: 1.8;
  font-size: 13px
}

.empty .icon {
  display: flex;
  margin: 0 auto 10px;
  color: #78905d
}

.primary {
  background: var(--lime);
  font-weight: 700;
  border-radius: 11px;
  padding: 14px 20px;
  min-height: 48px
}

.secondary {
  border: 1px solid #dce2d4;
  background: white;
  border-radius: 11px;
  padding: 13px 18px
}

.wide {
  width: 100%
}

.news-banner {
  padding: 23px;
  border-radius: 15px;
  background: #eff5d8;
  min-height: 128px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left
}

.news-banner b {
  display: block;
  font-size: 18px;
  margin: 7px 0
}

.news-art {
  font-size: 45px;
  transform: rotate(-10deg)
}

.media-tile {
  min-width: 225px;
  border-radius: 12px;
  background: #edf0e7;
  padding: 20px;
  text-align: left;
  min-height: 120px
}

.media-tile b {
  display: block;
  margin: 8px 0
}

nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(480px,100%);
  background: #fffffff5;
  backdrop-filter: blur(14px);
  height: calc(72px + env(safe-area-inset-bottom));
  padding: 9px 12px env(safe-area-inset-bottom);
  display: flex;
  z-index: 12;
  border-top: 1px solid var(--line)
}

nav button {
  flex: 1;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 4px;
  font-size: 10px;
  color: #91978c;
  white-space: nowrap
}

nav button.on {
  color: #25321d;
  font-weight: 800
}

nav button.on svg {
  fill: #b9e43144;
  stroke-width: 2
}

.resume {
  position: fixed;
  bottom: calc(72px + env(safe-area-inset-bottom));
  width: min(480px,100%);
  left: 50%;
  transform: translateX(-50%);
  z-index: 11;
  padding: 9px 15px;
  background: #fff;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 -3px 14px #132a1805
}

.resume img {
  width: 36px;
  height: 40px;
  object-fit: cover;
  border-radius: 5px
}

.resume-info {
  flex: 1;
  font-size: 11px
}

.resume-info .bar {
  margin-top: 6px;
  height: 3px
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  background: #f4f5f1;
  border-radius: 11px;
  padding: 0 13px;
  gap: 8px
}

.search input {
  border: 0;
  background: none;
  outline: none;
  width: 100%;
  padding: 13px 0;
  font-size: 13px
}

.search svg {
  width: 18px;
  height: 18px;
  stroke: #6a7562;
  fill: none;
  stroke-width: 1.7
}

.list-card {
  display: flex;
  gap: 14px;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
  position: relative
}

.list-card .thumb {
  width: 100px;
  height: 130px;
  border-radius: 11px;
  object-fit: cover
}

.list-info {
  flex: 1;
  min-width: 0
}

.list-info b {
  display: block;
  font-size: 15px;
  margin: 5px 0 8px;
  line-height: 1.45
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px
}

.tag {
  border: 1px solid #e0e4da;
  border-radius: 4px;
  font-size: 9px;
  padding: 2px 5px;
  color: #66705e
}

.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  background: white
}

.tabs button {
  flex: 1;
  white-space: nowrap;
  padding: 16px 4px;
  font-size: 13px;
  color: #93978d
}

.tabs button.on {
  color: #222b22;
  font-weight: 700;
  border-bottom: 2px solid #263326
}

.profile {
  padding: 12px 22px 25px;
  display: flex;
  align-items: center;
  gap: 13px
}

.avatar {
  width: 58px;
  height: 58px;
  background: #eff4dc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px
}

.profile .secondary {
  font-size: 11px;
  padding: 8px 10px;
  min-height: 0
}

.wallet {
  margin: 0 22px 18px;
  background: #f6f7f2;
  border-radius: 14px;
  padding: 18px;
  display: flex
}

.wallet button {
  flex: 1;
  border-right: 1px solid #dde3d2
}

.wallet button:last-child {
  border: 0
}

.wallet b {
  display: block;
  margin-top: 6px
}

.detail-hero {
  position: relative;
  text-align: center;
  padding: 24px 22px 58px;
  color: white;
  background: #1b3b35;
  border-radius: 0 0 24px 24px;
  overflow: hidden
}

.detail-hero>img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(12px) brightness(.42);
  transform: scale(1.2)
}

.detail-hero>*:not(img) {
  position: relative
}

.detail-hero .row {
  justify-content: space-between;
  margin-bottom: 16px
}

.round {
  border-radius: 50%;
  background: white;
  color: #263326;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center
}

.detail-poster {
  width: 174px;
  height: 223px;
  margin: 0 auto 18px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 12px 25px #0005
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.detail-poster b {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: end;
  padding: 20px;
  font-size: 28px;
  line-height: 1.2;
  text-align: left;
  background: linear-gradient(transparent,#102d3dd9)
}

.place-pill {
  display: inline-block;
  background: #ffffffed;
  color: #30412d;
  font-size: 11px;
  padding: 5px 12px;
  border-radius: 20px
}

.detail-hero h1 {
  font-size: 25px;
  margin: 12px 0
}

.price {
  font-weight: 800;
  font-size: 20px
}

.info-grid {
  margin: -34px 22px 12px;
  position: relative;
  background: white;
  box-shadow: 0 4px 14px #162e1510;
  border-radius: 14px;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  padding: 18px 10px;
  gap: 19px 0;
  text-align: center
}

.info-grid div {
  border-right: 1px solid var(--line)
}

.info-grid div:nth-child(3n) {
  border: 0
}

.info-grid b {
  display: block;
  font-size: 12px;
  margin-bottom: 6px
}

.info-grid span {
  font-size: 10px;
  color: var(--muted)
}

.sticky-tabs {
  position: sticky;
  top: 0;
  z-index: 6
}

.story-panel {
  position: relative;
  min-height: 390px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 38px 26px;
  background: #122e31;
  color: white;
  overflow: hidden;
  line-height: 1.9;
  border-radius: 10px
}

.story-panel .story-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .27
}

.story-panel>*:not(.story-bg) {
  position: relative
}

.story-panel h2 {
  font-size: 26px;
  color: #e5f7b1
}

.story-panel .npc {
  width: 150px;
  height: 180px;
  object-fit: cover;
  object-position: top;
  margin: 18px auto -30px;
  border-radius: 80px 80px 8px 8px;
  opacity: .9
}

.detail-actions {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(480px,100%);
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 9px;
  z-index: 13
}

.detail-actions .primary {
  flex: 1
}

.detail-actions .secondary {
  font-size: 12px
}

.facts {
  line-height: 1.9
}

.facts div {
  display: flex;
  gap: 15px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px
}

.facts dt {
  min-width: 60px;
  color: var(--muted)
}

.facts dd {
  margin: 0;
  overflow-wrap: anywhere
}

.map-view {
  height: calc(100dvh - 72px);
  position: relative;
  background: #e5ecdc;
  overflow: hidden
}

.map-tiles {
  position: absolute;
  inset: 0;
  touch-action: none;
  overflow: hidden;
  cursor: grab
}

.map-tiles img {
  position: absolute;
  width: 256px;
  height: 256px;
  max-width: none
}

.map-pin {
  position: absolute;
  transform: translate(-50%,-100%);
  background: #293a24;
  color: white;
  border: 3px solid white;
  border-radius: 20px 20px 20px 2px;
  padding: 8px 11px;
  box-shadow: 0 3px 10px #0003;
  font-weight: 800
}

.map-top {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 18px;
  right: 18px
}

.map-top .search {
  background: white;
  box-shadow: 0 3px 14px #21391213
}

.map-location {
  text-align: center;
  margin-top: 12px
}

.map-location span {
  background: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 11px
}

.map-controls {
  position: absolute;
  right: 18px;
  top: 44%;
  display: flex;
  flex-direction: column;
  gap: 8px
}

.map-controls button {
  background: white;
  border-radius: 50%;
  height: 39px;
  width: 39px;
  box-shadow: 0 2px 10px #0002
}

.attribution {
  position: absolute;
  bottom: 245px;
  left: 7px;
  font-size: 9px;
  background: #ffffffb8
}

.map-sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 12px 22px 0;
  height: 240px;
  transition: height .25s;
  box-shadow: 0 -5px 20px #25391f10;
  z-index: 4;
  overflow: auto
}

.map-sheet.expanded {
  height: 76%
}

.handle {
  display: block;
  width: 100%;
  padding: 0 0 15px;
  text-align: center
}

.handle:before {
  content: '';
  display: block;
  margin: 0 auto 14px;
  width: 34px;
  height: 4px;
  background: #dce1d5;
  border-radius: 5px
}

.map-sheet .list-card {
  padding: 10px 0
}

.map-sheet .thumb {
  width: 86px;
  height: 110px
}

.filter-group {
  margin-bottom: 22px
}

.filter-group h3 {
  margin-bottom: 11px
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px
}

dialog {
  border: 0;
  position: fixed;
  margin: auto auto 0;
  bottom: 0;
  padding: 30px 22px calc(25px + env(safe-area-inset-bottom));
  border-radius: 24px 24px 0 0;
  width: min(480px,100%);
  max-height: 88dvh;
  overflow: auto;
  box-shadow: 0 -15px 80px #0002
}

dialog::backdrop {
  background: #12251166;
  backdrop-filter: blur(3px)
}

dialog .close {
  position: absolute;
  right: 14px;
  top: 11px;
  font-size: 25px;
  padding: 4px 10px
}

.field {
  display: block;
  font-size: 12px;
  margin: 18px 0
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid #dde2d4;
  border-radius: 10px;
  padding: 13px;
  margin-top: 8px;
  background: #fafbf8
}

.field textarea {
  min-height: 110px;
  resize: vertical
}

.review-card {
  padding: 22px 0;
  border-bottom: 1px solid var(--line)
}

.review-card .avatar {
  height: 36px;
  width: 36px;
  font-size: 16px
}

.review-card p {
  line-height: 1.8;
  white-space: pre-wrap;
  font-size: 13px
}

.review-images {
  display: flex;
  gap: 6px;
  margin: 15px 0
}

.review-images img {
  height: 150px;
  min-width: 0;
  object-fit: cover;
  border-radius: 10px;
  flex: 1;
  width: 30%
}

.rating {
  color: #608309;
  letter-spacing: 2px;
  font-size: 17px
}

.floating {
  position: fixed;
  bottom: 96px;
  right: max(20px,calc((100vw - 440px)/2));
  z-index: 7;
  border: 1px solid #e4e8dc;
  background: white;
  border-radius: 50%;
  width: 64px;
  height: 64px;
  box-shadow: 0 4px 18px #142d1c20;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px
}

.rating-summary {
  display: flex;
  gap: 26px;
  align-items: center;
  padding: 16px 0
}

.rating-summary strong {
  font-size: 40px
}

.rating-lines {
  flex: 1
}

.rating-lines div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  margin: 5px 0
}

.rating-lines .bar {
  flex: 1
}

.runtime {
  min-height: 100dvh;
  position: relative;
  background: #102d30;
  color: white;
  padding-bottom: 30px
}

.runtime .game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px
}

.runtime .game-scene {
  min-height: 70dvh;
  padding: 35px 26px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center
}

.runtime .scene-photo {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 24px
}

.runtime p {
  line-height: 1.95;
  white-space: pre-line
}

.runtime .npc-face {
  width: 125px;
  height: 150px;
  object-fit: cover;
  object-position: top;
  border-radius: 70px 70px 20px 20px;
  margin: 0 auto 20px
}

.runtime .primary {
  color: #203315
}

.mission-node {
  display: flex;
  text-align: left;
  padding: 19px;
  background: #ffffff0d;
  border: 1px solid #ffffff20;
  border-radius: 13px;
  margin: 12px 0;
  width: 100%;
  gap: 15px;
  align-items: center;
  color: white
}

.mission-node span {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--lime);
  color: #233222;
  font-weight: 800;
  flex-shrink: 0
}

.mission-node small {
  color: #c2d0bc
}

.mission-node b {
  display: block;
  margin-bottom: 6px
}

.puzzle-options {
  display: grid;
  gap: 10px;
  margin: 22px 0
}

.puzzle-options button {
  border: 1px solid #ffffff40;
  border-radius: 12px;
  padding: 16px;
  background: #ffffff12;
  color: white
}

.puzzle-options button.selected {
  border-color: var(--lime);
  background: #b9e43130
}

.runtime input {
  padding: 15px;
  background: white;
  border: 0;
  border-radius: 10px;
  width: 100%;
  margin: 15px 0
}

.runtime .secondary {
  color: white;
  background: #ffffff0c;
  border-color: #ffffff40
}

.success {
  color: #e7fba8;
  text-shadow: 0 0 20px #e2ff77;
  font-size: 28px;
  animation: glow 1.5s infinite alternate
}

@keyframes glow {
  to {
    text-shadow: 0 0 40px gold
  }
}

.rotate-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 5px;
  margin: 28px 0
}

.stone {
  font-size: 26px;
  font-weight: 800;
  padding: 23px 0;
  background: linear-gradient(130deg,#a49d7c,#625e4e);
  border-radius: 5px;
  box-shadow: inset 0 0 9px #0005;
  color: #f7f0cc
}

.rotate-grid button {
  color: #b9e431;
  font-size: 22px;
  padding: 6px
}

#toast {
  position: fixed;
  bottom: 160px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 390px;
  width: max-content;
  max-width: 90%;
  padding: 13px 19px;
  border-radius: 12px;
  background: #243123;
  color: white;
  font-size: 12px;
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  box-shadow: 0 4px 20px #0002
}

#toast.on {
  opacity: 1
}

.notice {
  padding: 12px 15px;
  background: #f4f7ea;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.8;
  color: #73815e;
  margin: 15px 0
}

.full-image {
  max-width: 100%;
  max-height: 70dvh;
  object-fit: contain
}

.footer-note {
  padding: 25px 22px 5px;
  color: #a1a598;
  font-size: 10px;
  line-height: 1.8
}

.sort-select {
  border: 0;
  background: none;
  font-size: 11px;
  max-width: 150px
}

.image-error {
  background: #e8eddf
}

.ticket {
  display: flex;
  gap: 16px;
  border: 1px solid #e0e6d5;
  border-radius: 13px;
  padding: 15px;
  margin: 14px 0
}

.ticket img {
  width: 65px;
  height: 90px;
  object-fit: cover;
  border-radius: 7px
}

.review-chat {
  background: #f6f7f2;
  border-radius: 16px 16px 16px 0;
  padding: 18px;
  line-height: 1.8
}

.stars button {
  font-size: 33px;
  padding: 3px;
  color: #c4cbbb
}

.stars button.on {
  color: #84a51e
}

@media(min-width:600px) {
  #app {
    box-shadow: 0 0 40px #162e1510
  }
  body:before {
    content: '크래커PLAY · 모바일 웹';
    position: fixed;
    left: 24px;
    bottom: 24px;
    color: #929b87;
    font-size: 11px
  }
}

@media(prefers-reduced-motion:reduce) {
  * {
    animation: none!important;
    scroll-behavior: auto!important
  }
}

svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.65;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
  flex-shrink: 0
}

.hero-wrap header {
  background: transparent;
  color: white
}

.poster-card:nth-child(2) .poster:after {
  background: linear-gradient(transparent 15%,#1a244bed)
}

.poster-card:nth-child(3) .poster:after {
  background: linear-gradient(transparent 15%,#34304eed)
}

.saved {
  color: #86ad0a
}

.wallet svg {
  width: 23px;
  height: 23px
}

.map-sheet .list-card .heart {
  align-self: start
}

.game-header button {
  color: white
}

.runtime select {
  max-width: 150px;
  border-radius: 8px;
  padding: 8px
}

.runtime .notice {
  color: #364e27
}

.detail-actions .icon {
  height: 48px;
  width: 34px
}

.section:last-child {
  padding-bottom: 30px
}

.map-tiles canvas {
  outline: none
}

.map-tiles .maplibregl-canvas {
  position: absolute!important;
  width: 100%!important;
  height: 100%!important
}

.map-content-pin {
  background: #293a24;
  color: white;
  border: 3px solid white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  box-shadow: 0 3px 10px #0003;
  font-size: 20px;
  font-weight: 800
}

.attribution {
  z-index: 2;
  bottom: 250px;
  font-size: 8px;
  max-width: 90%
}

.map-controls {
  z-index: 3
}

.map-sheet {
  padding-bottom: 62px
}

.list-card .thumb {
  display: block
}

.list-card button:has(.thumb) {
  flex-shrink: 0
}

.list-info .muted {
  display: block;
  margin-bottom: 5px
}

.list-info>button {
  display: block
}

.map-fallback {
  padding: 140px 30px 280px;
  text-align: center;
  background: linear-gradient(#edf3e3,#f9fbf6);
  height: 100%;
  overflow: auto
}

.map-fallback>svg {
  width: 100%;
  height: 220px;
  display: block;
  margin: 0 0 22px
}

.map-fallback small {
  letter-spacing: 2px;
  font-size: 10px;
  color: #7b8a64
}

.map-fallback h2 {
  margin-top: 12px
}

.map-fallback a {
  display: inline-block;
  text-decoration: none;
  font-size: 11px
}

.map-fallback .muted {
  font-size: 10px
}

/* Override the app shell's white background while the generic package player is active. */
#app.runtime {
  background: #102d30;
  color: #fff
}

.share-url {
  width: 100%;
  padding: 14px 10px;
  border: 1px solid #cdd6c0;
  border-radius: 10px;
  font-size: 13px;
  background: #f6f8f2
}

/* Immersive stories: imagery fills the viewport, dialogue stays within thumb reach. */
#app.story-runtime {
  height: 100svh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  position: relative;
  background: #101b22
}

.story-runtime .game-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  gap: 8px;
  background: linear-gradient(#07121bbd,transparent)
}

.story-runtime .game-header button {
  background: #11232c99;
  border: 1px solid #ffffff2b;
  border-radius: 50px;
  min-height: 44px;
  padding: 8px 12px;
  backdrop-filter: blur(14px);
  color: #fff
}

.story-runtime .game-header small {
  color: #fff;
  text-shadow: 0 1px 5px #000
}

.story-screen {
  height: 100%;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding-top: calc(66px + env(safe-area-inset-top));
  box-sizing: border-box
}

.story-backdrop,
.story-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  object-fit: cover
}

.story-shade {
  z-index: -1;
  background: linear-gradient(180deg,#07152120 30%,#09151d55 60%,#09151df5 100%)
}

.story-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden
}

.story-character {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  mask-image: linear-gradient(to bottom,#000 85%,transparent);
  animation: none
}

.story-media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain
}

.story-dialogue {
  position: relative;
  flex: none;
  margin: 0 14px calc(12px + env(safe-area-inset-bottom));
  padding: 20px;
  background: linear-gradient(145deg,#182c36f5,#0d1b25f7);
  border: 1px solid #ffffff26;
  border-radius: 24px;
  box-shadow: 0 16px 48px #0004;
  color: #fff;
  backdrop-filter: blur(16px)
}

.story-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 12px
}

.story-meta>span {
  color: #e5c98e;
  font-size: 13px;
  font-weight: 750
}

.story-meta small {
  color: #afc1cb;
  font-variant-numeric: tabular-nums;
  font-size: 11px
}

.story-copy {
  max-height: 29dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #7c939e transparent;
  overflow-wrap: anywhere
}

.story-copy h2 {
  font-size: 22px;
  line-height: 1.4;
  letter-spacing: -.7px;
  margin: 0 0 12px;
  color: #fff
}

.runtime .story-copy p {
  font-size: 16px;
  line-height: 1.8;
  margin: 0;
  color: #e9f0f4;
  white-space: pre-line
}

.story-controls {
  display: flex;
  gap: 10px;
  margin-top: 18px
}

.story-controls button {
  min-height: 50px;
  border-radius: 15px;
  font: inherit;
  cursor: pointer
}

.story-voice {
  width: 50px;
  flex: none;
  border: 1px solid #ffffff29;
  background: #ffffff0c;
  color: #e3ecf1;
  display: grid;
  place-items: center
}

.story-voice svg {
  width: 22px;
  height: 22px
}

.story-next {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  background: #e7ce98;
  color: #18262b;
  border: 0;
  font-weight: 750!important
}

.story-next:hover {
  background: #f2ddaf
}

.story-voice:hover {
  background: #ffffff20
}

.story-controls button:focus-visible,
.story-copy:focus-visible {
  outline: 2px solid #ffe0a0;
  outline-offset: 3px
}

@media(max-width:360px) {
  .story-dialogue {
    margin-left: 10px;
    margin-right: 10px;
    padding: 16px
  }
  .story-copy h2 {
    font-size: 20px
  }
  .runtime .story-copy p {
    font-size: 15px
  }
}

@media(max-height:560px) {
  .story-dialogue {
    padding: 12px 16px
  }
  .story-copy {
    max-height: 23dvh
  }
  .story-copy h2 {
    font-size: 17px;
    margin-bottom: 6px
  }
  .runtime .story-copy p {
    font-size: 14px
  }
  .story-controls {
    margin-top: 10px
  }
  .story-controls button {
    min-height: 44px
  }
}

@media(prefers-reduced-motion:reduce) {
  .story-character {
    animation: none
  }
}

@media(max-width:767px) {
  #app.runtime {
    max-width: none
  }
}

/* Background, character and dialogue become visible together, without separate entrances. */
.story-screen[data-scene-state="loading"]> :not(.story-loading):not(.story-previous),
.story-screen[data-scene-state="error"]> :not(.story-loading):not(.story-previous) {
  visibility: hidden
}

.story-screen>.story-previous {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  z-index: 2;
  pointer-events: none;
  visibility: visible
}

.story-loading {
  position: absolute;
  left: 20px;
  right: 20px;
  top: 46%;
  z-index: 3;
  text-align: center;
  color: #fff;
  font-size: 13px;
  line-height: 1.8;
  background: #132329eb;
  border-radius: 12px;
  padding: 12px
}

.story-loading:empty,
.story-loading[hidden] {
  display: none
}

.story-loading button {
  display: block;
  margin: 10px auto 0;
  background: #ead49c;
  color: #1b2c31;
  padding: 9px 16px;
  border-radius: 9px;
  font-weight: 700
}
