/*
 * 奇趣杂货铺门户的完整视觉系统。
 * 色彩和轮廓来自游戏既有主题；页面不依赖外部字体、脚本或第三方素材。
 * 用户：kewp
 */
:root {
  --cream-50: #fffaf0;
  --cream-100: #fff3d7;
  --cream-200: #f7e7c6;
  --cream-300: #ead0a4;
  --ink: #4b3025;
  --ink-soft: #765848;
  --coral: #ef7f67;
  --coral-dark: #cf5f4d;
  --lake: #75aec0;
  --mint: #82b69f;
  --amber: #e3a443;
  --caramel: #a96e45;
  --lavender: #9b87bd;
  --red: #c9554c;
  --white: #fffdf7;
  --line: rgba(98, 65, 45, 0.14);
  --shadow-soft: 0 24px 70px rgba(102, 66, 39, 0.13);
  --shadow-card: 0 14px 34px rgba(102, 66, 39, 0.1);
  --radius-xl: 36px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --max-width: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 6% 4%, rgba(239, 127, 103, 0.12), transparent 23rem),
    var(--cream-50);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--ink);
  border-radius: 10px;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--lake);
  outline-offset: 4px;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 16px;
  left: 50%;
  display: flex;
  width: min(calc(100% - 32px), var(--max-width));
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  background: rgba(255, 250, 240, 0.86);
  box-shadow: 0 12px 34px rgba(91, 57, 37, 0.1);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.brand-mark {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 38px;
  border-radius: 13px 13px 16px 16px;
  background: var(--coral);
  box-shadow: inset 0 -5px 0 rgba(155, 65, 49, 0.11);
}

.brand-mark::before {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 22px;
  height: 12px;
  border: 2px solid var(--cream-100);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  content: "";
}

.brand-mark i {
  position: absolute;
  bottom: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cream-100);
}

.brand-mark i:nth-child(1) { left: 8px; }
.brand-mark i:nth-child(2) { left: 17px; }
.brand-mark i:nth-child(3) { right: 7px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  padding: 9px 14px;
  border-radius: 12px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
  transition: color 160ms ease, background 160ms ease;
}

.main-nav a:hover {
  color: var(--ink);
  background: rgba(239, 127, 103, 0.1);
}

.hero {
  position: relative;
  display: grid;
  width: min(calc(100% - 40px), var(--max-width));
  min-height: 780px;
  margin: 0 auto;
  padding: 148px 0 80px;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.82fr);
  align-items: center;
  gap: clamp(44px, 7vw, 96px);
}

.hero::before {
  position: absolute;
  z-index: -1;
  top: 26%;
  left: -20vw;
  width: 36vw;
  height: 36vw;
  border-radius: 50%;
  background: rgba(235, 177, 77, 0.1);
  filter: blur(2px);
  content: "";
}

.hero-glow {
  position: absolute;
  z-index: -1;
  right: 2%;
  bottom: 8%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(111, 174, 156, 0.14);
  filter: blur(80px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--coral-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.17em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow span {
  width: 28px;
  height: 1px;
  background: var(--coral);
}

.hero h1,
.section h2,
.story-copy h2,
.error-card h1 {
  margin: 0;
  font-family: "STKaiti", "KaiTi", "Microsoft YaHei", serif;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.18;
}

.hero h1 {
  max-width: 700px;
  font-size: clamp(48px, 6.3vw, 82px);
}

.hero h1 em {
  position: relative;
  display: inline-block;
  color: var(--coral-dark);
  font-style: normal;
}

.hero h1 em::after {
  position: absolute;
  z-index: -1;
  right: -3%;
  bottom: 4px;
  left: -3%;
  height: 14px;
  border-radius: 50%;
  background: rgba(244, 190, 79, 0.28);
  content: "";
  transform: rotate(-1.5deg);
}

.hero-lead {
  max-width: 590px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.6vw, 19px);
}

.hero-actions {
  display: flex;
  margin-top: 34px;
  align-items: center;
  gap: 24px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 24px;
  border-radius: 16px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button-primary {
  color: var(--white);
  background: var(--coral);
  box-shadow: 0 13px 24px rgba(205, 88, 68, 0.22), inset 0 -4px 0 rgba(159, 64, 49, 0.14);
}

.button-primary:hover {
  background: var(--coral-dark);
  box-shadow: 0 16px 30px rgba(205, 88, 68, 0.28), inset 0 -4px 0 rgba(123, 44, 32, 0.14);
  transform: translateY(-2px);
}

.text-link {
  padding: 8px 2px;
  border-bottom: 1px solid var(--cream-300);
  font-weight: 800;
}

.text-link span {
  display: inline-block;
  margin-left: 5px;
  color: var(--coral-dark);
  transition: transform 160ms ease;
}

.text-link:hover span { transform: translate(3px, -3px); }

.hero-facts {
  display: flex;
  margin: 42px 0 0;
  gap: 0;
}

.hero-facts div {
  min-width: 112px;
  padding-right: 24px;
}

.hero-facts div + div {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.hero-facts dt {
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
}

.hero-facts dd {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.shop-window {
  position: relative;
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 12px;
  border: 1px solid rgba(117, 74, 43, 0.13);
  border-radius: 48% 48% 36px 36px / 19% 19% 36px 36px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow-soft);
  transform: rotate(1.2deg);
}

.shop-window::before {
  position: absolute;
  z-index: -1;
  right: 8%;
  bottom: -30px;
  left: 8%;
  height: 48px;
  border-radius: 50%;
  background: rgba(76, 47, 32, 0.17);
  filter: blur(21px);
  content: "";
}

.shop-window img {
  width: 100%;
  height: 540px;
  border-radius: 47% 47% 28px 28px / 18% 18% 28px 28px;
  object-fit: cover;
  object-position: center;
}

.shop-window figcaption {
  position: absolute;
  right: 32px;
  bottom: 30px;
  left: 32px;
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background: rgba(255, 250, 240, 0.84);
  box-shadow: 0 12px 30px rgba(95, 60, 35, 0.13);
  backdrop-filter: blur(12px);
}

.shop-window figcaption strong {
  margin-top: 4px;
  font-size: 18px;
}

.shop-window figcaption small { color: var(--ink-soft); }

.window-label {
  width: max-content;
  padding: 3px 8px;
  border-radius: 99px;
  color: var(--coral-dark);
  background: rgba(239, 127, 103, 0.13);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.floating-token {
  position: absolute;
  display: block;
  width: 64px;
  height: 64px;
  border: 7px solid var(--white);
  border-radius: 22px;
  box-shadow: 0 16px 28px rgba(76, 48, 31, 0.18);
  animation: float 4.8s ease-in-out infinite;
}

.token-camera {
  top: 22%;
  left: -35px;
  background: var(--coral);
  transform: rotate(-8deg);
}

.token-camera::before {
  position: absolute;
  top: 17px;
  left: 11px;
  width: 27px;
  height: 20px;
  border-radius: 5px;
  background: var(--cream-100);
  content: "";
}

.token-camera i {
  position: absolute;
  z-index: 1;
  top: 21px;
  left: 20px;
  width: 13px;
  height: 13px;
  border: 3px solid var(--lake);
  border-radius: 50%;
}

.token-leaf {
  top: 12%;
  right: -28px;
  background: var(--mint);
  animation-delay: -1.4s;
  transform: rotate(9deg);
}

.token-leaf i {
  position: absolute;
  top: 12px;
  width: 17px;
  height: 30px;
  border-radius: 100% 0 100% 0;
  background: var(--cream-100);
}

.token-leaf i:first-child { left: 13px; transform: rotate(-24deg); }
.token-leaf i:last-child { right: 12px; transform: rotate(62deg); }

.token-cup {
  right: -35px;
  bottom: 22%;
  background: #f0c24b;
  animation-delay: -2.6s;
  transform: rotate(-6deg);
}

.token-cup::before {
  position: absolute;
  top: 12px;
  left: 11px;
  width: 27px;
  height: 29px;
  border-radius: 5px 5px 12px 12px;
  background: var(--cream-100);
  content: "";
}

.token-cup::after {
  position: absolute;
  top: 18px;
  right: 6px;
  width: 15px;
  height: 16px;
  border: 5px solid var(--cream-100);
  border-left: 0;
  border-radius: 0 12px 12px 0;
  content: "";
}

.ticker {
  overflow: hidden;
  padding: 17px 0;
  border-top: 3px solid var(--coral);
  color: var(--cream-100);
  background: var(--ink);
}

.ticker div {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  animation: ticker-slide 24s linear infinite alternate;
}

.ticker i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
}

.section {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 124px 0;
}

.section-heading {
  max-width: 660px;
  margin-bottom: 54px;
}

.section h2,
.story-copy h2 {
  font-size: clamp(38px, 4.3vw, 58px);
}

.section-heading > p:last-child,
.feature-intro > p,
.story-copy > p {
  color: var(--ink-soft);
  font-size: 17px;
}

.play-steps {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.play-steps li {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 247, 0.8);
  box-shadow: var(--shadow-card);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.play-steps li:hover {
  box-shadow: 0 19px 44px rgba(102, 66, 39, 0.15);
  transform: translateY(-6px);
}

.play-steps li:nth-child(2) { transform: translateY(24px); }
.play-steps li:nth-child(2):hover { transform: translateY(18px); }

.step-number {
  position: absolute;
  top: 24px;
  right: 24px;
  color: rgba(75, 48, 37, 0.18);
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 800;
}

.step-icon {
  position: relative;
  width: 100px;
  height: 100px;
  margin-bottom: 26px;
  border-radius: 30px;
  background: var(--cream-100);
}

.pick-icon::before {
  position: absolute;
  top: 25px;
  left: 29px;
  width: 41px;
  height: 41px;
  border: 5px solid var(--coral);
  border-radius: 50%;
  content: "";
}

.pick-icon::after {
  position: absolute;
  right: 19px;
  bottom: 22px;
  width: 25px;
  height: 5px;
  border-radius: 99px;
  background: var(--coral);
  content: "";
  transform: rotate(45deg);
}

.match-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.match-icon i {
  width: 22px;
  height: 38px;
  border-radius: 8px 8px 12px 12px;
  background: var(--lake);
  box-shadow: inset 0 -5px rgba(69, 129, 147, 0.18);
}

.match-icon i:nth-child(2) { background: var(--coral); transform: translateY(-8px); }

.cart-icon::before {
  position: absolute;
  top: 29px;
  left: 22px;
  width: 57px;
  height: 35px;
  border: 5px solid var(--mint);
  border-top-width: 3px;
  border-radius: 6px 6px 14px 14px;
  content: "";
  transform: skew(-5deg);
}

.cart-icon i {
  position: absolute;
  bottom: 21px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mint);
}

.cart-icon i:first-child { left: 34px; }
.cart-icon i:last-child { right: 28px; }

.play-steps h3,
.feature-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.play-steps p,
.feature-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.feature-section {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(46px, 7vw, 90px);
  align-items: center;
}

.feature-intro blockquote {
  margin: 35px 0 0;
  padding: 18px 22px;
  border-left: 4px solid var(--coral);
  border-radius: 0 14px 14px 0;
  color: var(--ink);
  background: rgba(239, 127, 103, 0.09);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 18px;
  font-weight: 700;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.feature-card {
  min-height: 244px;
  padding: 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.feature-card:nth-child(even) { transform: translateY(26px); }
.feature-coral { background: #fbe0d6; }
.feature-blue { background: #dcecef; }
.feature-mint { background: #dcebdd; }
.feature-amber { background: #f6e4bd; }

.feature-value {
  display: block;
  margin-bottom: 34px;
  font-family: Georgia, serif;
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
}

.feature-value small {
  margin-left: 3px;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 13px;
}

.collection-section {
  padding-top: 150px;
}

.collection-heading {
  max-width: none;
  text-align: center;
}

.collection-heading > p:last-child {
  max-width: 640px;
  margin-right: auto;
  margin-left: auto;
}

.item-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 18px;
}

.item-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 253, 247, 0.92);
  box-shadow: 0 9px 25px rgba(102, 66, 39, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.item-card:hover {
  box-shadow: 0 18px 40px rgba(102, 66, 39, 0.14);
  transform: translateY(-6px) rotate(-0.5deg);
}

.item-stage {
  position: relative;
  display: grid;
  height: 210px;
  place-items: center;
  overflow: hidden;
}

.item-stage::before {
  position: absolute;
  width: 136px;
  height: 136px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  content: "";
}

.item-stage::after {
  position: absolute;
  bottom: 31px;
  width: 110px;
  height: 18px;
  border-radius: 50%;
  background: rgba(75, 48, 37, 0.12);
  filter: blur(7px);
  content: "";
}

.stage-coral { background: #f7c6bb; }
.stage-blue { background: #c9e4eb; }
.stage-mint { background: #cfe4d5; }
.stage-caramel { background: #e6c3a5; }
.stage-lemon { background: #f6e49e; }
.stage-clear { background: #d9eef0; }
.stage-strawberry { background: #f2c4ca; }
.stage-lavender { background: #dfd4ed; }
.stage-amber { background: #f0d196; }
.stage-teal { background: #bcded7; }
.stage-peach { background: #f7d5c7; }
.stage-red { background: #edbbb4; }

.item-card p {
  display: flex;
  margin: 0;
  padding: 18px 20px 20px;
  flex-direction: column;
}

.item-card small {
  color: var(--coral-dark);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.item-card strong { margin-top: 4px; font-size: 16px; }

.item-visual {
  position: relative;
  z-index: 2;
  display: block;
  filter: drop-shadow(0 12px 6px rgba(75, 48, 37, 0.14));
}

.item-camera {
  width: 108px;
  height: 72px;
  border: 5px solid #cf5f4d;
  border-radius: 16px;
  background: var(--coral);
}
.item-camera::before { position: absolute; top: -15px; left: 15px; width: 34px; height: 17px; border-radius: 7px 7px 0 0; background: #cf5f4d; content: ""; }
.item-camera::after { position: absolute; top: 14px; left: 37px; width: 36px; height: 36px; border: 8px solid var(--cream-100); border-radius: 50%; background: var(--lake); content: ""; }
.item-camera i { position: absolute; top: 9px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--cream-100); }

.item-teapot { width: 93px; height: 75px; border-radius: 48% 48% 42% 42%; background: var(--lake); }
.item-teapot::before { position: absolute; top: -13px; left: 30px; width: 36px; height: 20px; border-radius: 50% 50% 5px 5px; background: #5a95a9; content: ""; }
.item-teapot::after { position: absolute; top: 11px; right: -35px; width: 50px; height: 28px; border: 12px solid var(--lake); border-bottom: 0; border-left: 0; border-radius: 0 28px 0 0; content: ""; transform: rotate(-12deg); }
.item-teapot i { position: absolute; top: 13px; left: -33px; width: 37px; height: 48px; border: 10px solid #5a95a9; border-right: 0; border-radius: 25px 0 0 25px; }

.item-succulent { width: 75px; height: 60px; border-radius: 6px 6px 18px 18px; background: #c18458; }
.item-succulent::before { position: absolute; bottom: 42px; left: 9px; width: 55px; height: 68px; border-radius: 70% 10% 70% 15%; background: #5b9b79; content: ""; transform: rotate(-24deg); }
.item-succulent::after { position: absolute; bottom: 46px; left: 29px; width: 49px; height: 65px; border-radius: 15% 70% 15% 70%; background: #78b58a; content: ""; transform: rotate(18deg); }
.item-succulent i { position: absolute; z-index: 2; bottom: 45px; left: 20px; width: 41px; height: 78px; border-radius: 75% 15% 75% 15%; background: #8bc998; transform: rotate(-2deg); }

.item-suitcase { width: 112px; height: 78px; border: 6px solid #8d5738; border-radius: 15px; background: var(--caramel); }
.item-suitcase::before { position: absolute; top: -24px; left: 33px; width: 38px; height: 22px; border: 7px solid #8d5738; border-bottom: 0; border-radius: 12px 12px 0 0; content: ""; }
.item-suitcase::after { position: absolute; top: 0; bottom: 0; left: 24px; width: 10px; border-right: 5px solid #f0c990; border-left: 5px solid #f0c990; content: ""; }
.item-suitcase i { position: absolute; top: 31px; right: 13px; width: 18px; height: 12px; border-radius: 3px; background: #70412e; }

.item-mug { width: 78px; height: 88px; border: 5px solid #dfad35; border-radius: 8px 8px 23px 23px; background: #f0c24b; }
.item-mug::before { position: absolute; top: 15px; right: -34px; width: 37px; height: 47px; border: 11px solid #dfad35; border-left: 0; border-radius: 0 25px 25px 0; content: ""; }
.item-mug i { position: absolute; top: 28px; left: 24px; color: var(--coral); font-family: Arial, sans-serif; font-size: 28px; font-style: normal; line-height: 1; }

.item-jar { width: 76px; height: 100px; border: 5px solid rgba(86, 148, 162, 0.7); border-radius: 14px 14px 24px 24px; background: rgba(247, 255, 255, 0.52); }
.item-jar::before { position: absolute; top: -16px; left: 4px; width: 58px; height: 18px; border-radius: 6px; background: var(--caramel); content: ""; }
.item-jar::after { position: absolute; right: 8px; bottom: 10px; width: 26px; height: 26px; border-radius: 50%; background: var(--coral); box-shadow: -25px -2px 0 #f0c24b, -10px -25px 0 var(--lake); content: ""; }

.item-cupcake { width: 91px; height: 70px; border-radius: 8px 8px 24px 24px; background: #d99c6e; clip-path: polygon(8% 0, 92% 0, 79% 100%, 21% 100%); }
.item-cupcake::before { position: absolute; top: -47px; left: 4px; width: 83px; height: 63px; border-radius: 52% 52% 26% 26%; background: #e98c9d; content: ""; }
.item-cupcake::after { position: absolute; top: -63px; left: 38px; width: 27px; height: 32px; border-radius: 60% 40% 55% 45%; background: #c94d5d; content: ""; transform: rotate(12deg); }

.item-yarn { width: 95px; height: 95px; border-radius: 50%; background: repeating-linear-gradient(15deg, #9b87bd 0 8px, #baa7d5 9px 13px); }
.item-yarn::before { position: absolute; inset: 14px 9px; border: 5px solid rgba(255, 255, 255, 0.48); border-radius: 50%; content: ""; transform: rotate(57deg); }
.item-yarn::after { position: absolute; right: -19px; bottom: 0; width: 48px; height: 7px; border-radius: 99px; background: #9b87bd; content: ""; transform: rotate(29deg); }

.item-lantern { width: 65px; height: 102px; border: 8px solid #8e613a; border-radius: 24px 24px 16px 16px; background: radial-gradient(circle, #fff1a8 0, #e7a944 54%, rgba(227,164,67,0.5) 70%); }
.item-lantern::before { position: absolute; top: -45px; left: 6px; width: 37px; height: 44px; border: 7px solid #8e613a; border-bottom: 0; border-radius: 50% 50% 0 0; content: ""; }
.item-lantern::after { position: absolute; top: 27px; left: -8px; width: 65px; height: 7px; background: #8e613a; content: ""; }

.item-clock { width: 98px; height: 88px; border: 8px solid #4d8f8a; border-radius: 50%; background: var(--cream-100); }
.item-clock::before { position: absolute; top: -22px; left: 3px; width: 27px; height: 25px; border-radius: 50% 50% 5px 5px; background: #5ea49d; box-shadow: 51px 0 0 #5ea49d; content: ""; transform: rotate(-16deg); }
.item-clock::after { position: absolute; top: 24px; left: 40px; width: 5px; height: 28px; border-radius: 99px; background: var(--ink); box-shadow: 6px 17px 0 -1px var(--ink); content: ""; transform-origin: bottom; transform: rotate(38deg); }

.item-perfume { width: 79px; height: 89px; border: 6px solid #cf7b6c; border-radius: 11px 11px 21px 21px; background: linear-gradient(145deg, rgba(255,255,255,0.54), rgba(239,150,130,0.65)); }
.item-perfume::before { position: absolute; top: -29px; left: 22px; width: 25px; height: 31px; border-radius: 5px; background: #e1a76e; content: ""; }
.item-perfume::after { position: absolute; top: 24px; left: 13px; width: 41px; height: 30px; border-radius: 50%; background: rgba(255, 243, 215, 0.76); content: ""; }

.item-bird { width: 105px; height: 66px; border-radius: 65% 45% 50% 55%; background: var(--red); transform: rotate(-5deg); }
.item-bird::before { position: absolute; top: -24px; right: 3px; width: 45px; height: 45px; border-radius: 50%; background: var(--red); content: ""; }
.item-bird::after { position: absolute; top: -10px; right: -24px; width: 33px; height: 19px; background: #e7b94a; clip-path: polygon(0 0, 100% 50%, 0 100%); content: ""; }
.item-bird i { position: absolute; top: 13px; left: 30px; width: 47px; height: 31px; border-radius: 70% 20% 70% 20%; background: #e07368; transform: rotate(-15deg); }

.story-section {
  display: grid;
  min-height: 680px;
  margin-top: 70px;
  grid-template-columns: 1fr 1fr;
  background: var(--cream-200);
}

.story-visual {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.1), transparent 45%),
    #d89a5f;
}

.story-visual::before {
  position: absolute;
  top: -10%;
  left: -7%;
  width: 52%;
  height: 68%;
  border: 20px solid #a6683b;
  border-radius: 50% 50% 10px 10px;
  background: linear-gradient(145deg, #fffbd9, #f8c96c 65%, #d88a4d);
  box-shadow: inset 0 0 50px rgba(151, 90, 39, 0.2), 16px 18px 0 #bb7845;
  content: "";
}

.story-visual::after {
  position: absolute;
  top: -10%;
  left: 17%;
  width: 16px;
  height: 70%;
  background: #a6683b;
  box-shadow: -140px 190px 0 -2px #a6683b;
  content: "";
  transform: rotate(-9deg);
}

.sun-orb {
  position: absolute;
  top: 14%;
  left: 17%;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(255, 250, 199, 0.9);
  box-shadow: 0 0 70px 30px rgba(255, 226, 137, 0.58);
}

.shelf {
  position: absolute;
  z-index: 2;
  right: 0;
  width: 49%;
  height: 22px;
  border-radius: 9px 0 0 9px;
  background: #9b5d35;
  box-shadow: 0 9px 0 #744229;
}

.shelf-one { top: 38%; }
.shelf-two { top: 72%; width: 61%; }

.story-jar {
  position: absolute;
  z-index: 3;
  border: 6px solid rgba(85, 129, 130, 0.7);
  border-radius: 15px 15px 24px 24px;
  background: rgba(210, 240, 231, 0.58);
}

.story-jar::before { position: absolute; top: -15px; left: 5%; width: 90%; height: 16px; border-radius: 6px; background: #7a4b35; content: ""; }
.jar-one { top: calc(38% - 92px); right: 11%; width: 67px; height: 90px; }
.jar-two { top: calc(72% - 119px); right: 32%; width: 83px; height: 117px; }
.jar-two::after { position: absolute; right: 9px; bottom: 10px; width: 24px; height: 24px; border-radius: 50%; background: var(--coral); box-shadow: -26px -2px 0 var(--lake), -10px -25px 0 #f0c24b; content: ""; }

.story-plant {
  position: absolute;
  z-index: 4;
  top: calc(72% - 139px);
  right: 4%;
  width: 95px;
  height: 137px;
  border-radius: 45% 45% 16px 16px;
  background: #b87c52;
  clip-path: polygon(13% 46%, 87% 46%, 78% 100%, 22% 100%);
}

.story-plant i { position: absolute; top: 1px; left: 34px; width: 36px; height: 70px; border-radius: 80% 15% 80% 15%; background: #629061; transform: rotate(-8deg); }
.story-plant i:nth-child(2) { left: 12px; background: #7da66f; transform: rotate(-42deg); }
.story-plant i:nth-child(3) { left: 54px; background: #557f55; transform: rotate(42deg); }

.story-copy {
  display: flex;
  padding: clamp(60px, 8vw, 110px);
  flex-direction: column;
  justify-content: center;
}

.story-copy h2 { max-width: 600px; }
.story-copy > p { max-width: 630px; margin: 24px 0 0; }

.privacy-note {
  display: flex;
  max-width: 620px;
  margin-top: 34px;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(106, 70, 47, 0.12);
  border-radius: 16px;
  background: rgba(255, 250, 240, 0.68);
}

.privacy-note > span {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--mint);
  font-weight: 900;
}

.privacy-note p { margin: 0; color: var(--ink-soft); font-size: 13px; }
.privacy-note strong { display: block; margin-bottom: 3px; color: var(--ink); font-size: 14px; }

.site-footer {
  display: flex;
  min-height: 280px;
  padding: 58px max(24px, calc((100% - var(--max-width)) / 2));
  align-items: center;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  color: var(--cream-100);
  background: var(--ink);
}

.footer-brand { font-size: 21px; }
.site-footer > p { margin: 20px 0 30px; color: rgba(255, 243, 215, 0.7); }

.footer-meta {
  display: flex;
  width: 100%;
  padding-top: 22px;
  justify-content: center;
  gap: 18px;
  border-top: 1px solid rgba(255,255,255,0.12);
  color: rgba(255, 243, 215, 0.55);
  font-size: 12px;
}

.footer-meta a {
  color: inherit;
  text-decoration: none;
}

.footer-meta a:hover,
.footer-meta a:focus-visible {
  color: var(--cream-100);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.error-page {
  display: grid;
  min-height: 100vh;
  padding: 24px;
  place-items: center;
  background:
    radial-gradient(circle at 20% 15%, rgba(239,127,103,0.19), transparent 32%),
    radial-gradient(circle at 80% 80%, rgba(130,182,159,0.2), transparent 30%),
    var(--cream-100);
}

.error-card {
  position: relative;
  width: min(100%, 620px);
  padding: 68px 30px;
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: var(--radius-xl);
  background: rgba(255,253,247,0.8);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.error-code { position: absolute; top: 20px; right: 28px; color: rgba(75,48,37,0.15); font: 800 42px/1 Georgia, serif; }
.lost-item { position: relative; width: 92px; height: 70px; margin: 0 auto 30px; border: 5px solid var(--coral-dark); border-radius: 15px; background: var(--coral); transform: rotate(-8deg); }
.lost-item::after { position: absolute; top: 12px; left: 29px; width: 26px; height: 26px; border: 7px solid var(--cream-100); border-radius: 50%; background: var(--lake); content: ""; }
.lost-item i { position: absolute; top: -15px; left: 12px; width: 30px; height: 16px; border-radius: 7px 7px 0 0; background: var(--coral-dark); }
.error-card h1 { font-size: clamp(34px, 6vw, 50px); }
.error-card > p:not(.section-kicker) { margin: 18px 0 30px; color: var(--ink-soft); }

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

@keyframes ticker-slide {
  from { transform: translateX(-2%); }
  to { transform: translateX(calc(100vw - 100%)); }
}

@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr 0.7fr; gap: 34px; }
  .hero h1 { font-size: clamp(46px, 7vw, 66px); }
  .shop-window img { height: 470px; }
  .item-grid { grid-template-columns: repeat(3, 1fr); }
  .story-copy { padding: 64px 46px; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 128px; }
  .site-header { top: 10px; min-height: 0; padding: 9px 12px; flex-wrap: wrap; justify-content: center; gap: 6px 12px; }
  .brand { font-size: 16px; }
  .brand-mark { width: 34px; height: 34px; }
  .main-nav { width: 100%; justify-content: center; overflow-x: auto; }
  .main-nav a { padding: 6px 9px; font-size: 12px; }
  .hero { min-height: auto; padding-top: 152px; grid-template-columns: 1fr; text-align: center; }
  .hero-copy { display: flex; align-items: center; flex-direction: column; }
  .hero h1 { font-size: clamp(43px, 12vw, 66px); }
  .hero-lead { max-width: 580px; }
  .hero-actions, .hero-facts { justify-content: center; }
  .shop-window { width: min(86%, 410px); margin-top: 24px; }
  .shop-window img { height: 520px; }
  .section { padding: 92px 0; }
  .section-heading { margin-right: auto; margin-left: auto; text-align: center; }
  .play-steps { grid-template-columns: 1fr; }
  .play-steps li { min-height: 270px; }
  .play-steps li:nth-child(2), .play-steps li:nth-child(2):hover { transform: none; }
  .feature-section { grid-template-columns: 1fr; }
  .feature-intro { text-align: center; }
  .feature-intro blockquote { text-align: left; }
  .item-grid { grid-template-columns: repeat(2, 1fr); }
  .story-section { grid-template-columns: 1fr; }
  .story-visual { min-height: 480px; }
  .story-copy { text-align: center; }
  .privacy-note { text-align: left; }
}

@media (max-width: 500px) {
  .site-header { width: calc(100% - 20px); }
  .main-nav a { padding: 6px 7px; letter-spacing: -0.02em; }
  .hero { width: min(calc(100% - 28px), var(--max-width)); padding-bottom: 68px; }
  .hero-lead { font-size: 15px; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .hero-facts { width: 100%; }
  .hero-facts div { min-width: 0; padding: 0 13px; flex: 1; }
  .hero-facts div + div { padding-left: 13px; }
  .shop-window { width: calc(100% - 22px); }
  .shop-window img { height: 465px; }
  .floating-token { width: 56px; height: 56px; }
  .token-camera { left: -22px; }
  .token-leaf { right: -17px; }
  .token-cup { right: -16px; }
  .section { width: min(calc(100% - 28px), var(--max-width)); }
  .section h2, .story-copy h2 { font-size: 38px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card:nth-child(even) { transform: none; }
  .item-grid { gap: 14px 10px; }
  .item-stage { height: 168px; }
  .item-stage::before { width: 112px; height: 112px; }
  .item-visual { transform: scale(0.82); }
  .item-bird { transform: scale(0.82) rotate(-5deg); }
  .item-card p { padding: 14px; }
  .item-card strong { font-size: 14px; }
  .story-visual { min-height: 390px; }
  .story-copy { padding: 64px 24px; }
  .footer-meta { flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
