:root {
  color-scheme: light;
  --bg: #f8f7f1;
  --ink: #414f42;
  --muted: #788074;
  --accent: #63816b;
  --accent-hover: #506e58;
  --accent-soft: #e9eddf;
  --pink: #cd838c;
  --line: #e2e4d8;
  --paper: #fffdf7;
  --card-pink: #f6ebe7;
  --card-green: #edf0e6;
  --card-yellow: #f8f0d9;
  --postcard: #f8e7e5;
  --halo: #edd6d9;
  --ribbon: #e9eddc;
  --shadow: 0 14px 42px #4f59300a;
  --font: "Nunito", "Quicksand", "Noto Sans CJK SC", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}
:root[data-theme="matcha"] {
  --bg: #f3f5ed; --ink: #3d5243; --muted: #6e7e6c; --accent: #547962; --accent-hover: #41634e;
  --accent-soft: #dfe9d8; --pink: #809969; --line: #dce3d3; --paper: #fffef5;
  --card-pink: #e7eedf; --card-green: #e7eee4; --card-yellow: #f7efda; --postcard: #e7efda; --halo: #d1dfc2; --ribbon: #dfe8d4;
}
:root[data-theme="night"] {
  color-scheme: dark;
  --bg: #272c37; --ink: #eee7db; --muted: #b2b7bd; --accent: #b4c7a8; --accent-hover: #c8d8be;
  --accent-soft: #3c4650; --pink: #e2aebc; --line: #454b57; --paper: #323844;
  --card-pink: #3c3744; --card-green: #343e40; --card-yellow: #413e37; --postcard: #464352; --halo: #615368; --ribbon: #394343;
  --shadow: 0 14px 42px #0002;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 26px; }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: var(--font); font-size: 14px; line-height: 1.7; -webkit-font-smoothing: antialiased; transition: background-color .3s, color .3s; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1; opacity: .2; background-image: radial-gradient(var(--muted) .55px, transparent .55px); background-size: 9px 9px; mask-image: linear-gradient(90deg, #000, transparent 25%, transparent 75%, #000); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
button, a, img { -webkit-user-drag: none; }
a { color: inherit; text-decoration: none; }
button { border: 0; }
button:disabled { cursor: default; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--pink); outline-offset: 5px; }
button, a { touch-action: manipulation; }
svg { width: 24px; height: 24px; flex-shrink: 0; vertical-align: middle; }
img { display: block; max-width: 100%; }
p, h1, h2, h3 { margin: 0; }
::selection { background: #eac6cb; color: #414f42; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.fortune-flower, .quote-mark, .friend-sticker, .art-daisy, .canvas-jp, .canvas-star, .canvas-halo { pointer-events: none; }
.wrap { width: min(1160px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: fixed; top: -70px; left: 20px; z-index: 100; padding: 12px 20px; background: var(--paper); border: 1px solid var(--accent); border-radius: 12px; }
.skip-link:focus { top: 15px; }
.page-decoration { position: absolute; pointer-events: none; color: var(--accent); opacity: .17; font-family: Georgia, serif; }
.decoration-one { top: 163px; left: 3%; font-size: 55px; transform: rotate(-12deg); }
.decoration-two { top: 690px; right: 3%; font-size: 37px; }
.site-header { height: 105px; display: flex; align-items: center; justify-content: space-between; gap: 25px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand > svg { width: 31px; height: 31px; color: var(--accent); transform: rotate(-12deg); }
.brand > span:first-of-type { font-size: 31px; letter-spacing: -1.5px; font-weight: 850; line-height: 1; }
.brand-dot { color: var(--pink); }
.brand-tag { border-left: 1px solid var(--line); padding-left: 16px; margin-left: 6px; font-size: 10px; color: var(--muted); letter-spacing: .3px; }
.main-nav { display: flex; align-items: center; gap: 31px; font-size: 12px; }
.main-nav a, .text-button { position: relative; transition: color .2s; }
.main-nav a:hover, .text-button:hover { color: var(--pink); }
.nav-active::after { content: ""; position: absolute; left: calc(50% - 2px); bottom: -12px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.text-button { padding: 0; background: none; }
.text-button span { margin-left: 2px; color: var(--muted); }
.sound-toggle { display: flex; align-items: center; gap: 8px; padding: 9px 13px; background: transparent; border: 1px solid var(--line); border-radius: 30px; color: var(--muted); font-size: 11px; transition: background .2s; }
.sound-toggle:hover { background: var(--accent-soft); }
.sound-toggle svg { width: 15px; height: 15px; }
.sound-toggle[aria-pressed="true"] { color: var(--accent); background: var(--accent-soft); }
.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 30px; min-height: 645px; padding-top: 57px; padding-bottom: 61px; }
.hero-copy { position: relative; z-index: 2; padding-bottom: 2px; }
.welcome-label { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); background: var(--accent-soft); padding: 5px 12px; border-radius: 5px; font-size: 11px; letter-spacing: .6px; margin-bottom: 30px; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.welcome-label > span:last-child { margin-left: 9px; }
.hero-pretitle { font-size: 23px; letter-spacing: 2px; font-weight: 500; }
.hero-pretitle > span { white-space: nowrap; }
h1 { position: relative; display: inline-block; font-family: Georgia, "Times New Roman", serif; font-size: clamp(94px, 9.2vw, 132px); line-height: 1.2; font-weight: 700; letter-spacing: -7px; margin-left: -5px; }
.title-tilde { font-family: var(--font); font-size: .62em; font-weight: 500; display: inline-block; margin-left: -5px; vertical-align: 5px; }
.title-sparkle { position: absolute; width: 33px; height: 33px; color: #d4b56f; right: -17px; top: 9px; transform: rotate(8deg); }
.hero-kaomoji { position: relative; width: fit-content; font-family: "Trebuchet MS", var(--font); font-size: 39px; line-height: 1.65; letter-spacing: 1px; color: var(--pink); white-space: nowrap; }
.hero-kaomoji::after { content: ""; position: absolute; height: 8px; background: #e1cfa760; bottom: 6px; left: 0; right: -8px; border-radius: 50%; transform: rotate(-2deg); z-index: -1; }
.kaomoji-star { display: inline-block; font-size: 32px; transform: rotate(10deg); color: #cdad65; margin-left: 3px; }
.hero-description { margin-top: 21px; color: var(--muted); font-size: 13px; line-height: 2; letter-spacing: .5px; }
.hero-description > span { color: var(--pink); }
.hero-actions { display: flex; align-items: center; gap: 12px; margin-top: 27px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 49px; border-radius: 7px; padding: 12px 18px; font-size: 12px; letter-spacing: .5px; font-weight: 550; transition: transform .2s, background .2s, box-shadow .2s; }
.button:hover { transform: translateY(-3px); }
.button:active { transform: translateY(1px); }
.button svg { width: 17px; height: 17px; }
.button-primary { background: var(--accent); color: var(--bg); box-shadow: 0 5px 0 #3b554617; padding-inline: 20px; }
.button-primary:hover { background: var(--accent-hover); box-shadow: 0 8px 18px #3b55461c; }
.button-primary .button-arrow { margin-left: 17px; }
.button-secondary { background: transparent; border: 1px solid var(--line); font-weight: 400; }
.button-secondary:hover { background: var(--paper); }
.hero-footnote { display: flex; align-items: center; gap: 10px; margin-top: 28px; }
.tiny-faces { display: inline-flex; padding-left: 3px; }
.tiny-faces > span { display: grid; place-items: center; width: 25px; height: 25px; margin-left: -3px; border-radius: 50%; border: 2px solid var(--bg); font-size: 14px; color: #997c79; background: #f0dfd9; }
.tiny-faces > span:nth-child(2) { background: #e6e9d8; color: #73846b; }
.tiny-faces > span:nth-child(3) { background: #f2e8cb; color: #a78f54; }
.hero-footnote p { display: flex; gap: 15px; align-items: center; font-size: 10px; color: var(--muted); }
.handwritten { font-family: "Segoe Print", "Comic Sans MS", cursive; font-style: italic; font-size: 13px; color: var(--pink); transform: rotate(-7deg); }
.hero-art { position: relative; height: 515px; width: 100%; max-width: 545px; justify-self: end; isolation: isolate; }
.art-orbit { position: absolute; inset: 32px -7px 38px 0; border: 1px dashed var(--line); border-radius: 50%; transform: rotate(-24deg); z-index: -1; }
.art-daisy { position: absolute; width: 60px; height: 60px; color: #d9bd7c; top: 0; right: 54px; transform: rotate(13deg); z-index: 4; }
.postcard { position: absolute; inset: 30px 43px 26px 52px; background: var(--paper); padding: 17px 17px 0; transform: rotate(3deg); border: 1px solid #88856b20; border-radius: 5px; box-shadow: 9px 11px 0 #62634a07, 0 22px 40px #62634a0b; }
.postcard-tape { position: absolute; top: -14px; left: calc(50% - 51px); height: 30px; width: 102px; transform: rotate(-7deg); background: repeating-linear-gradient(90deg, #b4c4a574 0, #b4c4a574 3px, #c2ceae83 3px, #c2ceae83 7px); clip-path: polygon(2% 0, 98% 0, 96% 10%, 100% 18%, 97% 29%, 100% 40%, 97% 53%, 100% 67%, 97% 80%, 100% 91%, 97% 100%, 1% 100%, 3% 89%, 0 75%, 3% 63%, 0 50%, 3% 39%, 0 28%, 3% 15%); z-index: 5; }
.postcard-topline { height: 26px; display: flex; align-items: flex-start; justify-content: space-between; font-size: 8px; letter-spacing: 1.8px; color: var(--muted); }
.postcard-topline svg { width: 15px; height: 15px; color: var(--pink); }
.postcard-canvas { position: relative; height: calc(100% - 80px); background: var(--postcard); overflow: hidden; border-radius: 2px; }
.postcard-canvas::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(#fff8 1.4px, transparent 1.4px); background-size: 21px 21px; opacity: .5; z-index: -1; }
.canvas-halo { position: absolute; width: 87%; aspect-ratio: 1; border-radius: 50%; background: var(--halo); left: 6.5%; top: 13%; opacity: .55; border: 11px solid #ffffff30; outline: 1px dashed #ffffff70; outline-offset: 9px; }
.canvas-jp { position: absolute; top: 20px; left: 19px; writing-mode: vertical-rl; font-size: 10px; letter-spacing: 4px; color: var(--pink); z-index: 1; }
.canvas-star { position: absolute; z-index: 1; color: #cfb26c; }
.star-a { top: 64px; right: 29px; font-size: 30px; }
.star-b { bottom: 37px; left: 29px; font-size: 22px; color: var(--pink); }
.character-greet { position: absolute; inset: 0; width: 100%; height: 100%; background: transparent; padding: 0; overflow: visible; }
.character-greet img { height: 100%; width: 100%; padding: 12px 3px 0; object-fit: contain; transform: translateY(-9px) rotate(-3deg); filter: drop-shadow(0 5px 0 #ffffffb3); transition: transform .3s; }
.character-greet:hover img { transform: translateY(-15px) rotate(-5deg); }
.character-greet:focus-visible { outline-offset: -5px; }
.character-greet.is-greeting img { animation: character-bounce .65s ease; }
.speech-bubble { position: absolute; top: 26px; right: 12px; transform: rotate(8deg); padding: 10px 13px; color: #7d6e69; border: 1px solid #decac2; border-radius: 15px 15px 15px 2px; background: #fffdf4; font-family: Georgia, serif; font-size: 21px; line-height: 1.2; pointer-events: none; box-shadow: 2px 3px 0 #967d6e08; }
.speech-bubble span { display: block; font-size: 10px; font-family: var(--font); margin-top: 3px; color: #b5808f; }
.speech-bubble.is-greeting { animation: bubble-pop .45s ease; }
.postcard-caption { display: flex; align-items: center; justify-content: space-between; gap: 6px; height: 53px; }
.postcard-caption > span:first-child { display: flex; align-items: center; gap: 7px; padding-left: 42px; }
.caption-dot { height: 5px; width: 5px; border-radius: 50%; background: var(--pink); }
.postcard-caption strong { font-size: 11px; letter-spacing: 1px; font-weight: 500; }
.caption-romaji { font-size: 7px; letter-spacing: 1px; color: var(--muted); margin-left: 4px; }
.caption-number { font-size: 9px; color: var(--muted); font-family: Georgia, serif; font-style: italic; }
.friend-sticker { position: absolute; z-index: 5; filter: drop-shadow(1px 5px 3px #69513b12); }
.friend-mako { bottom: 26px; left: -9px; width: 127px; height: 171px; transform: rotate(-13deg); }
.friend-mako img { position: absolute; width: 149px; max-width: none; height: auto; left: -6px; bottom: -5px; filter: drop-shadow(2px 0 white) drop-shadow(-2px 0 white) drop-shadow(0 3px white) drop-shadow(0 -2px white); }
.sticker-label { position: absolute; left: 9px; top: -2px; border: 1px solid #d6dfca; padding: 4px 11px; border-radius: 4px; color: #627557; background: #e8efdb; font-size: 10px; z-index: 1; transform: rotate(-4deg); white-space: nowrap; }
.sticker-star { position: absolute; bottom: 25px; right: -16px; color: var(--pink); font-size: 26px; }
.friend-murasame { top: 83px; right: -18px; width: 112px; height: 148px; background: #faf1d9; border: 5px solid #fffdf3; border-radius: 3px; transform: rotate(12deg); }
.friend-murasame img { width: 127px; max-width: none; height: 138px; margin-left: -12px; margin-top: -8px; }
.sticker-caption { position: absolute; bottom: 4px; left: 0; right: 0; text-align: center; font-size: 9px; color: #8f856a; letter-spacing: 1px; }
.mini-tape { position: absolute; width: 49px; height: 18px; background: #e9bdba8c; left: 28px; top: -12px; transform: rotate(-7deg); z-index: 1; }
.art-note { position: absolute; bottom: -11px; right: 69px; font-size: 11px; color: var(--muted); letter-spacing: 1px; transform: rotate(-4deg); }
.art-note svg { position: absolute; right: -37px; width: 54px; height: 35px; bottom: 7px; transform: rotate(-34deg); color: var(--pink); }
.happiness-ribbon { overflow: hidden; background: var(--ribbon); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: rotate(-1.2deg); width: 100%; margin-top: 1px; }
.happiness-ribbon > div { display: flex; align-items: center; justify-content: center; gap: 38px; height: 45px; width: max-content; min-width: 100%; padding-inline: 25px; white-space: nowrap; }
.happiness-ribbon span { font-size: 10px; letter-spacing: 1.4px; color: var(--accent); }
.happiness-ribbon svg { width: 15px; height: 15px; color: var(--accent); }
.little-joys { padding-top: 66px; padding-bottom: 40px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 25px; }
.eyebrow { font-size: 8px; font-weight: 550; letter-spacing: 2.2px; color: var(--accent); margin-bottom: 7px; }
h2 { font-size: 23px; letter-spacing: 1px; font-weight: 650; }
h2 > span { color: var(--pink); font-weight: 400; margin-left: 8px; font-size: 25px; }
.section-heading > p { color: var(--muted); font-size: 10px; margin-bottom: 3px; letter-spacing: .5px; }
.joy-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.joy-card { position: relative; border: 1px solid #88856b14; border-radius: 12px; padding: 21px 24px 18px; min-width: 0; min-height: 238px; box-shadow: var(--shadow); }
.fortune-card { background: var(--card-yellow); background-image: repeating-linear-gradient(transparent 0, transparent 27px, #bcb59810 27px, #bcb59810 28px); }
.palette-card { background: var(--card-pink); }
.friends-card { background: var(--card-green); }
.card-topline { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.card-kicker { font-size: 10px; color: var(--muted); letter-spacing: .6px; }
.card-topline > svg { width: 16px; height: 16px; color: var(--muted); }
.palette-dots { color: var(--pink); letter-spacing: 3px; line-height: 1; }
.fortune-content { position: relative; min-height: 109px; display: flex; align-items: center; padding-left: 6px; padding-right: 25px; }
.quote-mark { position: absolute; left: 0; top: -8px; font-family: Georgia, serif; font-size: 61px; line-height: 1; color: #d7bb78; opacity: .7; }
.fortune-content > p { position: relative; font-size: 17px; font-weight: 500; line-height: 1.9; letter-spacing: .6px; z-index: 1; }
.fortune-flower { position: absolute; right: -4px; top: 48px; font-size: 50px; color: #d7bd7f; transform: rotate(15deg); opacity: .65; }
.card-bottomline { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.card-note { color: var(--muted); font-size: 9px; letter-spacing: .7px; }
.round-button { display: grid; place-items: center; width: 31px; height: 31px; padding: 0; border: 1px solid #a69a7133; border-radius: 50%; background: #ffffff35; transition: background .2s, transform .25s; }
.round-button:hover { background: #ffffff80; transform: rotate(15deg); }
.round-button svg { width: 15px; height: 15px; }
.joy-card h3 { font-size: 17px; font-weight: 550; letter-spacing: .4px; }
.card-description { font-size: 10px; color: var(--muted); margin-top: 6px; }
.theme-options { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin: 24px 5px 0; }
.theme-option { padding: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 9px; background: transparent; color: var(--muted); }
.theme-option:hover .theme-swatch { transform: translateY(-4px) rotate(8deg); }
.theme-option[aria-pressed="true"] { color: var(--ink); }
.theme-swatch { position: relative; width: 45px; height: 45px; border-radius: 50%; display: grid; place-items: center; transition: transform .2s; outline: 1px solid transparent; outline-offset: 4px; }
.theme-option[aria-pressed="true"] .theme-swatch { outline-color: var(--pink); }
.theme-swatch > svg { width: 21px; height: 21px; }
.swatch-sakura { background: #e9c6c8; color: #ab7c86; }
.swatch-matcha { background: #c6d6b7; color: #7d9871; }
.swatch-night { background: #686881; color: #efe0b2; }
.swatch-check { display: none; position: absolute; right: -1px; bottom: -2px; width: 15px; height: 15px; font-size: 9px; background: var(--accent); color: var(--bg); border-radius: 50%; border: 2px solid var(--card-pink); align-items: center; justify-content: center; }
.theme-option[aria-pressed="true"] .swatch-check { display: flex; }
.character-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 14px 0 0; }
.character-option { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 0; font-size: 10px; background: transparent; color: var(--muted); }
.avatar { position: relative; width: 52px; height: 52px; overflow: hidden; border: 2px solid var(--paper); border-radius: 50%; outline: 1px solid transparent; outline-offset: 2px; transition: transform .2s, outline-color .2s; }
.avatar img { width: 94px; height: auto; max-width: none; position: absolute; top: -15px; left: -22px; }
.avatar-miko { background: #f3dfe0; }
.avatar-ninja { background: #d6e0ce; }
.avatar-violet { background: #e8dce9; }
.avatar-blonde { background: #eee0bd; }
.character-option:hover .avatar { transform: translateY(-3px); }
.character-option[aria-pressed="true"] { color: var(--ink); }
.character-option[aria-pressed="true"] .avatar { outline-color: var(--accent); }
.character-selected { display: none; position: absolute; right: 1px; bottom: 24px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 2px solid var(--card-green); }
.character-option[aria-pressed="true"] .character-selected { display: block; }
.friends-note { text-align: center; font-size: 9px; color: var(--muted); margin-top: 11px; white-space: nowrap; }
.friends-note > span { color: var(--accent); margin-right: 3px; }
.closing { display: flex; align-items: center; justify-content: center; gap: 20px; padding: 33px 0 55px; }
.closing > svg { color: var(--pink); width: 32px; height: 32px; transform: rotate(-10deg); }
.closing > p { font-size: 11px; line-height: 2; color: var(--muted); letter-spacing: .8px; }
.closing strong { font-weight: 500; font-size: 15px; color: var(--ink); }
.closing-kaomoji { font-family: Georgia, serif; font-size: 20px; color: var(--pink); margin-left: 34px; transform: rotate(-5deg); }
.site-footer { border-top: 1px solid var(--line); padding-block: 23px; display: flex; justify-content: space-between; align-items: center; gap: 20px; color: var(--muted); font-size: 9px; letter-spacing: .2px; }
.footer-brand { font-weight: 800; color: var(--accent); font-size: 23px; letter-spacing: -1px; line-height: 1; }
.footer-brand span { margin-left: 5px; font-size: 15px; font-weight: 400; vertical-align: middle; color: var(--pink); }
.site-footer > span b { font-family: Georgia, serif; font-style: italic; font-weight: 400; font-size: 12px; color: var(--accent); }
.toast { position: fixed; bottom: 28px; left: 50%; transform: translate(-50%, 15px); z-index: 100; background: var(--ink); color: var(--bg); border: 1px solid var(--line); font-size: 12px; padding: 12px 22px; border-radius: 50px; box-shadow: 0 5px 20px #0002; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100% - 30px); text-align: center; width: max-content; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.particles { position: fixed; inset: 0; pointer-events: none; z-index: 90; overflow: hidden; }
.particle { position: absolute; left: 0; top: 0; font-size: var(--size); color: var(--color); line-height: 1; animation: particle-burst var(--duration) cubic-bezier(.14,.65,.3,1) forwards; will-change: transform, opacity; }
.copy-fallback { position: fixed; left: 12px; top: 12px; width: 240px; opacity: .01; font-size: 16px; }
dialog { color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 18px; max-width: 510px; width: calc(100% - 32px); max-height: calc(100dvh - 40px); padding: 37px; box-shadow: 0 25px 100px #0002; }
dialog::backdrop { background: #33392f75; backdrop-filter: blur(5px); }
.dialog-close { position: absolute; top: 15px; right: 15px; }
.about-flower { width: 39px; height: 39px; color: var(--pink); margin-bottom: 16px; }
dialog h2 { font-size: 21px; margin-bottom: 17px; }
dialog > p:not(.eyebrow) { color: var(--muted); font-size: 12px; line-height: 1.9; }
.about-credits { background: var(--accent-soft); border-radius: 10px; padding: 17px; margin: 24px 0; }
.about-credits h3 { font-size: 13px; margin-bottom: 10px; font-weight: 550; }
.about-credits p { font-size: 11px; color: var(--muted); margin-top: 8px; line-height: 1.9; }
.credit-links { display: flex; flex-wrap: wrap; gap: 17px; font-size: 10px; margin-top: 12px; }
.credit-links a { text-decoration: underline; text-underline-offset: 4px; }
.about-end > span { white-space: nowrap; color: var(--pink); }
@keyframes character-bounce { 0%, 100% { transform: translateY(-9px) rotate(-3deg); } 25% { transform: translateY(-26px) rotate(-8deg); } 50% { transform: translateY(-10px) rotate(2deg); } 75% { transform: translateY(-19px) rotate(-4deg); } }
@keyframes bubble-pop { 0%, 100% { transform: rotate(8deg) scale(1); } 45% { transform: rotate(4deg) scale(1.13); } }
@keyframes particle-burst { 0% { transform: translate(var(--x), var(--y)) scale(.2) rotate(0); opacity: 0; } 12% { opacity: 1; } 100% { transform: translate(calc(var(--x) + var(--dx)), calc(var(--y) + var(--dy))) scale(.75) rotate(var(--rotation)); opacity: 0; } }
@keyframes paper-in { from { opacity: .25; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.paper-in { animation: paper-in .35s ease; }
@media (min-width: 1500px) { .hero { min-height: 675px; } .hero-art { transform: scale(1.04); transform-origin: center; } }
@media (max-width: 1120px) {
  .wrap { width: calc(100% - 72px); }
  .brand-tag { display: none; }
  .hero { gap: 5px; min-height: 600px; padding-top: 40px; padding-bottom: 48px; }
  .hero-art { height: 465px; }
  .art-orbit { inset-inline: 0; transform: none; }
  .hero-pretitle { font-size: 20px; letter-spacing: 1px; }
  h1 { font-size: 110px; }
  .title-sparkle { right: -12px; top: 4px; width: 26px; height: 26px; }
  .hero-kaomoji { font-size: 34px; }
  .postcard { inset: 28px 32px 27px 38px; padding: 13px 13px 0; }
  .postcard-topline { font-size: 7px; letter-spacing: 1px; }
  .friend-mako { left: -13px; bottom: 11px; transform: rotate(-13deg) scale(.9); }
  .friend-murasame { right: -19px; top: 74px; transform: rotate(12deg) scale(.85); }
  .speech-bubble { font-size: 17px; padding: 8px; top: 22px; right: 8px; }
  .speech-bubble span { font-size: 8px; }
  .canvas-jp { left: 12px; font-size: 8px; }
  .caption-romaji { display: none; }
  .hero-footnote p { gap: 9px; }
  .handwritten { display: none; }
  .hero-actions { gap: 8px; }
  .button { padding-inline: 13px; font-size: 11px; }
  .button-primary .button-arrow { margin-left: 6px; }
  .joy-card { padding-inline: 18px; }
  .joy-grid { gap: 14px; }
  .fortune-content > p { font-size: 15px; }
  .joy-card h3 { font-size: 15px; }
  .card-description { font-size: 9px; }
  .friends-note { font-size: 8px; letter-spacing: -.2px; }
  .character-options { padding-inline: 0; gap: 12px; }
  .section-heading > p { font-size: 9px; }
}
@media (max-width: 850px) {
  .wrap { width: calc(100% - 44px); }
  .site-header { height: 84px; gap: 15px; }
  .main-nav { gap: 23px; font-size: 11px; }
  .sound-toggle span { display: none; }
  .sound-toggle { width: 35px; height: 35px; padding: 0; justify-content: center; }
  .hero { min-height: 540px; gap: 0; }
  .hero-art { height: 423px; }
  .hero-pretitle { font-size: 17px; }
  h1 { font-size: 94px; letter-spacing: -6px; }
  .welcome-label { font-size: 9px; padding-inline: 8px; gap: 6px; margin-bottom: 25px; }
  .welcome-label > span:last-child { margin-left: 1px; }
  .hero-kaomoji { font-size: 29px; }
  .kaomoji-star { font-size: 26px; }
  .hero-description { font-size: 11px; }
  .hero-actions { flex-wrap: wrap; margin-top: 22px; }
  .button { font-size: 10px; padding: 10px 11px; min-height: 44px; gap: 5px; }
  .button-primary .button-arrow { display: none; }
  .hero-footnote { margin-top: 22px; }
  .hero-footnote p { font-size: 9px; }
  .postcard { inset: 29px 19px 29px 29px; padding: 11px 11px 0; }
  .postcard-topline { font-size: 6px; }
  .speech-bubble { top: 15px; font-size: 15px; right: 4px; padding: 7px; }
  .speech-bubble span { font-size: 7px; }
  .friend-murasame { right: -6px; top: 87px; transform: rotate(12deg) scale(.7); }
  .friend-mako { left: -27px; bottom: 3px; transform: rotate(-13deg) scale(.75); }
  .art-daisy { width: 45px; height: 45px; right: 30px; top: 4px; }
  .art-note { bottom: -4px; right: 33px; font-size: 9px; }
  .art-note svg { width: 40px; right: -25px; }
  .section-heading > p { display: none; }
  .joy-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .friends-card { grid-column: 1 / -1; min-height: 155px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; column-gap: 20px; }
  .friends-card .card-topline { grid-column: 1; margin-bottom: 0; }
  .friends-card h3 { grid-column: 1; }
  .friends-card .character-options { grid-column: 2; grid-row: 1 / 4; padding: 0 15px; }
  .friends-note { grid-column: 1; text-align: left; margin: 0; font-size: 9px; }
  .joy-card:not(.friends-card) { padding: 22px; }
  .joy-card h3 { font-size: 16px; }
  .fortune-content > p { font-size: 17px; }
  .card-description { font-size: 10px; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { height: 77px; }
  .brand { gap: 7px; }
  .brand > svg { width: 26px; height: 26px; }
  .brand > span:first-of-type { font-size: 27px; }
  .main-nav { margin-left: auto; gap: 19px; }
  .main-nav > .nav-active { display: none; }
  .main-nav a, .main-nav button { font-size: 10px; }
  .sound-toggle { width: 32px; height: 32px; }
  .hero { grid-template-columns: 1fr; padding-top: 43px; padding-bottom: 43px; gap: 19px; }
  .hero-copy { text-align: center; }
  .welcome-label { font-size: 9px; letter-spacing: .5px; margin-bottom: 25px; padding: 5px 10px; }
  .hero-pretitle { font-size: 18px; letter-spacing: 1px; }
  h1 { font-size: clamp(95px, 23vw, 126px); letter-spacing: -6px; line-height: 1.12; margin-top: 4px; }
  .title-sparkle { right: -15px; top: 0; }
  .hero-kaomoji { margin-inline: auto; font-size: 32px; line-height: 1.6; margin-top: 4px; }
  .kaomoji-star { font-size: 28px; }
  .hero-description { font-size: 11px; margin-top: 19px; line-height: 1.95; }
  .hero-actions { justify-content: center; margin-top: 23px; gap: 10px; }
  .button { min-height: 47px; padding: 12px 17px; gap: 7px; font-size: 11px; }
  .button-primary .button-arrow { display: block; margin-left: 7px; }
  .hero-footnote { justify-content: center; margin-top: 20px; gap: 8px; }
  .hero-footnote p { font-size: 9px; }
  .tiny-faces > span { width: 22px; height: 22px; font-size: 12px; }
  .hero-art { justify-self: center; width: min(440px, 100%); height: 463px; margin-top: 0; }
  .postcard { inset: 26px 32px 28px 31px; padding: 13px 13px 0; }
  .postcard-topline { font-size: 7px; letter-spacing: 1px; }
  .postcard-caption strong { font-size: 10px; }
  .caption-romaji { display: inline; font-size: 6px; }
  .friend-mako { left: -26px; bottom: 12px; transform: rotate(-13deg) scale(.8); }
  .friend-murasame { right: -6px; top: 79px; transform: rotate(12deg) scale(.8); }
  .art-daisy { right: 35px; width: 47px; height: 47px; top: 0; }
  .speech-bubble { font-size: 20px; right: 10px; top: 24px; padding: 8px; }
  .speech-bubble span { font-size: 9px; }
  .canvas-jp { top: 19px; left: 12px; font-size: 9px; }
  .art-note { bottom: -2px; right: 58px; font-size: 10px; }
  .happiness-ribbon { transform: rotate(-2deg); width: calc(100% - 4px); margin-inline: auto; }
  .happiness-ribbon > div { height: 39px; gap: 25px; justify-content: flex-start; }
  .happiness-ribbon span { font-size: 8px; letter-spacing: 1px; }
  .happiness-ribbon svg { width: 12px; height: 12px; }
  .little-joys { padding-top: 45px; padding-bottom: 20px; }
  .section-heading { margin-bottom: 21px; }
  .eyebrow { font-size: 7px; letter-spacing: 1.6px; }
  h2 { font-size: 20px; letter-spacing: .5px; }
  h2 > span { font-size: 22px; margin-left: 3px; }
  .joy-grid { grid-template-columns: 1fr; gap: 17px; }
  .joy-card:not(.friends-card), .joy-card { padding: 21px 24px; min-height: 225px; }
  .fortune-content { min-height: 106px; }
  .fortune-content > p { font-size: 18px; }
  .card-kicker { font-size: 10px; }
  .joy-card h3 { font-size: 18px; }
  .card-description { font-size: 11px; }
  .theme-options { margin-top: 22px; margin-inline: 6px; justify-content: flex-start; gap: 40px; }
  .theme-option { font-size: 10px; }
  .theme-swatch { width: 46px; height: 46px; }
  .friends-card { display: block; grid-column: auto; }
  .friends-card .card-topline { margin-bottom: 15px; }
  .friends-card .character-options { gap: 10px; padding: 18px 0 0; }
  .avatar { width: 52px; height: 52px; }
  .avatar img { width: 99px; top: -15px; left: -22px; }
  .friends-note { text-align: left; margin-top: 16px; font-size: 9px; }
  .closing { padding: 28px 0 36px; gap: 14px; }
  .closing > svg { width: 28px; height: 28px; }
  .closing > p { font-size: 10px; }
  .closing strong { font-size: 14px; }
  .closing-kaomoji { display: none; }
  .site-footer { flex-wrap: wrap; column-gap: 12px; row-gap: 10px; padding: 20px 0 26px; font-size: 8px; }
  .site-footer > span { width: 100%; text-align: center; font-size: 9px; }
  .footer-brand { font-size: 21px; }
  .decoration-one { top: 90px; left: 6px; font-size: 29px; }
  .decoration-two { top: 420px; right: 9px; font-size: 24px; }
  dialog { padding: 30px 25px; }
}
@media (max-width: 360px) {
  .wrap { width: calc(100% - 30px); }
  .main-nav { gap: 11px; }
  .site-header { gap: 10px; }
  .main-nav a, .main-nav button { font-size: 9px; }
  .hero-pretitle { font-size: 16px; }
  .hero-actions { gap: 7px; }
  .button { padding-inline: 11px; font-size: 10px; }
  .hero-art { height: 411px; }
  .postcard { inset: 26px 22px 25px 21px; }
  .speech-bubble { font-size: 16px; }
  .speech-bubble span { font-size: 7px; }
  .caption-romaji { display: none; }
  .friend-mako { left: -33px; transform: rotate(-13deg) scale(.7); }
  .friend-murasame { right: -6px; transform: rotate(12deg) scale(.7); }
  .theme-options { gap: 29px; }
  .friends-card .character-options { gap: 5px; }
  .character-option { font-size: 9px; }
  .avatar { width: 46px; height: 46px; }
  .friends-note { font-size: 8px; }
  h2 { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .particles { display: none; }
  .button:hover, .character-greet:hover img, .theme-option:hover .theme-swatch, .character-option:hover .avatar { transform: none; }
}
