/* NO MIDS: the plate, the opening comic and the title. The markup is fixed by art/SPEC-step5.md (O1); every size is taken from the
   field's own width (cqw), so the same screens hold at 360 and at 1280. Played by game/intro.js. */
@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 { --ink: #0c0a10; --paper: #f6eeda; --gold: #f5b71a; --blue: #1d43cf; --red: #e2291d; }
#screens > section.plate, #screens > section.intro, #screens > section.title {
  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;
}
#screens > section.plate[hidden], #screens > section.intro[hidden], #screens > section.title[hidden] { display: none; }

/* ------------------------------------------------ the big button, on the plate and the title */
#screens .go {
  font-family: Anton, sans-serif; font-weight: 400; font-size: 8.6cqw; line-height: 1; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink); background: var(--gold); border: 6px solid #000; border-radius: 6cqw; padding: 4.4cqw 8cqw 3.6cqw; min-height: 48px;
  box-shadow: 8px 8px 0 var(--blue); cursor: pointer; touch-action: manipulation; animation: go-pulse 2.4s ease-in-out infinite;
}
#screens .go:active { transform: translate(5px, 5px); box-shadow: 3px 3px 0 var(--blue); animation: none; }
@keyframes go-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.045); } }

/* ------------------------------------------------ the plate */
#screens > section.plate { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--ink); gap: 0; }
#screens > section.plate::before {
  content: ''; position: absolute; inset: -10%; pointer-events: none;
  background: radial-gradient(circle at center, var(--gold) 0 26%, transparent 30%) 0 0 / 3.4cqw 3.4cqw, radial-gradient(circle at 50% 36%, rgba(226, 41, 29, .5), transparent 52%);
  -webkit-mask-image: radial-gradient(circle at 50% 36%, #000 0, rgba(0, 0, 0, .0) 62%); mask-image: radial-gradient(circle at 50% 36%, #000 0, rgba(0, 0, 0, 0) 62%);
  opacity: .4; animation: plate-glow 6s ease-in-out infinite alternate;
}
#screens > section.plate::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 10px var(--ink), inset 0 0 0 13px rgba(246, 238, 218, .22);
}
@keyframes plate-glow { 0% { opacity: .25; transform: scale(1); } 100% { opacity: .6; transform: scale(1.07); } }
#screens .plate .badge { position: relative; width: 60cqw; height: auto; display: block; filter: drop-shadow(0 1.6cqw 2.4cqw rgba(0, 0, 0, .6)); margin-top: -4cqw; }   /* his P-and-star logo: the picture is cut so the yellow tile (92% of its width) is in the middle and the blue shadow hangs off */
#screens .plate .presents {
  position: relative; margin: 6cqw 0 8cqw; padding: 0 8cqw; text-align: center; font-family: PS2P, monospace; font-size: 4.3cqw; line-height: 1.8; letter-spacing: .06em; color: var(--gold);
  text-wrap: balance; text-shadow: .5cqw .5cqw 0 #000;
}
#screens .plate .go { position: relative; }
/* the age line under the button, as on the other Pharaoh pages: small print, but it must be readable on a 360 px phone */
#screens .plate .gate {
  position: relative; margin: 5.5cqw 0 0; max-width: 80cqw; text-align: center; text-wrap: balance; font-family: PS2P, monospace; font-size: 2.45cqw; line-height: 1.9;
  letter-spacing: .03em; color: var(--paper); opacity: .8;
}
#screens .plate .age {
  position: absolute; left: 50%; bottom: 6cqw; transform: translateX(-50%); width: 13cqw; height: 13cqw; display: flex; align-items: center; justify-content: center;
  border: 3px solid var(--paper); border-radius: 50%; color: var(--paper); font-family: PS2P, monospace; font-size: 3.6cqw; letter-spacing: 0; padding-top: .4cqw; box-sizing: border-box;
}

/* ------------------------------------------------ the title, over the dimmed street */
#screens > section.title { display: flex; flex-direction: column; align-items: center; justify-content: center; background: transparent; }   /* the dim behind the title is drawn by the game's canvas (game.js), so it ends exactly on the field's edge */
/* (a container's own cqw looks past it, so the spacing sits on the children) */
#screens .title > * + * { margin-top: 5.5cqw; }
#screens .title .name { margin: 0; display: flex; flex-direction: column; align-items: center; transform: rotate(-4deg); font-family: Anton, sans-serif; font-weight: 400; text-transform: uppercase; line-height: .96; white-space: nowrap; }
#screens .title .name span { display: block; opacity: 0; -webkit-text-stroke: 0; paint-order: stroke fill; letter-spacing: .01em; }
#screens .title .name span:nth-child(1) { color: var(--paper); font-size: 8cqw; letter-spacing: .08em; text-shadow: .08em .09em 0 #000; margin-bottom: .5cqw; }
#screens .title .name span:nth-child(2) { color: var(--gold); font-size: 20cqw; -webkit-text-stroke: 8px #000; filter: drop-shadow(.06em .07em 0 var(--red)); }
#screens .title .name span:nth-child(3) { color: var(--paper); font-size: 24cqw; -webkit-text-stroke: 8px #000; filter: drop-shadow(.06em .07em 0 var(--blue)); margin-top: -.5cqw; }
#screens .title.in .name span { animation: title-slam .34s cubic-bezier(.2, .8, .3, 1) both; }
#screens .title.in .name span:nth-child(2) { animation-delay: .09s; }
#screens .title.in .name span:nth-child(3) { animation-delay: .18s; }
#screens .title.in .name { animation: title-shake .3s linear .18s both; }
@keyframes title-slam { 0% { opacity: 0; transform: scale(2.3); } 45% { opacity: 1; transform: scale(.92); } 70% { opacity: 1; transform: scale(1.035); } 100% { opacity: 1; transform: scale(1); } }
@keyframes title-shake { 0% { translate: 0 0; } 20% { translate: -1.6cqw .8cqw; } 40% { translate: 1.4cqw -.9cqw; } 60% { translate: -.9cqw .5cqw; } 80% { translate: .5cqw -.3cqw; } 100% { translate: 0 0; } }

#screens .title .feat { margin: 0; display: flex; align-items: center; justify-content: center; gap: 2.4cqw; opacity: 0; }
#screens .title .feat .featuring { font-family: Barlow, sans-serif; font-weight: 800; font-size: 5cqw; color: var(--paper); text-shadow: .4cqw .4cqw 0 #000; letter-spacing: .02em; }
#screens .title .feat .badge { width: 22cqw; height: auto; display: block; filter: drop-shadow(0 1cqw 1.6cqw rgba(0, 0, 0, .55)); }
#screens .title .feat .brand { font-family: Anton, sans-serif; font-size: 6cqw; line-height: 1; letter-spacing: .03em; color: var(--gold); text-shadow: .5cqw .5cqw 0 #000; }
#screens .title .go, #screens .title .best, #screens .title .small { opacity: 0; }
#screens .title.in .feat { animation: title-rise .4s ease-out .5s both; }
#screens .title.in .go { animation: title-rise .4s ease-out .7s both, go-pulse 2.4s ease-in-out 1.3s infinite; }
#screens .title.in .best, #screens .title.in .small { animation: title-rise .4s ease-out .85s both; }
@keyframes title-rise { 0% { opacity: 0; transform: translateY(3cqw); } 100% { opacity: 1; transform: none; } }
#screens .title > .best { margin-top: 3.5cqw; font-family: PS2P, monospace; font-size: 3.5cqw; letter-spacing: .06em; color: var(--paper); text-shadow: .4cqw .4cqw 0 #000; }
#screens .title .best[hidden] { display: none; }
#screens .title .small {
  font-family: PS2P, monospace; font-size: 3.2cqw; letter-spacing: .08em; color: var(--ink); background: var(--paper); border: 4px solid #000; border-radius: 999px;
  padding: 2.6cqw 5cqw 2.2cqw; min-height: 48px; box-shadow: 4px 4px 0 #000; cursor: pointer; touch-action: manipulation;
}
#screens .title .small:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 #000; }
/* STORY and TOP 10 side by side (the TOP 10, 2026-11-17): the same pill, the second one gold */
#screens .title .pills { display: flex; align-items: center; justify-content: center; gap: max(8px, 2.6cqw); }
#screens .title .small.gold { background: var(--gold); }
/* the two volumes, side by side (VOL. 2 arrives, 2026-11-23): the same pill as STORY; VOL. 1 is the gold "you are here" one, VOL. 2 is hot pink with a small flag */
#screens .title .vols { display: flex; align-items: center; justify-content: center; gap: max(8px, 2.6cqw); margin-top: 3.2cqw; }
#screens .title .vols .small { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
#screens .title .small.cur { background: var(--gold); cursor: default; pointer-events: none; }
#screens .title .small.pink { background: #ff3ea5; position: relative; }
#screens .title .small.pink::after { content: attr(data-flag); position: absolute; right: -2.2cqw; top: -3.4cqw; transform: rotate(9deg); font-family: PS2P, monospace; font-size: 2.2cqw; letter-spacing: .04em; color: var(--ink); background: var(--paper); border: 3px solid #000; border-radius: 6px; padding: .8cqw 1.2cqw .4cqw; box-shadow: 2px 2px 0 #000; pointer-events: none; }

/* ------------------------------------------------ the comic */
#screens .intro { background: var(--ink); cursor: pointer; }
.intro .stage { --w: 100cqw; position: absolute; inset: 0; overflow: hidden; background: var(--ink); touch-action: manipulation; }
.intro .shot { position: absolute; inset: 0; overflow: hidden; display: none; }
.intro .pic { position: absolute; max-width: none; max-height: none; -webkit-user-drag: none; pointer-events: none; will-change: transform; }
.intro .pan { position: absolute; left: 0; top: 0; will-change: transform; }

.intro .cap {
  position: absolute; z-index: 4; font-family: Anton, sans-serif; font-weight: 400; font-size: calc(var(--w) * .058); line-height: 1.08; letter-spacing: .025em; text-transform: uppercase; white-space: nowrap;
  color: var(--ink); background: var(--gold); border: 5px solid #000; box-shadow: 6px 6px 0 #000; padding: .24em .5em .14em; opacity: 0;
}
.intro .cap.big { font-size: calc(var(--w) * .11); padding: .16em .4em .08em; letter-spacing: .03em; }
.intro .s1 .cap { left: 5.5%; top: 4%; }
.intro .s1 .cap + .cap { left: 9%; top: 17%; }
.intro .s2 .cap { left: 5%; top: 3.6%; }
.intro .s2 .cap + .cap { left: 8%; top: 10.8%; }

.intro .bal { position: absolute; z-index: 3; opacity: 0; visibility: hidden; }
.intro .bal .bg { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.intro .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) * .049); line-height: 1.1; letter-spacing: .01em; color: var(--ink); text-wrap: balance;
}
.intro .bal.gold .txt { font-size: calc(var(--w) * .06); line-height: 1.04; }
.intro .s3 .bal { z-index: 3; }

.intro .burstwrap { position: absolute; opacity: 0; pointer-events: none; }
.intro .burst { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.intro .jar { position: absolute; display: block; max-width: none; transform-origin: 50% 100%; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .5)); pointer-events: none; visibility: hidden; }

.intro .s3 { background: radial-gradient(circle at 50% 44%, #e2291d 0, #b01c16 34%, #5a0f12 62%, #0c0a10 100%); }
.intro .rays { position: absolute; transform-origin: 50% 50%; pointer-events: none; }
.intro .dots {
  position: absolute; inset: 0; pointer-events: none; opacity: .3;
  background: radial-gradient(circle at center, #0c0a10 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 .vow { position: absolute; inset: 0; }
.intro .hero { position: absolute; max-width: none; pointer-events: none; will-change: transform; }

.intro .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 .frame { position: absolute; inset: -2px; z-index: 6; pointer-events: none; box-shadow: inset 0 0 0 12px #0c0a10; }
.intro .dim { position: absolute; inset: 0; z-index: 7; background: #0c0a10; pointer-events: none; }
.intro .flash { position: absolute; inset: 0; z-index: 8; background: #f6eeda; opacity: 0; pointer-events: none; }
.intro .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 .skip::before { content: ''; position: absolute; inset: -8px -10px; }
.intro .skip:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 #000; }
