
:root {
  --bg: #080a0c;
  --panel: #111519;
  --panel-2: #151a1f;
  --text: #f6f7f8;
  --muted: #a9b0b7;
  --line: #282f36;
  --youtube: #ff2323;
  --patreon: #ff5a4e;
  --yellow: #f2c315;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .24);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(242,195,21,.05), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }

.page {
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 64px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.section {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.018), transparent), var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.section-inner { padding: 28px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, .8fr);
  min-height: 560px;
  background: #050607;
}

.hero-video {
  position: relative;
  min-height: 480px;
  background: #000;
}

.hero-copy {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(90deg, rgba(5,6,7,.76), rgba(5,6,7,.95)),
    url("assets/pikachu_trophy.jpg") center/cover;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(3.2rem, 6.4vw, 7rem);
  line-height: .88;
  letter-spacing: -.055em;
  text-transform: uppercase;
}

.hero-copy p {
  max-width: 30rem;
  margin: 26px 0 0;
  color: #e2e4e6;
  font-size: clamp(1rem, 1.35vw, 1.28rem);
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 900;
  letter-spacing: .01em;
  transition: transform .18s ease, filter .18s ease, border-color .18s ease;
}

.button:hover { transform: translateY(-2px); filter: brightness(1.05); }
.button.youtube { background: var(--youtube); }
.button.secondary { border-color: #4a535d; background: rgba(0,0,0,.28); }
.button.patreon { background: var(--patreon); }

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.6rem);
  line-height: .96;
  letter-spacing: -.035em;
  text-transform: uppercase;
}

.section-head p {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.video-card {
  min-width: 0;
  border-radius: 13px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel-2);
}

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #050607;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.video-card:hover .video-thumb img { transform: scale(1.025); }

.play {
  position: absolute;
  left: 16px;
  bottom: 16px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.68);
  border: 1px solid rgba(255,255,255,.55);
  font-size: 1.05rem;
  backdrop-filter: blur(5px);
}

.video-meta { padding: 14px 15px 16px; }
.video-meta h3 { margin: 0; font-size: 1rem; line-height: 1.35; }
.video-meta p { margin: 5px 0 0; color: var(--muted); font-size: .86rem; }

.bts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.download-card {
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
  background: var(--panel-2);
}

.download-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #090b0d;
}

.download-image img {
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.download-card:hover img { transform: scale(1.025); }

.download-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
}

.download-meta strong { font-size: .9rem; }
.download-meta span { color: var(--muted); font-size: .8rem; }

.download-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid #404851;
  border-radius: 9px;
}

.patreon-strip {
  position: relative;
  min-height: 330px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(300px, 1.1fr);
  align-items: center;
  background:
    linear-gradient(90deg, rgba(7,8,9,.97) 0%, rgba(7,8,9,.74) 44%, rgba(7,8,9,.12) 100%),
    url("assets/pikachu_trophy.jpg") 72% 36% / cover;
}

.patreon-copy {
  padding: 50px;
  position: relative;
  z-index: 1;
}

.patreon-copy h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4.7rem);
  text-transform: uppercase;
  line-height: .95;
}

.patreon-copy p {
  margin: 18px 0 0;
  max-width: 480px;
  color: #e2e4e6;
  line-height: 1.55;
}

.footer {
  padding: 34px 8px 0;
  color: #7f878f;
  font-size: .84rem;
  text-align: center;
}

.note {
  padding: 14px 18px;
  margin-top: 22px;
  border: 1px dashed #59616a;
  border-radius: 10px;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.5;
}

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-video { min-height: 0; aspect-ratio: 16 / 9; }
  .hero-copy { padding: 38px 30px 42px; }
  .video-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .bts-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .download-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 720px) {
  .page { width: min(100% - 18px, 1480px); padding-top: 9px; }
  .section { margin-top: 12px; border-radius: 13px; }
  .section-inner { padding: 20px 15px; }
  .hero-copy h1 { font-size: clamp(3rem, 18vw, 5.8rem); }
  .section-head { display: block; }
  .section-head p { margin-top: 10px; }
  .video-grid, .bts-grid, .download-grid { grid-template-columns: 1fr; }
  .patreon-strip { grid-template-columns: 1fr; min-height: 430px; align-items: end; background-position: 68% center; }
  .patreon-copy { padding: 28px 22px 34px; background: linear-gradient(0deg, rgba(7,8,9,.98), rgba(7,8,9,.3)); }
  .actions .button { width: 100%; }
}

.download-icon {
  color: var(--text);
  background: transparent;
  cursor: pointer;
}
.download-icon:hover {
  border-color: #6b7681;
  background: rgba(255,255,255,.05);
}
.download-icon:disabled {
  cursor: wait;
  opacity: .65;
}


/* Video popup */
.hero-video {
  position: relative;
  min-height: 480px;
  width: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  overflow: hidden;
  background: #000;
  color: inherit;
}
.hero-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 82px;
  height: 82px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(0,0,0,.62);
  border: 1px solid rgba(255,255,255,.78);
  color: white;
  font-size: 1.8rem;
  backdrop-filter: blur(6px);
  transition: transform .18s ease, background .18s ease;
}
.hero-video:hover .hero-play {
  transform: translate(-50%, -50%) scale(1.06);
  background: rgba(0,0,0,.78);
}

.video-card {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding: 0;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.video-modal.is-open { display: flex; }
.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(7px);
}
.video-modal-dialog {
  position: relative;
  width: min(1120px, 100%);
  max-height: calc(100vh - 48px);
  border: 1px solid #303841;
  border-radius: 16px;
  background: #080a0c;
  box-shadow: 0 30px 100px rgba(0,0,0,.65);
  overflow: hidden;
}
.video-modal-topbar {
  min-height: 60px;
  padding: 12px 14px 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #252c33;
}
.video-modal-topbar h2 {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1rem;
}
.video-modal-close {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid #3a434c;
  border-radius: 10px;
  background: #12171b;
  color: white;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
.video-modal-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-modal-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
body.modal-open { overflow: hidden; }

.download-card { cursor: pointer; }
.download-icon {
  color: var(--text);
  background: transparent;
}

@media (max-width: 720px) {
  .hero-video { min-height: 0; aspect-ratio: 16 / 9; }
  .hero-play { width: 66px; height: 66px; font-size: 1.45rem; }
  .video-modal { padding: 10px; }
  .video-modal-dialog { max-height: calc(100vh - 20px); }
  .video-modal-topbar { min-height: 54px; padding: 8px 8px 8px 14px; }
}

.button.download-all {
  margin-top: 18px;
  min-height: 46px;
  background: #20262c;
  border-color: #46515b;
}
.button.download-all:hover {
  border-color: #687580;
}

.video-modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.video-modal-youtube {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid #3a434c;
  background: #12171b;
  color: #e9edf0;
  font-size: .82rem;
  font-weight: 700;
}
.video-modal-youtube:hover {
  background: #192027;
}
@media (max-width: 520px) {
  .video-modal-youtube {
    font-size: .72rem;
    padding: 0 9px;
  }
}

.fan-disclaimer {
  max-width: 980px;
  margin: 0 auto;
  color: #7f878f;
  font-size: .78rem;
  line-height: 1.6;
}


/* Grouped downloads */
.downloads-main-head {
  margin-bottom: 10px;
}

.download-subsection {
  padding-top: 30px;
  margin-top: 30px;
  border-top: 1px solid var(--line);
}

.download-subsection:first-of-type {
  margin-top: 20px;
}

.download-subhead {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.download-subhead h3 {
  margin: 0;
  font-size: clamp(1.5rem, 2.2vw, 2.2rem);
  line-height: 1;
  letter-spacing: -.025em;
}

.download-subhead p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 900px) {
  }

@media (max-width: 720px) {
  .download-subhead {
    display: block;
  }
  .download-subhead .download-all {
    width: 100%;
  }
  }


/* Interactive 3D model viewer */
.model-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.model-card {
  width: 100%;
  min-width: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel-2);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.model-card:hover {
  transform: translateY(-2px);
  border-color: #46515b;
  background: #181e24;
}

.model-card-image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 44%, #283139 0%, #151b20 44%, #0a0c0e 100%);
}

.model-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5%;
  transition: transform .25s ease;
}

.model-card:hover .model-card-image img {
  transform: scale(1.025);
}

.model-card-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  min-width: 34px;
  height: 27px;
  padding: 0 8px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 7px;
  background: rgba(0,0,0,.56);
  color: #eef2f5;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .08em;
  backdrop-filter: blur(5px);
}

.model-card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 999px;
  background: rgba(0,0,0,.6);
  color: white;
  font-size: 1.35rem;
  backdrop-filter: blur(5px);
}

.model-card-meta {
  min-height: 70px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.model-card-meta strong {
  display: block;
  font-size: .98rem;
}

.model-card-meta span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: .79rem;
}

.model-card-meta .model-card-open {
  flex: 0 0 auto;
  margin: 0;
  color: #d8dde1;
  font-size: .76rem;
  font-weight: 800;
}

.model-modal {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.model-modal.is-open {
  display: flex;
}

.model-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.88);
  backdrop-filter: blur(8px);
}

.model-modal-dialog {
  position: relative;
  width: min(1480px, 96vw);
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #323b44;
  border-radius: 16px;
  background: #080a0c;
  box-shadow: 0 32px 110px rgba(0,0,0,.72);
}

.model-modal-dialog:fullscreen {
  width: 100%;
  height: 100%;
  max-height: none;
  border: 0;
  border-radius: 0;
  background: #080a0c;
}

.model-modal-topbar {
  flex: 0 0 auto;
  min-height: 66px;
  padding: 10px 12px 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #252c33;
  background: #0e1216;
}

.model-modal-kicker {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.model-modal-topbar h2 {
  margin: 0;
  font-size: 1.15rem;
}

.model-modal-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.model-top-button,
.model-modal-close {
  min-height: 42px;
  border: 1px solid #3a434c;
  border-radius: 10px;
  background: #151b20;
  color: #eef1f3;
  font: inherit;
  font-size: .78rem;
  font-weight: 800;
  cursor: pointer;
}

.model-top-button {
  padding: 0 13px;
}

.model-modal-close {
  width: 42px;
  padding: 0;
  font-size: 1.65rem;
  line-height: 1;
}

.model-top-button:hover,
.model-modal-close:hover {
  background: #1d252c;
  border-color: #596570;
}

.model-viewer-shell {
  min-height: 0;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  background: #07090b;
}

.model-viewer-stage {
  position: relative;
  min-height: 0;
  flex: 1 1 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, #232c33 0%, #12171b 42%, #080a0c 78%);
}

.model-modal-dialog:fullscreen .model-viewer-stage {
  aspect-ratio: auto;
}

.model-viewer-stage::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: auto 15% 6% 15%;
  height: 13%;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0,0,0,.36), transparent 70%);
  filter: blur(12px);
}

.model-viewer-poster,
.model-viewer-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.model-viewer-poster {
  z-index: 1;
  object-fit: contain;
  padding: 5%;
  opacity: .55;
  filter: saturate(.82) brightness(.68);
  transition: opacity .25s ease;
}

.model-viewer-canvas {
  z-index: 2;
  display: block;
  opacity: 0;
  touch-action: none;
  transition: opacity .25s ease;
}

.model-viewer-shell.is-loaded .model-viewer-poster {
  opacity: 0;
  pointer-events: none;
}

.model-viewer-shell.is-loaded .model-viewer-canvas {
  opacity: 1;
}

.model-viewer-loading {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 50%;
  width: min(360px, calc(100% - 44px));
  transform: translate(-50%, -50%);
  padding: 18px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 13px;
  background: rgba(6,8,10,.86);
  backdrop-filter: blur(9px);
}

.model-viewer-loading p {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 10px 0 0;
  color: #d8dde1;
  font-size: .82rem;
}

.model-loading-bar {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #242a30;
}

.model-loading-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--yellow);
  transition: width .12s linear;
}

.desktop-viewer-hint {
  display: inline;
}

.mobile-viewer-hint {
  display: none;
}

.model-viewer-hint {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  background: rgba(0,0,0,.52);
  color: #bdc4ca;
  font-size: .72rem;
  white-space: nowrap;
  pointer-events: none;
  backdrop-filter: blur(6px);
}

.model-viewer-error {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 50%;
  width: min(480px, calc(100% - 40px));
  transform: translate(-50%, -50%);
  padding: 16px 18px;
  display: none;
  flex-direction: column;
  gap: 5px;
  border: 1px solid #663737;
  border-radius: 11px;
  background: #241313;
  color: #efb9b9;
  font-size: .84rem;
}

.model-viewer-error.is-visible {
  display: flex;
}

.model-viewer-toolbar {
  flex: 0 0 auto;
  border-top: 1px solid var(--line);
  background: #101419;
}

.model-mode-row,
.model-utility-row {
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.model-mode-row {
  overflow-x: auto;
  border-bottom: 1px solid #232b31;
  scrollbar-width: thin;
}

.model-utility-row {
  justify-content: space-between;
  gap: 16px;
}

.model-toolbar-label {
  flex: 0 0 auto;
  margin-right: 3px;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.model-viewer-status {
  min-width: 0;
  color: var(--muted);
  font-size: .78rem;
}

.model-viewer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.model-control {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #3b454e;
  border-radius: 9px;
  background: #161c21;
  color: #e7eaed;
  font: inherit;
  font-size: .76rem;
  font-weight: 800;
  cursor: pointer;
}

.model-control:hover {
  background: #1c242b;
  border-color: #57636e;
}

.model-control.is-active {
  border-color: #8a7516;
  background: #28230e;
  color: #f5d85b;
}

body.model-modal-open {
  overflow: hidden;
}

@media (max-width: 1100px) {
  .model-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .model-modal-dialog {
    width: min(1100px, 97vw);
  }
}

@media (max-width: 720px) {
  /* Match the site's other card sections on phones. */
  .model-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .model-card {
    width: 100%;
  }

  .model-card-meta {
    display: block;
    min-height: 0;
    padding: 14px 15px 16px;
  }

  .model-card-meta strong {
    font-size: 1rem;
  }

  .model-card-meta span {
    font-size: .86rem;
  }

  .model-card-meta .model-card-open {
    display: none;
  }

  /* Use the same lower-left interaction cue as the video cards. */
  .model-card-play {
    left: 16px;
    top: auto;
    bottom: 16px;
    width: 48px;
    height: 48px;
    transform: none;
    font-size: 1.05rem;
  }

  /* The 3D viewer becomes a proper phone-sized sheet. */
  .model-modal {
    align-items: stretch;
    padding: 0;
  }

  .model-modal-dialog {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
  }

  .model-modal-topbar {
    min-height: 58px;
    padding:
      max(8px, env(safe-area-inset-top))
      max(8px, env(safe-area-inset-right))
      8px
      max(13px, env(safe-area-inset-left));
  }

  .model-modal-kicker {
    display: none;
  }

  .model-modal-topbar h2 {
    font-size: 1rem;
  }

  .model-top-button {
    padding: 0 10px;
    font-size: .7rem;
  }

  .model-viewer-shell {
    min-height: 0;
    overflow: hidden;
  }

  .model-viewer-stage {
    min-height: 0;
    flex: 1 1 auto;
    aspect-ratio: auto;
    overscroll-behavior: contain;
  }

  .model-viewer-canvas {
    touch-action: none;
  }

  .model-viewer-toolbar {
    flex: 0 0 auto;
    max-height: 34dvh;
    overflow-y: auto;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .model-mode-row {
    -webkit-overflow-scrolling: touch;
  }

  .model-utility-row {
    align-items: stretch;
    flex-direction: column;
  }

  .model-viewer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .model-control {
    min-height: 42px;
  }

  .desktop-viewer-hint {
    display: none;
  }

  .mobile-viewer-hint {
    display: inline;
  }

  .model-viewer-hint {
    width: max-content;
    max-width: calc(100% - 28px);
    white-space: normal;
    text-align: center;
  }
}


/* Multi-model card placeholder */
.model-card-image-placeholder {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(255,255,255,.08), transparent 34%),
    linear-gradient(145deg, #252d33, #101419 60%, #080a0c);
}

.model-placeholder-name {
  color: #7e8992;
  font-size: clamp(1.2rem, 2vw, 2rem);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .55;
}


/* Thumbnail convention:
   assets/thumbnails/<PokemonName>.jpg */
.model-card-image-placeholder {
  position: relative;
}

.model-card-image-placeholder > img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5%;
}

.model-card-image-placeholder.has-thumbnail .model-placeholder-name {
  opacity: 0;
}

.model-card-image-placeholder .model-card-badge,
.model-card-image-placeholder .model-card-play {
  z-index: 2;
}

/* Frame the locally saved model previews around the creature, excluding viewer chrome. */
.model-card-image-placeholder{overflow:hidden}
.model-card-image-placeholder > img{object-fit:cover;padding:0;transform:scale(1.6);transform-origin:50% 48%}
