/* subtitles sit over the left page so they never cover the right page's buttons; centred during the intro */
#subtitle { left: 245px; max-width: 440px; bottom: 34px; font-size: 20px; }
#intro:not(.hidden) ~ #subtitle { left: 50%; max-width: 760px; bottom: 22px; }
#app.phone #subtitle { font-size: 22px; }

/* ---------------------------------------------------------------- v2: the event card turn screen */
.event-card { position: relative; flex: 0 0 auto; padding: 10px 30px 10px 14px; border-radius: 3px;
  background: linear-gradient(180deg, rgba(255,251,238,0.78), rgba(239,224,192,0.66));
  border: 2px solid var(--ink);
  box-shadow: inset 0 0 0 3px rgba(233,193,90,0.8), inset 0 0 0 5px rgba(42,26,14,0.28), 0 3px 0 rgba(42,26,14,0.35);
  animation: cardIn 0.42s cubic-bezier(0.3, 1.5, 0.5, 1); }
.event-card::before { content: "❦"; position: absolute; right: 9px; top: 5px; color: var(--verm); font-size: 18px; line-height: 1; opacity: 0.85; }
.event-card .prose { font-size: 19px; line-height: 1.45; }
.event-card .prose::first-letter { font-size: 40px; }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px) rotate(-1.6deg) scale(0.95); } to { opacity: 1; transform: none; } }
.choices { display: flex; flex-direction: column; gap: 8px; flex: 0 0 auto; }
.choices .btn { min-height: 58px; font-size: 19px; padding: 2px 12px; }
.choices .btn img { width: 34px; height: 34px; }
.choices .btn .bl { min-width: 0; flex: 1 1 auto; }
.choices .btn .bl > span { display: block; max-width: 100%; }
.choices .btn .bl small { font-size: 15px; }
.choices .btn:nth-child(1) { animation: chIn 0.32s 0.06s both cubic-bezier(0.3, 1.5, 0.5, 1); }
.choices .btn:nth-child(2) { animation: chIn 0.32s 0.12s both cubic-bezier(0.3, 1.5, 0.5, 1); }
.choices .btn:nth-child(3) { animation: chIn 0.32s 0.18s both cubic-bezier(0.3, 1.5, 0.5, 1); }
.choices .btn:nth-child(4) { animation: chIn 0.32s 0.24s both cubic-bezier(0.3, 1.5, 0.5, 1); }
@keyframes chIn { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
.row.tools { gap: 8px; flex: 0 0 auto; }
.row.tools .btn { min-height: 48px; font-size: 16px; padding: 2px 6px; line-height: 1.08; }
/* the turn screen shows the date on the left page only */
#rightContent:has(> .event-card) > .head h2 { display: none; }
#rightContent:has(> .event-card) > .head { min-height: 0; flex: 0 0 auto; }

/* YouTube buttons: a red play seal and the title in ultramarine ink */
.yt-btn { min-height: 58px; padding: 2px 10px; width: 100%; flex: 0 0 auto; gap: 10px; }
.yt-btn .bl { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.yt-btn .piece { min-width: 0; }
.yt-btn .pc, .yt-btn .pt { display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yt-btn .pt { color: var(--ultra); }
.scroll > .yt-btn, .codex-list > .yt-btn { margin-top: 6px; }
.yt-play { position: relative; flex: 0 0 auto; width: 38px; height: 38px; margin: 0 !important; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d4573c, #8a2414); border: 2px solid var(--ink); box-shadow: inset 0 0 0 2px var(--gold2), 0 2px 0 rgba(42,26,14,0.4); }
.yt-play::after { content: ""; position: absolute; left: 13px; top: 9px; border-left: 14px solid #fff4d8; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }

/* ---------------------------------------------------------------- the title logo, drawn in type */
.text-logo { position: absolute; display: flex; justify-content: center; pointer-events: none; filter: drop-shadow(0 4px 0 rgba(42,26,14,0.55)); }
.tl-inner { display: flex; flex-direction: column; align-items: center; }
.tl-orn { font-size: 22px; line-height: 1.1; color: var(--verm); text-shadow: 1px 1px 0 var(--gold2); white-space: nowrap; }
.tl-orn::before, .tl-orn::after { content: ""; display: inline-block; width: 64px; height: 3px; margin: 0 10px; vertical-align: 0.3em; background: linear-gradient(90deg, rgba(42,26,14,0), var(--ink) 30%, var(--gold) 70%, rgba(192,138,30,0)); }
.tl-top { font-weight: 900; line-height: 1.1; letter-spacing: 0.22em; padding-left: 0.22em; text-transform: uppercase; color: var(--verm);
  text-shadow: 2px 2px 0 var(--gold2), -1px -1px 0 #fff4d8, 3px 3px 0 var(--ink); }
.tl-main { position: relative; display: inline-block; font-weight: 900; line-height: 1.12; white-space: nowrap; letter-spacing: 0.03em; color: transparent; -webkit-text-fill-color: transparent; }
.tl-main::before, .tl-main::after { content: attr(data-text); position: absolute; left: 0; top: 0; right: 0; white-space: nowrap; }
.tl-main::before { -webkit-text-stroke: 0.15em var(--ink); -webkit-text-fill-color: var(--ink); color: var(--ink); transform: translate(0.05em, 0.06em); }
.tl-main::after { background: linear-gradient(180deg, #fff6d6 0%, #f3cf68 38%, #c58d1f 58%, #9b2d1a 59%, #c8462c 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  -webkit-text-stroke: 0.035em #fff1c9; }
.tl-sub { position: relative; margin-top: 6px; padding: 3px 26px 4px; font-weight: 800; letter-spacing: 0.08em; white-space: nowrap; color: #fff4d8; line-height: 1.3;
  background: linear-gradient(180deg, #b8402a, #8a2414); border: 2px solid var(--ink); box-shadow: inset 0 0 0 2px var(--gold2);
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 50%, 100% 100%, 0 100%, 12px 50%); text-shadow: 0 2px 0 rgba(40,10,0,0.6); }

#titleLogo.text-logo { left: 3%; top: 7%; width: 56%; max-width: none; max-height: none; opacity: 0; object-fit: initial; }
#titleLogo.text-logo.in { animation: logoIn 0.6s cubic-bezier(0.3, 1.6, 0.5, 1) forwards, logoFloat 4s 0.6s ease-in-out infinite; }

/* the small logo over the cover on the contents page */
.text-logo.small { left: 0; right: 0; top: 18px; z-index: 2; }
.text-logo.small .tl-orn { font-size: 16px; }
.text-logo.small .tl-orn::before, .text-logo.small .tl-orn::after { width: 40px; }
.text-logo.small .tl-sub { padding: 2px 20px 3px; }

/* ---------------------------------------------------------------- phones: the stage is shrunk to ~0.72, so every tap target is 62 stage px (44 CSS px) */
#app.phone .btn, #app.phone .choices .btn, #app.phone .row.tools .btn, #app.phone .yt-btn { min-height: 62px; }
#app.phone .choices { gap: 7px; }
#app.phone .choices .btn { font-size: 20px; }
#app.phone .choices .btn .bl small { font-size: 17px; }
#app.phone .event-card .prose { font-size: 20px; }
#app.phone .row.tools .btn { font-size: 19px; }
