/* Portrait layouts (lane: story). Every rule is scoped to body.portrait so landscape never changes.
   Screens: Solo hub (Chronicle map, Weekly Boss, Puzzles, Rift Run, Challenges), Chronicle story sheet, milestone card
   choice, Scene Albums, leader Mastery, Seasons (+ pack odds sheet), Lore Archive and How to Play.
   Stage is 900 wide (scaled ~0.43 on a phone), so sizes here are stage px: body >= 28, labels >= 22, taps >= 96. */

/* ================================================================ SOLO: shared */
body.portrait #solo .playing { font-size: 24px; line-height: 1.4; white-space: normal; text-align: left; }
body.portrait #solo .playing a { display: inline-block; padding: 8px 4px; }
body.portrait #solo .af-eyebrow { font-size: 20px; letter-spacing: .16em; }

/* ================================================================ SOLO > CHRONICLE: one vertical path of chapters */
body.portrait .chron-top { flex-direction: column; align-items: stretch; gap: 10px; margin: 4px 0 22px; }
body.portrait .chron-lore { max-width: none; }
body.portrait .chron-lore .af-eyebrow { font-size: 22px; line-height: 1.35; }
body.portrait .chron-lore p { display: block; font: italic 26px/1.5 var(--font-card); color: #e2d6f4; margin-top: 10px; }
body.portrait .chron-top .playing { white-space: normal; font-size: 24px; padding: 12px 18px; border-radius: 14px; background: rgba(12, 6, 28, .6); border: 1px solid rgba(190, 160, 255, .16); }
body.portrait .chron-map { grid-template-columns: 1fr; gap: 30px; }
body.portrait .chron-ch { border-radius: 24px; }
body.portrait .chron-ch:hover { transform: none; }
body.portrait .chron-hero { height: 250px; }
body.portrait .chron-num { font-size: 120px; right: 24px; bottom: 10px; }
body.portrait .chron-ring { width: 96px; height: 96px; top: 18px; right: 18px; }
body.portrait .chron-ring .mring { width: 100%; height: 100%; }
body.portrait .chron-ring b { font-size: 32px; } body.portrait .chron-ring small { font-size: 20px; }
body.portrait .chron-av { width: 84px; height: 84px; top: 18px; left: 18px; border-width: 3px; }
body.portrait .chron-htxt { left: 26px; right: 26px; bottom: 20px; }
body.portrait .chron-htxt span { font-size: 22px; letter-spacing: .16em; }
body.portrait .chron-htxt b { font-size: 50px; line-height: 1.05; margin-top: 4px; }
body.portrait .chron-ch > p { display: block; -webkit-line-clamp: unset; min-height: 0; padding: 20px 26px 6px; font: 26px/1.5 var(--font-card); color: #d8ccef; }
body.portrait .chron-path { gap: 12px; padding: 16px 18px 24px; }
body.portrait .cnode { grid-template-columns: 124px 1fr; gap: 20px; min-height: 140px; padding: 12px 18px 12px 6px; border-radius: 20px; }
body.portrait .cnode:hover:not(:disabled) { transform: none; }
body.portrait .cmed { width: 108px; height: 108px; border-width: 3px; }
body.portrait .cnode.boss .cmed { width: 118px; height: 118px; }
body.portrait .cnode.boss .cmed::after { width: 18px; height: 18px; top: -13px; }
body.portrait .cnode::before { left: 64px; width: 5px; top: calc(50% + 54px); height: calc(100% + 12px - 108px); }
body.portrait .cbadge { width: 44px !important; height: 44px !important; font-size: 22px !important; }
body.portrait .cbadge .ico { width: 24px; height: 24px; }
body.portrait .cnode > div { gap: 6px; }
body.portrait .cnode b { font-size: 32px; line-height: 1.15; }
body.portrait .cnode small { font-size: 23px; white-space: normal; }
body.portrait .cnode u { font-size: 23px; gap: 8px; }
body.portrait .cnode u .ico { width: 24px; height: 24px; }
body.portrait .cnode u span { white-space: normal; }

/* ================================================================ SOLO > WEEKLY BOSS */
body.portrait .bhero { grid-template-columns: 1fr; gap: 26px; justify-items: center; padding: 34px 30px 30px; max-width: none; text-align: left; }
body.portrait .bhero::after { background: linear-gradient(180deg, rgba(14, 8, 28, .45) 0%, rgba(14, 8, 28, .9) 42%, rgba(14, 8, 28, .97)); }
body.portrait .bcard .lc { width: 300px; height: 445px; }
body.portrait .binfo { width: 100%; }
body.portrait .binfo .af-eyebrow { font-size: 22px; line-height: 1.4; text-align: center; }
body.portrait .binfo h2 { font-size: 62px; text-align: center; }
body.portrait .blore { font-size: 28px !important; line-height: 1.5 !important; }
body.portrait .brules { font-size: 28px !important; line-height: 1.45 !important; }
body.portrait .bints { max-width: none; gap: 12px; margin-bottom: 26px; }
body.portrait .bints-h { font-size: 22px; }
body.portrait .bint { grid-template-columns: 52px 1fr; gap: 8px 16px; padding: 16px 18px 16px 14px; }
body.portrait .bint > i { width: 48px; height: 48px; font-size: 22px; grid-row: span 2; }
body.portrait .bint b { font-size: 30px; } body.portrait .bint span { font-size: 25px; line-height: 1.35; }
body.portrait .bint em { grid-column: 2; justify-self: start; font-size: 22px; padding: 8px 16px; }
body.portrait .bint em .ico { width: 22px; height: 22px; }
body.portrait .bfoot { flex-direction: column; align-items: stretch; gap: 18px; margin-bottom: 18px; }
body.portrait .bfoot .bfight { width: 100%; min-height: 110px; font-size: 34px; }
body.portrait .breward { align-items: center; text-align: center; }
body.portrait .breward span { font-size: 22px; } body.portrait .breward small { font-size: 26px; }
body.portrait .binfo .playing { text-align: center; }
body.portrait .bseal { transform: scale(1.3); transform-origin: top right; }
body.portrait .brot { display: flex; justify-content: flex-start; gap: 12px; margin-top: 26px; }
body.portrait .brot .af-eyebrow { width: 100%; margin: 0 0 4px; }
body.portrait .brc { font-size: 23px; padding: 8px 20px 8px 8px; gap: 12px; }
body.portrait .brc i { width: 52px; height: 52px; }

/* ================================================================ SOLO > PUZZLES */
body.portrait .pzhead { flex-direction: column; align-items: stretch; gap: 20px; margin-bottom: 24px; }
body.portrait .pzhead h2 { font-size: 48px; }
body.portrait .pzhead p { font-size: 28px; line-height: 1.45; }
body.portrait .pzprog { width: auto; text-align: left; padding: 18px 22px; border-radius: 18px; background: rgba(12, 6, 28, .6); border: 1px solid rgba(232, 186, 90, .25); }
body.portrait .pzprog b { font-size: 48px; } body.portrait .pzprog small { font-size: 26px; } body.portrait .pzprog > span { font-size: 22px; }
body.portrait .pzprog .qbar { height: 14px; margin-top: 14px; }
body.portrait .puzzles { grid-template-columns: 1fr 1fr; gap: 20px; max-width: none; }
body.portrait .puzzles .puzzle { min-height: 400px; }
body.portrait .puzzles .puzzle .n { width: 64px; height: 64px; font-size: 30px; top: 16px; left: 16px; }
body.portrait .pzseal { width: 56px; height: 56px; font-size: 30px; top: 16px; right: 16px; }
body.portrait .pzt { padding: 90px 20px 22px; gap: 8px; }
body.portrait .pzt b { font-size: 30px; line-height: 1.15; }
body.portrait .pzt em { font-size: 23px; line-height: 1.35; }
body.portrait .pzt i { font-size: 22px; letter-spacing: .1em; }
body.portrait .pzt i .ico { width: 22px; height: 22px; }

/* ================================================================ SOLO > RIFT RUN */
body.portrait .runintro { grid-template-columns: 1fr; gap: 34px; padding: 36px 30px; max-width: none; }
body.portrait .runintro::after { background: linear-gradient(180deg, rgba(14, 8, 28, .7), rgba(14, 8, 28, .96) 40%); }
body.portrait .runintro h2 { font-size: 64px; }
body.portrait .runintro .lead { font-size: 28px; line-height: 1.5; }
body.portrait .runintro .rstory { font: italic 28px/1.5 var(--font-card); color: #f1e6ff; }
body.portrait .rrules { gap: 16px; }
body.portrait .rrules li { font-size: 26px; gap: 16px; line-height: 1.4; }
body.portrait .rrules .mi, body.portrait .rrules .ico { font-size: 32px; width: 32px; height: 32px; flex: none; }
body.portrait .rbest { font-size: 25px; padding: 14px 24px; }
body.portrait .rbest b { font-size: 30px; }
body.portrait .rpick { gap: 18px; }
body.portrait .rpick .af-eyebrow { font-size: 22px; }
body.portrait .rpick .runleaders { grid-template-columns: repeat(3, 1fr); gap: 18px; width: 100%; }
body.portrait .rpick .rl { justify-self: center; }
body.portrait .rpick .rl .lc { width: 240px; height: 356px; }
body.portrait .rpick .rl.on .lc { box-shadow: 0 0 0 4px var(--gold-1), 0 0 34px rgba(242, 193, 78, .55); }
body.portrait .rpick #begin { width: 100%; min-height: 110px; font-size: 32px; }
body.portrait #solo .err:not(:empty) { font-size: 24px; }
body.portrait .runhead { flex-wrap: wrap; gap: 22px; padding: 22px 26px; max-width: none; }
body.portrait .runhead .rh-sec:first-child { width: 100%; }
body.portrait .rh-sec { gap: 12px; }
body.portrait .rh-relics { align-items: flex-start; flex-basis: 100%; }
body.portrait .floors { justify-content: space-between; gap: 0; }
body.portrait .floors .fl { width: 72px; height: 72px; font-size: 28px; }
body.portrait .floors .fl.boss { width: 84px; height: 84px; font-size: 30px; }
body.portrait .floors .fl .ico { width: 30px; height: 30px; }
body.portrait .hrt .mi, body.portrait .hrt .ico { width: 52px; height: 52px; }
body.portrait .relics { justify-content: flex-start; }
body.portrait .relic { font-size: 24px; padding: 6px 20px 6px 6px; }
body.portrait .relic i { width: 52px; height: 52px; font-size: 26px; }
body.portrait .norelic { font-size: 24px; }
body.portrait .runbody .rtitle { font-size: 40px; text-align: center; }
body.portrait .offer { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; justify-items: center; }
body.portrait .offc, body.portrait .offc .card { width: 330px; height: 462px; }
body.portrait .offc:hover { transform: none; }
body.portrait .offr { width: 330px; min-height: 462px; gap: 12px; padding: 24px; }
body.portrait .offr > i { width: 110px; height: 110px; font-size: 56px; }
body.portrait .offr .af-eyebrow { font-size: 22px; }
body.portrait .offr b { font-size: 34px; } body.portrait .offr em { font-size: 25px; }
body.portrait .runbody .actions { gap: 18px; flex-wrap: wrap; }
body.portrait .runbody .actions .btn { min-height: 96px; font-size: 26px; padding: 0 30px; }
body.portrait .nextopp { grid-template-columns: 1fr; justify-items: center; gap: 26px; padding: 34px 30px; max-width: none; text-align: center; }
body.portrait .nextopp::after { background: linear-gradient(180deg, rgba(14, 8, 28, .5), rgba(14, 8, 28, .96) 45%); }
body.portrait .nextopp .lc { width: 300px; height: 445px; }
body.portrait .nextopp .af-eyebrow { font-size: 22px; }
body.portrait .nextopp h2 { font-size: 56px; }
body.portrait .nextopp .lead { font-size: 28px; line-height: 1.45; text-align: center; margin: 10px 0 26px; }
body.portrait .nextopp .actions { justify-content: center !important; flex-wrap: wrap; gap: 16px; }
body.portrait .nextopp .actions .btn { min-height: 96px; font-size: 26px; padding: 0 28px; }
body.portrait .nextopp .actions #fight { flex-basis: 100%; min-height: 110px; font-size: 34px; }

/* run deck sheet (View deck) */
body.portrait #sheet .decklistview { min-width: 0; max-height: calc(var(--ph) - 520px); gap: 8px; }
body.portrait #sheet .decklistview .drow { grid-template-columns: 56px 1fr 70px; gap: 14px; min-height: 76px; padding: 8px 18px; font-size: 26px; border-radius: 14px; }
body.portrait #sheet .decklistview .drow .cst { font-size: 28px; }
/* post-match reward pills from the Chronicle / mastery / choices */
body.portrait .pill.progpill { font-size: 23px; padding: 10px 18px; }

/* ================================================================ SOLO > CHALLENGES (daily / weekly quests) */
body.portrait .quests { grid-template-columns: 1fr; gap: 24px; max-width: none; }
body.portrait .qcol { padding: 24px 22px 18px; }
body.portrait .qcol .m-h { font-size: 36px; flex-wrap: wrap; gap: 10px; }
body.portrait .qcol .m-h small { font-size: 22px; }
body.portrait .quests .quest { grid-template-columns: 72px 1fr 168px; grid-template-rows: auto auto; gap: 8px 18px; padding: 20px; margin-bottom: 14px; }
body.portrait .quests .quest .qic { grid-row: 1 / 3; width: 68px; height: 68px; font-size: 32px; }
body.portrait .quests .quest .qic .ico { width: 32px; height: 32px; }
body.portrait .quests .quest .qtxt { grid-row: 1 / 3; }
body.portrait .quests .quest .qtxt b { font-size: 28px; line-height: 1.3; }
body.portrait .quests .qbar { height: 14px; margin: 12px 0 6px; }
body.portrait .quests .quest .qtxt > span { font-size: 22px; }
body.portrait .quests .qr { grid-column: 3; grid-row: 1; font-size: 32px; }
body.portrait .quests .qr .coin { width: 32px; height: 32px; }
body.portrait .quests .quest .btn, body.portrait .quests .quest .qdone { grid-column: 3; grid-row: 2; }
body.portrait .quests .quest .btn { min-height: 80px; font-size: 26px; }
body.portrait .quests .qdone { font-size: 22px; justify-content: flex-end; }
body.portrait .qbonus { grid-template-columns: 72px 1fr auto; gap: 12px 18px; padding: 20px; }
body.portrait .qbonus .qpk { width: 68px; height: 68px; font-size: 32px; grid-row: 1 / 3; }
body.portrait .qbonus b { font-size: 28px; } body.portrait .qbonus div > span { font-size: 23px; }
body.portrait .qbonus .qpips { grid-column: 2; }
body.portrait .qbonus .qpips i { width: 22px; height: 22px; }
body.portrait .qbonus em { grid-column: 3; grid-row: 1 / 3; font-size: 32px; }

/* ================================================================ CHRONICLE STORY SHEET (openStory) */
body.portrait #sheet .box.storybox { width: 868px; max-width: calc(100% - 2 * var(--gut, 24px)); max-height: calc(var(--ph) - 160px); overflow-y: auto; overscroll-behavior: contain; padding: 0; }
body.portrait .story-hero { height: 360px; border-radius: 19px 19px 0 0; }
body.portrait .story-htxt { left: 30px; right: 30px; bottom: 150px; }
body.portrait .story-htxt .af-eyebrow { font-size: 22px; line-height: 1.4; }
body.portrait #sheet .story-htxt h2 { font-size: 54px; line-height: 1.08; display: block; }
body.portrait #sheet .story-htxt h2::before, body.portrait #sheet .story-htxt h2::after { display: none; }
body.portrait .story-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "art reward" "body body"; gap: 22px 24px; padding: 0 30px; }
body.portrait .story-art { grid-area: art; justify-self: center; margin-top: -130px; }
body.portrait .story-art .lc { width: 250px; height: 370px; }
body.portrait .story-reward { grid-area: reward; margin-top: -130px; align-self: stretch; justify-content: center; gap: 10px; padding: 18px 14px 20px; }
body.portrait .story-reward .af-eyebrow { font-size: 20px; }
body.portrait .story-reward .rc, body.portrait .story-reward .rc .card { width: 196px; height: 274px; }
body.portrait .story-reward b { font-size: 26px; }
body.portrait .story-reward span { font-size: 22px; }
body.portrait .story-reward .rar { font-size: 18px; padding: 5px 14px; }
body.portrait .story-body { grid-area: body; max-height: none; overflow: visible; padding: 8px 0 0; }
body.portrait .scene { padding-left: 22px; margin-bottom: 22px; }
body.portrait .scene p { font-size: 30px; line-height: 1.55; margin-bottom: 12px; }
body.portrait .teach { padding: 18px 22px; gap: 6px 14px; margin-bottom: 18px; }
body.portrait .teach span { font-size: 20px; } body.portrait .teach b { font-size: 32px; }
body.portrait .teach em { font-size: 26px; line-height: 1.45; }
body.portrait .storylinks { gap: 14px; }
body.portrait .histbtn { min-height: 96px; font-size: 25px !important; padding: 0 26px; flex: 1 1 360px; justify-content: center; border-radius: 18px; }
body.portrait .histbtn .ico { width: 28px; height: 28px; }
body.portrait .hist { padding: 20px 22px; margin-top: 16px; }
body.portrait .hist p { font-size: 28px; line-height: 1.55; } body.portrait .hist em { font-size: 22px; }
body.portrait .foe { font-size: 26px !important; line-height: 1.45; margin: 22px 0 14px; }
body.portrait .intents { gap: 10px; }
body.portrait .intents .af-eyebrow { font-size: 20px; }
body.portrait .intents > div { grid-template-columns: 1fr; gap: 4px; padding: 14px 18px; font-size: 25px; }
body.portrait .intents em { grid-column: 1; font-size: 22px; white-space: normal; }
body.portrait .story .playing { font-size: 24px !important; margin-top: 14px; }
body.portrait .storybox .actions { position: sticky; bottom: 0; z-index: 5; margin: 26px 0 0; padding: 20px 30px 26px; gap: 16px;
  background: linear-gradient(180deg, rgba(14, 8, 28, 0), rgba(14, 8, 28, .96) 26%); }
body.portrait .storybox .actions .btn { min-height: 104px; font-size: 32px; padding: 0 34px; }
body.portrait .storybox .actions #go { flex: 1; }
body.portrait .storybox .lr-instory .lr-inlink { min-height: 96px; font-size: 25px !important; }

/* ================================================================ MILESTONE CARD CHOICE (#choiceModal) */
body.portrait #choiceModal .box { width: 868px; max-width: calc(100% - 2 * var(--gut, 24px)); max-height: calc(var(--ph) - 160px); overflow-y: auto; padding: 36px 26px 30px; box-sizing: border-box; }
body.portrait #choiceModal .eyebrow { font-size: 22px; }
body.portrait #choiceModal h2 { font-size: 52px; }
body.portrait .chsub { font-size: 27px !important; line-height: 1.45; margin-bottom: 22px; }
body.portrait .chopts { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; justify-items: center; margin: 10px 0 26px; }
body.portrait .chopt { width: 100%; max-width: 400px; padding: 16px 12px 18px; gap: 8px; box-sizing: border-box; }
body.portrait .chopt:hover { transform: none; }
body.portrait .chopt.sel { transform: none; }
body.portrait .chopt:first-child:nth-last-child(3) { grid-column: 1 / -1; }
body.portrait .chopt .cf, body.portrait .chopt .cf .card { width: 280px; height: 392px; }
body.portrait .chopt b { font-size: 28px !important; }
body.portrait .chopt .rar { font-size: 18px; padding: 5px 14px; }
body.portrait .chopt em { font-size: 22px !important; line-height: 1.35; }
body.portrait #choiceModal .actions { position: sticky; bottom: -30px; margin: 0 -26px -30px; padding: 20px 26px 30px; flex-wrap: wrap; gap: 16px;
  background: linear-gradient(180deg, rgba(20, 11, 40, 0), rgba(20, 11, 40, .97) 28%); }
body.portrait #choiceModal .actions .btn { min-height: 104px; font-size: 30px; padding: 0 30px; }
body.portrait #choiceModal #chTake, body.portrait #choiceModal #chLater { flex: 1 1 100%; }
body.portrait .chmore { font-size: 24px !important; }

/* ================================================================ SCENE ALBUMS (#albums) */
body.portrait .albums-lead { font-size: 27px !important; line-height: 1.5; text-align: left; margin-bottom: 22px; }
body.portrait .albums { grid-template-columns: 1fr !important; gap: 26px; max-width: none; }
body.portrait .album { border-radius: 22px; }
body.portrait .ahead { height: 150px; padding: 18px 24px; }
body.portrait .ahead span { font-size: 20px !important; } body.portrait .ahead b { font-size: 40px !important; }
body.portrait .ahead em { font-size: 34px; }
body.portrait .slots { gap: 12px; padding: 18px 18px 8px; }
body.portrait .aslot .need b { font-size: 18px !important; }
body.portrait .aslot .need span { font-size: 20px !important; padding: 4px 10px; }
body.portrait .afoot { padding: 10px 24px 22px; min-height: 0; gap: 8px; }
body.portrait .alore { font-size: 27px !important; line-height: 1.5; }
body.portrait .ateaser { font-size: 26px !important; line-height: 1.45; }
body.portrait .arew { font-size: 22px !important; }
body.portrait .afoot .btn { min-height: 96px; font-size: 26px; }
body.portrait #albums .albsum { font-size: 22px; }
body.portrait .fillbox { grid-template-columns: 1fr; justify-items: center; gap: 20px; }
body.portrait .fillbox .fc, body.portrait .fillbox .fc .card { width: 240px; height: 336px; }
body.portrait .fillbox .lead { font-size: 26px !important; text-align: center; }

/* ================================================================ LEADER MASTERY (Profile > Mastery) */
body.portrait .mast { grid-template-columns: 1fr; gap: 22px; }
body.portrait .mast-list { flex-direction: row; overflow-x: auto; gap: 12px; padding: 4px 2px 12px; scroll-snap-type: x proximity; overscroll-behavior-x: contain; }
body.portrait .mrow { flex: none; width: 250px; grid-template-columns: 72px 1fr; padding: 14px; scroll-snap-align: start; min-height: 96px; }
body.portrait .mrow:hover { transform: none; }
body.portrait .mav { width: 72px; height: 72px; }
body.portrait .mtxt b { font-size: 25px !important; } body.portrait .mtxt span { font-size: 20px !important; }
body.portrait .mbadge { min-width: 30px; height: 30px; font-size: 18px; }
body.portrait .mast-detail { grid-template-columns: 1fr; justify-items: center; gap: 22px; padding: 26px 24px; }
body.portrait .mast-art .lc { width: 260px; height: 385px; }
body.portrait .mast-main { width: 100%; }
body.portrait .mast-main .eyebrow { font-size: 20px; }
body.portrait .mast-main h2 { font-size: 50px !important; }
body.portrait .mtitle, body.portrait .mnext { font-size: 26px !important; line-height: 1.45; }
body.portrait .tiers { grid-template-columns: repeat(4, 1fr); gap: 10px; }
body.portrait .tierpip { padding: 12px 4px; }
body.portrait .tierpip b { width: 48px; height: 48px; font-size: 24px; }
body.portrait .tierpip span { font-size: 20px !important; }
body.portrait .mdone { font-size: 30px; }
body.portrait .mast-main #mClaim { width: 100%; min-height: 96px; font-size: 26px; }
body.portrait .mchal { grid-template-columns: 1fr; }
body.portrait .mchal .quest { padding: 16px 18px; grid-template-columns: 1fr 40px; }
body.portrait .mchal .quest b { font-size: 25px !important; } body.portrait .mchal .quest span { font-size: 22px !important; }
body.portrait .mchal .quest .qbar { height: 12px; margin: 10px 0 6px; }
body.portrait .mtitles .eyebrow { font-size: 20px; width: 100%; }
body.portrait .mtitles .chip { font-size: 23px; padding: 14px 22px; min-height: 64px; }
body.portrait .mnote { font-size: 22px !important; line-height: 1.45; }

/* ================================================================ SEASON (#season) */
body.portrait #season .body.sbody { gap: 24px; }
body.portrait #season h3 { font-size: 40px; line-height: 1.15; }
body.portrait .sTop { grid-template-columns: 1fr; gap: 20px; }
body.portrait .sHero { grid-template-columns: 200px 1fr; gap: 24px; padding: 24px; align-items: start; }
body.portrait .sHero .lc { width: 200px; height: 297px; }
body.portrait .sHero .eyebrow { font-size: 20px; line-height: 1.4; }
body.portrait .sHero h2 { font-size: 48px; line-height: 1.08; margin: 6px 0; }
body.portrait .sHero .tag { font-size: 26px !important; line-height: 1.35; }
body.portrait .sHero .lore { display: block; grid-column: 1 / -1; font-size: 27px !important; line-height: 1.5; }
body.portrait .sHeroTxt { display: contents; }
body.portrait .sHero > .lwrap { grid-row: 1 / span 4; }
body.portrait .sHero .sMeta { grid-column: 1 / -1; font-size: 22px !important; line-height: 1.45; margin-top: 4px; }
body.portrait .sWeeks { display: flex; overflow-x: auto; gap: 14px; padding: 4px 2px 12px; scroll-snap-type: x proximity; overscroll-behavior-x: contain; }
body.portrait .sWeeks::before { display: none; }
body.portrait .sWeek { flex: none; width: 330px; min-height: 270px; padding: 96px 20px 20px; gap: 6px; scroll-snap-align: start; animation: none; }
body.portrait .sWeek:hover { transform: none; }
body.portrait .sWeek .wdot { width: 60px; height: 60px; font-size: 26px; top: 20px; left: 20px; }
body.portrait .sWeek .wdot .ico { width: 28px; height: 28px; }
body.portrait .sWeek .wk { font-size: 20px !important; }
body.portrait .sWeek b { font-size: 30px !important; overflow-wrap: anywhere; }
body.portrait .sWeek .wl, body.portrait .sWeek .wd { font-size: 22px !important; }
body.portrait .sEvent { padding: 26px 24px; gap: 20px; border-radius: 22px; }
body.portrait .sEvHead { flex-direction: column; gap: 16px; }
body.portrait .sEvHead .eyebrow { font-size: 20px; }
body.portrait .sEvHead p { font-size: 27px !important; line-height: 1.5; }
body.portrait .sEvHead .sRec { align-self: stretch; display: flex; align-items: baseline; justify-content: center; gap: 14px; padding: 14px 22px; }
body.portrait .sRec b { font-size: 44px !important; } body.portrait .sRec span { font-size: 20px !important; }
body.portrait .sFeat { font-size: 24px !important; gap: 14px; min-height: 64px; line-height: 1.35; }
body.portrait .sFeat input { width: 36px; height: 36px; flex: none; }
body.portrait .sLock { font-size: 24px !important; line-height: 1.45; padding: 14px 18px; }
body.portrait .sNodes { grid-template-columns: 1fr; gap: 14px; }
body.portrait .sNodes .node { grid-template-columns: 90px 1fr; min-height: 130px; padding: 18px 20px; gap: 20px; text-align: left; }
body.portrait .sNodes .node > i { width: 84px; height: 84px; flex: none; font-size: 34px; }
body.portrait .sNodes .node > i .ico { width: 36px; height: 36px; }
body.portrait .sNodes .node b { font-size: 30px; }
body.portrait .sNodes .node small { font-size: 23px !important; line-height: 1.35; }
body.portrait .sNodes .node em { font-size: 22px; }
body.portrait .sChips { gap: 12px; }
body.portrait .rchip { font-size: 23px !important; padding: 14px 18px; gap: 14px; min-height: 88px; flex: 1 1 360px; }
body.portrait .rchip i { font-size: 30px; }
body.portrait .rchip i .ico { width: 30px; height: 30px; }
body.portrait .rchip small { font-size: 18px !important; }
body.portrait .rchip em { font-size: 20px; padding: 6px 14px; margin-left: auto; }
body.portrait .sPlay { flex-direction: column; align-items: stretch; gap: 16px; }
body.portrait .sPlay .sFeat { margin: 0; }
body.portrait .sPlay .btn { min-height: 104px; font-size: 30px; }
body.portrait .sCom { padding: 20px; gap: 14px; }
body.portrait .sComHead { flex-direction: column; gap: 6px; }
body.portrait .sComHead b { font-size: 28px; } body.portrait .sComHead span { font-size: 23px !important; }
body.portrait .sComBar { height: 18px; margin: 10px 20px 34px; }
body.portrait .sComBar em { font-size: 20px; top: 24px; }
body.portrait .sComBar em::before { top: -24px; height: 20px; }
body.portrait .sSub { font-size: 22px !important; line-height: 1.35; }
body.portrait .sNote { font-size: 23px !important; line-height: 1.45; }
body.portrait .sPips { flex-wrap: wrap; gap: 12px; }
body.portrait .sPips i { width: 42px; height: 42px; }
body.portrait .sPips span { font-size: 23px !important; margin-left: 0; flex-basis: 100%; }
body.portrait .sLocRow { grid-template-columns: 1fr; gap: 14px; margin-top: 14px; }
body.portrait .sLoc { grid-template-columns: 72px 1fr; gap: 18px; padding: 20px; }
body.portrait .sLoc .li { font-size: 54px; }
body.portrait .sLoc b { font-size: 30px !important; }
body.portrait .sLoc span { font-size: 22px !important; margin: 4px 0 8px; }
body.portrait .sLoc p { font-size: 26px !important; line-height: 1.45; }
/* season track: vertical milestone ladder */
body.portrait .sTrackHead { flex-direction: column; align-items: stretch; gap: 14px; }
body.portrait .sTrackHead p { font-size: 26px; line-height: 1.5; }
body.portrait .sTrackHead #claimAll { min-height: 96px; font-size: 28px; }
body.portrait .sXp { text-align: left; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
body.portrait .sXp b { font-size: 54px; } body.portrait .sXp span { font-size: 23px; }
body.portrait .sTrackHead { order: -2; }
body.portrait .sTrackBar { order: -1; height: 16px; flex: none; }
body.portrait #season .body.sbody:has(.sTrack) { gap: 18px; }
body.portrait .sTrack { flex-direction: column; overflow-x: visible; overflow-y: visible; padding: 0; gap: 12px; scroll-snap-type: none; touch-action: auto; }
body.portrait .sMs { width: auto !important; min-height: 116px; margin: 0; flex-direction: row; gap: 20px; padding: 16px 22px; text-align: left; font-size: 25px !important; }
body.portrait .sMs::before { left: 134px; right: auto; top: -14px; bottom: -14px; width: 4px; height: auto; }
body.portrait .sMs:first-child::before { top: 50%; } body.portrait .sMs:last-child::before { bottom: 50%; }
body.portrait .sMs.reached::before { background: linear-gradient(180deg, var(--gold-3), var(--gold-1)); }
body.portrait .sMs:hover { transform: none; }
body.portrait .sMs .n { width: 56px; flex: none; text-align: center; font-size: 30px; }
body.portrait .sMs i { font-size: 36px; margin: 0; width: 76px !important; height: 76px !important; flex: none; }
body.portrait .sMs i .ico { width: 38px; height: 38px; }
body.portrait .sMs i .coin { width: 40px; height: 40px; }
body.portrait .sMs .t { font-size: 25px !important; color: #eadcf8; }
body.portrait .sMs .t { line-height: 1.3; }
body.portrait .sMs .x { font-size: 22px; flex: none; white-space: nowrap; }
body.portrait .sMs.ready .x { padding: 10px 20px; font-size: 22px; }
/* locker */
body.portrait .sLocker { grid-template-columns: 1fr; gap: 20px; }
body.portrait .sSlot { padding: 22px; gap: 12px; }
body.portrait .sSlot h3 { font-size: 34px !important; }
body.portrait .sCos { min-height: 96px; padding: 16px 20px; font-size: 26px !important; justify-content: center; }
body.portrait .sCos span { font-size: 22px !important; line-height: 1.35; }
body.portrait .sPrev .card { width: 200px !important; height: 280px !important; }
/* archive */
body.portrait .sArchLead { font-size: 27px !important; line-height: 1.5; }
body.portrait .sArchHead { flex-direction: column; gap: 4px; }
body.portrait .sArchHead b { font-size: 32px; } body.portrait .sArchHead span { font-size: 22px; }
body.portrait .sArchRow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
body.portrait .sArchRow .slotc, body.portrait .sArchRow .slotc .card { width: 100%; height: auto; aspect-ratio: 5 / 7; }
body.portrait .sArchRow .slotc .qty, body.portrait .sArchRow .slotc .lock { font-size: 22px; }
/* featured-card pick sheet */
body.portrait .sPick { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
body.portrait .sPickC .card { width: 260px !important; height: 364px !important; }
body.portrait .sPickC .own { font-size: 22px; }
body.portrait .sPickC .btn { min-height: 88px; font-size: 26px; width: 100%; }
/* pack odds sheet */
body.portrait .oddsT { width: 100%; display: block; margin: 16px 0; }
body.portrait .oddsT thead { display: none; }
body.portrait .oddsT tbody, body.portrait .oddsT tr, body.portrait .oddsT td { display: block; }
body.portrait .oddsT tr { padding: 16px 20px; margin-bottom: 12px; border-radius: 16px; background: rgba(8, 4, 18, .45); border: 1px solid rgba(190, 160, 255, .14); text-align: left; }
body.portrait .oddsT td:first-child { font-size: 26px !important; padding: 0 0 8px; border: 0; }
body.portrait .oddsT td:last-child { padding: 0; border: 0; }
body.portrait .oddsT th { font-size: 22px; }
body.portrait .oddsT td { font-size: 24px !important; line-height: 1.5; padding: 12px 10px; }
body.portrait .oddsT .rar { font-size: 18px !important; }
body.portrait .adStub { height: 240px; } body.portrait .adStub b { font-size: 48px; }
/* societies panel (Social > Society, online only) */
body.portrait .expPath { margin: 16px 44px 8px; height: 140px; }
body.portrait .expStop { width: 110px; } body.portrait .expStop span { font-size: 20px !important; }
body.portrait .expInfo { font-size: 24px !important; line-height: 1.5; }
body.portrait .lendRow { flex-wrap: wrap; }
body.portrait .lendRow select { flex: 1 1 100%; min-height: 88px; font-size: 24px !important; }
body.portrait .lendRow .btn { min-height: 88px; font-size: 24px; flex: 1; }
body.portrait .lent { grid-template-columns: 72px 1fr; gap: 12px 16px; padding: 16px; }
body.portrait .lent .lav { width: 72px; height: 72px; }
body.portrait .lent b { font-size: 26px; } body.portrait .lent span { font-size: 22px !important; }
body.portrait .lent .btn { grid-column: span 1; min-height: 80px; font-size: 22px; }
body.portrait .lent .btn[data-load] { grid-column: 1 / -1; }
body.portrait .lent .btn[data-test] { grid-column: 1 / -1; }

/* ================================================================ LORE ARCHIVE (#lore): one readable column, no nav bar */
/* header: back, title, (reader: text size), search collapses to an icon that opens on focus, page count */
body.portrait #lore .top { gap: 14px; }
body.portrait #lore .top h1 { flex: 1 1 auto; min-width: 0; max-width: none; font-size: 40px; }
body.portrait #lore .lr-crumb { display: none; }
body.portrait #lore .top .spacer { display: none; }
body.portrait #lore .lr-search { flex: none; }
body.portrait #lore .lr-search .ico { left: 30px; width: 34px; height: 34px; }
body.portrait #lore .lr-search input { width: 96px; height: 96px; padding: 0 0 0 96px; font-size: 30px; cursor: pointer; transition: width .3s var(--ease-out), padding .3s; }
body.portrait #lore .lr-search input::placeholder { color: transparent; }
body.portrait #lore .lr-search:focus-within input, body.portrait #lore[data-v="search"] .lr-search input { width: 480px; padding: 0 24px 0 76px; cursor: text; }
body.portrait #lore .lr-search:focus-within input::placeholder { color: rgba(201, 189, 166, .6); }
body.portrait #lore .lr-search:focus-within .ico, body.portrait #lore[data-v="search"] .lr-search .ico { left: 24px; }
body.portrait #lore .top:has(.lr-search:focus-within) :is(h1, .lr-tools), body.portrait #lore[data-v="search"] .top :is(h1, .lr-tools) { display: none; }
body.portrait #lore .top:has(.lr-search:focus-within) .lr-search, body.portrait #lore[data-v="search"] .lr-search { flex: 1 1 auto; }
body.portrait #lore .top:has(.lr-search:focus-within) .lr-search input, body.portrait #lore[data-v="search"] .lr-search input { width: 100%; }
body.portrait #lore .lr-count { height: 96px; padding: 0 22px; font-size: 30px; }
body.portrait #lore .lr-count span { font-size: 22px; }
body.portrait #lore .lr-fs button { min-width: 88px; height: 96px; }
body.portrait #lore .lr-readbar { top: var(--top-h, 120px); height: 6px; }
body.portrait #lore .lr-view { top: var(--top-h, 120px); }
/* landing: hero then the shelves */
body.portrait .lr-land { grid-template-columns: 1fr; gap: 34px; padding: 24px var(--gut, 24px) 60px; }
body.portrait .lr-hero { padding: 40px 34px 34px; }
body.portrait .lr-realm { font-size: 92px; }
body.portrait .lr-tag { font-size: 34px; }
body.portrait .lr-intro p { font-size: 30px; line-height: 1.55; }
body.portrait .lr-acts { flex-direction: column; align-items: stretch; }
body.portrait .lr-acts .btn { min-height: 104px; font-size: 28px !important; justify-content: center; }
body.portrait .lr-overall b { font-size: 32px; } body.portrait .lr-overall span { font-size: 24px; }
body.portrait .lr-shelves > .af-title { font-size: 28px; }
body.portrait .lr-shelfgrid, body.portrait .lr-shelfgrid.n1, body.portrait .lr-shelfgrid.n2, body.portrait .lr-shelfgrid.n4 { grid-template-columns: repeat(2, 1fr); grid-auto-rows: minmax(380px, auto); gap: 20px; }
body.portrait .lr-shelf { min-height: 380px; padding: 22px 24px; }
body.portrait .lr-shelfgrid > .lr-shelf:first-child:nth-last-child(odd) { grid-column: 1 / -1; min-height: 320px; }
body.portrait .lr-sh-txt b { font-size: 36px; }
body.portrait .lr-sh-txt em { font-size: 24px; -webkit-line-clamp: 3; }
body.portrait .lr-sh-prog small, body.portrait .lr-sh-lock { font-size: 22px !important; }
/* shelf */
body.portrait .lr-cat, body.portrait .lr-search-res { padding: 24px var(--gut, 24px) 60px; gap: 24px; }
body.portrait .lr-cathead { flex-direction: column; align-items: stretch; gap: 22px; padding: 34px 30px 30px; min-height: 300px; justify-content: flex-end; }
body.portrait .lr-ch-txt h2 { font-size: 64px; }
body.portrait .lr-ch-txt p { font-size: 30px; line-height: 1.5; }
body.portrait .lr-ch-prog { width: auto; }
body.portrait .lr-ch-prog > span:not(.lr-bar) { font-size: 22px; } body.portrait .lr-ch-prog small { font-size: 22px; }
body.portrait .lr-grid, body.portrait .lr-grid-s { grid-template-columns: repeat(2, 1fr); gap: 20px; }
body.portrait .lr-card:hover { transform: none; }
body.portrait .lr-card-txt { padding: 18px 20px 22px; }
body.portrait .lr-card-txt b { font-size: 32px; }
body.portrait .lr-card-txt em { font-size: 25px; }
body.portrait .lr-card-txt q { font-size: 25px; line-height: 1.45; }
body.portrait .lr-card-txt small, body.portrait .lr-kicker { font-size: 20px; }
body.portrait .lr-how { font-size: 24px; } body.portrait .lr-how small { font-size: 18px; }
body.portrait .lr-grid-s .lr-card-art { aspect-ratio: 16 / 9; }
body.portrait .lr-sr-head { flex-direction: column; align-items: flex-start; gap: 8px; }
body.portrait .lr-sr-head .af-eyebrow { font-size: 22px; } body.portrait .lr-sr-head > span { font-size: 23px; }
/* reader */
body.portrait .lr-reader { padding: 20px var(--gut, 24px) 80px; }
body.portrait .lr-rhead { min-height: 560px; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 22px; padding: 40px 34px 32px; }
body.portrait .lr-medal { width: 170px; height: 170px; }
body.portrait .lr-rhead-txt { flex: none; width: 100%; }
body.portrait .lr-rhead .af-eyebrow { font-size: 22px; }
body.portrait .lr-rhead h2 { font-size: 72px; } body.portrait .lr-rhead h2.long { font-size: 58px; } body.portrait .lr-rhead h2.xlong { font-size: 46px; }
body.portrait .lr-sub { font-size: 32px; }
body.portrait .lr-meta { font-size: 22px; }
body.portrait .lr-page { padding: 40px 34px 50px; }
body.portrait .lr-col { font-size: calc(36px + var(--fs) * 3px); max-width: none; }
body.portrait .lr-body { line-height: 1.6; hyphens: manual; -webkit-hyphens: manual; }
body.portrait .lr-hist { padding: 26px 26px; }
body.portrait .lr-hist-h { font-size: 22px; }
body.portrait .lr-hist p { font-size: calc(30px + var(--fs) * 2px); line-height: 1.55; }
body.portrait .lr-links { flex-direction: column; align-items: stretch; }
body.portrait .lr-links .btn { min-height: 100px; font-size: 26px; justify-content: center; }
body.portrait .lr-pn { grid-template-columns: 1fr; gap: 14px; }
body.portrait .lr-pnb { min-height: 120px; }
body.portrait .lr-pnb:hover, body.portrait .lr-relc:hover { transform: none; }
body.portrait .lr-pnb small { font-size: 20px; }
body.portrait .lr-pnb b { font-size: 32px; white-space: normal; }
body.portrait .lr-pnb em { font-size: 23px; }
body.portrait .lr-rel .af-title { font-size: 24px; }
body.portrait .lr-relrow { grid-template-columns: 1fr; gap: 14px; }
body.portrait .lr-relc b { font-size: 28px; white-space: normal; } body.portrait .lr-relc small { font-size: 22px; }
/* sealed page + empty states */
body.portrait .lr-sealedpage { max-width: none; margin: 24px var(--gut, 24px) 60px; padding: 50px 34px 44px; }
body.portrait .lr-sealedpage h2 { font-size: 56px; }
body.portrait .lr-teaser { font-size: 32px !important; }
body.portrait .lr-sealtxt { font-size: 30px; }
body.portrait .lr-howbig { align-self: stretch; padding: 22px 26px; } body.portrait .lr-howbig small { font-size: 20px; } body.portrait .lr-howbig b { font-size: 32px; }
body.portrait .lr-sealedpage .lr-acts { align-self: stretch; }
body.portrait .lr-empty { margin: 40px var(--gut, 24px); padding: 44px 30px; }
body.portrait .lr-empty p { font-size: 28px; }
/* lore links injected into other screens (story sheet, inspect) */
body.portrait .lr-inlink { min-height: 96px; font-size: 25px !important; }

/* ================================================================ HOW TO PLAY (#rules): chip row of contents over one column */
body.portrait #rules .top h1 { flex: 1 1 auto; }
body.portrait #rules .top .spacer { display: none; }
body.portrait #rules #rplay { flex: none; min-height: 96px; padding: 0 26px; font-size: 24px; }
body.portrait #rules .rwrap { top: calc(var(--top-h, 120px) + 10px); bottom: 0; left: 0; right: 0; width: auto; transform: none; display: flex; flex-direction: column; gap: 14px; }
body.portrait #rules .rtoc { flex: none; flex-direction: row; gap: 10px; max-height: none; overflow-x: auto; overflow-y: hidden; padding: 0 var(--gut, 24px) 4px; border: 0; border-radius: 0; background: none; box-shadow: none;
  scrollbar-width: none; overscroll-behavior-x: contain; -webkit-mask: linear-gradient(90deg, #000 88%, transparent); mask: linear-gradient(90deg, #000 88%, transparent); }
body.portrait #rules .rtoc::-webkit-scrollbar { display: none; }
body.portrait #rules .rtoc .af-eyebrow { display: none; }
body.portrait #rules .rtoc button { flex: none; min-height: 80px; padding: 0 26px; gap: 12px; font-size: 24px; border-radius: 99px; white-space: nowrap;
  background: rgba(20, 11, 40, .85); border: 1px solid rgba(190, 160, 255, .22); }
body.portrait #rules .rtoc button .ico { width: 26px; height: 26px; }
body.portrait #rules .rtoc button.on { color: #2b1600; background: linear-gradient(180deg, var(--gold-hi), var(--gold-1) 55%, var(--gold-2)); border-color: #fff0c2; box-shadow: 0 0 18px rgba(242, 193, 78, .35); }
body.portrait #rules .rtoc button.on .ico { color: #2b1600; }
body.portrait #rules .rtoc button.on::before { display: none; }
body.portrait #rules .rwrap .doc { flex: 1; min-height: 0; height: auto; padding: 0 var(--gut, 24px) 80px; gap: 20px; }
body.portrait #rules .rsec { padding: 30px 28px; border-radius: 22px; }
body.portrait #rules .rsec.intro { padding: 36px 30px; }
body.portrait #rules .rsec.intro::before { background: linear-gradient(180deg, rgba(14, 8, 28, .6), rgba(14, 8, 28, .95) 60%), var(--art) center 30% / cover; }
body.portrait #rules .rsec .af-eyebrow { font-size: 22px; }
body.portrait #rules .doc h2 { font-size: 44px; gap: 14px; margin-bottom: 18px; }
body.portrait #rules .doc h2 .ico { width: 42px; height: 42px; }
body.portrait #rules .doc p, body.portrait #rules .doc li { font-size: 30px; line-height: 1.55; }
body.portrait #rules .doc ul { padding-left: 34px; }
body.portrait #rules .doc li + li { margin-top: 10px; }
body.portrait #rules .doc .callout { font-size: 36px; line-height: 1.45; margin: 12px 0 26px; }
body.portrait #rules .goal { grid-template-columns: 1fr; gap: 12px; max-width: none; }
body.portrait #rules .goal > div { padding: 20px 22px; column-gap: 20px; }
body.portrait #rules .goal .ico { width: 44px; height: 44px; }
body.portrait #rules .goal b { font-size: 32px; } body.portrait #rules .goal span { font-size: 26px; }
body.portrait #rules .steps { gap: 12px; }
body.portrait #rules .steps li { padding: 18px 20px 18px 84px; }
body.portrait #rules .steps li::before { width: 46px; height: 46px; left: 20px; font-size: 24px; }
body.portrait #rules .steps li > b:first-child { display: block; margin: 0 0 4px; font-size: 30px; }
body.portrait #rules .note { padding: 18px 22px; }
body.portrait #rules .tgrid, body.portrait #rules .kwgrid, body.portrait #rules .lgrid { grid-template-columns: 1fr; gap: 12px; }
body.portrait #rules .tgrid > div { padding: 20px 22px; }
body.portrait #rules .tgrid > div > b { font-size: 30px; margin-bottom: 6px; }
body.portrait #rules .tgrid span b { display: inline; margin: 0; font: 700 1em var(--font-ui); letter-spacing: 0; color: #fff4d6; }
body.portrait #rules .tgrid span { font-size: 28px; line-height: 1.5; }
body.portrait #rules kbd { font-size: 22px; padding: 2px 10px; }
body.portrait #rules .kwc { padding: 18px 20px; gap: 18px; }
body.portrait #rules .kwc:hover { transform: none; }
body.portrait #rules .kwi { width: 64px; height: 64px; } body.portrait #rules .kwi .ico { width: 32px; height: 32px; }
body.portrait #rules .kwc b { font-size: 30px; } body.portrait #rules .kwc span { font-size: 26px; line-height: 1.45; }
body.portrait #rules .lrow { padding: 16px 20px 16px 16px; gap: 20px; }
body.portrait #rules .lrow .la { width: 104px; height: 104px; border-radius: 18px; }
body.portrait #rules .lrow b { font-size: 32px; display: block; }
body.portrait #rules .lrow em { font-size: 24px; } body.portrait #rules .lrow em .ico { width: 22px; height: 22px; }
body.portrait #rules .lrow div > span { font-size: 26px; line-height: 1.45; }
body.portrait #rules .setgrid { grid-template-columns: 1fr 1fr; gap: 12px; }
body.portrait #rules .setc { padding: 20px; }
body.portrait #rules .setc b { font-size: 30px; } body.portrait #rules .setc span { font-size: 25px; line-height: 1.4; } body.portrait #rules .setc em { font-size: 22px; }