/* NO MIDS VOL. 2: the opening comic's styles, and only those (the plate and the title are in intro.css / vol2.css). Every size is taken from
   the field's own width (--w, set by game/intro2.js), so the comic holds at 360 and at 1280. Everything sits under `.intro .v2`
   (the comic's stage), so it wins over the same class names in Vol. 1's intro.css when both are loaded. */
@font-face { font-family: Anton; font-weight: 400; src: url(assets/fonts/anton-400.woff2) format("woff2"); font-display: block; }
@font-face { font-family: Barlow; font-weight: 800; src: url(assets/fonts/barlow-800.woff2) format("woff2"); font-display: block; }
@font-face { font-family: PS2P; src: url(assets/fonts/press-start-2p.woff2) format("woff2"); font-display: block; }

#screens > section.intro { position: absolute; inset: 0; overflow: hidden; container-type: size; box-sizing: border-box; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; background: #0c0a10; cursor: pointer; }
#screens > section.intro[hidden] { display: none; }
.intro .v2 { --w: 100cqw; position: absolute; inset: 0; overflow: hidden; background: #0c0a10; touch-action: manipulation; }
.intro .v2 .shot { position: absolute; inset: 0; overflow: hidden; display: none; }
.intro .v2 .pic { position: absolute; max-width: none; max-height: none; -webkit-user-drag: none; pointer-events: none; will-change: transform; }
.intro .v2 .pan { position: absolute; left: 0; top: 0; will-change: transform; }

.intro .v2 .cap {
  position: absolute; z-index: 4; box-sizing: border-box; font-family: Anton, sans-serif; font-weight: 400; font-size: calc(var(--w) * .052); line-height: 1.08; letter-spacing: .025em; text-transform: uppercase;
  white-space: nowrap; color: #0c0a10; background: #f5b71a; border: 5px solid #000; box-shadow: 6px 6px 0 #000; padding: .24em .5em .14em; opacity: 0;
}
/* shot 1: both captions wrap onto two balanced lines (at most 46 % of the field wide: set by the script), top left over the sky */
.intro .v2 .s1 .cap { white-space: normal; text-wrap: balance; font-size: calc(var(--w) * .044); line-height: 1.04; padding: .22em .45em .12em; }
.intro .v2 .s1 .cap { left: 5%; top: 3%; }
.intro .v2 .s1 .cap + .cap { left: 7%; top: 11.8%; }
.intro .v2 .s2 .cap { left: 5%; top: 3.4%; }
.intro .v2 .s2 .cap + .cap { left: 8%; top: 9.6%; }

.intro .v2 .bal { position: absolute; z-index: 3; opacity: 0; visibility: hidden; }
.intro .v2 .bal .bg { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.intro .v2 .bal .txt {
  position: relative; box-sizing: border-box; padding: .62em .7em .54em; text-align: center; text-transform: uppercase; font-family: Barlow, sans-serif; font-weight: 800;
  font-size: calc(var(--w) * .052); line-height: 1.1; letter-spacing: .01em; color: #0c0a10; text-wrap: balance;
}
/* his line: very big, two lines, Anton, no tail */
.intro .v2 .bal.shout { z-index: 4; }
.intro .v2 .bal.shout .txt { font-family: Anton, sans-serif; font-weight: 400; font-size: calc(var(--w) * .097); line-height: 1.04; letter-spacing: .02em; white-space: nowrap; text-wrap: nowrap; padding: .3em .42em .2em; }

/* shot 3: hot pink, speed lines in the edition's colours, a paper glow behind him */
.intro .v2 .s3 { background: radial-gradient(circle at 50% 44%, #ff6fba 0, #ff3ea5 34%, #c81d86 66%, #7a2c9f 100%); }
.intro .v2 .rays { position: absolute; transform-origin: 50% 50%; pointer-events: none; }
.intro .v2 .dots {
  position: absolute; inset: 0; pointer-events: none; opacity: .22;
  background: radial-gradient(circle at center, #7a2c9f 0 30%, transparent 33%) 0 0 / calc(var(--w) * .024) calc(var(--w) * .024);
  -webkit-mask-image: radial-gradient(circle at 50% 44%, transparent 18%, #000 100%); mask-image: radial-gradient(circle at 50% 44%, transparent 18%, #000 100%);
}
.intro .v2 .glow { position: absolute; pointer-events: none; background: radial-gradient(closest-side, rgba(255, 244, 222, .95) 0%, rgba(255, 244, 222, .5) 34%, rgba(255, 62, 165, 0) 100%); }
.intro .v2 .vow { position: absolute; inset: 0; }
.intro .v2 .hero { position: absolute; max-width: none; pointer-events: none; will-change: transform; }

.intro .v2 .halftone {
  position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: .07; mix-blend-mode: multiply;
  background: radial-gradient(circle at center, #000 0 32%, transparent 36%) 0 0 / calc(var(--w) * .014) calc(var(--w) * .014);
}
.intro .v2 .frame { position: absolute; inset: -2px; z-index: 6; pointer-events: none; box-shadow: inset 0 0 0 12px #0c0a10; }
.intro .v2 .dim { position: absolute; inset: 0; z-index: 7; background: #0c0a10; pointer-events: none; }
.intro .v2 .flash { position: absolute; inset: 0; z-index: 8; background: #f6eeda; opacity: 0; pointer-events: none; }
.intro .v2 .skip {
  position: absolute; z-index: 9; right: 12px; bottom: 12px; min-width: 66px; height: 34px; padding: 3px 12px 0; display: flex; align-items: center; justify-content: center;
  font-family: PS2P, monospace; font-size: 9px; letter-spacing: .06em; color: #0c0a10; background: #f6eeda; border: 3px solid #000; border-radius: 999px; box-shadow: 3px 3px 0 #000; cursor: pointer;
  touch-action: manipulation; opacity: .94;
}
.intro .v2 .skip::before { content: ''; position: absolute; inset: -8px -10px; }
.intro .v2 .skip:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 #000; }
