dialog{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;padding:0;margin:0;border:0;overflow:hidden;background:#dedbcf url("assets/frame_ini.jpg") center/cover;color:var(--ink)}dialog[open]{display:grid;place-items:center}dialog::backdrop{background:var(--cream)}body.playing{overflow:hidden}.stage{position:absolute;inset:0;margin:auto;width:min(100%,56.25dvh);height:100%;-webkit-mask-image:linear-gradient(90deg,transparent,#000 18%,#000 82%,transparent);mask-image:linear-gradient(90deg,transparent,#000 18%,#000 82%,transparent)}.stage video,.stage img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}.controls{position:absolute;bottom:max(20px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;gap:8px;width:max-content;max-width:96vw}.controls button{padding:11px 15px;border:1px solid #fff;border-radius:60px;background:#fff9;backdrop-filter:blur(20px);font-size:13px;font-weight:600}.controls button span{margin-left:3px}
.handoff{position:fixed;inset:0;z-index:10;pointer-events:none;background:rgba(245,239,225,.12);isolation:isolate}.handoff .afterimage{position:absolute;inset:0;background:#dedbcf url("assets/frame_ini.jpg") center/cover}.handoff img{position:absolute;object-fit:fill}.handoff .stage{display:block}.handoff .stage img{mix-blend-mode:normal;object-fit:cover}
@media(max-aspect-ratio:4/5){.stage{width:100%;-webkit-mask-image:none;mask-image:none}}

:root {
  color-scheme: light;
  --ink: #103e4b;
  --muted: #49645f;
  --cream: #f6f2e7;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100dvh;
  padding: clamp(26px, 5vh, 58px) 16px 12px;
  background:
    radial-gradient(ellipse at 22% 15%, #e9c6b2a0, transparent 46%),
    radial-gradient(ellipse at 79% 70%, #c7d6c0c4, transparent 50%),
    radial-gradient(ellipse at 83% 0, #e6dac2, transparent 56%), var(--cream);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
[hidden] { display: none !important; }
.bio {
  width: min(100%, 456px);
  margin: 0 auto;
  padding: clamp(14px, 4vw, 23px);
  border: 1px solid #fffc;
  border-radius: 32px;
  background: linear-gradient(150deg, #fff9, #fff3);
  box-shadow: inset 0 1px 0 #fff, 0 23px 70px #23483c17;
}
.profile { text-align: center; padding: 3px 4px 17px; }
.identity { position: relative; width: 88px; height: 88px; margin: 0 auto 11px; }
.portrait {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  border: 3px solid #fff;
  object-fit: cover;
  object-position: 50% 25%;
  box-shadow: 0 0 0 1px #afba9f, 0 8px 18px #2e4c3726;
}
.brand {
  position: absolute;
  right: -6px;
  bottom: -3px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: #f6f2e7;
  border: 1px solid #fff;
  border-radius: 50%;
  box-shadow: 0 3px 8px #27483a2c;
}
.brand img { width: 22px; height: 24px; mix-blend-mode: multiply; }
.profile h1 {
  margin: 0;
  font: 400 clamp(27px, 7vw, 38px)/1.04 "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  letter-spacing: -.05em;
}
.handle { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.intro {
  max-width: 290px;
  margin: 9px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.48;
}
.group { display: grid; gap: 7px; margin-top: 14px; }
.group-title { display: flex; justify-content: space-between; align-items: baseline; gap: 5px 12px; flex-wrap: wrap; padding: 0 3px 2px; }
.group-title h2 { margin: 0; font-size: 12px; font-weight: 720; }
.group-title p { margin: 0; font-size: 11px; color: var(--muted); }
.link {
  min-width: 0;
  border: 1px solid #fffd;
  border-radius: 15px;
  background: linear-gradient(145deg, #fffc, #ffffff48);
  box-shadow: inset 0 1px 0 #fff9, 0 5px 15px #123b420d;
  backdrop-filter: blur(12px);
}
a.link, .link summary {
  min-height: 56px;
  display: grid;
  grid-template-columns: 33px minmax(0, 1fr) 18px;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
}
.link summary { list-style: none; border-radius: inherit; cursor: pointer; }
.link summary::-webkit-details-marker { display: none; }
a.link:hover, .link summary:hover { background-color: #fff6; }
.link.primary {
  color: #fff;
  background: linear-gradient(135deg, #2e6572, #123e4c);
  border-color: #ffffff80;
  box-shadow: inset 0 1px 0 #fff5, 0 7px 17px #143e4b28;
}
.link.primary:hover { filter: brightness(1.08); }
.label { min-width: 0; }
.label strong { display: block; font-size: 14px; line-height: 1.2; }
.label small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.25; }
.primary small { color: #e1eeea; }
.arrow { justify-self: center; font-size: 17px; line-height: 1; }
.expand { font-size: 20px; transition: transform .18s ease; }
details[open] .expand { transform: rotate(45deg); }
.icon {
  width: 33px;
  height: 33px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #fff9;
  border: 1px solid #ffffffb0;
}
.primary .icon { background: #fff2; border-color: #fff4; }
.icon.jp { background: #f5e4dd; }
.icon.br { background: #dce8d4; }
.icon.social { background: #eededc; }
.icon.product { background: #f1e7ce; }
.icon.jp i { width: 10px; height: 10px; border-radius: 50%; background: #b95549; }
.icon.br i { width: 12px; height: 12px; border-radius: 2px; transform: rotate(45deg); background: #c19b4d; }
.bubble, .camera, .book { position: relative; width: 15px; height: 13px; border: 1.5px solid currentColor; border-radius: 4px; }
.bubble::after { content: ""; position: absolute; bottom: -3px; left: 2px; width: 4px; height: 4px; border-left: 1.5px solid; transform: skewY(-35deg); }
.camera { height: 15px; }
.camera::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; border: 1px solid; }
.camera::after { content: ""; position: absolute; width: 2px; height: 2px; right: 1px; top: 1px; background: currentColor; border-radius: 50%; }
.book { border-radius: 2px; }
.book::after { content: ""; position: absolute; height: 100%; left: 50%; border-left: 1px solid; }
.details { margin: 0 12px; padding: 10px 1px 12px; border-top: 1px solid #103e4b25; color: var(--muted); font-size: 13px; line-height: 1.5; }
.details p { margin: 0 0 5px; }
.details ul { padding-left: 17px; margin: 0; }
.extras { margin-top: 11px; }
footer {
  width: min(100%, 456px);
  margin: 3px auto 0;
  padding: 0 12px;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}
footer > span { margin-left: auto; }
.replay { border: 0; background: transparent; padding: 9px 0; font-size: 11px; }
.replay:hover { text-decoration: underline; }
@media (max-width: 360px) {
  body { padding-inline: 10px; }
  a.link, .link summary { gap: 8px; padding-inline: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .expand { transition: none; }
}

.brand-icon { overflow: hidden; }
.brand-icon img { display: block; width: 29px; height: 29px; object-fit: contain; border-radius: 6px; }
