/* piradoku.com in the game's "zacht" style: open sea from edge to edge, cream panels that float
   on it with a darker base and a soft shadow in the water, chunky rounded headings, gold buttons
   for the main action. Colours are the game's own tokens (tools/art/palette.mjs), day and night. */

@font-face { font-family: "Fredoka"; src: url("/fonts/fredoka-latin.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("/fonts/atkinson-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --sea: #62c4d2; --sea-light: #79d3de; --wave: #a9e6ec; --shade: #58b8c7;
  --on-sea: #1d3340; --on-sea-muted: #24485a; --route: #2f56ad; --link-on-sea: #1b3a86;
  --panel: #fffaf0; --panel-dark: #e3d4b4; --on-panel: #1d3340; --on-panel-muted: #4f6672; --link: #24408a;
  --cta: #f7b13a; --cta-dark: #c97f1a; --on-cta: #3a2410;
  --button: #ffffff; --button-dark: #9fc9d2; --on-button: #1d3340;
  --reward: #f6c24d; --focus: #1c5cba;
  --tint-sea: #79d3de; --tint-ice: #a6dcec; --tint-volcano: #b4c4c2; --tint-jungle: #a3cf9c; --tint-ghost: #b9b2d9;
  --water-shadow: rgba(16, 72, 84, .30);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --heading: "Fredoka", "Hiragino Maru Gothic ProN", "Arial Rounded MT Bold", ui-rounded, system-ui, sans-serif;
  --body: "Atkinson", "Hiragino Sans", "Hiragino Kaku Gothic ProN", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --sea: #215c6b; --sea-light: #2b6f80; --wave: #4592a1; --shade: #1a4c59;
    --on-sea: #eaf3f1; --on-sea-muted: #cfe2e2; --route: #b3d0ff; --link-on-sea: #ffe29a;
    --panel: #f3ecdc; --panel-dark: #cbbd99; --on-panel-muted: #4a5d68;
    --cta: #f2b23c; --cta-dark: #a8691a;
    --button: #e8f1f3; --button-dark: #7fa6af;
    --focus: #ffd36b;
    --tint-sea: #2b6f80; --tint-ice: #2d5b74; --tint-volcano: #3b4a4f; --tint-jungle: #2f5a3e; --tint-ghost: #3c3760;
    --water-shadow: rgba(4, 22, 28, .45);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100dvh;
  background-color: var(--sea);
  background-image: radial-gradient(130% 70% at 50% 0%, var(--sea-light), transparent 70%);
  background-repeat: no-repeat;
  color: var(--on-sea); font: 400 18px/1.6 var(--body);
}
:lang(ja) body, body:lang(ja) { line-height: 1.85; }
img, picture { max-width: 100%; height: auto; display: block; }
a { color: var(--link-on-sea); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.panel a:not(.button) { color: var(--link); }
h1, h2, h3 { font-family: var(--heading); font-weight: 600; line-height: 1.12; margin: 0; text-wrap: balance; hyphens: auto; overflow-wrap: break-word; }
:lang(ja) :is(h1, h2, h3) { line-height: 1.35; word-break: auto-phrase; }
h1 em, h2 em { display: block; font-style: normal; color: var(--route); }
.panel h1 em, .panel h2 em { color: #2f56ad; }
p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
.panel :focus-visible, .menu-panel :focus-visible { outline-color: var(--on-panel); }
main:focus { outline: none; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; }
.skip-link { position: absolute; left: 16px; top: 12px; z-index: 50; padding: 12px 18px; border-radius: 14px; background: var(--panel); color: var(--on-panel); font-weight: 700; transform: translateY(-160%); }
.skip-link:focus { transform: none; }

/* Buttons: game buttons with depth that goes away when pressed. */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px; border: 0; border-radius: 18px;
  background: var(--cta); color: var(--on-cta); font: 600 19px/1.15 var(--heading); text-decoration: none; text-align: center;
  box-shadow: 0 5px 0 var(--cta-dark), 0 12px 18px -8px var(--water-shadow);
  transition: transform 140ms var(--ease-out), box-shadow 140ms var(--ease-out), filter 160ms ease;
  -webkit-tap-highlight-color: transparent;
}
.button:active { transform: translateY(4px) scale(.98); box-shadow: 0 1px 0 var(--cta-dark), 0 4px 8px -6px var(--water-shadow); }
@media (hover: hover) and (pointer: fine) { .button:hover { filter: brightness(1.05) saturate(1.05); } }
.button-quiet { background: var(--button); color: var(--on-button); box-shadow: 0 5px 0 var(--button-dark), 0 12px 18px -8px var(--water-shadow); }
.button-quiet:active { box-shadow: 0 1px 0 var(--button-dark), 0 4px 8px -6px var(--water-shadow); }
.button-small { min-height: 44px; padding: 8px 16px; font-size: 16px; border-radius: 14px; box-shadow: 0 4px 0 var(--cta-dark); }
.button-small:active { transform: translateY(3px) scale(.98); box-shadow: 0 1px 0 var(--cta-dark); }
.button:focus-visible { outline-color: var(--focus); }
.panel .button:focus-visible { outline-color: var(--on-panel); }
.actions { display: flex; flex-wrap: wrap; gap: 14px 12px; align-items: center; margin-top: 26px; }
.actions.center { justify-content: center; }

/* Header */
.site-header { position: relative; z-index: 20; }
.header-inner { display: flex; align-items: center; gap: 12px; min-height: 76px; padding-block: 12px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--on-sea); text-decoration: none; font: 600 25px/1 var(--heading); margin-right: auto; }
.wordmark img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 3px 0 rgba(16, 72, 84, .25); }
.nav { display: none; }
.nav-links, .menu-panel, .footer-links, .footer-languages ul { list-style: none; margin: 0; padding: 0; }
.nav-links { display: flex; gap: 6px; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 14px; color: var(--on-sea); text-decoration: none; font: 600 17px/1 var(--heading); transition: background-color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .nav-links a:hover { background: color-mix(in srgb, var(--panel) 30%, transparent); } }
.nav-links a[aria-current="page"] { background: var(--panel); color: var(--on-panel); box-shadow: 0 3px 0 var(--panel-dark); }
.header-end { display: flex; align-items: center; gap: 8px; }
.header-cta { display: none; }

details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
.language-menu, .nav-more { position: relative; }
.language-menu { display: none; }
.language-menu summary, .nav-more summary {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 8px 12px; justify-content: center;
  border-radius: 14px; background: var(--button); color: var(--on-button); font: 600 16px/1 var(--heading);
  box-shadow: 0 4px 0 var(--button-dark); transition: transform 140ms var(--ease-out), box-shadow 140ms var(--ease-out);
}
.language-menu summary:active, .nav-more summary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--button-dark); }
.burger { position: relative; width: 20px; height: 2px; background: currentColor; border-radius: 2px; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 180ms var(--ease-out); }
.burger::before { top: -6px; } .burger::after { top: 6px; }
.nav-more[open] .burger { background: transparent; }
.nav-more[open] .burger::before { transform: translateY(6px) rotate(45deg); }
.nav-more[open] .burger::after { transform: translateY(-6px) rotate(-45deg); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 220px; max-height: calc(100dvh - 110px); overflow-y: auto;
  padding: 10px; border-radius: 20px; background: var(--panel); color: var(--on-panel);
  box-shadow: 0 6px 0 var(--panel-dark), 0 20px 30px -12px var(--water-shadow); transform-origin: top right;
}
details[open] > .menu-panel { animation: menu-in 180ms var(--ease-out); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px) scale(.97); } }
.menu-panel ul { list-style: none; margin: 0; padding: 0; }
.menu-panel a { display: flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 12px; color: var(--on-panel); text-decoration: none; font: 600 17px/1.2 var(--heading); }
.menu-panel a[aria-current] { background: color-mix(in srgb, var(--reward) 40%, var(--panel)); }
@media (hover: hover) and (pointer: fine) { .menu-panel a:hover { background: color-mix(in srgb, var(--panel-dark) 45%, var(--panel)); } }
.nav-more-languages { margin-top: 8px !important; padding-top: 8px !important; border-top: 2px solid var(--panel-dark) !important; display: grid; grid-template-columns: 1fr 1fr; }
.nav-more-languages a { font-family: var(--body); font-weight: 600; font-size: 16px; }

@media (min-width: 560px) { .header-cta { display: inline-flex; } }
@media (min-width: 700px) { .language-menu { display: block; } .nav-more-languages { display: none !important; } }
@media (min-width: 980px) { .nav { display: block; } .nav-more { display: none; } .wordmark { margin-right: 18px; } .nav { margin-right: auto; } }

/* Sections and panels */
.section { padding-block: clamp(36px, 6vw, 72px); }
.section-tight { padding-block: clamp(18px, 3vw, 30px); }
.section-intro { max-width: 720px; margin-bottom: 28px; }
.section-intro.center { margin-inline: auto; }
.wrap.section-intro { max-width: none; }
.wrap.section-intro p { max-width: 42em; }
.section-intro h2, h2.on-sea { font-size: clamp(30px, 4.4vw, 46px); margin-bottom: 12px; }
h2.on-sea { margin-bottom: 18px; }
.section-intro p { font-size: 19px; color: var(--on-sea-muted); }
.panel {
  position: relative; background: var(--panel); color: var(--on-panel); border-radius: 30px; padding: clamp(22px, 4vw, 40px);
  box-shadow: 0 7px 0 var(--panel-dark), 0 26px 34px -20px var(--water-shadow);
}
.panel h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 14px; }
.panel h3 { font-size: 22px; margin: 22px 0 8px; }
.panel p { max-width: 68ch; }
.panel .lede { font-size: 19px; }
.panel-badge { width: 76px; height: 76px; margin: -6px 0 10px -4px; }
.panel-wide { display: grid; gap: 22px 40px; align-items: center; }
@media (min-width: 860px) { .panel-wide { grid-template-columns: 1.4fr 1fr; } }
.split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) {
  .split { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; }
  .split-flip > :first-child { order: 2; }
  .split-flip { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
}
.feature-art { position: relative; display: grid; justify-items: center; }

.checklist, .rule-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.checklist li, .rule-list li { position: relative; padding-left: 36px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 24px; height: 24px; border-radius: 50%;
  background: var(--reward) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d3340' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E") center / 16px no-repeat;
  box-shadow: 0 2px 0 #d9a237;
}
.rule-list li::before { content: ""; position: absolute; left: 6px; top: .45em; width: 12px; height: 12px; border-radius: 50%; background: #2f56ad; box-shadow: 0 0 0 4px #c4e9ee; }

/* Phones: the screens on a cream body with the same base as the panels. */
.phone { margin: 0; padding: 8px; border-radius: 38px; background: var(--panel); box-shadow: 0 7px 0 var(--panel-dark), 0 26px 34px -18px var(--water-shadow); }
.phone img { border-radius: 30px; width: 100%; }
.phone-solo { width: min(300px, 78vw); }
.board { margin: 0; justify-self: center; width: min(520px, 100%); }
.board img { border-radius: 26px; box-shadow: 0 7px 0 rgba(16, 72, 84, .18), 0 24px 30px -18px var(--water-shadow); }

/* Hero */
.hero { display: grid; gap: 34px; align-items: center; padding-block: clamp(16px, 4vw, 48px) clamp(36px, 6vw, 72px); }
.hero h1 { font-size: clamp(42px, 7.2vw, 76px); letter-spacing: 0; }
.hero-intro { font-size: clamp(19px, 2vw, 21px); max-width: 36em; margin-top: 18px; }
.hero-note { margin-top: 20px; color: var(--on-sea-muted); }
.hero-art { position: relative; display: grid; justify-items: center; padding: 20px 30px 10px; }
.phone-hero { width: min(310px, 72vw); position: relative; z-index: 1; transform: rotate(2deg); }
.float { position: absolute; z-index: 2; pointer-events: none; }
.float-island { width: clamp(110px, 20vw, 190px); left: 0; top: 0; z-index: 0; }
@media (max-width: 599px) { .float-island { display: none; } }
@media (min-width: 900px) { .float-island { left: -4%; } }
.float-ship { width: clamp(110px, 17vw, 160px); left: 2%; bottom: 8%; }
.float-chest { width: clamp(120px, 18vw, 180px); right: 0; bottom: 0; }
.float-side { width: clamp(110px, 15vw, 150px); right: 4%; bottom: -4%; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.1fr .9fr; } }
@media (prefers-reduced-motion: no-preference) {
  .float-ship { animation: bob 3.6s ease-in-out infinite alternate; }
  .float-side { animation: bob 4.2s ease-in-out infinite alternate; }
  @keyframes bob { from { transform: translateY(0) rotate(-1.5deg); } to { transform: translateY(-7px) rotate(1.5deg); } }
}

.promise-strip { padding-block: 6px 10px; }
.promise-strip ul { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.promise-strip li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: var(--button); color: var(--on-button); font: 600 16px/1.2 var(--heading); box-shadow: 0 3px 0 var(--button-dark); }
.promise-strip li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--reward); box-shadow: 0 1px 0 #d9a237; }

.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 18px; }
.steps li { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: start; }
.step-icon { width: 64px; height: 64px; }
.steps h3 { margin: 4px 0 4px; font-size: 21px; }

/* The screens, scrolling sideways inside their own strip. */
.shots-scroll { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-block: 6px 30px; }
.shots-scroll:focus-visible { outline-offset: -3px; border-radius: 0; }
.shots { list-style: none; margin: 0; display: flex; gap: 20px; width: max-content; padding-inline: max(16px, calc((100vw - 1120px) / 2)); }
.shots li { width: clamp(210px, 58vw, 250px); scroll-snap-align: center; }
.shots figcaption { margin-top: 12px; padding: 0 6px 4px; text-align: center; font: 600 16px/1.3 var(--heading); color: var(--on-panel); }

/* The five worlds as islands */
.world-row { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.world-card {
  display: grid; justify-items: center; gap: 6px; height: 100%; padding: 16px 16px 20px; border-radius: 26px; text-align: center; text-decoration: none;
  background: var(--panel); color: var(--on-panel); box-shadow: 0 6px 0 var(--panel-dark), 0 18px 26px -18px var(--water-shadow);
  transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
.world-card:active { transform: translateY(4px) scale(.98); box-shadow: 0 2px 0 var(--panel-dark); }
@media (hover: hover) and (pointer: fine) { .world-card:hover { transform: translateY(-3px); } }
.world-card:focus-visible { outline-color: var(--focus); }
.world-card-art { width: 140px; }
.world-card-name { font: 600 21px/1.2 var(--heading); }
.world-card-rule { color: var(--on-panel-muted); font-size: 16px; line-height: 1.45; }

.prop-cluster { position: relative; min-height: 300px; width: min(360px, 100%); justify-self: center; }
.prop-cluster img { position: absolute; }
.cluster-a { width: 170px; left: 8%; top: 4%; }
.cluster-b { width: 130px; right: 6%; top: 26%; }
.cluster-c { width: 110px; left: 34%; bottom: 0; }

.closing { text-align: center; padding-block: clamp(40px, 7vw, 88px) clamp(48px, 8vw, 96px); display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; }
.closing > * { max-width: 100%; }
.closing h2, .closing h1 { font-size: clamp(34px, 5.4vw, 56px); margin-bottom: 14px; }
.closing p { max-width: 40em; font-size: 19px; }
.closing-art { width: 150px; margin-bottom: 8px; }
.closing-art-small { width: 110px; }
.closing .actions { margin-top: 22px; }

/* Inner pages */
.page-head { padding-block: clamp(8px, 2vw, 24px) clamp(20px, 4vw, 36px); }
.page-head h1 { font-size: clamp(40px, 6.4vw, 68px); margin: 18px 0 18px; }
.page-head .lede { font-size: clamp(18px, 1.8vw, 20px); max-width: 44em; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 16px; color: var(--on-sea-muted); }
.crumbs a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
.panel .crumbs { color: var(--on-panel-muted); }

.world-jump ul { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.world-jump a { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 4px 16px 4px 6px; border-radius: 999px; background: var(--button); color: var(--on-button); text-decoration: none; font: 600 16px/1.2 var(--heading); box-shadow: 0 4px 0 var(--button-dark); transition: transform 140ms var(--ease-out), box-shadow 140ms var(--ease-out); }
.world-jump a:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--button-dark); }
.jump-art { width: 44px; }

.world { padding-block: clamp(36px, 6vw, 72px); background: var(--tint); scroll-margin-top: 0; }
.world-sea { --tint: var(--tint-sea); }
.world-ice { --tint: var(--tint-ice); }
.world-volcano { --tint: var(--tint-volcano); }
.world-jungle { --tint: var(--tint-jungle); }
.world-ghost { --tint: var(--tint-ghost); }
.world + .world { border-top: 0; }
.world .facts { display: inline-block; padding: 6px 14px; border-radius: 999px; background: color-mix(in srgb, var(--tint) 45%, var(--panel)); font: 600 16px/1.3 var(--heading); margin-bottom: 16px; }
.world-art { position: relative; display: grid; justify-items: center; padding-top: clamp(96px, 13vw, 128px); }
.world-island { position: absolute; top: 0; left: 4%; width: clamp(120px, 16vw, 168px); z-index: 1; }

.tips { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
.tips li { padding: 14px 18px; border-radius: 18px; background: color-mix(in srgb, var(--sea-light) 22%, var(--panel)); }
.tips strong { display: block; font-family: var(--heading); font-weight: 600; font-size: 19px; margin-bottom: 2px; }

.faq-list { display: grid; gap: 18px; }
@media (min-width: 900px) { .faq-list { grid-template-columns: 1fr 1fr; align-items: start; } }
.faq-item h2, .faq-item h3 { font-size: 22px; margin: 0 0 10px; line-height: 1.25; }

.contact-grid { display: grid; gap: 18px; }
@media (min-width: 760px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-card h3 { margin-top: 0; }
.button-mail { margin-top: 10px; font-size: 17px; max-width: 100%; overflow-wrap: anywhere; }

/* Legal pages */
.legal { max-width: 820px; margin: clamp(8px, 2vw, 20px) auto clamp(48px, 7vw, 80px); }
.legal h1 { font-size: clamp(32px, 5vw, 52px); margin: 10px 0 16px; }
.legal h2 { font-size: 26px; margin: 34px 0 10px; }
.legal-lede { font-size: 19px; }
.legal-updated { color: var(--on-panel-muted); }
.legal ul { padding-left: 22px; margin: 0 0 14px; }
.legal li { margin-bottom: 8px; }
.legal-list { list-style: disc; }
.legal-back { margin-top: 30px; }
.legal a { overflow-wrap: anywhere; }
.legal { margin-bottom: 28px; }
.related ul { list-style: none; padding: 0; margin: 0 auto clamp(48px, 7vw, 80px); max-width: 820px; display: flex; flex-wrap: wrap; gap: 14px 10px; }

/* Footer */
.site-footer { padding-block: 36px 40px; background: color-mix(in srgb, var(--shade) 60%, var(--sea)); }
.footer-top { display: grid; gap: 22px; }
.footer-brand p { margin-top: 8px; color: var(--on-sea-muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 6px; }
.footer-links a, .footer-languages a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: var(--on-sea); font-weight: 600; }
.footer-languages { margin-top: 12px; }
.footer-languages ul { display: flex; flex-wrap: wrap; gap: 0 4px; }
.footer-languages a { font-weight: 400; }
.footer-languages a[aria-current] { font-weight: 700; text-decoration-thickness: 3px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: 20px; padding-top: 16px; border-top: 2px solid color-mix(in srgb, var(--on-sea) 18%, transparent); font-size: 16px; color: var(--on-sea-muted); }
@media (min-width: 860px) { .footer-top { grid-template-columns: 1fr 1.6fr; align-items: start; } .footer-links { justify-content: flex-end; } }

.notfound h1 { margin-top: 10px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .world-card, .world-jump a, .language-menu summary, .nav-more summary, .burger::before, .burger::after { transition: opacity 120ms ease, filter 120ms ease; }
  .button:active, .world-card:active, .world-jump a:active, .language-menu summary:active, .nav-more summary:active { transform: none; }
  details[open] > .menu-panel { animation: fade-in 120ms ease; }
  @keyframes fade-in { from { opacity: 0; } }
}
