.product-studio {
  position:relative;
  --poster-base:#100c1c;
  margin:clamp(16px,2.2vw,32px) 0 clamp(26px,3vw,46px);
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--poster-base);
  box-shadow:0 14px 44px #08051238;
}
.product-studio [hidden] { display:none !important; }
.studio-poster { position:relative; isolation:isolate; display:flex; align-items:center; min-height:clamp(330px,33vw,450px); overflow:hidden; }
.poster-copy { width:48%; padding:clamp(28px,4vw,62px); padding-right:0; color:#fcf8ff; }
.studio-kicker { display:flex; align-items:center; flex-wrap:wrap; gap:.65em; color:#d4c9d9; font:650 .78rem/1.4 var(--mono); text-transform:uppercase; letter-spacing:.07em; }
.studio-kicker span { color:var(--c); }
.poster-copy h1 { margin:14px 0 16px; font:700 clamp(3.7rem,6.9vw,7rem)/.96 var(--title); letter-spacing:-.055em; overflow-wrap:anywhere; text-transform:uppercase; }
.studio-description { max-width:35ch; color:#e1dbea; font-size:clamp(1rem,1.25vw,1.12rem); line-height:1.48; }
.studio-links { display:flex; flex-wrap:wrap; align-items:center; gap:10px 21px; margin-top:25px; }
.studio-links a { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:44px; font-weight:650; }
.studio-primary { color:#120d1a; background:var(--c); border-radius:8px; padding:8px 20px; }
.studio-primary:hover { background:color-mix(in srgb,var(--c),white 25%); }
.studio-links a + a:hover { text-decoration:underline; text-underline-offset:4px; }
.studio-switch { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); border-block:1px solid var(--line); background:var(--deep); }
.studio-tab { position:relative; display:flex; align-items:center; gap:12px; padding:clamp(12px,1.45vw,22px); min-width:0; }
.studio-tab + .studio-tab { border-left:1px solid var(--line); }
.studio-tab img { width:clamp(32px,3.4vw,50px); height:auto; flex:none; }
.studio-tab strong { display:block; font:700 clamp(1.12rem,1.7vw,1.5rem)/1.1 var(--title); }
.studio-tab small { margin-top:4px; font:.84rem/1.35 var(--sans); }
.studio-tab:is(:hover,[aria-selected=true]) { background:color-mix(in srgb,var(--c) 12%,var(--deep)); }
.studio-tab[aria-selected=true] { box-shadow:inset 0 3px var(--c); }
.studio-tab[aria-selected=true] strong { color:var(--c); }
.studio-tab:focus-visible { outline-offset:-5px; }
.home-section-head { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.home-link,.spawn-chart-head a { font:650 .925rem/1.4 var(--sans); text-decoration:underline; text-underline-offset:.32em; }
@media (max-width:800px) {
  .studio-tab { gap:8px; }
  .studio-tab small { display:none; }
}
@media (max-width:640px) {
  .product-studio { border-radius:12px; }
  .studio-poster { display:grid; min-height:0; }
  .poster-copy { width:100%; padding:0 18px 20px; }
  .poster-copy h1 { font-size:clamp(3.2rem,11.5vw,5rem); margin:6px 0 9px; }
  .studio-links { margin-top:15px; }
  .studio-tab { flex-direction:column; padding:9px 2px 11px; gap:4px; text-align:center; }
  .studio-tab strong { font-size:1rem; }
  .studio-tab img { width:30px; }
}
.spawn-home, .field-index {
  border-top: 1px solid var(--line);
  padding-block: clamp(28px, 3.1vw, 48px);
}
.home-section-head { margin-bottom: 18px; align-items: center; }
.spawn-heading { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.home-section-head h2, .field-index h2 { font-size: clamp(2rem, 3vw, 3.1rem); line-height: 1.1; }
.spawn-layout { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.18fr); gap: clamp(18px, 2.2vw, 34px); align-items: start; }
.spawn-chart {
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  color: var(--ink);
}
.spawn-chart-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 16px; }
.spawn-chart-head h3 { font-size: 1.2rem; }
.spawn-chart .map-panel { height: auto; aspect-ratio: 1.95; min-height: 160px; }
.spawn-chart .map-readout { padding: 10px 14px; color: var(--ink); border-color: #0002; font: .875rem/1.45 var(--sans); }
.spawn-chart .map-readout .icon { color: inherit; }
.spawn-list { min-width: 0; }
.spawn-list .encounter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.spawn-list .empty { grid-column: 1 / -1; padding: 22px; }
.region-link {margin-left:auto; padding:5px 0 5px 7px; border:0; background:transparent; color:var(--accent-soft); font:600 .85rem/1.4 var(--sans); text-decoration:underline; text-underline-offset:3px;}
.spawn-note { display: flex; align-items: center; gap: 6px; font-size: .875rem; margin-top: 12px; }
.spawn-home .filter-tabs { margin-bottom: 14px; }
.field-index > h2 { margin:0 0 18px; }
.guide-collection { display:grid; grid-template-columns:minmax(0,1.18fr) repeat(2,minmax(0,1fr)); gap:clamp(12px,1.6vw,24px); }
.guide-entry {
  --guide-accent:#dcadff;
  min-width:0; overflow:hidden; border:1px solid var(--line); border-radius:14px; background:var(--panel);
  display:flex; flex-direction:column;
}
.guide-route { --guide-accent:#acdafa; }
.guide-hotspot { --guide-accent:#99edc6; }
.guide-entry h3 { margin:0; }
.guide-door { display:flex; align-items:center; gap:10px; padding:12px 16px; min-height:46px; font:700 1.08rem/1.3 var(--title); color:var(--text); }
.guide-door .icon { color:var(--guide-accent); }
.guide-door:hover,.guide-preview:hover h4 { text-decoration:underline; text-underline-offset:.17em; }
.guide-entry a:focus-visible { outline:2px solid var(--guide-accent); outline-offset:-3px; }
.guide-preview { display:flex; flex-direction:column; flex:1; }
.guide-plate { height:clamp(110px,10vw,152px); overflow:hidden; position:relative; border-block:1px solid #ffffff1c; }
.calendar-plate {
  display:flex; align-items:center; justify-content:space-around; gap:16px;
  background:radial-gradient(ellipse at 80% 30%,#a563b7 0%,transparent 57%),linear-gradient(110deg,#342043,#6a3c74);
}
.guide-ticket {
  display:grid; place-content:center; justify-items:center; min-width:75px; padding:8px 12px; border-radius:9px;
  background:#f7e9ff; color:#341946; box-shadow:3px 4px 0 #32163966; transform:rotate(-4deg);
}
.guide-ticket strong { font:700 2.65rem/.96 var(--title); letter-spacing:-.04em; }
.guide-ticket span { font:700 .78rem/1.5 var(--mono); text-transform:uppercase; letter-spacing:.08em; }
.calendar-plate img { width:clamp(70px,7vw,100px); height:auto; max-height:92%; object-fit:contain; filter:drop-shadow(0 5px 4px #30123f55); }
.guide-ball { position:relative; flex:none; width:77px; aspect-ratio:1; border:3px solid #f8d6ff85; border-radius:50%; background:linear-gradient(to bottom,#f3c4ef35 44%,#f8d6ff85 44% 52%,#381d5126 52%); transform:rotate(-21deg); }
.guide-ball::after { content:""; position:absolute; top:48%; left:50%; width:22%; aspect-ratio:1; transform:translate(-50%,-50%); border:3px solid #f8d6ff; border-radius:50%; background:#744681; }
.route-plate,.hotspot-plate { background-color:#1b3645; background-image:linear-gradient(#b6e8ff15 1px,transparent 1px),linear-gradient(90deg,#b6e8ff15 1px,transparent 1px); background-size:20px 20px; }
.route-plate svg,.hotspot-plate svg { display:block; width:100%; height:100%; }
.route-plate svg { padding:6px 12px; }
.route-plate polyline { fill:none; stroke:var(--guide-accent); stroke-width:2.2; stroke-linejoin:round; stroke-linecap:round; }
.route-plate circle { fill:white; stroke:#284e6e; stroke-width:2; }
.hotspot-plate { background-color:#173436; }
.locator-ring { fill:#c1ffc233; stroke:#c1ffc2; stroke-width:.13; }
.locator-dot { fill:#ddffd2; stroke:#1c4d43; stroke-width:.24; }
.guide-caption { padding:14px 16px 18px; }
.guide-caption small { font:600 .81rem/1.4 var(--sans); color:var(--guide-accent); }
.guide-caption h4 { margin:5px 0 0; font:700 clamp(1.08rem,1.5vw,1.38rem)/1.23 var(--title); letter-spacing:-.018em; overflow-wrap:anywhere; }
@media(max-width:760px) {
  .guide-collection { grid-template-columns:1fr; gap:12px; }
  .guide-entry { padding:0 12px 12px; }
  .guide-door { padding:9px 2px; }
  .guide-preview { display:grid; grid-template-columns:clamp(88px,22vw,150px) minmax(0,1fr); gap:12px; align-items:center; }
  .guide-plate { height:84px; border:1px solid #ffffff1c; border-radius:8px; }
  .guide-caption { padding:4px 0; }
  .guide-ticket { min-width:48px; padding:4px 8px; }
  .guide-ticket strong { font-size:1.85rem; }
  .calendar-plate { justify-content:center; }
  .calendar-plate img,.calendar-plate:has(.guide-ticket) .guide-ball { display:none; }
  .route-plate svg { padding:3px; }
}
@media (max-width: 1020px) {
  .spawn-layout { grid-template-columns: minmax(0, .85fr) minmax(0, 1.2fr); gap: 16px; }
}
@media (min-width: 821px) {
  .spawn-layout { row-gap:0; }
  .spawn-list { display:contents; }
  .spawn-list .encounter-grid { grid-area:1 / 2; }
  .spawn-list > :is(.home-link,.spawn-note) { grid-column:2; }
  .spawn-chart {
    grid-area:1 / 1; align-self:stretch; container:mini-chart / size;
    display:grid; grid-template-rows:auto minmax(0,1fr) auto;
  }
  .spawn-chart .map-panel { min-height:0; aspect-ratio:auto; }
  .spawn-chart .map-controls { display:flex; }
  @container mini-chart (max-height:155px) {
    .map-readout { display:none; }
  }
  @container mini-chart (max-height:94px) {
    .map-panel { display:none; }
  }
}
@media (max-width: 820px) {
  .spawn-layout { grid-template-columns: minmax(0, 1fr); }
  .spawn-list { order:-1; }
  .spawn-chart .map-panel { aspect-ratio: 2.6; }
}
@media (max-width: 570px) {
  .home-section-head { align-items: flex-start; flex-wrap: wrap; gap: 9px 18px; }
  .spawn-chart .map-panel { aspect-ratio: 2; }
}
@media (max-width: 490px) {
  .spawn-list .encounter-grid { grid-template-columns: minmax(0, 1fr); }
}

.studio-poster.enhancer { --landscape:url("/static/assets/gameplay/grove.webp"); --scene-ink:#133234; }
.studio-poster.farmer { --landscape:url("/static/assets/gameplay/meadow.webp"); --scene-ink:#283519; }
.studio-poster.sniper { --landscape:url("/static/assets/gameplay/river.webp"); --scene-ink:#202a4b; }
.studio-poster.raider { --landscape:url("/static/assets/gameplay/arena.webp"); --scene-ink:#332442; }
.motion-stage { position:absolute; inset:0; overflow:hidden; background:var(--scene-ink) var(--landscape) center/cover; }
.motion-stage canvas, .motion-stage img { display:block; width:100%; height:100%; object-fit:cover; }
.motion-stage canvas { cursor:pointer; }
.motion-stage canvas:focus-visible { outline:3px solid white; outline-offset:-4px; }
.motion-stage noscript img { position:absolute; inset:0; }
.poster-copy { position:relative; z-index:1; pointer-events:none; text-shadow:0 1px 4px #111b22bb; }
.poster-copy a { pointer-events:auto; }
.studio-primary { text-shadow:none; }
.studio-kicker span { color:color-mix(in srgb,var(--c) 60%,white); }
.studio-description, .studio-kicker { color:#f5f3fa; }
.studio-access { margin:6px 0 0; color:#fff; font-size:.95rem; }
.motion-toggle { position:absolute; z-index:2; top:12px; right:12px; width:38px; height:38px; display:grid; place-content:center; border:1px solid #ffffff66; border-radius:50%; background:#140f24cc; color:#fff; font:700 1rem/1 var(--sans); cursor:pointer; }
@media (max-width:640px) {
  .motion-stage { position:relative; inset:auto; grid-area:1/1; height:clamp(205px,55vw,300px); }
  .poster-copy { padding-top:14px; background:linear-gradient(105deg,color-mix(in srgb,var(--scene-ink) 78%,transparent),#141926b8),var(--landscape) center bottom/cover; }
}
