.naiwa {
  width: min(100% - 36px, 1110px);
  margin: clamp(30px, 5vw, 65px) auto 72px;
}
.frog-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: .5rem 2.5rem;
  margin-bottom: clamp(15px, 2.4vw, 26px);
}
.frog-intro h1 { flex: none; margin: 0; font-size: clamp(2.5rem, 6.5vw, 5.05rem); }
.frog-intro p { max-width: 25rem; margin: 0 0 .25rem; color: var(--muted); }
.frog-viewer { border: 1px solid #aaba9b50; }
.frog-stage {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  height: clamp(320px, 57vh, 650px);
  background: radial-gradient(ellipse at 48% 37%, #fef9ec 6%, #eee5d1 46%, #b4a487 100%);
  color: #24352b;
}
.frog-stage canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.frog-stage canvas:active { cursor: grabbing; }
.frog-stage canvas:focus-visible { outline: 2px solid #24352b; outline-offset: -4px; }
.frog-poster { display: block; width: 100%; height: 100%; object-fit: contain; min-height: 0; }
.frog-poster[hidden], .frog-toolbar[hidden], .frog-expand[hidden] { display: none; }
.frog-expand {
  display: grid;
  place-items: center;
  position: absolute;
  z-index: 1;
  inset: .65rem .65rem auto auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #384d3e68;
  border-radius: 50%;
  background: #f5f3e2ce;
  font: 1.18rem/1 system-ui, sans-serif;
}
.frog-expand:focus-visible, .frog-expand:hover:not(:disabled) { outline-color: #24352b; border-color: #24352b; }
#frog-status, .frog-noscript {
  position: absolute;
  left: .8rem;
  bottom: .8rem;
  margin: 0;
  padding: .35rem .6rem;
  background: #f5f3e2df;
  font-size: .86rem;
}
.frog-noscript { z-index: 1; }
.frog-viewer[data-state="ready"] #frog-status {
  width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); padding: 0;
}
.frog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .45rem .8rem;
  padding: .6rem;
  background: #1d2420;
}
.frog-control-group { display: flex; flex-wrap: wrap; gap: .3rem; }
.frog-toolbar button {
  min-width: 44px;
  min-height: 44px;
  border-color: #bbd0b353;
  font-size: .88rem;
}
.frog-toolbar button:hover, .frog-toolbar button[aria-pressed="true"] { border-color: #d7dfc4; }
.frog-toolbar button[aria-pressed="true"], .frog-toolbar .frog-greet { background: #dce4cc; color: #1d3026; }
.frog-toolbar .frog-greet:hover { background: #f0efd8; }
.frog-instructions { margin-top: .65rem; color: var(--muted); font-size: .85rem; }
.frog-expanded { overflow: hidden; }
.frog-viewer.is-expanded {
  z-index: 10;
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  border: 0;
}
.frog-viewer.is-expanded .frog-stage { flex: 1; height: auto; min-height: 120px; }
.frog-viewer.is-expanded .frog-toolbar { padding-bottom: max(.6rem, env(safe-area-inset-bottom)); }
.frog-viewer.is-expanded .frog-expand { top: max(.65rem, env(safe-area-inset-top)); }
@media (max-width: 700px) {
  .frog-intro { flex-direction: column; align-items: start; }
}
@media (max-width: 515px) {
  .naiwa { width: calc(100% - 28px); margin-top: 23px; }
  .frog-stage { height: clamp(290px, 48vh, 440px); }
  .frog-toolbar { gap: .4rem; padding: .42rem; justify-content: start; }
  .frog-toolbar button { padding-inline: .55rem; }
}
