:root {
  color-scheme: light dark;
  --bg: #f7f3ee;
  --bg-glow: #ffe9d2;
  --ink: #1e1a17;
  --muted: #6d635b;
  --hair: rgba(60, 40, 25, .14);
  --glass: rgba(255, 255, 255, .58);
  --glass-edge: rgba(255, 255, 255, .85);
  --glass-shadow: 0 10px 30px rgba(90, 55, 25, .12), 0 1px 2px rgba(90, 55, 25, .08);
  --btn: #231c19;
  --btn-ink: #fff8f0;
  --amber: #e98a2e;
  --glow: #ffb066;
  --lid-a: #dcd6d0;
  --lid-b: #b9b1a9;
  --front-a: #9d958d;
  --front-b: #7f7770;
  --cup-hi: #fbf1e6;
  --cup-mid: #e3cfba;
  --cup-lo: #c9ae93;
  --coffee: #7a4a2b;
  --steam: #a58b74;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, "Helvetica Neue", "PingFang SC", "Hiragino Sans", "Noto Sans CJK SC", "Malgun Gothic", sans-serif;
}

:root[lang^="ja"] { --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif; }
:root[lang^="ko"] { --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; }
:root[lang^="zh"] { --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif; }
:root[lang^="ja"] body { font-feature-settings: "palt"; }

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15100e;
    --bg-glow: #3a2213;
    --ink: #f6ece2;
    --muted: #b1a396;
    --hair: rgba(255, 235, 215, .14);
    --glass: rgba(255, 245, 235, .08);
    --glass-edge: rgba(255, 245, 235, .22);
    --glass-shadow: 0 12px 34px rgba(0, 0, 0, .45), 0 1px 2px rgba(0, 0, 0, .4);
    --btn: #f7e9da;
    --btn-ink: #22190f;
    --lid-a: #4a4340;
    --lid-b: #2f2a28;
    --front-a: #26211f;
    --front-b: #171312;
    --cup-hi: #f4e6d6;
    --cup-mid: #cdb59c;
    --cup-lo: #a98d73;
    --steam: #e6d3c0;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font: 17px/1.5 var(--font);
  color: var(--ink);
  background:
    radial-gradient(1100px 620px at 50% -8%, var(--bg-glow), transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  padding: 0 16px env(safe-area-inset-bottom);
}

.top {
  max-width: 1080px;
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) 0 0;
  display: flex;
  justify-content: flex-end;
}

.lang { position: relative; }
.lang summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { color: var(--ink); }
.lang ul {
  position: absolute;
  right: 0;
  top: 46px;
  z-index: 5;
  margin: 0;
  padding: 8px;
  list-style: none;
  width: min(300px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(28px) saturate(1.7);
  backdrop-filter: blur(28px) saturate(1.7);
}
.lang li a {
  display: block;
  padding: 9px 12px;
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
}
.lang li a:hover { background: var(--glass); }

a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

main { max-width: 1080px; margin: 0 auto; }

.hero {
  text-align: center;
  padding: clamp(8px, 3vw, 36px) 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.icon {
  width: 112px;
  height: 112px;
  filter: drop-shadow(0 14px 22px rgba(80, 40, 10, .28));
}
h1 {
  margin: 18px 0 0;
  max-width: 16em;
  font-size: clamp(2.3rem, 6.4vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -.035em;
  font-weight: 700;
  text-wrap: balance;
}
:root[lang^="ja"] h1, :root[lang^="ko"] h1, :root[lang^="zh"] h1 { letter-spacing: -.01em; line-height: 1.2; }
.sub {
  margin: 16px 0 0;
  max-width: 30em;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  line-height: 1.4;
  color: var(--muted);
  text-wrap: balance;
}
.cta {
  margin-top: 30px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 58px;
  padding: 0 32px;
  border-radius: 999px;
  color: var(--btn-ink);
  background: var(--btn);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 12px 28px rgba(60, 30, 10, .28), 0 2px 4px rgba(60, 30, 10, .2);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cta:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 18px 34px rgba(60, 30, 10, .32), 0 2px 4px rgba(60, 30, 10, .2); }
.cta:active { transform: translateY(0); }
.req { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); }

.stage {
  position: relative;
  max-width: 760px;
  margin: clamp(10px, 3vw, 30px) auto 0;
}
.art { display: block; width: 100%; height: auto; overflow: visible; }

.chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px 9px 12px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, .25);
  -webkit-backdrop-filter: blur(22px) saturate(1.7);
  backdrop-filter: blur(22px) saturate(1.7);
}
.chip-music { left: 1%; top: 24%; }
.chip-dl { right: 1%; top: 50%; flex-direction: column; align-items: stretch; gap: 7px; min-width: 128px; }

.eq { display: inline-flex; align-items: flex-end; gap: 2.5px; height: 16px; }
.eq i {
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: var(--amber);
  transform-origin: bottom;
  animation: eq 1.1s ease-in-out infinite;
}
.eq i:nth-child(2) { animation-delay: -.35s; }
.eq i:nth-child(3) { animation-delay: -.7s; }
.eq i:nth-child(4) { animation-delay: -.2s; }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }

.bar { display: block; height: 5px; border-radius: 3px; background: var(--hair); overflow: hidden; }
.bar i {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 3px;
  background: var(--amber);
  transform-origin: left;
  animation: fill 6s ease-in-out infinite;
}
@keyframes fill { 0% { transform: scaleX(.12); } 85%, 100% { transform: scaleX(1); } }

.steam path {
  stroke-dasharray: 60;
  animation: steam 4.2s ease-in-out infinite;
  transform-box: fill-box;
}
.steam .s2 { animation-delay: -1.4s; }
.steam .s3 { animation-delay: -2.8s; }
@keyframes steam {
  0% { stroke-dashoffset: 60; opacity: 0; transform: translateY(6px); }
  35% { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; transform: translateY(-10px); }
}
.seam-glow { animation: breathe 3.6s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

.cap {
  margin: 8px auto 0;
  max-width: 28em;
  text-align: center;
  font-size: 15px;
  color: var(--muted);
  text-wrap: balance;
}

.points {
  list-style: none;
  margin: clamp(40px, 7vw, 72px) auto 0;
  padding: 0;
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.points li { padding: 4px 28px; border-left: 1px solid var(--hair); }
.points li:first-child { border-left: 0; padding-left: 0; }
.points li:last-child { padding-right: 0; }
.points h2 { margin: 0; font-size: 1.12rem; font-weight: 650; letter-spacing: -.01em; }
.points p { margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: var(--muted); }

.safety {
  margin: clamp(36px, 6vw, 56px) auto 0;
  max-width: 640px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border-radius: 22px;
  font-size: 15.5px;
  line-height: 1.45;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, .25);
  -webkit-backdrop-filter: blur(22px) saturate(1.7);
  backdrop-filter: blur(22px) saturate(1.7);
}
.safety svg { flex: none; color: var(--amber); }

footer {
  max-width: 640px;
  margin: 48px auto 0;
  padding: 0 0 36px;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
footer p { margin: 0 0 8px; text-wrap: balance; }
footer a { color: inherit; text-underline-offset: 3px; }

@media (max-width: 720px) {
  body { font-size: 16px; }
  .icon { width: 92px; height: 92px; }
  .cta { height: 54px; padding: 0 26px; font-size: 17px; }
  .chip { font-size: 12px; padding: 7px 11px 7px 10px; border-radius: 13px; gap: 8px; }
  .chip-music { left: 0; top: 10%; }
  .chip-dl { right: 0; top: 34%; min-width: 108px; }
  .points { grid-template-columns: 1fr; gap: 22px; text-align: left; }
  .points li, .points li:first-child, .points li:last-child { border-left: 0; padding: 0 0 22px; border-bottom: 1px solid var(--hair); }
  .points li:last-child { border-bottom: 0; padding-bottom: 0; }
  .safety { padding: 14px 16px; border-radius: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .steam path { opacity: .7; stroke-dashoffset: 0; }
  .bar i { transform: scaleX(.8); }
  .eq i { transform: scaleY(.7); }
}
