.boat-figure { position: relative; padding-bottom: 54px; }
.boat-visual-stage { position: relative; width: min(100%, 480px); aspect-ratio: 971 / 1330; }
.boat-visual-stage > img { width: 100%; height: 100%; object-fit: contain; }
#cockle-model-host, #cockle-model-host model-viewer { position: absolute; inset: 0; width: 100%; height: 100%; }
#cockle-model-host model-viewer { background: #fff; opacity: 0; border-radius: 12px; --progress-bar-color: #426878; }
#cockle-visual[data-view="model"] model-viewer { opacity: 1; }
#cockle-model-status { position: absolute; bottom: 16px; inset-inline: 20px; margin: auto; max-width: 48ch; font-size: .78rem; line-height: 1.45; }
#cockle-model-status:empty { display: none; }
#cockle-visual[data-view="loading"] #cockle-model-status { color: var(--ink); }
#cockle-visual[data-view="error"] #cockle-model-status { color: #8a3028; }
.boat-explore-action { margin: 23px 0 24px; }
.boat-explore-action:has([hidden]) { display: none; }
.boat-builder-link { color: var(--red); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .18em; }
.boat-builder-link:hover { text-decoration-thickness: 2.5px; }
.boat-glass-button {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 11px;
  max-width: 100%; min-height: 54px; padding: 14px 23px; border-radius: 999px;
  border: 1px solid #fff; color: #123645; background: linear-gradient(135deg, #ffffffed, #e5efebbf 54%, #d9e7e3b8);
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 5px #3354660d, 0 5px 15px #183c4614, 0 0 0 1px #25465320;
  -webkit-backdrop-filter: blur(16px) saturate(145%); backdrop-filter: blur(16px) saturate(145%);
  font: 700 .92rem/1.35 var(--sans); text-align: center; cursor: pointer;
  transition: box-shadow .2s ease, transform .2s ease;
}
.boat-glass-button::before { content: ""; position: absolute; z-index: -1; inset: 2px; border-radius: inherit; pointer-events: none; background: linear-gradient(165deg, #fff9, transparent 46%); }
.boat-glass-button svg { flex: 0 0 23px; }
.boat-glass-button:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 #fff, 0 7px 18px #183c4626, 0 0 0 1px #25465330; }
.boat-glass-button:active { transform: translateY(0); }
.boat-glass-button:focus-visible { outline: 3px solid #a13a30; outline-offset: 5px; }
.boat-glass-button:disabled { cursor: progress; transform: none; opacity: .75; }
.boat-fullscreen-button { position: absolute; z-index: 1; top: 16px; right: 16px; min-height: 44px; padding: 10px 16px; font-size: .82rem; }
.boat-fullscreen-button svg { flex-basis: 20px; }
.cockle-fullscreen-open { overflow: hidden; }
.boat-fullscreen-dialog { position: fixed; inset: 0; width: 100%; height: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; color: var(--ink); background: #fff; }
.boat-fullscreen-dialog::backdrop { background: #fff; }
.boat-fullscreen-panel { display: flex; flex-direction: column; width: 100%; height: 100%; min-height: 0; background: #fff; padding: max(16px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); }
.boat-fullscreen-header { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 16px; }
.boat-fullscreen-header h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); letter-spacing: -.04em; }
.boat-fullscreen-header .boat-glass-button { flex-shrink: 0; min-height: 44px; padding: 10px 16px; }
.boat-fullscreen-stage { position: relative; flex: 1 1 auto; min-height: 0; margin-block: 12px; }
#cockle-fullscreen-stage model-viewer { opacity: 1; }
#cockle-fullscreen-hint { flex: 0 0 auto; margin: 0; color: var(--muted); text-align: center; font-size: .8rem; line-height: 1.4; }
@media (max-width: 820px) {
  .boat-visual-stage { width: min(100%, 400px); }
  .boat-figure { scroll-margin-top: 90px; }
}
@media (max-width: 420px) {
  .boat-glass-button { width: 100%; padding: 13px 16px; font-size: .87rem; }
  .boat-fullscreen-button, .boat-fullscreen-header .boat-glass-button { width: auto; }
  .boat-fullscreen-header { gap: 10px; }
  .boat-fullscreen-header h2 { font-size: 1.4rem; }
  .boat-fullscreen-header .boat-glass-button { gap: 6px; padding-inline: 12px; font-size: .78rem; }
  .boat-fullscreen-panel { padding-inline: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right)); }
}
@media (prefers-reduced-motion: reduce) { .boat-glass-button { transition: none; } }
@media (forced-colors: active) { .boat-glass-button { border: 2px solid ButtonText; background: ButtonFace; color: ButtonText; } }
