:root { --paper: #f6f5f0; --ink: #1e201c; --muted: #565952; --line: #c6c9bf; --focus: #994225; }
.deck { max-width: 1510px; padding-inline: clamp(20px, 4.7vw, 78px); margin: auto; }
.deck-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 64px; border-bottom: 1px solid var(--line); font-size: 13px; }
.studio { font-size: 28px; font-weight: 740; letter-spacing: -.09em; line-height: 1; }
.studio span { color: #a94426; }
.deck main { padding: clamp(21px, 2.4vw, 42px) 0 26px; }
.deck h1 { font-size: clamp(38px, 4.4vw, 76px); font-weight: 545; line-height: 1.04; letter-spacing: -.054em; margin-bottom: clamp(21px, 2vw, 37px); }
.deck-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px clamp(20px, 2.2vw, 36px); }
.deck-option { display: block; min-width: 0; }
.deck-image { display: grid; place-items: center; width: 100%; aspect-ratio: 2.72; overflow: hidden; background: #e4e1d5; border: 1px solid #23231c26; }
.tile-gallery .deck-image { background: #080907; }
.tile-journal .deck-image { background: #f5f0e6; }
.tile-atlas .deck-image { background: #d9e6e8; }
.tile-objects .deck-image { background: #243a6c; }
.study-link { display: inline-flex; align-items: center; min-height: 40px; color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.deck-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tile-journal .deck-image img { object-position: 50% 25%; }
.deck-cap { min-height: 49px; display: flex; justify-content: space-between; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
.deck-cap h2 { font-size: clamp(18px, 1.6vw, 27px); line-height: 1.14; font-weight: 540; letter-spacing: -.045em; }
.deck-cap .icon { width: 18px; height: 18px; }
@media (hover:hover) {
  .deck-option:hover .deck-cap { border-color: var(--ink); }
  .deck-option:hover h2 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
}
.viewer { position: fixed; inset: 0; display: flex; flex-direction: column; background: #1b1c1a; }
.viewer-frame { display: block; flex: 1; min-height: 0; width: 100%; border: 0; background: #f6f5f0; }
.viewer-bar { position: relative; height: 74px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 max(20px, 3vw); background: #edece7; }
.viewer-tool { display: inline-flex; align-items: center; justify-content: center; gap: 7px; color: #282a25; min-height: 44px; font-size: 13px; }
.viewer-tool:hover { text-decoration: underline; text-underline-offset: 3px; }
.proto-picker {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 2147483647;
  display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 999px;
  background: rgba(10, 10, 10, .82); -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 8px 24px rgba(0,0,0,.24), 0 2px 6px rgba(0,0,0,.12);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 13px; line-height: 1;
  -webkit-font-smoothing: antialiased; user-select: none; -webkit-user-select: none;
}
.proto-picker-highlight { position: absolute; top: 4px; left: 0; height: 28px; border-radius: 999px; background: rgba(255,255,255,.12); }
.proto-picker[data-ready] .proto-picker-highlight { transition: transform 250ms cubic-bezier(.23,1,.32,1), width 250ms cubic-bezier(.23,1,.32,1); }
.proto-picker-item {
  position: relative; display: flex; align-items: center; height: 28px; padding: 0 12px; border: 0; border-radius: 999px;
  background: transparent; color: rgba(255,255,255,.72); font: inherit; cursor: pointer;
  transition: color 150ms ease-out, transform 160ms cubic-bezier(.23,1,.32,1);
}
.proto-picker-item:active { transform: scale(.97); }
.proto-picker-item[data-active] { color: #fff; }
.proto-picker-item:focus-visible { outline: 2px solid white; outline-offset: 2px; }
@media (hover:hover) and (pointer:fine) { .proto-picker-item:hover { color: rgba(255,255,255,.9); } }
@media (max-width: 650px) {
  .deck-head { min-height: 56px; font-size: 11px; }
  .studio { font-size: 24px; }
  .deck-grid { grid-template-columns: 1fr; gap: 19px; }
  .deck h1 { max-width: 11ch; }
  .deck-image { aspect-ratio: 2.45; }
  .deck-cap { min-height: 41px; }
  .viewer-bar { padding-inline: 5px; }
  .viewer-tool { width: 44px; }
  .viewer-tool span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .proto-picker[data-ready] .proto-picker-highlight { transition: none; } }
