/* Arcalink play.html - the full-screen pages: title, grimoire (魔導書), end screen, card-pick layout, start-gem pick, ad spots, loading cover. Owner: C3.
   Art plan 3-1 (frames: one --fr / --fill / --ring mechanism, same as .chip), 6-1, 6-2, 6-5, 6-6; spec ch.11, 20.
   Motion: transform and opacity only. No border-radius except round mana things (the title's ripple rings, motes). */

/* ---------- framed part (.fb): same mechanism as .chip / .btn in arca-tokens.css (the element paints the ring, ::before the fill 1.5px inside, both bevelled) */
.fb, .pg, .tab, .gc, .sg { --fr: var(--ar-fr-m); --bw: var(--ar-border); --fill: var(--ar-page); --ring: linear-gradient(180deg, var(--ar-brass-hi), var(--ar-brass-lo));
  position: relative; isolation: isolate; background: var(--ring);
  clip-path: polygon(var(--fr) 0, calc(100% - var(--fr)) 0, 100% var(--fr), 100% calc(100% - var(--fr)), calc(100% - var(--fr)) 100%, var(--fr) 100%, 0 calc(100% - var(--fr)), 0 var(--fr)); }
.fb::before, .pg::before, .tab::before, .gc::before, .sg::before { content: ""; position: absolute; inset: var(--bw); z-index: -1; background: var(--fill); --f2: calc(var(--fr) - var(--bw) * .586);
  clip-path: polygon(var(--f2) 0, calc(100% - var(--f2)) 0, 100% var(--f2), 100% calc(100% - var(--f2)), calc(100% - var(--f2)) 100%, var(--f2) 100%, 0 calc(100% - var(--f2)), 0 var(--f2)); }
.pg, .tab, .gc { --fr: var(--ar-fr-s); }
.sg, .bk-det, .en-card { --fr: var(--ar-fr-l); }
.ico { display: block; width: 20px; height: 20px; flex: none; }
.btn .ico { width: 22px; height: 22px; }
.arw { display: inline-block; width: 12px; height: 9px; margin: 0 5px; background: var(--ar-brass-hi); clip-path: polygon(0 35%, 55% 35%, 55% 0, 100% 50%, 55% 100%, 55% 65%, 0 65%); vertical-align: baseline; }
.gem, .wi, .gpic, .big, .pic { --gc: var(--ar-mana); }

/* ---------- the layer that holds title / grimoire / end */
#modal { top: 0; bottom: 0; z-index: 6; display: none; pointer-events: auto; background: none; padding: 0; }
#modal.on { display: block; }
.scr { position: absolute; inset: 0; overflow: hidden; }
.fadein { animation: scrIn .2s ease-out; }
@keyframes scrIn { 0% { opacity: 0; } 100% { opacity: 1; } }

/* ---------- title (6-1). The picture is a CSS background (so the alpha publisher finds it); it is decoded before the cover goes (SCR.preload). */
.tt { background: var(--ar-night); }
/* The picture fills only the top --A of the screen (bottom-anchored inside that box): the hooded guardian at the picture's lower right stands above the buttons instead of behind them (11-27).
   Below the picture the plain night colour shows; the picture's last 9 % fades into it. */
.tt { --A: .82; }
.tt-art { position: absolute; left: 0; right: 0; top: 0; height: calc(var(--A) * 100%); background: var(--ar-night) url("../assets/arca/title.webp?v=e8b17eb2c2") 50% 100% / cover no-repeat; }
.tt-art::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 9%; background: linear-gradient(180deg, rgba(8,11,22,0), var(--ar-night)); }
.tt.noart .tt-art { background: linear-gradient(180deg, #0b1030, #1a2150 52%, #0a0e22); }
.tt-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,11,22,.45), rgba(8,11,22,0) 34%, rgba(8,11,22,0) 58%, rgba(8,11,22,.86) 100%); }
/* Picture coordinates: the picture (1080 x 1784 px) covers the top --A (82 %) of the title, bottom-anchored, so it is height-bound on tall screens and
   width-bound on wide ones. .tt is a size container; --S = CSS px per picture px; a picture point (px, py) sits at
   x = 50cqw + (px - 540) * S, y = 82cqh - (1784 - py) * S. (2026-11-29: the old maths assumed height-bound only, so on wide screens the rings
   and the emblem drifted.) The crystal base / platform centre is (547, 1249). Change these numbers if the picture changes. */
.tt { container-type: size; }
.tt-core, .tt-ring, .tt-cr { --S: max(100cqw / 1080, 82cqh / 1784); --cx: calc(50cqw + 7 * var(--S)); --cy: calc(82cqh - 535 * var(--S)); }
.tt-core { position: absolute; left: var(--cx); top: var(--cy); width: calc(749 * var(--S)); transform: translate(-50%, -50%) scaleY(.42); pointer-events: none; }
.tt-cr { position: absolute; left: var(--cx); top: calc(var(--H) * .62 * var(--A)); height: calc(var(--H) * .22 * var(--A)); width: calc(var(--H) * .11 * var(--A)); transform: translate(-50%, -50%); pointer-events: none; }
.tt-fx { position: absolute; inset: 0; pointer-events: none; }
/* moving ripple rings (owner 11-29): they start under the crystal and pass exactly over the painted rings: the small ring on the platform (240 px wide, centre 6 px lower) and the bright ground ring (554 px wide, .52 tall, centre 33 px lower). The box is 321 x 128 picture px (.4 tall); keyframes scale x / y apart and slide the centre down; the stops sit where the width grows at one steady speed (linear), so the ring never slows. */
.tt-ring { position: absolute; left: var(--cx); top: var(--cy); width: calc(321 * var(--S)); height: calc(128.4 * var(--S)); border: 2px solid var(--ar-mana); border-radius: 50%; opacity: 0; transform: translate(-50%, -50%) scale(.2); animation: ttRing 2.2s linear infinite; will-change: transform, opacity; }
.tt-ring.b { animation-delay: 1.1s; }
@keyframes ttRing {
  0% { opacity: .9; transform: translate(-50%, -50%) scale(.2); }
  29.7% { opacity: .85; transform: translate(-50%, calc(-50% + 6 * var(--S))) scale(.75); }
  82.7% { opacity: .5; transform: translate(-50%, calc(-50% + 33 * var(--S))) scale(1.73, 2.23); }
  100% { opacity: 0; transform: translate(-50%, calc(-50% + 40 * var(--S))) scale(2.05, 2.55); } }
.tt-fx .mote { position: absolute; top: calc(var(--H) * .66 * var(--A)); width: 4px; height: 4px; border-radius: 50%; background: var(--ar-mana-hi); opacity: 0; animation: ttMote 5s linear infinite; will-change: transform, opacity; }
@keyframes ttMote { 0% { opacity: 0; transform: translate(0, 0); } 15% { opacity: .9; } 100% { opacity: 0; transform: translate(var(--mx, 8px), calc(var(--H) * -.34 * var(--A))); } }
.tt-tree { position: absolute; bottom: 0; width: 24%; height: 44%; fill: #04060d; opacity: .94; transform-origin: 50% 100%; animation: ttSway 7s ease-in-out infinite alternate; will-change: transform; }
.tt-tree.l { left: 8px; } .tt-tree.r { right: 8px; animation-delay: -3.5s; animation-duration: 8.5s; }
@keyframes ttSway { 0% { transform: rotate(-1.2deg); } 100% { transform: rotate(1.2deg); } }
.tt-head { position: absolute; left: 0; right: 0; top: calc(var(--H) * .12); text-align: center; pointer-events: none; }
.tt-word { display: block; width: 82%; margin: 0 auto; overflow: visible; filter: drop-shadow(0 2px 3px rgba(0,0,0,.7)); }
.wm-o { fill: #0a0c18; stroke: #0a0c18; stroke-width: 64; stroke-linejoin: miter; stroke-miterlimit: 2; }
.wm-r { fill: none; stroke: #fff6d8; stroke-width: 7; stroke-linejoin: miter; opacity: .55; }
.wm-l { fill: none; stroke: var(--ar-brass); stroke-width: 9; }
.wm-a0 { fill: none; stroke: var(--ar-mana); stroke-width: 20; opacity: .3; }
.wm-a1 { fill: none; stroke: var(--ar-mana-hi); stroke-width: 9; opacity: .8; }
.wm-d { fill: var(--ar-mana-hi); stroke: var(--ar-ink); stroke-width: 14; }
.tt-sub { margin-top: 8px; font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--ar-text-sub); text-shadow: 0 1px 2px #000; }   /* owner 11-29: the subtitle stays Japanese */
.tt-ja { margin-top: 3px; font-size: 11px; font-weight: 700; letter-spacing: .5em; padding-left: .5em; color: var(--ar-brass-hi); opacity: .85; text-shadow: 0 1px 2px #000; }
@media (max-height: 620px) { .tt-low { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 6px; } .tt-low .tt-ja { margin-top: 0; } }
.tt-btns { position: absolute; left: 0; right: 0; bottom: max(calc(var(--H) * .105), 76px); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.tt-btns .btn.primary { width: 260px; }
.tt-row { display: flex; gap: 8px; width: 260px; } .tt-row .btn { flex: 1; min-width: 0; padding: 6px 8px; white-space: nowrap; }
.bi { display: flex; width: 22px; height: 22px; } .bi .ico { width: 100%; height: 100%; }
.tt-cb { gap: 4px; } .tt-cb .ico { width: 18px; height: 18px; } .tt-cb .num { color: var(--ar-brass-hi); }
.tt-foot { position: absolute; left: 8px; right: 12px; bottom: calc(env(safe-area-inset-bottom) + 8px); display: flex; justify-content: space-between; align-items: center; }
.sndb { appearance: none; border: 0; background: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--ar-text-sub); cursor: pointer; }
.sndb .x { display: none; } .sndb.off .w { display: none; } .sndb.off .x { display: inline; }

/* ---------- the 刻印 emblem (core magic circle): rings and sigils grow with the steps taken */
.emblem { display: block; width: 100%; height: auto; overflow: visible; }
.emblem.sm { width: 56px; height: 56px; flex: none; }
.eb-r0 { fill: none; stroke: var(--ar-steel); stroke-width: .8; opacity: .4; }
.eb-r1 { fill: none; stroke: var(--ar-mana); stroke-width: 1; opacity: .7; }
.eb-r2 { fill: none; stroke: var(--ar-mana-hi); stroke-width: 1.4; stroke-dasharray: 10 6; opacity: .8; }
.eb-r3 { fill: none; stroke: var(--ar-mana); stroke-width: 1; stroke-dasharray: 3 5; opacity: .8; }
.eb-r4 { fill: none; stroke: var(--ar-mana-hi); stroke-width: 1.6; opacity: .9; }
.eb-ray { stroke: var(--ar-mana); stroke-width: 1.6; opacity: .6; }
.eb-sg { fill: none; stroke: var(--ar-steel-lo); stroke-width: 5; opacity: .45; }
.eb-sg.on { stroke: var(--ar-mana); opacity: 1; }
.eb-gl { opacity: .3; } .eb-gl.on { opacity: 1; }
.eb-spin { animation: ebSpin 26s linear infinite; will-change: transform; } .eb-spin2 { animation: ebSpin 40s linear infinite reverse; will-change: transform; }
@keyframes ebSpin { to { transform: rotate(360deg); } }
.emblem.sm .eb-spin, .emblem.sm .eb-spin2 { animation: none; }

/* ---------- grimoire (6-2) */
.bk-scr { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 8px; background: radial-gradient(ellipse at 50% 0, #1b2344, #0c1022 72%);
  padding: calc(env(safe-area-inset-top) + 8px) 14px calc(env(safe-area-inset-bottom) + 10px); overflow: hidden; }
.bk-scr::before, .bk-scr::after { content: ""; position: absolute; top: 0; bottom: 0; width: 6px; background: linear-gradient(90deg, var(--ar-brass-lo), var(--ar-brass-hi) 50%, var(--ar-brass-lo)); pointer-events: none; z-index: 2; }
.bk-scr::before { left: 0; } .bk-scr::after { right: 0; }
.bk-top { flex: none; display: flex; flex-direction: column; gap: 8px; }
.bk-bar { display: flex; align-items: center; gap: 8px; height: 48px; }
.bk-bar h2 { flex: 1; margin: 0; text-align: center; font-size: 18px; font-weight: 800; letter-spacing: .24em; padding-left: .24em; }
.bk-back { width: 48px; padding: 0; flex: none; } .bk-back .ico { width: 20px; height: 20px; }
.pg { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 10px; font-weight: 700; flex: none; }
.pg .num { font-size: 18px; color: var(--ar-text); min-width: 2.4em; }
.bk-prog { display: flex; align-items: center; gap: 10px; padding: 6px 10px; min-height: 60px; --fr: var(--ar-fr-m); }
.gl { appearance: none; border: 0; background: none; padding: 0; flex: 1; min-width: 0; min-height: 44px; display: flex; align-items: center; gap: 10px; color: var(--ar-text); cursor: pointer; text-align: left; }
.gpic { width: 36px; height: 36px; display: flex; flex: none; } .gpic .ai, .gpic .gem { width: 100%; height: 100%; }
.gbar, .gg { flex: 1; height: 8px; position: relative; overflow: hidden; background: rgba(255,255,255,.09); clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%); }
.gbar i, .gg i { position: absolute; inset: 0; background: var(--ar-mana); transform-origin: 0 50%; }
.gg.d i { background: var(--ar-danger); }
.gn { font-size: 14px; font-weight: 700; flex: none; } .gn .num { min-width: 0; } .gn .ico { width: 20px; height: 20px; }
.bk-tabs { display: flex; gap: 4px; height: 50px; align-items: flex-end; }
.tab { appearance: none; border: 0; flex: 1; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 4px; color: var(--ar-text-sub); cursor: pointer; --fill: var(--ar-page); --ring: color-mix(in srgb, var(--ar-brass) 55%, var(--ar-ink)); transition: transform 120ms; }
.tab .num { font-size: 16px; min-width: 0; flex: none; } .tab .ico { width: 18px; height: 18px; }
.tab.on { transform: translateY(-6px); color: var(--ar-text); --fill: var(--ar-page-hi); --ring: linear-gradient(180deg, var(--ar-brass-hi), var(--ar-brass)); }
.tab.lk .ico:last-child { width: 14px; height: 14px; } .tab.lk { opacity: .75; }
.tab.flash { animation: tabFlash .7s ease-in-out 3; } @keyframes tabFlash { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.bk-grid { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; touch-action: pan-y; padding: 6px 0 4px; -webkit-overflow-scrolling: touch; }
.gcs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gc { appearance: none; border: 0; min-height: 112px; padding: 8px 4px 6px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 4px; color: var(--ar-text); cursor: pointer; text-align: center; --fill: var(--ar-pit); --ring: color-mix(in srgb, var(--ar-brass) 55%, var(--ar-ink)); }
.gc.bw { --ring: linear-gradient(180deg, var(--ar-brass-hi), var(--ar-brass-lo)); }
.gc.eg { --ring: linear-gradient(180deg, var(--ar-mana), var(--ar-mana-lo)); }
.gc.t0 { --ring: linear-gradient(180deg, var(--ar-steel-hi), var(--ar-steel-lo)); } .gc.t1 { --ring: linear-gradient(180deg, var(--ar-gold-hi), var(--ar-gold-lo)); } .gc.t2 { --ring: linear-gradient(180deg, var(--ar-forb), var(--ar-forb-lo)); --fill: var(--ar-forb-bg); }
.gc:not(.own):not(.can):not(.sel) { --ring-dim: 1; }
.gc.sel { --ring: linear-gradient(180deg, var(--ar-brass-hi), var(--ar-brass)); }
.gc.can::after { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--ar-mana); clip-path: inherit; animation: arPulse 1.2s ease-in-out infinite; }
.gc.lk { opacity: .8; }
.gc .pic { width: 52px; height: 52px; display: flex; position: relative; flex: none; } .gc .pic .ai, .gc .pic .gem, .gc .pic .ico { width: 100%; height: 100%; }
.gc.sel .pic { transform: scale(1.06); }
.gc.goal .pic::after { content: ""; position: absolute; right: -8px; top: -4px; width: 12px; height: 12px; background: var(--ar-mana); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.gc .nm { font-size: 11px; font-weight: 700; white-space: nowrap; color: var(--ar-text); }
.gc .dots { display: flex; gap: 3px; height: 8px; align-items: center; } .gc .dia { width: 6px; height: 6px; } .gc .dia.cur:not(.on) { --dc: var(--ar-mana); }
.gc .price, .cost { color: var(--ar-text); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; } .gc .price .ico, .cost .ico { width: 16px; height: 16px; } .gc .price .num, .cost .num { font-size: 13px; min-width: 0; }
.gc .price.off { color: var(--ar-text-off); } .cost.lack .num { color: var(--ar-danger); }
.gc .ok .ico, .gc .lkp .ico { width: 16px; height: 16px; }
.gc.just .pic > :first-child { animation: unveil .8s ease-out; }
@keyframes unveil { 0% { opacity: 0; transform: scale(.85); } 100% { opacity: 1; transform: scale(1); } }
.scan { position: absolute; left: -6px; right: -6px; top: 0; height: 3px; background: var(--ar-mana); animation: scanY .7s ease-in-out forwards; will-change: transform, opacity; pointer-events: none; }
@keyframes scanY { 0% { opacity: 1; transform: translateY(0); } 90% { opacity: 1; } 100% { opacity: 0; transform: translateY(52px); } }
.cond { display: flex; align-items: center; gap: 10px; padding: 6px 12px; min-height: 44px; margin-bottom: 8px; --fr: var(--ar-fr-s); }
.cond .ico, .cs svg { width: 24px; height: 24px; flex: none; } .cond .ct { font-size: 12px; font-weight: 700; color: var(--ar-text-sub); line-height: 1.3; min-width: 0; } .cs { display: inline-flex; align-items: center; gap: 6px; } .cs .num { font-size: 16px; }
.bk-det { flex: none; min-height: 150px; padding: 12px; display: flex; flex-direction: column; gap: 8px; --fr: var(--ar-fr-m); }
.bk-det.t0 { --ring: linear-gradient(180deg, var(--ar-steel-hi), var(--ar-steel-lo)); } .bk-det.t1 { --ring: linear-gradient(180deg, var(--ar-gold-hi), var(--ar-gold-lo)); } .bk-det.t2 { --ring: linear-gradient(180deg, var(--ar-forb), var(--ar-forb-lo)); }
.bk-det .row { display: flex; gap: 12px; align-items: flex-start; flex: 1; min-height: 72px; }
.bk-det .big, .dexsum .big { width: 72px; height: 72px; flex: none; display: flex; } .big .ai, .big .gem, .big .ico { width: 100%; height: 100%; }
.bk-det .tx { flex: 1; min-width: 0; } .bk-det .nm { font-size: 15px; font-weight: 800; } .bk-det .nm small { font-size: 11px; font-weight: 600; color: var(--ar-text-sub); margin-left: 4px; white-space: nowrap; }
.bk-det .ds { font-size: 12px; line-height: 1.45; color: var(--ar-text-sub); margin-top: 2px; word-break: auto-phrase; text-wrap: pretty; }
.bk-det .ds .lkc { display: flex; align-items: center; gap: 5px; margin-top: 6px; padding-top: 5px; border-top: 1px solid rgba(255,255,255,.16); font-size: 11px; color: var(--ar-gold, #d9b45a); } .bk-det .ds .lkc svg { width: 12px; height: 12px; flex: none; }
.delta-r { white-space: nowrap; } .delta-r .num { min-width: 0; font-size: inherit; text-align: left; } .delta-r .was { color: var(--ar-text-sub); } .delta-r .now { color: var(--ar-up); font-weight: 800; }
.bk-det .btn { width: 100%; } .bk-det .btn .cost { margin-left: 8px; color: inherit; }
.bk-det .btn.primary .cost { color: var(--ar-ink); } .bk-det .btn.primary .cost .num { font-size: 15px; }
.bk-det .left { text-align: right; font-size: 12px; color: var(--ar-text-sub); margin-top: -4px; } .bk-det .left .num { min-width: 0; }
.bk-det.empty, .dexsum { align-items: center; justify-content: center; flex-direction: row; } .dexsum .nm .num { font-size: 22px; }
.note-s { font-size: 12px; margin-left: 6px; }
.bk-dex { display: flex; flex-direction: column; gap: 4px; }
.dg { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.dx { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1; padding: 4px; background: var(--ar-pit); clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px), 0 4px); }
.dx .ai, .dx .gem, .dx > svg { width: 100%; height: 100%; } .dx .en .num { font-size: 14px; min-width: 0; color: var(--ar-text-off); } .dx.got .en .num { color: var(--ar-brass-hi); }
.dx .rk { position: absolute; bottom: 2px; left: 0; right: 0; display: flex; gap: 2px; justify-content: center; } .dx .rk .dia { width: 6px; height: 6px; }
.dx .nw { position: absolute; top: 2px; right: 2px; width: 9px; height: 9px; background: var(--ar-mana); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
/* 図鑑: 押すと下に詳細(2026-11-30) */
button.dx { border: 0; color: inherit; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; } button.dx:active { filter: brightness(1.25); }
.dx.sel { box-shadow: inset 0 0 0 2px var(--ar-mana); background: var(--ar-pit); } .dx.sel::after { content: ''; position: absolute; inset: 0; background: rgba(120,200,255,.10); pointer-events: none; }
.dexd .big > svg, .dexd .big .ai, .dexd .big .gem, .dexd .big .en { width: 100%; height: 100%; } .dexd .big { position: relative; } .dexd .big .rk { position: absolute; bottom: 2px; left: 0; right: 0; display: flex; gap: 3px; justify-content: center; } .dexd .big .rk .dia { width: 8px; height: 8px; } .dexd .big .nw { display: none; }
.dexd { position: relative; } .dexd .ds { text-wrap: wrap; word-break: auto-phrase; } .dexd .dxc { float: right; margin: 2px 0 0 8px; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ar-text-sub); } .dexd .dxc .ico, .dexd .dxc svg { width: 16px; height: 16px; }

/* ---------- end screen (6-6) */
.en.win { background: radial-gradient(ellipse at 50% 12%, rgba(255,214,140,.2), transparent 62%), rgba(10,12,26,.7); }
.en.lose { background: radial-gradient(ellipse at 50% 12%, rgba(40,60,130,.28), transparent 62%), rgba(6,9,24,.72); }
.en-sc { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; touch-action: pan-y; padding: calc(env(safe-area-inset-top) + 20px) 16px calc(env(safe-area-inset-bottom) + 132px); display: flex; flex-direction: column; gap: 12px; }
.en-h { margin: 4px 0 0; font-size: 28px; font-weight: 900; letter-spacing: .08em; text-align: center; line-height: 1.25; }
.en-h { text-wrap: balance; }
@media (max-width: 359px), (max-height: 639px) { .en-h { font-size: 24px; letter-spacing: .04em; } .small4 .rks { flex-direction: column; } .small4 .rks .sc { flex: none; } }   /* (round 7, 320 px) the heading stays on one line (it broke before a lone 「た」), the three rank tags take a row each instead of being cut at the right edge */
.en.win .en-h { color: var(--ar-mana-x); } .en.lose .en-h { color: var(--ar-text-sub); }
.en-tip { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 8px 12px 0; font-size: 13px; font-weight: 700; color: var(--ar-brass-hi); line-height: 1.45; } .en-tip > svg, .en-tip > .gem, .en-tip > .hi { width: 26px; height: 26px; flex: none; display: block; } .en-tip > span { min-width: 0; }
.en-sub { text-align: center; font-size: 14px; font-weight: 700; color: var(--ar-text-sub); margin-top: -6px; } .en-sub .num { min-width: 0; }
.en-card { padding: 12px; --fr: var(--ar-fr-m); }
.big3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.b3 { display: flex; flex-direction: column; align-items: center; gap: 4px; } .b3 .ico, .b3 svg { width: 28px; height: 28px; } .b3 .num { font-size: 24px; text-align: center; min-width: 0; }
.small4 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin-top: 10px; }
.sc { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; } .small4 .sc { min-width: 0; } .small4 .sl { color: var(--ar-text-sub); font-size: 12px; font-weight: 600; white-space: nowrap; } .small4 .sc .num { margin-left: auto; } .sc .ico, .sc svg { width: 18px; height: 18px; } .sc .num { min-width: 0; font-size: 14px; } .sc .wi.s { width: 20px; height: 20px; }
.wks, .pks { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; } .pks { margin-top: 8px; }
.wk { display: flex; flex-direction: column; align-items: center; width: 38px; } .wi { width: 36px; height: 36px; display: flex; } .wi .ai { width: 100%; height: 100%; } .wi.s { width: 20px; height: 20px; }
.lv { font-size: 11px; min-width: 0; color: var(--ar-text-sub); text-align: center; }
.pk { width: 36px; height: 36px; padding: 3px; background: var(--ar-pit); border: 1.5px solid var(--ar-steel-lo); display: flex; } .pk.t1 { border-color: var(--ar-gold); } .pk.t2 { border-color: var(--ar-forb); background: var(--ar-forb-bg); } .pk .ai { width: 100%; height: 100%; }
.pgl { display: flex; justify-content: space-between; align-items: center; }
.pgbig { display: inline-flex; align-items: center; gap: 8px; transform-origin: 0 50%; } .pgbig .ico { width: 32px; height: 32px; } .pgbig .num { font-size: 34px; text-align: left; min-width: 2.2em; color: var(--ar-text); }
.pgbig.pop { animation: popn .35s ease-out; } @keyframes popn { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 100% { transform: scale(1); } }
.pgbal { font-size: 13px; color: var(--ar-text-sub); } .pgbal .num { min-width: 0; font-size: 15px; color: var(--ar-text); }
.bds { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; } .bd { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; } .bd .ico, .bd svg { width: 20px; height: 20px; } .bd .num { min-width: 0; font-size: 14px; }
.newdex { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 10px; } .newdex > .ico { width: 22px; height: 22px; } .newdex .dx { width: 34px; height: 34px; aspect-ratio: auto; padding: 3px; }
.opened { margin-top: 8px; display: flex; gap: 10px; } .opened .op { color: var(--ar-mana); } .opened .op .ico { width: 20px; height: 20px; }
.best { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 6px; } .trk { display: flex; gap: 6px; align-items: center; flex: 1; }
.trk .dia { width: 12px; height: 12px; } .trk .dia.on { --dc: var(--ar-brass-hi); } .trk .dia.boss { --dc: var(--ar-danger); width: 16px; height: 16px; margin-left: 4px; } .trk .dia.boss.on { --dc: var(--ar-danger); }
.trk .dia.pb::before { content: ""; position: absolute; left: 50%; top: -8px; margin-left: -3px; width: 6px; height: 5px; background: var(--ar-mana); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.nb { font-size: 11px; font-weight: 800; color: var(--ar-ink); background: var(--ar-brass-hi); padding: 1px 6px; clip-path: polygon(3px 0, calc(100% - 3px) 0, 100% 3px, 100% calc(100% - 3px), calc(100% - 3px) 100%, 3px 100%, 0 calc(100% - 3px), 0 3px); }
.bhp { display: flex; align-items: center; gap: 8px; margin-top: 8px; } .bhp > svg { width: 20px; height: 20px; flex: none; } .bhp .num { min-width: 3em; font-size: 13px; }
.en .gl { margin-top: 4px; width: 100%; }
.lb { display: block; font-size: 11px; font-weight: 700; line-height: 1.3; letter-spacing: .04em; color: var(--ar-text-sub); }
.lb.sec { margin-top: 12px; }
.pgl .lb { margin-bottom: 2px; } .pgbal { text-align: right; } .pgbal .num { display: inline-block; }
.bhp .lb { flex: none; } .newdex .more { font-size: 13px; color: var(--ar-text-sub); white-space: nowrap; } .opened .op { font-size: 13px; }
/* element / release marks of the end screen: element colour instead of the default black */
.sc .m { fill: var(--rc, var(--ar-mana-x)); } .sc.fire { --rc: var(--ar-fire); } .sc.thunder { --rc: var(--ar-thunder); } .sc.ice { --rc: var(--ar-ice); } .sc.rl { --rc: var(--ar-mana-x); }
/* the main button stays at the bottom of the screen; the rest of the page scrolls under it */
.en-fix { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 16px calc(env(safe-area-inset-bottom) + 12px); background: linear-gradient(0deg, rgba(8,10,22,.94) 62%, transparent); pointer-events: none; }
.en-fix .btn { width: 100%; pointer-events: auto; }
.cb { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; color: var(--ar-text-sub); } .cb .ico { width: 20px; height: 20px; } .cb .num { min-width: 0; color: var(--ar-brass-hi); }
.btn.rw { width: 100%; } .btn.rw .cost { color: inherit; }
.en-btns { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 4px; } .en-btns .tt-row { width: 100%; }
/* ---------- ad spots (docs/specs/site-ads-imobile.md section 4 アルカリンク). The boxes come from frontend/site-ads.js (site-ads.css has the side ads); play-screens.js (ADS) sets the body classes.
   Result page: the 300x250's place is reserved from the start (the buttons never move), 44 px below the last button, shown 0.6 s after the page opens (body.arca-ad-res).
   Title (phones only): the 320x50 sits between the buttons (24 px or more above) and the foot row (the sound / account / gear row, 8 px or more below). Only on the title, and not under a dialog. */
.en-ad { display: flex; justify-content: center; align-items: flex-start; margin-top: 44px; min-height: 250px; }
#arcaAdPark { display: none; }
#arcaAdRes { visibility: hidden; }
body.arca-ad-res #arcaAdRes { visibility: visible; }
#arcaAdTitle { display: none; position: absolute; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom) + 74px); z-index: 7; pointer-events: none; }
#arcaAdTitle > * { pointer-events: auto; }
html.uaj-sp body.arca-ad-title:not(.arca-ad-dlg) #arcaAdTitle { display: flex; }
body:has(#acct.on) #arcaAdTitle { display: none; }
html.uaj-sp .tt-btns { bottom: max(calc(var(--H) * .105), calc(env(safe-area-inset-bottom) + 148px)); }   /* 24 px over the 320x50 (50 + 8 px over the foot row (58 px) + 8 px) */

/* ---------- card pick layout (6-5). The frames are css/arca-cards.css (B5, unchanged); this is the arrangement around them. */
#cards { padding-left: 16px; padding-right: 16px; gap: 8px; }
#cards .cth h2 { font-size: 18px; font-weight: 800; letter-spacing: .1em; display: flex; align-items: center; justify-content: center; gap: 8px; } #cards .cth h2 .num { min-width: 0; font-size: 18px; }
#cards .cth h2 svg { width: 20px; height: 20px; }
.cth .rule { margin: 6px 0 4px; }
.cmeta { display: flex; justify-content: center; align-items: center; gap: 12px; }
.cmeta .chip .num { font-size: 16px; color: var(--ar-coin); min-width: 2.6em; } .cmeta .chip svg { width: 18px; height: 18px; }
.chip.mk { gap: 2px; padding: 3px 10px; } .chip.mk .ico { width: 18px; height: 18px; } .chip.mk .none { display: flex; opacity: .3; } .chip.mk .plus { margin-left: 6px; font-family: var(--ar-num); font-size: 13px; color: var(--ar-brass-hi); }
.cdl { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 2px 0; }
#cards .cd { transition: scale 120ms; }
#cards .cd.sel { scale: 1.04; } #cards .cd.t2.sel { scale: 1.07; }
#cards .cd.t2.sel::before { border-color: #7a1230; }      /* the selected forbidden card's rim: deep crimson (it was ochre and read as the neighbouring gold frame spilling over) */
#cards.many .cd.sel, #cards.many .cd.t2.sel { scale: 1.025; }
#cards .cd.t2 .pillar { left: 0; transform-origin: 0 50%; }
#cards .cd .fit { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--ar-text-sub); opacity: 1; max-width: calc(100% - 56px); flex-wrap: wrap; }
#cards .cd .fit.yes { color: var(--ar-up); }
#cards .cd .fit:not(.mats) { flex-wrap: nowrap; overflow-x: clip; overflow-y: visible; }   /* the weapon/gem icons stay on the label's line: a 3rd icon used to drop to a lone second line (QA 12-01); what does not fit is clipped */
#cards .cd .fit:not(.mats) .rw1 { flex: none; }
.cd .fit .fl { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.fd { width: 10px; height: 10px; flex: none; background: var(--ar-up); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.fd.off { background: var(--ar-text-sub); clip-path: polygon(evenodd, 50% 0, 100% 50%, 50% 100%, 0 50%, 50% 0, 50% 22%, 22% 50%, 50% 78%, 78% 50%, 50% 22%); }
.rw1 { display: inline-flex; align-items: center; gap: 2px; color: var(--ar-text); } .rw1 .num { min-width: 0; font-size: 12px; } .rw1 .gem, .rw1 > svg, .rw1 .wi.s { width: 22px; height: 22px; flex: none; } .rw1 .gem { display: flex; } .rw1 > svg { display: block; }
#cards .cd .fit:not(.yes) .rw1 { opacity: .6; }
#cards .cd .rr { min-width: 64px; padding: 4px 10px; gap: 4px; } #cards .cd .rr .ico { width: 20px; height: 20px; } #cards .cd .rr .price { gap: 3px; } #cards .cd .rr .price .num { font-size: 13px; min-width: 0; } #cards .cd .rr svg.coin { width: 14px; height: 14px; }
#cards .cd .el3 .btn { gap: 4px; padding: 2px 4px; } #cards .cd .el3 .btn svg { width: 18px; height: 18px; flex: none; } #cards .cd .el3 .hi2 { display: flex; }
.cgo { flex: none; height: 52px; opacity: 0; pointer-events: none; transition: opacity 160ms; } .cgo.on { opacity: 1; pointer-events: auto; } .cgo .btn { width: 100%; }
/* (round 7) short screens (iPhone SE in Safari 375x553, 360x560, 320x568): the pick uses the whole height. Title and gold / marks share one row, the rule goes, the
   hidden 「これにする」 row is 46 px, gaps shrink: the cards get ~140 px (they were 120 px with 150 px of empty space under them) */
@media (max-height: 620px) {
  #cards { padding-top: calc(env(safe-area-inset-top) + 8px); padding-bottom: calc(env(safe-area-inset-bottom) + 8px); gap: 6px; }
  #cards .cth { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
  #cards .cth h2 { font-size: 17px; letter-spacing: .06em; white-space: nowrap; } #cards .cth h2 .num { font-size: 17px; } #cards .cth h2 svg { width: 18px; height: 18px; }
  #cards .cth .rule { display: none; }
  #cards.forb .cth h2 { padding-left: 34px; }   /* the 禁呪 chain hangs from the top-left of the card into this row */
  .cmeta { gap: 6px; min-width: 0; } .cmeta .chip { padding-left: 8px; padding-right: 8px; } .cmeta .chip .num { font-size: 15px; min-width: 2.2em; } .chip.mk { padding: 3px 8px; }
  .cdl { gap: 6px; padding: 0; }
  .cgo { height: 46px; } .cgo .btn { min-height: 44px; height: 46px; }
}
/* start-gem pick (備え2) */
#cards.sgem { background: rgba(6,8,18,.92); }
.sgs { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-start; gap: 12px; padding-top: clamp(8px, 5vh, 44px); }   /* (11-30) the three cards sit up under the heading (they floated in the middle with ~170 px of empty space above them) */
.sg { appearance: none; border: 0; display: flex; align-items: center; gap: 14px; padding: 12px; min-height: clamp(96px, 14vh, 124px); text-align: left; color: var(--ar-text); cursor: pointer; --fill: var(--ar-pit); --ring: color-mix(in srgb, var(--ar-brass) 55%, var(--ar-ink)); transition: transform 120ms; }
.sg .gem { width: 64px; height: 64px; flex: none; } .sg .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .sg .nm { font-size: 15px; font-weight: 800; } .sg .ds { font-size: 12px; line-height: 1.4; color: var(--ar-text-sub); }
.sg.sel { transform: scale(1.03); --ring: linear-gradient(180deg, var(--ar-brass-hi), var(--ar-brass)); }

/* ---------- loading cover */
#load { position: fixed; inset: 0; z-index: 9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: radial-gradient(ellipse at 50% 0%, rgba(40,60,110,.5), transparent 62%), var(--ar-night); color: #E8E4D8; font-size: 15px; font-weight: 600; letter-spacing: .06em; }
#load .ld-d { width: 56px; height: 56px; background: linear-gradient(135deg, var(--ar-brass-hi), var(--ar-brass) 55%, var(--ar-brass-lo)); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); animation: cvPulse 2.4s ease-in-out infinite; will-change: transform, opacity; }
#load .ld-r { width: 150px; height: 1px; background: linear-gradient(90deg, transparent, var(--ar-brass-hi), transparent); }
#load .ld-w { font: 900 26px/1 "Cinzel", Georgia, "Times New Roman", serif; letter-spacing: .32em; padding-left: .32em; background: linear-gradient(180deg, #fff6d8, #d9a84e 60%, #7a5620); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* hide the run HUD behind the full-screen layers (the battlefield stays behind the end screen) */
body.inend #top, body.inend #dock, body.inend #relBtn, body.inend #build, body.inend #bkInfo, body.inend #boss, body.inend #hint { visibility: hidden; }
body.incards #top, body.incards #dock { opacity: 0; }   /* under the card pick (which covers them and takes every tap): opacity, not visibility, so only these two boxes restyle, not every chip and icon inside (Pixel 3, 11-27) */
/* the pick's backdrop is its own layer (.cbg, the first child): after a pick it fades while the cards fly out (play-fx.js cardPicked), with nothing repainted */
#cards, #cards.forb, #cards.sgem { background: none; }
#cards > .cbg { position: fixed; inset: 0; z-index: -1; pointer-events: none; will-change: opacity; background: rgba(6,8,18,.95); }
#cards.sgem > .cbg { background: rgba(6,8,18,.92); } #cards.forb > .cbg { background: radial-gradient(circle at 50% 45%, rgba(40,4,16,.96), rgba(2,1,4,.99) 72%); }
#cards.leave, #cards.leave * { pointer-events: none !important; }
.en.lose { background: radial-gradient(ellipse at 50% 12%, rgba(40,60,130,.22), transparent 62%), rgba(6,9,24,.3); }
.en.win { background: radial-gradient(ellipse at 50% 12%, rgba(255,214,140,.26), transparent 62%), rgba(10,12,26,.4); }

/* ---------- result page: damage breakdown + items + icon detail (docs/specs/arcalink-run-detail.md 3-4, 11-30). Everything is inline SVG: nothing to load. */
button.ed { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; text-align: inherit; }
button.ed:active { filter: brightness(1.3); }
.eqg + .eqg { margin-top: 10px; } .eqg .lb { text-align: center; margin-bottom: 4px; } .eqs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.eq .wk { width: 44px; } .eq .wi { width: 40px; height: 40px; } .eq .pk { width: 40px; height: 40px; } .eq .pk.rl { border-color: var(--ar-gold); }
.eq .gm { position: relative; width: 40px; height: 40px; padding: 3px; background: var(--ar-pit); border: 1.5px solid var(--ar-steel-lo); display: flex; } .eq .gm .gem { width: 100%; height: 100%; display: flex; } .eq .gm .gem svg { width: 100%; height: 100%; }
.eq .gm .num { position: absolute; right: 1px; bottom: 0; min-width: 0; font-size: 11px; line-height: 1; text-shadow: 0 0 3px var(--ar-ink), 0 0 3px var(--ar-ink); }
.eq-nt, .dm-nt { margin-top: 10px; text-align: center; font-size: 11px; line-height: 1.5; color: var(--ar-text-sub); }
.dm .lb.sec { text-align: center; } .dm-none { padding: 12px 0 4px; text-align: center; font-size: 13px; color: var(--ar-text-sub); }
.dm-tot { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 2px 0 10px; font-size: 13px; color: var(--ar-text-sub); font-weight: 700; } .dm-tot .num.tn { min-width: 0; font-size: 22px; color: var(--ar-text); }
.dr + .dr { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.1); }
.dr-h { display: flex; align-items: center; gap: 10px; } .dr-h .wi { width: 40px; height: 40px; flex: none; } .dr-m { flex: 1; min-width: 0; }
.dr-t { display: flex; align-items: baseline; gap: 8px; } .dr-t .dn { flex: 1; min-width: 0; font-size: 14px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-t .dd { min-width: 0; font-size: 15px; } .dr-t .dp { min-width: 44px; text-align: right; font-size: 13px; color: var(--ar-text-sub); } .dr-t .num { white-space: nowrap; }
.dr .gg { display: block; width: 100%; margin-top: 5px; flex: none; }
.dr-p { margin: 4px 0 0 50px; display: flex; flex-direction: column; }
.prt { display: flex; align-items: center; gap: 6px; width: 100%; min-height: 32px; padding: 2px 0; font-size: 12px; color: var(--ar-text-sub); }
.prt .pi { width: 22px; height: 22px; flex: none; display: flex; } .prt .pi > svg, .prt .pi .ai, .prt .pi .gem, .prt .pi .gem svg { width: 100%; height: 100%; }
.prt .pn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .prt .sr { margin-left: 5px; font-size: 10px; color: var(--ar-brass-hi); opacity: .85; }
.prt .num { min-width: 0; font-size: 12px; white-space: nowrap; } .prt .pd { color: var(--ar-text); } .prt .pp { min-width: 40px; text-align: right; }
.dr.ot .dr-h .wi { opacity: .9; }
.en-det { position: absolute; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(4,6,16,.8); }
.ed-box { width: min(100%, 380px); max-height: 100%; overflow-y: auto; } .ed-box .big { width: 72px; height: 72px; }
.ed-dm { display: flex; flex-direction: column; gap: 4px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.14); } .ed-dr { display: flex; align-items: baseline; gap: 10px; } .ed-dr .tn { min-width: 0; font-size: 24px; } .ed-p { font-size: 12px; color: var(--ar-text-sub); } .ed-p .num { min-width: 0; font-size: 13px; color: var(--ar-text); }
.ed-dm .gg { display: block; width: 100%; flex: none; }
body.arca-ad-dlg #arcaAdRes { visibility: hidden; }
.dr-h .wi > svg { width: 100%; height: 100%; } .eq-nt, .dm-nt { text-wrap: balance; }
.eq .wi { position: relative; } .eq .wi .cn { position: absolute; right: -2px; bottom: -2px; min-width: 0; font-size: 11px; line-height: 1; padding: 1px 3px; background: var(--ar-ink); border: 1px solid var(--ar-steel-lo); }

/* ---------- result page fixes (Fable review 11-30) ---------- */
.eq .pk, .eq .gm { position: relative; border: 0; padding: 4px; background: var(--ar-pit); box-shadow: inset 0 0 0 1.5px var(--ar-steel-lo); clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px), 0 4px); }      /* every picked picture sits on the same dark octagon (the wave pictures were black squares on the page) */
.eq .pk.t1 { box-shadow: inset 0 0 0 1.5px var(--ar-gold); } .eq .pk.t2 { box-shadow: inset 0 0 0 1.5px var(--ar-forb); background: var(--ar-forb-bg); } .eq .pk.rl { box-shadow: inset 0 0 0 1.5px var(--ar-gold); }
.eq .pk .ai { width: 100%; height: 100%; } .eq .pk .cn { position: absolute; right: 1px; bottom: 0; min-width: 0; font-size: 11px; line-height: 1; padding: 1px 3px; background: var(--ar-ink); }
.eq-nt.top { margin: 0 0 8px; }
.prt .pi.fire { --rc: var(--ar-fire); } .prt .pi.thunder { --rc: var(--ar-thunder); } .prt .pi .m { fill: var(--rc, var(--ar-mana-x)); }
.prt .sr { font-size: 11px; opacity: 1; } .dr-t .lv, .eq .gm .num, .eq .wi .cn { font-size: 12px; }
.prt .pp, .dr-t .dp { color: var(--ar-text-sub); }
.dr.ot .dr-h .wi { position: relative; width: 36px; height: 36px; margin: 2px; padding: 8px; background: var(--ar-pit); box-shadow: inset 0 0 0 1.5px var(--ar-steel-lo); clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px); opacity: 1; }
.eq-nt, .dm-nt { word-break: auto-phrase; }
.ed-box .row { align-items: center; min-height: 0; } .ed-box .big { width: 56px; height: 56px; }

/* ---------- result page, Fable fix round 3 (11-30) */
/* the battle effects that can still be running when the page opens (a rank-up, the boss entrance, a queued label) never show over it, and nothing tints it:
   the colour plates (#fxf) sit under the page but show through its translucent panels, so they go too. The flying pages (.fxp, #fxl) stay. */
body.inend .fxemb, body.inend .fxbs, body.inend .fxgate, body.inend .fxcurt, body.inend .fxbm, body.inend .fxrg, body.inend .fxgfl, body.inend .fxchn, body.inend .fxwarn, body.inend .fxnum, body.inend .tag,
body.inend .fxp:not(.paper), body.inend #fxf, body.inend #redflash, body.inend #label, body.inend #banner { display: none !important; }
.small4 .rks { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 14px; } .small4 .rks .sc { flex: 1 1 auto; min-width: max-content; white-space: nowrap; } .small4 .rks .sc .num { flex: none; min-width: 0; margin-left: 2px; } .small4 .rks .sc .dia { flex: none; }      /* (12-01) 「炎の位 12点◆」: a 2-digit number met the diamond; the tags wrap as whole tags instead of squeezing */
/* the damage rows: the part rows keep one column (icon / name / number / share); a row that opens a detail carries a small arrow, one that does not carries none */
.prt, button.prt.ed { position: relative; padding: 2px 14px 2px 0; }
.prt .chv { position: absolute; right: 3px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-top: 2px solid var(--ar-brass-hi); border-right: 2px solid var(--ar-brass-hi); transform: rotate(45deg); opacity: .75; pointer-events: none; }
.prt .pi .bdot { display: block; width: 5px; height: 5px; margin: auto; background: var(--ar-text-sub); border-radius: 50%; opacity: .7; }
/* 星回り of the result: its own block (icon + name + the effect in one line) */
.eqs.st { display: block; }
.eqst { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 10px 6px 6px; background: var(--ar-pit); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ar-brass) 60%, var(--ar-ink)); clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px); }
.eq .eqst .pk.st { width: 44px; height: 44px; flex: none; padding: 0; background: none; box-shadow: none; clip-path: none; }
.eqst .t { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 1px; text-align: left; } .eqst b { font-size: 14px; font-weight: 800; color: var(--ar-gold-hi); }
.eqst .ds { font-size: 11.5px; color: var(--ar-text-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 魔導書 図鑑: small headings, the chosen cell has a gold frame, a faint gold ring stands for a 星回り not found yet; the shelf's foot fades */
.dgh { margin: 2px 2px 0; font-size: 11px; font-weight: 800; letter-spacing: .12em; color: var(--ar-brass-hi); opacity: .9; }
.dx.sel { box-shadow: inset 0 0 0 2px var(--ar-gold-hi, #f0cf85); } .dx.sel::after { background: rgba(240,207,133,.10); }
.dx .dxring { display: block; width: 82%; height: 82%; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(240,207,133,.32); }
.bk-grid { padding-bottom: 22px; -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 20px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 20px), transparent); }
@media (max-width: 359px) { .dr-p { margin-left: 38px; } .prt .pp { min-width: 34px; } .prt { gap: 4px; } }

/* ---------- fix round 4 */
.eqst { align-items: flex-start; clip-path: none; box-shadow: none; border-top: 1.5px solid color-mix(in srgb, var(--ar-brass) 70%, var(--ar-ink)); border-bottom: 1.5px solid color-mix(in srgb, var(--ar-brass) 70%, var(--ar-ink)); padding: 8px 6px; }      /* lines above and below only: no cut corners */
.eqst .ds { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.4; word-break: auto-phrase; }
.eq .eqst .pk.st { align-self: center; }
.dexd, .dexd .row { min-height: 0; }
.dexd .nm { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; } .dexd .nm .dxc { float: none; order: 2; margin: 0; flex: none; } .dexd .nm .nmt { order: 1; min-width: 0; }
.gn { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; } .en .gpic { width: 30px; height: 30px; } .en .gl { gap: 8px; }
.best { margin-top: 6px; padding-top: 4px; }

.dexd, .dexsum { min-height: 124px; } .dexd .ds { text-wrap: wrap; word-break: auto-phrase; overflow-wrap: anywhere; }      /* the same height with or without a choice; the text runs to the right edge */
body.inend #fxl { z-index: 30; }      /* the flying pages are in front of the dim and every panel */
.gmid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; } .gnm { font-size: 13px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .gmid .gbar { flex: none; width: 100%; }

/* a group of 6 / 8 / 9 / 10 icons breaks into even rows (3+3, 4+4, 5+4, 5+5), never 5+1 / 7+1 */
.eqs[data-n="6"] { max-width: 150px; margin: 0 auto; } .eqs[data-n="8"] { max-width: 200px; margin: 0 auto; } .eqs[data-n="9"], .eqs[data-n="10"] { max-width: 250px; margin: 0 auto; }
@media (max-width: 359px) { .eqs[data-n="7"] { max-width: 200px; margin: 0 auto; } }
.rw1.hh .m { fill: var(--rc, var(--ar-mana-x)); } .rw1.hh.fire { --rc: var(--ar-fire); } .rw1.hh.thunder { --rc: var(--ar-thunder); } .rw1.hh.ice { --rc: var(--ar-ice); }      /* (12-01 QA) the 「構成に合う」 element icons had no fill: near-black on the dark card */
#cards .cd .tx > .fit.tight .fl { margin-right: 1px; gap: 2px; } #cards .cd .tx > .fit.tight .fl > span { font-size: 11px; letter-spacing: -.04em; } #cards .cd .tx > .fit.tight .rw1 { gap: 0; } #cards .cd .tx > .fit.tight .rw1 > svg, #cards .cd .tx > .fit.tight .rw1 .gem, #cards .cd .tx > .fit.tight .rw1 .wi.s { width: 15px; height: 15px; }      /* (12-01 QA) set by fitCard when the icons overflow */

/* ---------- 長旅 result (12-01): 踏破 / 無限 n ウェーブ in two steps */
.jrn { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; }
.jrn .jr-s { display: flex; align-items: center; gap: 8px; min-height: 30px; }
.jrn .jr-ck { display: flex; width: 22px; height: 22px; flex: none; align-items: center; justify-content: center; } .jrn .jr-ck svg { width: 100%; height: 100%; display: block; } .jrn .jr-ck .dia { width: 12px; height: 12px; }
.jrn .jr-k { font-size: 20px; font-weight: 900; letter-spacing: .12em; } .jrn .jr-v { font-size: 14px; font-weight: 700; color: var(--ar-text-sub); } .jrn .jr-v small { font-size: 12px; font-weight: 600; }
.jrn .jr-s.endl .jr-v { margin-left: 2px; color: var(--ar-text); } .jrn .jr-s.endl .jr-v .num { min-width: 0; font-size: 22px; color: var(--ar-coin-hi); }
.jrn .jr-s.endl .nb { margin-left: auto; flex: none; }
.jrn .jr-p { font-size: 12px; color: var(--ar-text-sub); padding-left: 30px; } .jrn .jr-p .num { min-width: 0; font-size: 13px; color: var(--ar-text); }

/* ---------- 魔導書 記録 tab (12-01 長旅): the own best 無限ウェーブ by depth, the single chapters that are open */
.bk-rec { display: flex; flex-direction: column; gap: 10px; padding: 2px 2px 8px; }
.rc-h { padding: 10px 12px 12px; --fr: var(--ar-fr-m); display: flex; flex-direction: column; gap: 6px; }
.rc-n { font-size: 12px; line-height: 1.6; color: var(--ar-text-sub); }
.rcr { display: flex; align-items: center; justify-content: space-between; min-height: 30px; padding: 0 2px; border-bottom: 1px solid rgba(240,207,133,.14); }
.rcd { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; } .rcd small, .rcv small { font-size: 12px; font-weight: 600; color: var(--ar-text-sub); } .rcd .num { min-width: 0; font-size: 16px; }
.rcf { display: flex; width: 16px; height: 16px; } .rcf svg { width: 100%; height: 100%; display: block; }
.rcv { display: inline-flex; align-items: baseline; gap: 4px; } .rcv .num { min-width: 0; font-size: 20px; color: var(--ar-coin-hi); } .rcr.none .rcv small { color: var(--ar-text-sub); opacity: .8; }
.rcc { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 2px; } .rcc .rci { display: flex; width: 20px; height: 20px; flex: none; } .rcc .rci svg { width: 100%; height: 100%; display: block; }
.rcc .rcn { font-size: 16px; font-weight: 800; min-width: 2.2em; } .rcc .rcs { font-size: 12px; font-weight: 600; color: var(--ar-text-sub); line-height: 1.4; } .rcc.on .rcs { color: var(--ar-up); }

/* 踏破 result (12-01 長旅 QA): a gold 「踏破」 heading, 「無限 n ウェーブまで到達」 under it (n gold and large when it is a new own best); the retire / defeat note is small */
.en.win .en-h.conq { font-size: 34px; letter-spacing: .24em; padding-left: .24em; color: var(--ar-brass-hi); background: linear-gradient(180deg, #fff6d0 0%, var(--ar-brass-hi) 40%, var(--ar-brass) 75%, var(--ar-brass-lo) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 2px 2px rgba(0,0,0,.8)); }
.en-sub.jr { margin-top: -4px; font-size: 15px; color: var(--ar-text); } .en-sub .en-n { min-width: 0; font-size: 22px; } .en-sub .en-n.pb { font-size: 48px; line-height: 1; color: #ffd76a; vertical-align: -4px; margin: 0 2px; }
.en-sm { text-align: center; font-size: 11px; font-weight: 600; color: var(--ar-text-sub); margin-top: -4px; }
/* 踏破 result card (12-01 QA 2): only the own best - a gold plate + 「これまで 3 → 9 ウェーブ」, or one line when it was not passed */
.jrn .jr-s.best { gap: 12px; flex-wrap: wrap; } .jrn .jr-s .jr-v { color: var(--ar-text); font-size: 15px; } .jrn .jr-v .num { min-width: 0; font-size: 18px; color: var(--ar-text); } .jrn .jr-v .num.jr-big { font-size: 34px; line-height: 1; color: #ffd76a; }
.tab .ico.lau { width: 26px; height: 26px; }
