:root {
  --paper: #fff9ef;
  --ink: #45352c;
  --muted: #78665b;
  --orange: #d85a2a;
  --night: #202d40;
  --line: #e9dac9;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'Nunito', sans-serif; line-height: 1.65; word-break: keep-all; }
html:lang(ja) body, html:lang(zh) body { word-break: normal; line-break: strict; }
button, select, a { -webkit-tap-highlight-color: transparent; }
button, select { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, select:focus-visible { outline: 3px solid #d85a2a; outline-offset: 5px; }
button { color: inherit; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
.display, h1, h2, h3 { font-family: 'Jua', 'Fredoka', sans-serif; font-weight: 400; font-synthesis: none; line-height: 1.25; }
.section { max-width: 1200px; padding: 100px 40px; margin: auto; }
.eyebrow { display: block; color: var(--orange); font-size: 11px; font-weight: 900; letter-spacing: .22em; margin-bottom: 16px; }
.section-title { font-size: clamp(30px, 3.4vw, 48px); letter-spacing: -.035em; }
.section-subtitle { color: var(--muted); margin-top: 18px; max-width: 580px; }
.section-heading { margin-bottom: 46px; }
.header { height: 78px; padding: 0 40px; display: flex; align-items: center; gap: 30px; position: fixed; inset: 0 0 auto; z-index: 100; border-bottom: 1px solid #73533725; background: #fff9efea; }
.header-brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.brand-icon { width: 40px; height: 40px; border-radius: 12px; }
.header-logo { font-size: 21px; white-space: nowrap; }
.header-nav { display: flex; align-items: center; gap: 25px; }
.header-nav a { font-size: 13px; font-weight: 800; white-space: nowrap; }
.header-nav a:hover, .header-nav a.active { color: var(--orange); }
.lang-select { border: 0; border-left: 1px solid var(--line); padding: 7px 10px; background: transparent; color: var(--ink); font-size: 13px; max-width: 110px; }
.menu-toggle { display: none; border: 0; background: transparent; font-size: 24px; width: 42px; height: 42px; }
.hero { min-height: min(860px, 100svh); position: relative; display: flex; align-items: center; padding: 140px 6vw 110px; background: #fae0bb url('images/marketing/hero.webp') center / cover no-repeat; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #fff1d7ee 0%, #fff1d7c4 25%, #fff1d712 58%, transparent 75%); }
.hero-copy { position: relative; width: 46%; max-width: 560px; }
.hero .eyebrow { display: flex; align-items: center; gap: 10px; letter-spacing: .15em; color: #81522f; }
.hero .eyebrow::before { content: ''; width: 23px; height: 1px; background: currentColor; }
.hero-title-img { width: 350px; max-height: 175px; object-fit: contain; object-position: left; margin: 16px 0 24px; }
.hero-subtitle { font-size: clamp(32px, 3.1vw, 48px); letter-spacing: -.04em; white-space: pre-line; }
.hero-desc { color: #70543e; max-width: 430px; font-size: 15px; margin-top: 20px; white-space: pre-line; }
.hero-actions { display: flex; align-items: center; gap: 12px; margin-top: 26px; }
.hero-event { display: inline-block; font-size: 12px; font-weight: 900; margin-top: 20px; color: #794019; border-bottom: 1px solid #a1633760; padding-bottom: 3px; }
.hero-event[hidden], .event-rewards li[hidden] { display: none; }
.button { display: inline-flex; gap: 12px; align-items: center; justify-content: center; background: var(--orange); color: white; padding: 14px 24px; border: 1px solid var(--orange); border-radius: 4px; font-size: 13px; font-weight: 900; min-height: 48px; }
.button:hover { background: #b7441b; border-color: #b7441b; }
.button-quiet { background: #fff9efc9; color: var(--ink); border-color: #a6815d70; }
.button-quiet:hover { background: var(--paper); border-color: #a6815d; }
.hero-scroll { position: absolute; bottom: 24px; left: 6vw; display: flex; align-items: center; gap: 13px; font-size: 10px; font-weight: 900; letter-spacing: .22em; }
.hero-scroll span { font-size: 23px; font-weight: 400; }
.hero-caption { position: absolute; right: 36px; bottom: 28px; font-size: 10px; letter-spacing: .16em; color: #765b43; }
.intro-band { border-bottom: 1px solid var(--line); }
.intro-band-inner { max-width: 1200px; padding: 27px 40px; margin: auto; display: flex; gap: 30px; align-items: center; justify-content: space-between; }
.intro-band p { font-size: 15px; font-weight: 800; }
.intro-facts { display: flex; gap: 34px; }
.intro-facts span { color: var(--muted); font-size: 12px; }
.intro-facts strong { color: var(--ink); font-size: 18px; margin-right: 7px; }
.halloween-section { background: #35283f; color: #fff4e3; }
.halloween-section[hidden] { display: none; }
.halloween-layout { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 54px; padding-top: 76px; padding-bottom: 76px; }
.halloween-art { position: relative; }
.halloween-art img { width: 100%; height: auto; border-radius: 8px; }
.event-badge { display: inline-block; padding: 5px 12px; background: #ffc074; color: #35283f; border-radius: 3px; font-size: 11px; font-weight: 900; }
.event-dates { margin-top: 17px; letter-spacing: .12em; font-size: 13px; color: #ffc074; font-weight: 900; }
.halloween-copy h2 { white-space: pre-line; font-size: clamp(29px, 3vw, 41px); margin: 13px 0 17px; }
.halloween-copy > p:not(.event-dates):not(.event-fineprint) { font-size: 14px; color: #e0d1df; }
.event-rewards { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 10px; }
.event-rewards li { display: flex; align-items: center; gap: 12px; font-size: 12px; }
.event-rewards img { width: 38px; height: 38px; object-fit: contain; }
.event-button { background: #ffc074; color: #35283f; border-color: #ffc074; }
.event-button:hover { background: #ffcd92; border-color: #ffcd92; }
.event-fineprint { margin-top: 18px; font-size: 11px; color: #cfbdcf; }
.language-links { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11px; color: var(--muted); }
.language-links [aria-current=page] { color: var(--orange); font-weight: 900; }
.videos-wrap { background: var(--night); color: #fff8ec; }
.videos-wrap .eyebrow { color: #edb180; }
.videos-wrap .section-subtitle { color: #c6cbd1; }
.video-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.video-card { border: 0; background: transparent; padding: 0; text-align: left; color: inherit; }
.video-poster { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #e8d5b7; }
.video-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.video-card:hover img { transform: scale(1.035); }
.video-poster::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 45%, #10213665); }
.play-icon { width: 62px; height: 62px; border-radius: 50%; background: #fff9efe8; color: var(--ink); display: grid; place-items: center; padding-left: 3px; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1; font-size: 18px; }
.video-label { display: flex; justify-content: space-between; align-items: center; padding: 17px 0; gap: 15px; border-bottom: 1px solid #ffffff25; }
.video-label strong { font-size: 17px; font-weight: 800; }
.video-label small { font-size: 10px; letter-spacing: .12em; color: #d0c7bb; }
.video-note { display: block; color: #c6cbd1; font-size: 12px; margin-top: 5px; }
.video-card:nth-child(2) { align-self: end; }
.video-card:nth-child(2) .video-poster { aspect-ratio: 16/9; background: #f8e8d6; }
.video-card:nth-child(2) img { object-fit: contain; }
.story-intro { max-width: 630px; margin-bottom: 64px; }
.feature-story { display: grid; grid-template-columns: 1.05fr 1fr; gap: 85px; align-items: center; margin-top: 75px; }
.feature-story.reverse .story-art { order: 2; }
.story-art { aspect-ratio: 1.14; position: relative; overflow: hidden; background: #e6e4f0; border-radius: 5px; }
.story-art > img { width: 100%; height: 100%; object-fit: cover; }
.story-art.puzzle { aspect-ratio: auto; background: #e5e2f3; display: flex; align-items: center; justify-content: center; padding: 32px; }
.story-art.puzzle > img { width: min(100%, 260px); height: auto; flex: none; border-radius: 20px; box-shadow: 0 15px 35px #3a2e6529; }
.story-art.walk > img:first-child { object-position: center; }
.walk-pet { position: absolute; width: 31% !important; height: auto !important; bottom: 9%; left: 34%; }
.story-number { display: block; font-size: 11px; letter-spacing: .18em; font-weight: 900; color: var(--orange); margin-bottom: 20px; }
.story-copy h3 { font-size: clamp(29px, 3vw, 41px); letter-spacing: -.035em; white-space: pre-line; }
.story-copy p { color: var(--muted); font-size: 15px; margin-top: 22px; }
.story-detail { display: flex; gap: 12px; margin-top: 24px; align-items: center; border-top: 1px solid var(--line); padding-top: 20px; color: #8b5934; font-size: 12px; font-weight: 800; }
.story-detail img { width: 43px; height: 43px; object-fit: contain; }
.mode-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 70px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mode-strip div { padding: 30px 20px; }
.mode-strip div + div { border-left: 1px solid var(--line); }
.mode-strip strong { display: block; font-size: 18px; margin-bottom: 5px; }
.mode-strip p { font-size: 13px; color: var(--muted); }
.chars-wrap { background: #f1eadd; border-top: 1px solid var(--line); }
.pet-showcase { display: grid; grid-template-columns: .9fr 1.2fr; gap: 70px; align-items: center; }
.pet-featured { text-align: center; }
.pet-featured-stage { width: 90%; margin: auto; aspect-ratio: 1; border-radius: 50%; background: #fff8ed; position: relative; }
.pet-featured-stage img { width: 100%; height: 100%; object-fit: contain; }
.pet-featured h3 { font-size: 36px; margin: 14px 0 10px; }
.pet-featured p { font-size: 13px; color: var(--muted); }
.pet-index { font-size: 11px; color: #a05c30; letter-spacing: .14em; }
.chars-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.char-card { border: 1px solid transparent; border-radius: 8px; padding: 4px; background: #fff9ef80; min-width: 0; }
.char-card:hover, .char-card[aria-pressed="true"] { border-color: var(--orange); background: #fff9ef; }
.char-img-wrap { position: relative; aspect-ratio: 1; }
.char-img-wrap img { width: 100%; height: 100%; object-fit: contain; }
.char-tooltip-name { font-size: 11px; margin: 4px 0; }
.char-tooltip-concept { display: none; }
.char-sprite { position: absolute; inset: 0; background-repeat: no-repeat; pointer-events: none; opacity: 0; }
.is-playing .char-sprite { opacity: 1; }
.is-playing > img { opacity: 0; }
.pet-hint { color: var(--muted); font-size: 12px; text-align: center; margin-top: 20px; }
.media-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.screenshot-item { padding: 0; text-align: left; border: 0; background: transparent; }
.screenshot-item img { width: 100%; height: auto; border-radius: 9px; transition: transform .25s; }
.screenshot-item:hover img { transform: translateY(-5px); }
.screenshot-item span { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 800; padding-top: 17px; }
.screenshot-item small { font-weight: 600; color: #a77b58; }
.cta-wrap { text-align: center; padding: 88px 24px; background: #efddc4; border-top: 1px solid #d7c4aa; }
.cta-title { font-size: clamp(30px, 3.5vw, 46px); }
.cta-desc { color: #725c48; margin: 16px 0 30px; }
.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.store-badge { display: block; padding: 0; border: 1px solid #b6a28d; border-radius: 6px; background: #fff; overflow: hidden; }
.store-badge img { display: block; height: 49px; width: auto; }
.store-badge:hover { box-shadow: 0 4px 12px #4b352c20; }
.store-badge-coming { opacity: .55; }
.footer { background: #fff9ef; padding: 35px 40px; display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; font-size: 12px; }
.footer-links { display: flex; gap: 24px; }
.footer-info { color: var(--muted); text-align: right; }
.footer a:hover { text-decoration: underline; }
.overlay { position: fixed; inset: 0; z-index: 300; background: #000b; padding: 20px; display: none; align-items: center; justify-content: center; }
.overlay.active { display: flex; }
.modal-panel { position: relative; background: var(--paper); color: var(--ink); width: min(980px, 100%); max-height: 70vh; max-height: 70dvh; overflow: hidden; border-radius: 12px; display: flex; flex-direction: column; box-shadow: 0 24px 60px #0005; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; gap: 15px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.modal-head h2 { font-size: 20px; }
.modal-close, .lightbox-nav { border: 0; background: #ece2d6; border-radius: 50%; width: 40px; height: 40px; flex-shrink: 0; font-size: 22px; }
.modal-body { min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 20px; }
.lightbox-body { text-align: center; }
.lightbox-body img { max-width: 100%; max-height: 48dvh; width: auto; height: auto; margin: auto; }
.lightbox-tools { display: flex; justify-content: center; align-items: center; gap: 25px; padding: 12px; }
.pet-modal-card { max-width: 350px; }
.pet-modal-stage { position: relative; width: 240px; max-width: 100%; aspect-ratio: 1; margin: auto; }
.pet-modal-stage img { width: 100%; height: 100%; object-fit: contain; }
.pet-modal-name { font-size: 24px; text-align: center; margin: 10px; }
.video-frame { aspect-ratio: 16/9; background: var(--night); }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-pending img { width: 100%; max-height: 35dvh; object-fit: contain; }
.video-pending p { padding: 20px 0 0; text-align: center; }
.toast { position: fixed; left: 50%; bottom: 25px; transform: translate(-50%, 20px); max-width: calc(100vw - 32px); width: max-content; background: var(--night); color: #fff; padding: 13px 24px; border-radius: 8px; z-index: 400; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; font-size: 14px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.skip-link { position: fixed; top: -100px; left: 15px; z-index: 500; background: white; padding: 12px; }
.skip-link:focus { top: 10px; }
@media (min-width: 1800px) { .hero { padding-left: max(6vw, calc((100vw - 1500px) / 2)); } }
@media (max-width: 1000px) {
  .header { padding: 0 24px; gap: 18px; }
  .header-nav { gap: 16px; }
  .header-logo { font-size: 18px; }
  .section { padding: 75px 28px; }
  .hero { min-height: 760px; background-position: 57% center; }
  .hero-copy { width: 49%; }
  .hero-title-img { width: 300px; }
  .feature-story { gap: 38px; }
  .halloween-layout { gap: 30px; }
  .pet-showcase { gap: 30px; }
  .chars-grid { gap: 7px; }
  .intro-facts { gap: 18px; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 80px; }
  .header { height: 68px; padding: 0 18px; gap: 8px; }
  .brand-icon { width: 34px; height: 34px; }
  .header-brand { gap: 8px; }
  .header-logo { font-size: 17px; }
  .lang-select { max-width: 84px; font-size: 12px; padding: 6px; }
  .menu-toggle { display: block; }
  .header-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; padding: 20px; max-height: min(70dvh, calc(100dvh - 68px)); overflow-y: auto; -webkit-overflow-scrolling: touch; background: var(--paper); box-shadow: 0 8px 15px #45352c15; border-bottom: 1px solid var(--line); }
  .header-nav.open { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .header-nav a { padding: 12px; }
  .hero { min-height: 910px; min-height: max(850px, 100svh); padding: 110px 24px 380px; align-items: flex-start; background-size: auto 510px; background-position: 69% bottom; background-color: #fff0d8; }
  .hero::before { background: linear-gradient(#fff0d8 43%, #fff0d800 65%); }
  .hero-copy { width: 100%; max-width: 500px; }
  .hero-title-img { width: 240px; max-height: 120px; margin: 10px 0 20px; }
  .hero-subtitle { font-size: 34px; }
  .hero-desc { font-size: 14px; max-width: 360px; }
  .hero-actions { gap: 9px; }
  .button { padding: 13px 18px; }
  .hero-caption { display: none; }
  .hero-scroll { left: 24px; bottom: 18px; }
  .intro-band-inner { padding: 25px 24px; flex-direction: column; align-items: flex-start; gap: 15px; }
  .intro-facts { width: 100%; justify-content: space-between; gap: 8px; }
  .intro-facts strong { font-size: 16px; }
  .intro-facts span { font-size: 11px; }
  .section { padding: 65px 24px; }
  .section-title { font-size: 33px; }
  .section-subtitle { font-size: 14px; }
  .section-heading { margin-bottom: 32px; }
  .halloween-layout { grid-template-columns: 1fr; gap: 30px; }
  .halloween-copy h2 { font-size: 32px; }
  .video-grid { grid-template-columns: 1fr; gap: 30px; }
  .video-card:nth-child(2) .video-poster { aspect-ratio: 16/8; }
  .feature-story { grid-template-columns: 1fr; gap: 28px; margin-top: 55px; }
  .feature-story.reverse .story-art { order: 0; }
  .story-intro { margin-bottom: 30px; }
  .story-copy h3 { font-size: 32px; }
  .story-copy p { font-size: 14px; margin-top: 16px; }
  .mode-strip { margin-top: 45px; grid-template-columns: 1fr; }
  .mode-strip div { padding: 22px 0; }
  .mode-strip div + div { border-left: 0; border-top: 1px solid var(--line); }
  .pet-showcase { grid-template-columns: 1fr; gap: 32px; }
  .pet-featured-stage { max-width: 270px; }
  .pet-featured h3 { font-size: 30px; }
  .chars-grid { grid-template-columns: repeat(6, 1fr); gap: 6px; }
  .char-tooltip-name { font-size: 10px; }
  .media-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 16px; }
  .screenshot-item span { font-size: 12px; }
  .store-badge img { height: 42px; }
  .footer { padding: 30px 24px; flex-direction: column; text-align: center; }
  .footer-info { text-align: center; }
  .modal-body { padding: 14px; }
}
@media (max-width: 360px) { .header-logo { font-size: 14px; } .brand-icon { display: none; } .hero-subtitle { font-size: 30px; } .chars-grid { grid-template-columns: repeat(4, 1fr); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
