/* ===================================================== In-site modal (pop-ups & confirmations) */
html.has-modal { overflow: hidden; }
.ec-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; }
.ec-modal[hidden] { display: none !important; }
.ec-modal-backdrop { position: absolute; inset: 0; background: rgba(4, 3, 6, .78); backdrop-filter: blur(3px); opacity: 0; transition: opacity .18s; }
.ec-modal-box {
	position: relative; width: min(460px, 100%); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow: auto; overscroll-behavior: contain;
	padding: 30px 28px 24px; border: 1px solid var(--line-strong);
	background: radial-gradient(ellipse at 50% 0%, rgba(168, 20, 26, .22), transparent 60%), linear-gradient(180deg, #17111a, #0b080d);
	box-shadow: 0 30px 90px rgba(0, 0, 0, .75), 0 0 0 1px rgba(233, 183, 101, .08) inset;
	transform: translateY(10px) scale(.98); opacity: 0; transition: transform .2s var(--ease), opacity .18s;
}
.ec-modal.is-open .ec-modal-backdrop { opacity: 1; }
.ec-modal.is-open .ec-modal-box { transform: none; opacity: 1; }
.ec-modal-x { position: absolute; top: 8px; right: 10px; width: 34px; height: 34px; border: 0; background: none; color: var(--muted); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.ec-modal-x:hover { color: var(--ink); }
.ec-modal-title { margin: 0 0 .6rem; font: 700 1.25rem/1.25 var(--f-head); color: #f1e2c4; }
.ec-modal-text { margin: 0 0 1.2rem; color: var(--ink-soft); }
.ec-modal-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.ec-modal-confirm .ec-modal-box { text-align: left; }
/* The questions (2026-10-13, the owner: "stylize the messages that are like this one better. Make them fancier"): a dark lacquered panel in a
   thin gold double frame with filigree in its corners, a crimson wax seal over an engraved gold title, an ornate rule, the question in warm
   parchment ink, centred; an ember glow as it opens */
.ec-modal-confirm .ec-modal-box {
	width: min(540px, 100%); padding: 34px 42px 30px; text-align: center; border: 1px solid rgba(214, 170, 82, .6);
	background:
		radial-gradient(ellipse 70% 45% at 50% -8%, rgba(196, 34, 30, .34), transparent 70%),
		radial-gradient(ellipse 80% 40% at 50% 112%, rgba(214, 150, 60, .1), transparent 70%),
		repeating-linear-gradient(115deg, rgba(255, 255, 255, .012) 0 2px, transparent 2px 6px),
		linear-gradient(180deg, #1d1317, #0d090b 72%);
	box-shadow: 0 34px 100px rgba(0, 0, 0, .82), 0 0 0 4px rgba(12, 7, 9, .95), 0 0 0 5px rgba(214, 170, 82, .32),
		inset 0 0 0 1px rgba(255, 226, 160, .07), inset 0 0 70px rgba(0, 0, 0, .55);
}
.ec-modal-confirm.is-open .ec-modal-box { animation: ecMcGlow 1.1s ease-out .05s both; }
@keyframes ecMcGlow { 0% { box-shadow: 0 34px 100px rgba(0, 0, 0, .82), 0 0 0 4px rgba(12, 7, 9, .95), 0 0 0 5px rgba(214, 170, 82, .32), 0 0 60px rgba(214, 120, 40, .5), inset 0 0 0 1px rgba(255, 226, 160, .07), inset 0 0 70px rgba(0, 0, 0, .55); } 100% { box-shadow: 0 34px 100px rgba(0, 0, 0, .82), 0 0 0 4px rgba(12, 7, 9, .95), 0 0 0 5px rgba(214, 170, 82, .32), 0 0 0 rgba(214, 120, 40, 0), inset 0 0 0 1px rgba(255, 226, 160, .07), inset 0 0 70px rgba(0, 0, 0, .55); } }
.ec-mc-corner { position: absolute; width: 46px; height: 46px; pointer-events: none; opacity: .9;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 46'%3E%3Cg fill='none' stroke='%23d9a441' stroke-linecap='round'%3E%3Cpath d='M3 43V9Q3 3 9 3h34' stroke-width='1.4'/%3E%3Cpath d='M8 37V13q0-5 5-5h24' stroke-width='.8' stroke-opacity='.55'/%3E%3Cpath d='M3 24q9 0 11-7t8-8M24 3q0 9-7 11' stroke-width='1.1'/%3E%3C/g%3E%3Cpath d='M3 3l6 6' stroke='%23f1d68a' stroke-width='1.2'/%3E%3Ccircle cx='13' cy='13' r='2.3' fill='%23f1d68a'/%3E%3Ccircle cx='3' cy='26' r='1.3' fill='%23d9a441'/%3E%3Ccircle cx='26' cy='3' r='1.3' fill='%23d9a441'/%3E%3C/svg%3E") no-repeat center / contain; }
.ec-mc-corner.is-tl { top: 6px; left: 6px; }
.ec-mc-corner.is-tr { top: 6px; right: 6px; transform: scaleX(-1); }
.ec-mc-corner.is-bl { bottom: 6px; left: 6px; transform: scaleY(-1); }
.ec-mc-corner.is-br { bottom: 6px; right: 6px; transform: scale(-1, -1); }
.ec-mc-seal { width: 58px; height: 58px; margin: -8px auto 8px; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .7)) drop-shadow(0 0 10px rgba(200, 40, 30, .35)); }
.ec-mc-seal svg { display: block; width: 100%; height: 100%; }
.ec-modal-confirm .ec-modal-title { margin: 0; font-size: 1.4rem; letter-spacing: .16em; text-transform: uppercase; text-align: center;
	background: linear-gradient(180deg, #fff3cf 0%, #f0cf7c 48%, #b27a26 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
	filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .9)) drop-shadow(0 0 10px rgba(240, 190, 90, .25)); }
.ec-mc-rule { position: relative; height: 14px; margin: 10px auto 16px; width: 72%; }
.ec-mc-rule::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: linear-gradient(90deg, transparent, rgba(214, 170, 82, .85) 30%, rgba(214, 170, 82, .85) 70%, transparent); }
.ec-mc-rule i { position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; transform: rotate(45deg); background: linear-gradient(135deg, #fff0be, #c48a2c); box-shadow: 0 0 0 3px #140d10, 0 0 0 4px rgba(214, 170, 82, .6), 0 0 10px rgba(240, 190, 90, .5); }
.ec-modal-confirm .ec-modal-text { margin: 0 0 1.5rem; color: #e6d6b6; font-size: 1.03rem; line-height: 1.65; text-shadow: 0 1px 2px rgba(0, 0, 0, .7); }
.ec-modal-confirm .ec-modal-actions { justify-content: center; gap: 16px; }
/* its close button (2026-10-13, the owner: "this X is not really visible"): a round gold-ringed button inside the corner ornament */
.ec-modal-confirm .ec-modal-x { top: 16px; right: 18px; z-index: 3; width: 34px; height: 34px; padding: 0; border: 1px solid #d6aa52; border-radius: 50%;
	background: radial-gradient(circle at 50% 35%, #3a1410, #12080a); color: transparent; font-size: 0; line-height: 0; overflow: hidden;
	box-shadow: 0 0 0 3px rgba(0, 0, 0, .45), 0 0 10px rgba(214, 170, 82, .35); transition: transform .2s, box-shadow .2s, color .2s; }
.ec-modal-confirm .ec-modal-x:hover, .ec-modal-confirm .ec-modal-x:focus-visible { transform: rotate(90deg); box-shadow: 0 0 0 3px rgba(0, 0, 0, .45), 0 0 16px rgba(255, 190, 90, .7); }
.ec-modal-confirm .ec-modal-x::before, .ec-modal-confirm .ec-modal-x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; border-radius: 1px;
	background: #ffe9b0; box-shadow: 0 0 6px rgba(255, 200, 110, .8); transform: rotate(45deg); }
.ec-modal-confirm .ec-modal-x::after { transform: rotate(-45deg); }
.ec-modal-confirm .ec-modal-x:hover::before, .ec-modal-confirm .ec-modal-x:hover::after, .ec-modal-confirm .ec-modal-x:focus-visible::before, .ec-modal-confirm .ec-modal-x:focus-visible::after { background: #fff; }
@media (max-width: 520px) { .ec-modal-confirm .ec-modal-box { padding: 30px 20px 22px; } .ec-mc-corner { width: 34px; height: 34px; } .ec-modal-confirm .ec-modal-title { font-size: 1.15rem; letter-spacing: .1em; } }
@media (prefers-reduced-motion: reduce) { .ec-modal-confirm.is-open .ec-modal-box { animation: none; } }

/* Item detail card */
.ec-modal-item .ec-modal-box { width: min(440px, 100%); padding: 20px 20px 18px; text-align: center; }
.item-card-img { display: block; width: 100%; height: auto; border: 1px solid var(--line); box-shadow: 0 12px 40px rgba(0, 0, 0, .6); }
.item-card-icon { width: 112px; height: 112px; margin: 10px auto; }
.item-card-meta { margin-top: 14px; }
.item-card-amount { margin: 0; color: var(--ink-soft); }
.item-card-amount b { color: var(--ember-2); }

/* ===================================================== Page loader: halo <-> horns */
.ec-loader {
	position: fixed; inset: 0; z-index: 1300;   /* above pop-up boxes (1000), the fight card (1100) and tips (1200) */ display: grid; place-items: center; align-content: center; gap: 18px;
	background: radial-gradient(ellipse at 50% 45%, rgba(40, 10, 14, .55), rgba(6, 5, 8, .88) 70%);
	opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s linear .25s; pointer-events: none;
}
.ec-loader.is-on { opacity: 1; visibility: visible; transition: opacity .25s; pointer-events: auto; }
.ec-loader-sigil { position: relative; width: 120px; height: 90px; }
.ec-loader-sigil svg { position: absolute; left: 0; width: 120px; }
.ec-halo { top: 6px; height: 60px; filter: drop-shadow(0 0 12px rgba(242, 207, 115, .85)); animation: ec-halo 2.4s ease-in-out infinite; }
.ec-horns { top: 0; height: 80px; filter: drop-shadow(0 0 12px rgba(224, 38, 44, .8)); animation: ec-horns 2.4s ease-in-out infinite; }
.ec-loader-text { margin: 0; font: 600 .7rem/1 var(--f-head); letter-spacing: .32em; text-transform: uppercase; color: var(--ember-2); animation: ec-pulse 1.2s ease-in-out infinite; }
@keyframes ec-halo {
	0%, 38% { opacity: 1; transform: translateY(0) rotateX(0deg) scale(1); }
	50%, 88% { opacity: 0; transform: translateY(-14px) rotateX(70deg) scale(.6); }
	100% { opacity: 1; transform: translateY(0) rotateX(0deg) scale(1); }
}
@keyframes ec-horns {
	0%, 38% { opacity: 0; transform: translateY(14px) scale(.6); }
	50%, 88% { opacity: 1; transform: translateY(0) scale(1); }
	100% { opacity: 0; transform: translateY(14px) scale(.6); }
}
@keyframes ec-pulse { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) {
	.ec-halo, .ec-horns, .ec-loader-text { animation: none; }
	.ec-horns { opacity: 0; }
}

/* ===================================================== Inventory groups, search, clickable items */
.inv-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.inv-tools .filter-chips { margin: 0; }
.inv-tools .chip small { margin-left: .35em; opacity: .65; font-size: .85em; }
.inv-group { margin: 0 0 26px; }
.inv-group-title { margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font: 700 .78rem/1 var(--f-head); letter-spacing: .22em; text-transform: uppercase; color: var(--ember); }
.inv-slot { padding: 0 !important; }
.inv-open { display: flex; flex-direction: column; align-items: center; width: 100%; height: 100%; padding: 14px 8px 12px; border: 0; background: none; color: inherit; font: inherit; text-align: center; cursor: pointer; }
.inv-open:focus-visible { outline: 1px solid var(--ember-2); outline-offset: -2px; }
.inv-slot:hover { border-color: var(--ember); }

/* ===================================================== Battle sign-up */
.battle-signup-intro { margin-bottom: 12px !important; }
.battle-signup-form { margin-top: 6px; }
.battle-signup-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ===================================================== Header dropdown "Eternal Conflict" */
.nav-drop { position: relative; display: flex; align-items: center; }
.nav-drop-trigger {
	display: inline-flex; align-items: center; gap: .5em; padding: .6em 0; border: 0; background: none; cursor: pointer;
	font: 600 .76rem/1 var(--f-head); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft);
}
.nav-drop-trigger:hover, .nav-drop.is-open .nav-drop-trigger, .nav-drop.is-current .nav-drop-trigger { color: var(--ink); }
.nav-drop-caret { width: 6px; height: 6px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.nav-drop.is-open .nav-drop-caret { transform: rotate(225deg) translateY(-1px); }
.nav-drop-menu {
	position: absolute; top: calc(100% + 10px); left: 50%; min-width: 210px; padding: 8px 0;
	border: 1px solid var(--line-strong); background: linear-gradient(180deg, #17111a, #0b080d); box-shadow: 0 20px 50px rgba(0, 0, 0, .65);
	opacity: 0; visibility: hidden; transform: translate(-50%, -6px); transition: opacity .18s, transform .18s, visibility 0s linear .18s;
}
.nav-drop:hover .nav-drop-menu, .nav-drop.is-open .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .18s, transform .18s; }
.nav-drop-menu::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; } /* hover bridge */
.main-nav .nav-drop-menu a { display: block; padding: .8em 1.4em; white-space: nowrap; }
.main-nav .nav-drop-menu a::after { display: none; }
.main-nav .nav-drop-menu a:hover, .main-nav .nav-drop-menu a[aria-current] { color: var(--ink); background: rgba(168, 20, 26, .22); }
@media (max-width: 1440px) and (min-width: 1061px) { .nav-drop-trigger { font-size: .7rem; letter-spacing: .15em; } }
@media (max-width: 1060px) {
	.nav-drop { flex-direction: column; }
	.nav-drop-trigger { font-size: 1rem; color: var(--ember-2); pointer-events: none; }
	.nav-drop-caret { display: none; }
	.nav-drop-menu { position: static; display: flex; flex-direction: column; align-items: center; gap: 1.3rem; min-width: 0; padding: 1rem 0 0; border: 0; background: none; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
	.main-nav .nav-drop-menu a { padding: 0; font-size: 1rem; }
	.main-nav .nav-drop-menu a:hover { background: none; }
}

/* ===================================================== The Hierarchy */
.hier { max-width: var(--wrap); margin: 0 auto; padding: 60px var(--gutter) 110px; }
.hier-sators { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 1000px; margin: 0 auto 60px; }
.hier-sator { position: relative; padding: 34px 30px 28px; text-align: center; border: 1px solid var(--line-strong); overflow: hidden; }
.hier-angel { --side: var(--holy); --side-2: #f2cf73; --side-soft: rgba(156, 195, 230, .14); }
.hier-demon { --side: var(--blood-glow); --side-2: #ff6a4d; --side-soft: rgba(224, 38, 44, .16); }
.hier-sator { background: radial-gradient(ellipse at 50% 0%, var(--side-soft), transparent 65%), linear-gradient(180deg, #17111a, #0b080d); box-shadow: 0 24px 60px rgba(0, 0, 0, .55); }
.hier-sator::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--side); opacity: .35; pointer-events: none; }
.hier-sigil { width: 92px; height: 60px; margin: 0 auto 12px; color: var(--side-2); filter: drop-shadow(0 0 14px var(--side)); }
.hier-sigil svg { width: 100%; height: 100%; }
.hier-kicker { margin: 0; font: 600 .66rem/1 var(--f-head); letter-spacing: .3em; text-transform: uppercase; color: var(--side); }
.hier-sator h3 { margin: .45em 0 .2em; font: 900 clamp(1.5rem, 3vw, 2.1rem)/1.1 var(--f-display); color: #f4e6c8; }
.hier-name { margin: 0 0 .8em; font: 600 1.05rem/1.2 var(--f-head); color: var(--ember-2); }
.hier-sator p:last-child { margin: 0; color: var(--ink-soft); }
.hier-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.hier-side-title { margin: 0 0 18px; padding-bottom: 12px; text-align: center; border-bottom: 1px solid var(--line); font: 700 1.3rem/1 var(--f-head); letter-spacing: .32em; text-transform: uppercase; color: var(--side); }
.hier-tier { margin: 24px 0 12px; font: 700 .82rem/1 var(--f-head); letter-spacing: .2em; text-transform: uppercase; color: var(--ember-2); }
.hier-tier small { margin-left: .6em; font: italic 400 .9rem/1 var(--f-body); letter-spacing: 0; text-transform: none; color: var(--muted); }
.hier-seats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hier-seat { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-left: 2px solid var(--side); background: rgba(13, 10, 14, .85); }
.hier-seat small { font: 600 .62rem/1.2 var(--f-head); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.hier-seat b { font: 700 1.02rem/1.2 var(--f-head); color: var(--ink); }
.hier-seat em { font-size: .85rem; color: var(--muted); }
.hier-seat.is-vacant { border-left-color: var(--line); opacity: .6; }
.hier-seat.is-vacant b { color: var(--muted); font-style: italic; }
.hier-more { text-align: center; margin: 40px 0 0; }
@media (max-width: 900px) { .hier-sators, .hier-sides { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .hier-seats { grid-template-columns: 1fr; } }

/* Gallery moderation */
.picture-admin { margin-top: 14px; text-align: center; }
.btn-danger { border-color: rgba(224, 38, 44, .6) !important; color: #ffb4a8 !important; }
.gallery-msg { margin: 24px auto 0; max-width: var(--wrap); }

/* My Character: lineage bar lines up with the stat tiles; more room above Seasons */
.char-lineage { width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--wrap) - 2 * var(--gutter)); box-sizing: border-box; }
.char-season-wrap { margin-top: 56px; }
.season-profile, .member .season-profile { padding-top: 34px; padding-bottom: 24px; }
.season-profile > .panel-title { margin-bottom: 1.4rem; }

/* ===== Hierarchy: hall of fame wall (framed portraits) ===== */
.hier-side { position: relative; padding: 26px 22px 30px; border: 1px solid var(--line);
	background:
		radial-gradient(ellipse at 50% 0%, var(--side-soft), transparent 60%),
		repeating-linear-gradient(90deg, rgba(255, 255, 255, .018) 0 2px, transparent 2px 96px),
		linear-gradient(180deg, #120d12, #08060a 70%);
	box-shadow: inset 0 0 80px rgba(0, 0, 0, .7), 0 24px 60px rgba(0, 0, 0, .45); }
.hier-side::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: linear-gradient(180deg, rgba(200, 147, 74, .25), rgba(200, 147, 74, .05)); border-top: 1px solid var(--line-strong); }
.hier-tier { text-align: center; }
.hier-tier small { display: block; margin: .5em 0 0; }
.hof-wall { list-style: none; margin: 0 0 8px; padding: 26px 0 6px; display: grid; justify-content: center; }
.hof-major { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 34px 26px; }
.hof-minor { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 26px 16px; }
.hof-item { position: relative; text-align: center; }
.hof-frame { --frame: linear-gradient(135deg, #5c3d14 0%, #e8c06e 22%, #8c6024 45%, #f6dc98 62%, #9a6a2a 80%, #4e3410 100%);
	position: relative; margin: 0; padding: 9px; background: var(--frame);
	box-shadow: 0 0 0 1px #1d1408, inset 0 0 0 1px rgba(255, 240, 200, .35), inset 0 0 0 4px rgba(0, 0, 0, .28), 0 16px 26px rgba(0, 0, 0, .75);
	transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.hier-demon .hof-frame { --frame: linear-gradient(135deg, #1b0a0a 0%, #6e1f17 20%, #2a0f0d 42%, #b0402a 60%, #3a1210 80%, #120606 100%);
	box-shadow: 0 0 0 1px #050202, inset 0 0 0 1px rgba(255, 120, 90, .35), inset 0 0 0 4px rgba(0, 0, 0, .35), 0 16px 26px rgba(0, 0, 0, .8); }
.hof-frame::before { content: ""; position: absolute; top: -7px; left: 50%; width: 12px; height: 12px; transform: translateX(-50%) rotate(45deg); z-index: 2;
	background: radial-gradient(circle at 35% 35%, #fff, var(--side-2) 45%, var(--side) 100%); box-shadow: 0 0 10px var(--side), 0 0 0 1px rgba(0, 0, 0, .6); }
.hof-canvas { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: radial-gradient(ellipse at 50% 35%, #2a2129, #0b080d 75%);
	border: 2px solid rgba(0, 0, 0, .7); box-shadow: inset 0 0 0 4px #0d0a0e, inset 0 0 0 5px rgba(200, 147, 74, .35); }
.hof-canvas img { position: absolute; inset: 5px; width: calc(100% - 10px); height: calc(100% - 10px); object-fit: cover; filter: saturate(.92) contrast(1.05); }
.hof-canvas::after { content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(125deg, rgba(255, 255, 255, .16), transparent 38%), radial-gradient(ellipse at 50% 120%, rgba(0, 0, 0, .55), transparent 60%); }
.no-pic .hof-canvas img, .hof-sator .hof-canvas img[src*="ad-logo"] { object-fit: contain; padding: 18%; opacity: .55; }
.hof-light { position: absolute; left: 50%; top: -30px; width: 140%; height: 70px; transform: translateX(-50%); pointer-events: none; z-index: 3;
	background: radial-gradient(ellipse at 50% 0%, rgba(255, 226, 170, .26), transparent 68%); transition: opacity .35s; opacity: .8; }
.hof-light::before { content: ""; position: absolute; left: 50%; top: 18px; width: 34%; height: 5px; transform: translateX(-50%); border-radius: 3px;
	background: linear-gradient(180deg, #e8c06e, #6a4818); box-shadow: 0 4px 12px rgba(255, 220, 160, .55); }
.hof-item:hover .hof-frame, .hier-sator:hover .hof-frame { transform: translateY(-5px); }
.hof-item:hover .hof-light { opacity: 1; }
.hof-plaque { position: relative; display: inline-grid; gap: 2px; min-width: 78%; margin: 12px auto 0; padding: 7px 12px 8px;
	background: linear-gradient(180deg, #3d2c14, #1e150a); border: 1px solid var(--line-strong); box-shadow: inset 0 1px 0 rgba(255, 230, 170, .25), 0 6px 14px rgba(0, 0, 0, .6); }
.hier-demon .hof-plaque { background: linear-gradient(180deg, #3a1210, #170707); }
.hof-plaque small { font: 600 .58rem/1.25 var(--f-head); letter-spacing: .14em; text-transform: uppercase; color: var(--ember); }
.hof-plaque b { font: 700 1.06rem/1.2 var(--f-head); color: #f4e6c8; overflow-wrap: anywhere; }
.hof-plaque em { font-size: .8rem; color: var(--muted); }
.hof-minor .hof-frame { padding: 6px; }
.hof-minor .hof-frame::before { width: 9px; height: 9px; top: -5px; }
.hof-minor .hof-light { top: -24px; height: 54px; }
.hof-minor .hof-plaque { padding: 5px 8px 6px; margin-top: 10px; min-width: 0; width: 100%; }
.hof-minor .hof-plaque b { font-size: .84rem; }
.hof-minor .hof-plaque small { font-size: .52rem; letter-spacing: .08em; }
.hof-item.is-vacant .hof-frame { filter: grayscale(1) brightness(.6); }
.hof-item.is-vacant .hof-canvas::before { content: "?"; position: absolute; inset: 0; display: grid; place-items: center; font: 900 2.6rem/1 var(--f-display); color: rgba(230, 218, 195, .25); }
.hof-item.is-vacant .hof-plaque b { color: var(--muted); font-style: italic; }
.hof-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); font-style: italic; }
.hof-sator { width: min(220px, 70%); margin: 30px auto 18px; padding: 12px; }
.hof-sator .hof-light { top: -34px; }
@media (max-width: 480px) {
	.hof-major { grid-template-columns: repeat(2, 1fr); gap: 30px 16px; }
	.hof-minor { grid-template-columns: repeat(2, 1fr); }
	.hier-side { padding: 22px 14px 26px; }
}
.hof-plaque b.is-long { font-size: .9rem; letter-spacing: 0; }
.hof-minor .hof-plaque b.is-long { font-size: .7rem; }

/* ===== My Character: in-world style armory room ===== */
.armory-room { position: relative; margin: 0 0 40px; padding: 46px 22px 26px; border: 14px solid transparent;
	border-image: linear-gradient(135deg, #3b2614, #6a4524 30%, #2a190c 55%, #5a3a1e 80%, #24160a) 1;
	background:
		linear-gradient(180deg, rgba(0, 0, 0, .35), transparent 22%, transparent 78%, rgba(0, 0, 0, .55)),
		repeating-linear-gradient(0deg, rgba(0, 0, 0, .28) 0 2px, transparent 2px 46px),
		repeating-linear-gradient(90deg, rgba(0, 0, 0, .22) 0 2px, transparent 2px 92px),
		radial-gradient(ellipse at 50% 40%, #5c4a2c, #2c2116 70%, #17110b);
	box-shadow: inset 0 0 90px rgba(0, 0, 0, .75), 0 24px 50px rgba(0, 0, 0, .55); }
.armory-room::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 26px; background: repeating-linear-gradient(90deg, #6e4a26 0 70px, #4a2f16 70px 74px); box-shadow: 0 6px 14px rgba(0, 0, 0, .6); }
.armory-wall { position: relative; display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 18px; align-items: start; }
.armory-col { display: grid; gap: 14px; }
.armory-body { position: relative; display: grid; gap: 12px; justify-items: center; padding-top: 4px; }
.ar-slot { position: relative; display: grid; grid-template-columns: 58px 1fr; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; text-align: left; color: var(--ink);
	background: rgba(12, 9, 7, .72); border: 1px solid rgba(217, 183, 122, .25); box-shadow: inset 0 0 18px rgba(0, 0, 0, .6); font: inherit; cursor: default; }
button.ar-slot { cursor: pointer; transition: border-color .2s, transform .2s, box-shadow .2s; }
button.ar-slot:hover, button.ar-slot:focus-visible { border-color: var(--ember-2); transform: translateY(-2px); box-shadow: inset 0 0 18px rgba(0, 0, 0, .6), 0 0 18px rgba(233, 183, 101, .25); outline: none; }
.ar-icon { display: grid; place-items: center; width: 58px; height: 58px; background: radial-gradient(circle, rgba(255, 230, 170, .12), rgba(0, 0, 0, .45) 70%); border: 1px solid rgba(217, 183, 122, .2); }
.ar-icon img { width: 54px; height: 54px; object-fit: contain; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .8)); }
.ar-label { display: grid; gap: 2px; font: 700 .6rem/1.2 var(--f-head); letter-spacing: .16em; text-transform: uppercase; color: #c9a86e; }
.ar-label b { font: 700 1rem/1.15 var(--f-head); letter-spacing: .02em; text-transform: none; color: #f4e6c8; }
.ar-label i { font: 600 .8rem/1 var(--f-head); font-style: normal; letter-spacing: .04em; color: var(--ember-2); font-variant-numeric: tabular-nums; }
.ar-slot.is-empty { opacity: .55; border-style: dashed; }
.ar-main { grid-template-columns: 1fr; justify-items: center; text-align: center; width: min(210px, 100%); background: rgba(12, 9, 7, .55); }
.ar-main .ar-icon { width: 104px; height: 104px; }
.ar-main .ar-icon img { width: 98px; height: 98px; }
.ar-main .ar-label { justify-items: center; }
.ar-gems { display: flex; gap: 4px; margin-top: 2px; }
.ar-gem { width: 9px; height: 9px; transform: rotate(45deg); border: 1px solid rgba(217, 183, 122, .5); background: rgba(0, 0, 0, .5); }
.ar-gem.has-gem { background: radial-gradient(circle at 35% 35%, #fff, #e9b765 45%, #8a5a12); box-shadow: 0 0 6px rgba(233, 183, 101, .7); }
.armory-total { display: grid; gap: 2px; padding: 12px; text-align: center; background: rgba(12, 9, 7, .6); border: 1px solid rgba(217, 183, 122, .2); }
.armory-total small { font: 700 .58rem/1.3 var(--f-head); letter-spacing: .16em; text-transform: uppercase; color: #c9a86e; }
.armory-total b { font: 700 1.3rem/1.2 var(--f-head); color: #f4e6c8; }
@media (max-width: 760px) {
	.armory-wall { grid-template-columns: 1fr 1fr; }
	.armory-body { grid-column: 1 / -1; grid-row: 1; }
}
@media (max-width: 420px) { .armory-wall { grid-template-columns: 1fr; } .armory-room { padding: 40px 10px 18px; } }

/* Clickable rows + detail pop-up */
.eq-open { display: inline-flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.eq-open:hover, .eq-open:focus-visible { color: var(--ember-2); text-decoration: underline; text-underline-offset: 3px; outline: none; }
.eq-table .eq-bonus { max-width: 320px; font-size: .9rem; color: var(--ember-2); }
.eq-table .jewel-gems { display: inline-flex; }
.ec-modal-equip .ec-modal-box { width: min(560px, 100%); text-align: left; }
.eqd-head { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.eqd-head img { width: 72px; height: 72px; object-fit: contain; flex: none; background: radial-gradient(circle, rgba(255, 230, 170, .14), transparent 70%); }
.eqd-head small { font: 700 .62rem/1 var(--f-head); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.eqd-id { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.eqd-id code { color: var(--ember-2); }
.eqd-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin: 0 0 14px; }
.eqd-stats div { padding: 10px 12px; border: 1px solid var(--line); background: rgba(9, 7, 10, .7); }
.eqd-stats dt { font: 700 .58rem/1 var(--f-head); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.eqd-stats dd { margin: 6px 0 0; font: 700 1.1rem/1.1 var(--f-head); color: #f4e6c8; }
.eqd-stats dd small { font: italic 400 .8rem/1 var(--f-body); color: var(--muted); }
.eqd-sub { margin: 14px 0 6px; font: 700 .72rem/1 var(--f-head); letter-spacing: .2em; text-transform: uppercase; color: var(--ember); }
.eqd-bonus { margin: 0 0 4px; color: var(--ember-2); }
.eqd-bonus.is-off { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(125, 114, 99, .5); }
.eqd-note { margin: 0; font-size: .88rem; font-style: italic; color: var(--muted); }
.eqd-gems { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.eqd-gems li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); background: rgba(9, 7, 10, .7); }
.eqd-gems li.is-empty { opacity: .6; }
.eqd-gems b { display: block; font: 700 .98rem/1.2 var(--f-head); color: #f4e6c8; }
.eqd-effect { display: block; margin: 2px 0 6px; color: var(--ember-2); font-size: .95rem; }
.eqd-life { display: block; height: 5px; background: rgba(255, 255, 255, .08); }
.eqd-life i { display: block; height: 100%; background: linear-gradient(90deg, #8a5a12, #e9b765); }
.eqd-gems small { font-size: .78rem; color: var(--muted); }

/* Spellbook icons */
.spell-grid li { grid-template-columns: 62px 1fr auto; gap: 12px; padding: 5px 12px 5px 5px; }
.spell-icon { width: 62px; height: 62px; object-fit: cover; border: 2px solid rgba(59, 38, 20, .55); box-shadow: 0 2px 6px rgba(0, 0, 0, .35); clip-path: inset(3px); }
.spell-grid li:not(.has-scrolls) .spell-icon { filter: grayscale(.85) brightness(.85); }
.spell-name { display: grid; gap: 2px; }
.spell-circle-tag { font: 700 .55rem/1 var(--f-head); letter-spacing: .18em; text-transform: uppercase; opacity: .7; }
.eq-table td.t-item { display: table-cell; vertical-align: middle; }
.eq-table td { vertical-align: middle; }
.spell-grid .spell-name { font-size: .98rem; }
.spell-grid .spell-count { font-size: 1.15rem; }
.armory-room { padding-top: 40px; }

/* ===== RP Ranks ===== */
.rp-ranks { padding-top: 70px; }
.rp-rank { margin: 16px 0 0; border: 1px solid var(--line); background: linear-gradient(90deg, var(--side-soft), rgba(9, 7, 10, .85) 55%); box-shadow: inset 3px 0 0 var(--side), 0 10px 24px rgba(0, 0, 0, .45); }
.rp-rank-head { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.rp-rank-sigil { width: 50px; height: 30px; color: var(--side-2); filter: drop-shadow(0 0 10px var(--side)); }
.rp-rank-sigil svg { width: 100%; height: 100%; }
.rp-rank-head h4 { margin: 0; font: 900 clamp(1.2rem, 2.4vw, 1.6rem)/1.15 var(--f-display); color: #f4e6c8; letter-spacing: .03em; }
.rp-rank-count { min-width: 38px; padding: 4px 10px; text-align: center; font: 700 .9rem/1.2 var(--f-head); color: var(--side-2); border: 1px solid var(--side); background: rgba(0, 0, 0, .35); }
.rp-rank-names { list-style: none; margin: 0; padding: 14px 20px 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px 18px; }
.rp-rank-names li { position: relative; padding-left: 14px; font: 600 .98rem/1.35 var(--f-head); color: var(--ink); overflow-wrap: anywhere; }
.rp-rank-names li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; transform: rotate(45deg); background: var(--side-2); opacity: .8; }
.rp-rank-empty { margin: 0; padding: 14px 20px 16px; font-style: italic; color: var(--muted); }

/* Inventory groups use the full panel width (they are <section>s, which get page gutters by default) */
.member .inv-group { padding: 0; }

/* ===== Inventory item pop-up (website-styled item card) ===== */
.ipop { --rare: var(--line-strong); text-align: left; }
.ipop-rare3 { --rare: #d9cf6a; } .ipop-rare4, .ipop-raid { --rare: #e0262c; } .ipop-tome { --rare: #3fae6a; } .ipop-artifact { --rare: #5b7cff; }
.ipop-head { display: flex; gap: 18px; align-items: center; padding: 4px 30px 16px 0; border-bottom: 1px solid var(--line); }
.ipop-icon { display: grid; place-items: center; width: 96px; height: 96px; flex: none; border: 1px solid var(--rare);
	background: radial-gradient(circle, rgba(255, 230, 170, .14), rgba(0, 0, 0, .5) 72%); box-shadow: 0 0 22px color-mix(in srgb, var(--rare) 35%, transparent), inset 0 0 18px rgba(0, 0, 0, .6); }
.ipop-icon img { width: 84px; height: 84px; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .8)); }
.ipop-rare { display: inline-block; margin-bottom: 4px; font: 700 .62rem/1 var(--f-head); letter-spacing: .2em; text-transform: uppercase; color: var(--rare); }
.ipop-kicker { display: block; font: 700 .64rem/1.2 var(--f-head); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.ipop .ec-modal-title { margin: .15em 0 0; font: 900 clamp(1.3rem, 3vw, 1.65rem)/1.15 var(--f-display); color: #f4e6c8; }
.ipop-tags { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ipop-tags li { display: grid; gap: 4px; min-width: 120px; padding: 9px 14px; border: 1px solid var(--line); background: rgba(9, 7, 10, .7); font: 700 1rem/1.1 var(--f-head); color: var(--ink); }
.ipop-tags small { font: 700 .56rem/1 var(--f-head); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.ipop-desc { margin: 16px 0 0; padding: 14px 16px; border-left: 2px solid var(--rare); background: linear-gradient(90deg, rgba(200, 147, 74, .08), transparent); font-size: 1.08rem; line-height: 1.55; color: var(--ink-soft); }
.ipop-hl { font-style: normal; color: var(--ember-2); }
.ipop-amount { margin: 16px 0 0; color: var(--muted); }
.ipop-amount b { font: 700 1.15rem/1 var(--f-head); color: var(--ember-2); }

/* Hall of fame walls: centred rows (a short row like two Archangels sits in the middle) */
.hof-wall { display: flex; flex-wrap: wrap; justify-content: center; }
.hof-major .hof-item { flex: 0 1 150px; }
.hof-minor .hof-item { flex: 0 1 104px; }
@media (max-width: 480px) { .hof-major .hof-item { flex-basis: calc(50% - 8px); } .hof-minor .hof-item { flex-basis: calc(50% - 8px); } }
.rp-ranks-note { margin: 28px 0 0; text-align: center; font-style: italic; color: var(--muted); }
.ach-desc { margin: .1rem 0 .7rem; font-size: .95rem; line-height: 1.45; color: var(--ink-soft); }
.vital-regen { margin-left: 6px; font: 600 .78rem/1 var(--f-head); letter-spacing: .04em; text-transform: none; color: var(--holy); }
.codex-section td small, .codex-section th small { font-size: .82em; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted); }

/* ===== Support tickets ===== */
.tickets { max-width: 900px; margin: 0 auto; padding: 50px var(--gutter) 100px; }
.member .tickets { padding-block: 50px 100px; }
.tickets-actions { display: flex; justify-content: flex-end; margin-bottom: 18px; }
.tickets-back { margin: 0 0 16px; }
.ticket-new { display: grid; gap: 8px; margin: 0 0 28px; padding: 22px 24px; border: 1px solid var(--line-strong); background: rgba(9, 7, 10, .85); }
.ticket-new h2 { margin: 0 0 6px; font-size: 1.2rem; color: #f4e6c8; }
.ticket-new label, .ticket-reply label { margin-top: 6px; font: 700 .66rem/1 var(--f-head); letter-spacing: .2em; text-transform: uppercase; color: var(--ember); }
.ticket-new input, .ticket-new select, .ticket-new textarea, .ticket-reply textarea { width: 100%; padding: 10px 12px; font: inherit; color: var(--ink); background: rgba(0, 0, 0, .45); border: 1px solid var(--line); }
.ticket-new input:focus, .ticket-new select:focus, .ticket-new textarea:focus, .ticket-reply textarea:focus { outline: none; border-color: var(--ember-2); }
.ticket-note { margin: 4px 0 0; padding: 10px 14px; border-left: 2px solid var(--ember); background: rgba(200, 147, 74, .08); font-size: .98rem; color: var(--ink-soft); }
.ticket-new-actions { display: flex; gap: 10px; margin-top: 10px; }
.ticket-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ticket-list a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; color: var(--ink); border: 1px solid var(--line); background: rgba(13, 10, 14, .85); transition: border-color .2s, background .2s; }
.ticket-list a:hover { border-color: var(--line-strong); background: rgba(30, 20, 22, .9); color: var(--ink); }
.ticket-list li.is-unread a { border-left: 3px solid var(--blood-glow); }
.ticket-list-main { display: grid; gap: 3px; min-width: 0; }
.ticket-list-main small { font: 700 .6rem/1.2 var(--f-head); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.ticket-list-main b { font: 600 1.05rem/1.25 var(--f-head); overflow-wrap: anywhere; }
.ticket-new-reply { font: 700 .62rem/1 var(--f-head); font-style: normal; letter-spacing: .16em; text-transform: uppercase; color: var(--blood-glow); }
.ticket-list-side { display: grid; justify-items: end; gap: 6px; flex: none; }
.ticket-list-side small { font-size: .82rem; color: var(--muted); }
.ticket-status { display: inline-block; padding: 3px 10px; font: 700 .6rem/1.4 var(--f-head); letter-spacing: .16em; text-transform: uppercase; border: 1px solid var(--line-strong); color: var(--ember-2); }
.ticket-status.status-open { color: #c9f2c0; border-color: rgba(120, 200, 110, .6); background: rgba(60, 120, 50, .18); }
.ticket-status.status-resolved, .ticket-status.status-closed { color: var(--muted); border-color: var(--line); }
.ticket-view { padding: 24px; border: 1px solid var(--line-strong); background: rgba(9, 7, 10, .85); }
.ticket-view-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.ticket-view-head h2 { margin: 2px 0 4px; font-size: 1.35rem; color: #f4e6c8; overflow-wrap: anywhere; }
.ticket-cat { margin: 0; font: 700 .62rem/1 var(--f-head); letter-spacing: .2em; text-transform: uppercase; color: var(--ember); }
.ticket-meta { margin: 0; font-size: .9rem; color: var(--muted); }
.ticket-zone { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; margin: 0 0 16px; }
.ticket-zone div { padding: 10px 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, .3); }
.ticket-zone dt { font: 700 .56rem/1 var(--f-head); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.ticket-zone dd { margin: 6px 0 0; color: var(--ink); }
.ticket-msg { margin: 0 0 12px; padding: 12px 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.ticket-msg.is-sator { border-left: 3px solid var(--ember-2); background: rgba(200, 147, 74, .06); }
.ticket-msg.is-mine { border-left: 3px solid var(--line-strong); }
.ticket-msg-who { margin: 0 0 6px; font: 700 .8rem/1.2 var(--f-head); letter-spacing: .06em; color: var(--ember-2); }
.ticket-msg-who small { margin-left: 6px; font: 400 .78rem/1 var(--f-body); color: var(--muted); letter-spacing: 0; }
.ticket-msg-body { color: var(--ink); line-height: 1.55; overflow-wrap: anywhere; }
.ticket-day { display: flex; align-items: center; gap: 12px; margin: 18px 0 10px; font: 700 .6rem/1 var(--f-head); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.ticket-day::before, .ticket-day::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.ticket-reply { display: grid; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.ticket-reply .btn { justify-self: start; }
@media (max-width: 560px) { .ticket-list a { flex-direction: column; align-items: flex-start; } .ticket-list-side { justify-items: start; } }

/* Ticket view: header card, main message, then a chat-style reply thread */
.ticket-view { padding: 0; border: 0; background: none; }
.tv-card { border: 1px solid var(--line); background: linear-gradient(180deg, rgba(24, 18, 22, .92), rgba(12, 9, 12, .95)); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.tv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; padding: 18px 22px; margin-bottom: 18px; }
.tv-head h2 { margin: 0 0 10px; font: 700 1.2rem/1.25 var(--f-head); color: var(--ember-2); overflow-wrap: anywhere; }
.tv-id { font: 400 .9rem/1 var(--f-body); color: var(--muted); }
.tv-head p { margin: 0 0 4px; color: var(--ink-soft); }
.tv-head p b { font-weight: 600; color: var(--ember); }
.tv-head-actions { display: grid; gap: 8px; flex: none; }
.tv-action { display: grid; grid-template-columns: 44px 110px; align-items: center; min-height: 44px; color: var(--ink); border: 1px solid var(--line); background: rgba(0, 0, 0, .35); font: 700 .74rem/1 var(--f-head); letter-spacing: .14em; text-transform: uppercase; transition: border-color .2s, color .2s; }
.tv-action:hover { color: #fff; border-color: var(--ember-2); }
.tv-action > span:last-child { text-align: center; }
.tv-action-icon { display: grid; place-items: center; height: 100%; border-right: 1px solid var(--line); font: 400 1.5rem/1 var(--f-display); color: var(--ember); }
.tv-label { margin: 0 0 6px 4px; font: 700 .7rem/1 var(--f-head); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.tv-message { margin-bottom: 18px; padding: 16px 22px; font-size: 1.12rem; line-height: 1.55; color: var(--ink); overflow-wrap: anywhere; }
.tv-thread { padding: 10px 22px 18px; background:
	radial-gradient(ellipse at 50% 0%, rgba(200, 147, 74, .06), transparent 60%),
	linear-gradient(180deg, rgba(24, 18, 22, .92), rgba(12, 9, 12, .95)); }
.tv-empty { margin: 14px 0 4px; text-align: center; font-style: italic; color: var(--muted); }
.tv-day { display: flex; align-items: center; gap: 14px; margin: 16px 0 12px; font: 600 .78rem/1 var(--f-body); color: var(--holy); }
.tv-day::before, .tv-day::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.tv-bubble { width: fit-content; max-width: min(78%, 560px); margin: 0 0 12px; padding: 10px 14px 8px; border: 1px solid var(--line); border-radius: 14px; background: rgba(30, 24, 28, .95); box-shadow: 0 6px 16px rgba(0, 0, 0, .45); }
.tv-bubble.is-sator { margin-right: auto; border-top-left-radius: 4px; border-color: rgba(233, 183, 101, .35); }
.tv-bubble.is-mine { margin-left: auto; border-top-right-radius: 4px; background: rgba(48, 30, 32, .95); border-color: rgba(224, 38, 44, .35); }
.tv-who { margin: 0 0 3px; font: 600 .92rem/1.2 var(--f-body); color: var(--ember-2); }
.tv-bubble.is-mine .tv-who { text-align: right; }
.tv-text { color: var(--ink); line-height: 1.5; overflow-wrap: anywhere; }
.tv-time { margin: 4px 0 0; font-size: .76rem; color: var(--holy); opacity: .85; }
.tv-bubble.is-mine .tv-time { text-align: right; }
.ticket-view .ticket-reply { margin-top: 18px; padding: 16px 22px; border: 1px solid var(--line); background: rgba(9, 7, 10, .85); }
@media (max-width: 560px) { .tv-head { flex-direction: column; } .tv-head-actions { grid-auto-flow: column; } .tv-action { grid-template-columns: 40px 80px; } .tv-bubble { max-width: 92%; } }

/* Tickets: Category + Type side by side, Safe Zone location box, details panel */
.ticket-row { display: grid; grid-template-columns: 1fr; gap: 12px; }
.ticket-row:has(.ticket-field-type:not([hidden])) { grid-template-columns: 1.6fr 1fr; }
.ticket-field { display: grid; gap: 8px; min-width: 0; }
.ticket-zone-box { margin-top: 4px; padding: 12px 16px; border: 1px solid var(--line); border-left: 2px solid var(--holy); background: rgba(156, 195, 230, .05); }
.ticket-zone-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ticket-zone-box dl { margin: 0; display: grid; gap: 4px; min-width: 0; }
.ticket-zone-box dl div { display: flex; flex-wrap: wrap; gap: 6px; }
.ticket-zone-box dt { color: var(--holy); }
.ticket-zone-box dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.ticket-refresh { flex: none; padding: 6px 12px; font: 700 .66rem/1 var(--f-head); letter-spacing: .14em; text-transform: uppercase; color: var(--ember-2); background: rgba(0, 0, 0, .4); border: 1px solid var(--line-strong); cursor: pointer; }
.ticket-refresh span { font-size: .95rem; }
.ticket-refresh:hover { color: #fff; border-color: var(--ember-2); }
.ticket-refresh:disabled { opacity: .5; cursor: wait; }
.ticket-zone-warn { margin: 8px 0 0; color: #ffb4a8; }
.ticket-zone-attn { margin: 8px 0 0; padding-top: 8px; border-top: 1px solid var(--line); color: var(--ink-soft); }
.ticket-zone-attn b { color: #e6e07a; font-weight: 600; }
.ticket-new input[readonly] { color: var(--ink-soft); background: rgba(255, 255, 255, .03); }
.ticket-count { margin: 0; text-align: center; font-size: .9rem; color: var(--muted); }
.ticket-zone-details { margin: 0 0 18px; padding: 14px 22px; display: grid; gap: 4px; }
.ticket-zone-details div { display: flex; flex-wrap: wrap; gap: 8px; }
.ticket-zone-details dt { color: var(--ember-2); }
.ticket-zone-details dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
@media (max-width: 560px) { .ticket-row:has(.ticket-field-type:not([hidden])) { grid-template-columns: 1fr; } .ticket-zone-top { flex-direction: column; } }

/* Safe Zone Application details as tiles */
.ticket-zone-details { padding: 14px; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-flow: row dense; gap: 10px; }
.ticket-zone-details > div { display: grid; align-content: start; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); background: rgba(0, 0, 0, .32); box-shadow: inset 0 0 18px rgba(0, 0, 0, .35); }
.ticket-zone-details > div.tz-wide { grid-column: span 2; }
.ticket-zone-details dt { font: 700 .58rem/1 var(--f-head); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.ticket-zone-details dd { margin: 0; font: 600 1.02rem/1.3 var(--f-body); color: var(--ink); overflow-wrap: anywhere; }
.ticket-zone-details dd.tz-mono { font: 500 .9rem/1.35 ui-monospace, Consolas, monospace; color: var(--ink-soft); }
.tz-badge { display: inline-block; padding: 3px 10px; font: 700 .66rem/1.4 var(--f-head); letter-spacing: .14em; text-transform: uppercase; color: var(--ember-2); border: 1px solid var(--line-strong); background: rgba(200, 147, 74, .08); }
@media (max-width: 760px) { .ticket-zone-details { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .ticket-zone-details { grid-template-columns: 1fr; } .ticket-zone-details > div.tz-wide { grid-column: auto; } }

/* Achievement Points out of the most possible: "10,219 / 10,219", the max part faint */
.ap-max { font-size: .62em; font-weight: 600; letter-spacing: .04em; color: var(--muted); opacity: .75; white-space: nowrap; }

/* Titles (2026-10-02): chosen title under the name, Earned Titles on My Character, record titles on Seasons */
.char-shown-title { margin: -.4rem 0 1rem; line-height: 0; }
.char-shown-title svg { max-width: 100%; height: auto; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .6)); }
.char-titles-wrap { margin-top: 16px; }
.char-earned-titles { max-width: none; margin: 0; padding: 22px 24px !important; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(122, 90, 12, .12), rgba(9, 7, 10, .92) 60%); }
/* one row of titles, scrolled sideways on a thin gold line */
.title-grid { list-style: none; margin: 0; padding: 0 0 14px; display: flex; flex-wrap: nowrap; gap: 14px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
@supports not selector(::-webkit-scrollbar) { .title-grid { scrollbar-width: thin; scrollbar-color: var(--ember) transparent; } }
.title-grid::-webkit-scrollbar { height: 3px; }
.title-grid::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
.title-grid::-webkit-scrollbar-track { background: linear-gradient(90deg, transparent, rgba(233, 183, 101, .18) 8%, rgba(233, 183, 101, .18) 92%, transparent); }
.title-grid::-webkit-scrollbar-thumb { background: linear-gradient(90deg, var(--ember), var(--ember-2), var(--ember)); border-radius: 3px; box-shadow: 0 0 6px rgba(233, 183, 101, .6); }
.title-grid li { flex: 0 0 340px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 12px 8px 14px; border: 1px solid var(--line); background: rgba(0, 0, 0, .28); }
.title-grid li svg { max-width: 100%; height: auto; }
.title-grid li.is-shown { border-color: var(--ember); box-shadow: 0 0 0 1px var(--ember) inset, 0 0 22px rgba(233, 183, 101, .18); }
.title-grid li.is-live svg { opacity: .82; }
.title-grid li.is-locked svg { filter: grayscale(1) brightness(.55); opacity: .6; }
.title-note { font: italic 400 .92rem/1.2 var(--f-body); color: var(--muted); text-align: center; }
.title-shown { color: var(--ember-2); font-style: normal; font: 700 .62rem/1 var(--f-head); letter-spacing: .2em; text-transform: uppercase; }
.title-hide { margin: 16px 0 0; text-align: center; }
.season-card .sn .rec-title { display: block; margin-top: 3px; font: 700 .58rem/1.1 var(--f-head); letter-spacing: .14em; text-transform: uppercase; font-style: normal;
	background: linear-gradient(180deg, #fff6cf, #f2cf73 55%, #9a6a1c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.season-card .sn .rec-title-2 { background-image: linear-gradient(180deg, #ffffff, #d9dde6 55%, #8d93a1); }
.season-card .sn .rec-title-3 { background-image: linear-gradient(180deg, #ffe2c8, #e2a77a 55%, #9a5a2e); }
@media (max-width: 640px) { .title-grid li { flex-basis: 86%; } .char-shown-title { display: flex; justify-content: center; } }

/* Member names link to their profile (2026-10-02) */
a.name-link { color: inherit; text-decoration: none; transition: color .15s; }
a.name-link:hover, a.name-link:focus-visible { color: var(--ember-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.char-line .not-on-site { color: var(--muted); font-style: italic; }
.game-only-note { margin-top: 28px; }

/* Seasonal Records (2026-10-02): wider cards, full names (they wrap instead of being cut off) */
.records .season-grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.records .season-card { padding: 20px 22px 16px; }
.records .season-card li { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 9px 0; }
.records .season-card .sr { padding-top: 2px; }
.records .season-card .sn { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; line-height: 1.25; }
.records .season-card .sn .rec-title { overflow-wrap: normal; }
.records .season-card li > b { padding-top: 2px; white-space: nowrap; }
@media (max-width: 420px) { .records .season-grid { grid-template-columns: 1fr; } }

/* Season record titles in the Seasons box (2026-10-02) */
.season-title-list { max-width: none; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); margin: 0 0 18px; }
.season-title-list li { padding: 10px 8px 12px; }
.season-title-list li svg { max-width: 100%; height: auto; }
.season-title-list li.is-live svg { animation: none; opacity: .9; }

/* Eternal Vow next to Achievement Points (2026-10-02) */
.char-titles .char-vow strong { color: #f3b8c8; }
.char-titles .char-vow strong::before { content: "\2665"; margin-right: .45em; color: #d84a6a; font-size: .85em; }
.char-titles .char-vow a.name-link:hover { color: #ffd6e0; }

/* ===== Earned Titles: grab and drag the row with the mouse; a thicker, easier scrollbar ===== */
.title-grid.is-draggable { cursor: grab; }
.title-grid.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.title-grid.is-dragging li { pointer-events: none; }
.title-grid::-webkit-scrollbar { height: 7px; }
.title-grid::-webkit-scrollbar-thumb { border-radius: 4px; }
.title-grid .btn { cursor: pointer; }

/* ===== My Character: Worn Items (2026-10-03), left: what is worn, right: protection and bonuses ===== */
.wi-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 22px; margin: 0 0 40px; }
.wi-worn, .wi-stats { border: 1px solid var(--line); background: linear-gradient(180deg, rgba(22, 15, 18, .92), rgba(10, 7, 9, .92)); padding: 18px 20px 20px; }
.wi-h { margin: 0 0 10px; display: flex; align-items: center; gap: 10px; font: 700 .64rem/1 var(--f-head); letter-spacing: .28em; text-transform: uppercase; color: var(--ember-2); }
.wi-h::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(233, 183, 101, .45), transparent); }
.wi-list + .wi-h { margin-top: 18px; }
.wi-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.wi-list > li { display: block; }
.wi-item { width: 100%; display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 6px 12px 6px 6px; text-align: left; color: var(--ink);
	border: 1px solid rgba(233, 183, 101, .18); background: rgba(0, 0, 0, .28); font: inherit; cursor: pointer; transition: border-color .2s, background .2s; }
button.wi-item:hover, button.wi-item:focus-visible { border-color: rgba(233, 183, 101, .6); background: rgba(233, 183, 101, .06); outline: none; }
.wi-item.is-empty { cursor: default; border-style: dashed; border-color: rgba(233, 183, 101, .14); color: var(--muted); background: transparent; }
.wi-icon { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(233, 183, 101, .22); background: radial-gradient(circle at 50% 40%, rgba(233, 183, 101, .12), rgba(0, 0, 0, .4)); }
.wi-item.is-empty .wi-icon { border-style: dashed; background: none; }
.wi-icon img { width: 40px; height: 40px; object-fit: contain; }
.wi-name { display: grid; gap: 2px; font: 600 1rem/1.15 var(--f-head); letter-spacing: .02em; min-width: 0; }
.wi-name small { font: 700 .56rem/1 var(--f-head); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.wi-item.is-empty .wi-name { font: italic 400 .92rem/1.2 var(--f-body); }
.wi-val { display: grid; justify-items: end; gap: 3px; text-align: right; }
.wi-val b { font: 700 1.05rem/1 var(--f-display); color: #f4e6c8; }
.wi-val b + small { font: 700 .54rem/1 var(--f-head); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: -2px; }
.wi-val i { font: italic 400 .74rem/1 var(--f-body); color: var(--muted); }
.wi-gems { display: flex; gap: 4px; }
.wi-gem { width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid rgba(233, 183, 101, .3); transform: rotate(45deg); background: rgba(0, 0, 0, .5); }
.wi-gem img { width: 18px; height: 18px; transform: rotate(-45deg); }
.wi-gem.has-gem { border-color: rgba(233, 183, 101, .7); box-shadow: 0 0 8px rgba(233, 183, 101, .25); }
.wi-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 20px; }
.wi-tile { position: relative; padding: 14px 14px 12px; border: 1px solid rgba(233, 183, 101, .3); background: radial-gradient(ellipse at 50% 0%, rgba(233, 183, 101, .12), transparent 70%), rgba(0, 0, 0, .35); text-align: center; }
.wi-tile small { display: block; font: 700 .58rem/1 var(--f-head); letter-spacing: .24em; text-transform: uppercase; color: var(--ember-2); }
.wi-tile b { display: block; margin: 8px 0 4px; font: 900 clamp(1.7rem, 2.6vw, 2.2rem)/1 var(--f-display);
	background: linear-gradient(180deg, #fff6e2, #f0d08e 45%, #b07a35); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #f0d08e; }
.wi-tile span { display: block; font: italic 400 .78rem/1.3 var(--f-body); color: var(--muted); }
.wi-tile.is-shield { border-color: rgba(140, 170, 230, .35); background: radial-gradient(ellipse at 50% 0%, rgba(140, 170, 230, .14), transparent 70%), rgba(0, 0, 0, .35); }
.wi-tile.is-shield small { color: #a9c1ef; }
.wi-tile.is-shield b { background-image: linear-gradient(180deg, #f2f6ff, #b9cdf3 50%, #6d86b8); }
.wi-tile.is-mana small { color: #b9a4f0; }
.wi-tile.is-mana { border-color: rgba(170, 140, 240, .3); background: radial-gradient(ellipse at 50% 0%, rgba(170, 140, 240, .13), transparent 70%), rgba(0, 0, 0, .35); }
.wi-tile.is-mana b { background-image: linear-gradient(180deg, #f6f1ff, #cdbaf6 50%, #7d64bd); }
.wi-bonus { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.wi-bonus li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; padding: 8px 12px 8px 8px; border: 1px solid rgba(233, 183, 101, .16); background: rgba(0, 0, 0, .25); color: var(--ink-soft); }
.wi-bonus li b { color: #f2cf73; font-weight: 700; }
.wi-bonus li small { display: block; margin-top: 2px; font: italic 400 .76rem/1.2 var(--f-body); color: var(--muted); }
.wi-bonus li.is-off { opacity: .55; }
.wi-b-icon { width: 34px; height: 34px; display: grid; place-items: center; }
.wi-b-icon img { width: 30px; height: 30px; object-fit: contain; }
.wi-b-icon.is-text { color: var(--ember-2); font-size: 1rem; border: 1px solid rgba(233, 183, 101, .25); }
.wi-none { margin: 0; color: var(--muted); font-style: italic; }
.wi-note { margin: 16px 0 0; font: italic 400 .8rem/1.4 var(--f-body); color: var(--muted); }
@media (max-width: 900px) { .wi-grid { grid-template-columns: 1fr; } }

/* ===== Worn Items as a game character sheet: armor slots | figure | jewelry slots (2026-10-03) ===== */
.eq-sheet { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, 190px) minmax(0, 1fr); gap: 10px; align-items: center; padding: 22px 18px;
	background: radial-gradient(ellipse 55% 60% at 50% 50%, rgba(168, 20, 26, .16), transparent 70%), linear-gradient(180deg, rgba(22, 15, 18, .95), rgba(8, 5, 7, .95)); }
.eq-sheet.is-angel { background: radial-gradient(ellipse 55% 60% at 50% 50%, rgba(233, 183, 101, .14), transparent 70%), linear-gradient(180deg, rgba(22, 17, 18, .95), rgba(8, 6, 7, .95)); }
.eq-col { display: grid; gap: 12px; align-content: center; }
.eq-col.is-right { padding-top: 0; }
.eq-slot { display: flex; align-items: center; gap: 12px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; min-width: 0; }
.eq-slot.is-right { flex-direction: row-reverse; text-align: right; }
.eq-slot.is-empty { cursor: default; }
.eq-box { position: relative; flex: 0 0 auto; width: 66px; height: 66px; display: grid; place-items: center;
	border: 1px solid rgba(233, 183, 101, .55); background: radial-gradient(circle at 50% 38%, rgba(233, 183, 101, .14), rgba(0, 0, 0, .65) 70%), #0b0709;
	box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .7), inset 0 0 0 4px rgba(233, 183, 101, .22), inset 0 -10px 18px rgba(0, 0, 0, .6), 0 4px 12px rgba(0, 0, 0, .55); transition: border-color .2s, box-shadow .2s; }
.eq-box::before, .eq-box::after { content: ""; position: absolute; width: 7px; height: 7px; border: 1px solid var(--ember-2); transform: rotate(45deg); background: #0b0709; }
.eq-box::before { top: -4px; left: 50%; margin-left: -4px; }
.eq-box::after { bottom: -4px; left: 50%; margin-left: -4px; }
.eq-box img { width: 54px; height: 54px; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .8)); }
button.eq-slot:hover .eq-box, button.eq-slot:focus-visible .eq-box { border-color: var(--ember-2); box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .7), inset 0 0 0 4px rgba(233, 183, 101, .45), 0 0 16px rgba(233, 183, 101, .35); }
button.eq-slot:focus-visible { outline: none; }
.eq-slot.is-empty .eq-box { border-style: dashed; border-color: rgba(233, 183, 101, .25); background: rgba(0, 0, 0, .45); box-shadow: inset 0 0 14px rgba(0, 0, 0, .7); }
.eq-slot.is-empty .eq-box::before, .eq-slot.is-empty .eq-box::after { border-color: rgba(233, 183, 101, .3); }
.eq-cap { display: grid; gap: 2px; min-width: 0; }
.eq-cap small { font: 700 .56rem/1 var(--f-head); letter-spacing: .22em; text-transform: uppercase; color: var(--ember-2); }
.eq-cap strong { font: 600 .98rem/1.1 var(--f-head); color: #f4e6c8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eq-cap em { font: italic 400 .84rem/1.1 var(--f-body); color: var(--muted); }
.eq-extra { font: 400 .78rem/1.2 var(--f-body); color: var(--muted); }
.eq-extra b { color: #f2cf73; font-weight: 700; }
.eq-gems { display: inline-flex; gap: 5px; margin-top: 2px; }
.eq-slot.is-right .eq-gems { justify-content: flex-end; }
.eq-gem { width: 16px; height: 16px; display: grid; place-items: center; border: 1px solid rgba(233, 183, 101, .3); transform: rotate(45deg); background: rgba(0, 0, 0, .5); }
.eq-gem img { width: 15px; height: 15px; transform: rotate(-45deg); }
.eq-gem.has-gem { border-color: rgba(233, 183, 101, .75); box-shadow: 0 0 6px rgba(233, 183, 101, .3); }
@media (max-width: 1100px) and (min-width: 901px) { .eq-cap strong { font-size: .86rem; } .eq-box { width: 56px; height: 56px; } .eq-box img { width: 46px; height: 46px; } }
@media (max-width: 560px) {
	.eq-sheet { grid-template-columns: 1fr 1fr; padding: 16px 12px; }
	.eq-box { width: 54px; height: 54px; } .eq-box img { width: 44px; height: 44px; }
	.eq-cap strong { font-size: .84rem; white-space: normal; }
}
.wi-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; }
.eq-sheet { grid-template-columns: minmax(0, 1fr) minmax(130px, 200px) minmax(0, 1fr); }
@media (max-width: 900px) { .wi-grid { grid-template-columns: 1fr; } }


/* Earned Titles: "Show no title" sits at the top right, on the heading row */
.title-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 14px; }
.title-head .panel-title { margin: 0; }
.title-head .title-hide { margin: 0; flex: 0 0 auto; }

/* ===== Worn Items: the in-world armory layout, shoulders, gauntlets, rings | chest, leggings, boots | pendant, bracelet ===== */
.eq-sheet.is-inworld { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr); gap: 0; padding: 14px 6px; align-items: stretch; }
.eq-sheet.is-inworld .eq-col { display: flex; flex-direction: column; gap: 0; }
.eq-sheet.is-inworld .eq-col.is-mid { position: relative; }
.eq-sheet.is-inworld .eq-col.is-mid::before, .eq-sheet.is-inworld .eq-col.is-mid::after { content: ""; position: absolute; top: 2%; bottom: 2%; width: 1px;
	background: linear-gradient(180deg, transparent, rgba(242, 207, 134, .75) 8%, rgba(242, 207, 134, .75) 92%, transparent); box-shadow: 0 0 6px rgba(242, 207, 134, .35); }
.eq-sheet.is-inworld .eq-col.is-mid::before { left: 0; }
.eq-sheet.is-inworld .eq-col.is-mid::after { right: 0; }
.eq-slot.is-cell { position: relative; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px 8px 18px; text-align: center; }
.eq-col.is-mid .eq-slot.is-cell { flex: 1 1 0; }
.eq-slot.is-cell + .eq-slot.is-cell::before { content: ""; position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
	background: linear-gradient(90deg, transparent, rgba(242, 207, 134, .65) 15%, rgba(242, 207, 134, .65) 85%, transparent); }
.eq-col.is-left .eq-slot.is-cell + .eq-slot.is-cell::before { left: 18%; right: 0; background: linear-gradient(90deg, transparent, rgba(242, 207, 134, .65) 25%); }
.eq-col.is-right .eq-slot.is-cell + .eq-slot.is-cell::before { left: 0; right: 18%; background: linear-gradient(90deg, rgba(242, 207, 134, .65) 75%, transparent); }
.eq-slot.is-cell .eq-cap { justify-items: center; }
.eq-slot.is-cell .eq-gems { justify-content: center; }
.eq-slot.is-cell .eq-cap strong { white-space: normal; }
.eq-slot.is-cell.is-big .eq-box { width: 84px; height: 84px; }
.eq-slot.is-cell.is-big .eq-box img { width: 70px; height: 70px; }
@media (max-width: 560px) {
	.eq-sheet.is-inworld { grid-template-columns: 1fr 1.1fr 1fr; padding: 10px 2px; }
	.eq-slot.is-cell { padding: 12px 4px 14px; }
	.eq-slot.is-cell .eq-box, .eq-slot.is-cell.is-big .eq-box { width: 52px; height: 52px; }
	.eq-slot.is-cell .eq-box img, .eq-slot.is-cell.is-big .eq-box img { width: 42px; height: 42px; }
	.eq-cap strong { font-size: .8rem; }
}

/* View As: the bar on every page while a Sator views the website as someone else */
.viewas-bar { position: fixed; inset: 0 0 auto; z-index: 60; height: 46px; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 0 var(--gutter, 16px); background: linear-gradient(90deg, #3a0a2a, #5a1238 50%, #3a0a2a); border-bottom: 1px solid rgba(255, 158, 196, .5); box-shadow: 0 6px 20px rgba(0, 0, 0, .5); color: #ffe6f0; font-size: .95rem; }
.viewas-eye svg { display: block; width: 22px; height: 22px; fill: none; stroke: #ff9ec4; stroke-width: 1.8; }
.viewas-text b { font: 700 1rem var(--f-head); color: #fff; }
.viewas-text em { margin-left: 6px; font-style: normal; font-size: .82rem; color: #ffb8d4; text-transform: uppercase; letter-spacing: .1em; }
.viewas-text small { margin-left: 12px; color: #e8b8cc; font-size: .85rem; }
.viewas-bar form { margin: 0; }
.viewas-back { padding: 6px 14px; border: 1px solid #ff9ec4; background: rgba(255, 158, 196, .14); color: #fff; font: 700 .8rem var(--f-head); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: background .2s; }
.viewas-back:hover, .viewas-back:focus-visible { background: rgba(255, 158, 196, .32); outline: none; }
.site-header.has-viewas { top: 46px; }
html:has(.viewas-bar) body { padding-top: 46px; }
@media (max-width: 760px) { .viewas-bar { height: auto; min-height: 46px; flex-wrap: wrap; gap: 6px 10px; padding-block: 6px; } .viewas-text small { display: none; } }

/* View As: the Admin Panel tool */
.va-intro { margin: 0 0 14px; color: var(--ink-soft); max-width: 760px; }
.va-grid { grid-template-columns: minmax(0, 420px); }
.va-log-title { margin: 0 0 12px; font: 700 1rem var(--f-head); letter-spacing: .14em; text-transform: uppercase; color: var(--ember-2); }
.va-table tr.is-start td:nth-child(3) { color: #ff9ec4; }
.va-table tr.is-return td:nth-child(3) { color: #8ad18a; }
.va-detail { font-size: .85rem; color: var(--muted); word-break: break-word; }
/* phones (2026-10-04): a pop-up always fits the visible screen (100dvh leaves out the browser's bars); its contents scroll */
@media (max-width: 640px) { .ec-modal { padding: 10px; } .ec-modal-box { max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); } }

/* The Sators stand on the Hierarchy page (2026-10-05): no card, frame or background; the text over the lower half of the figure */
.hier-sator.is-figure { padding: 0; border: 0; background: none; box-shadow: none; overflow: visible; display: flex; flex-direction: column; align-items: center; }
.hier-sator.is-figure::after { display: none; }
.hier-sator-fig { display: block; width: auto; height: 560px; max-width: 100%; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .75)) drop-shadow(0 0 36px var(--side-soft)); transition: transform .4s; }
.hier-sator.is-figure:hover .hier-sator-fig { transform: translateY(-6px); }
.hier-sator-text { position: relative; z-index: 1; margin-top: -250px; max-width: 420px; padding: 70px 18px 6px; background: radial-gradient(ellipse 72% 64% at 50% 60%, rgba(6, 5, 8, .92), rgba(6, 5, 8, .7) 58%, transparent 82%); }
.hier-sator-text h3, .hier-sator-text .hier-name, .hier-sator-text .hier-kicker { text-shadow: 0 2px 6px #000, 0 0 18px rgba(0, 0, 0, .9); }
.hier-sator-text p:last-child { color: #e6dccb; text-shadow: 0 1px 4px #000; }
@media (max-width: 900px) { .hier-sator-fig { height: 440px; } .hier-sator-text { margin-top: -190px; } }
@media (max-width: 560px) { .hier-sator-fig { height: 360px; } .hier-sator-text { margin-top: -150px; padding-top: 50px; } }
/* the Prime Evil a bit larger than Tasha's figure (2026-10-05) */
.hier-sator.hier-demon .hier-sator-fig { height: 640px; margin-top: -60px; }
@media (max-width: 900px) { .hier-sator.hier-demon .hier-sator-fig { height: 500px; margin-top: -40px; } }
@media (max-width: 560px) { .hier-sator.hier-demon .hier-sator-fig { height: 410px; margin-top: -30px; } }
/* Tasha's figure gets a glow behind her like the Prime Evil's (2026-10-05): warm holy light that shows behind the white robe */
.hier-sator.hier-angel.is-figure { position: relative; }
.hier-sator.hier-angel.is-figure::before { content: ""; position: absolute; z-index: 0; left: 50%; top: 40px; width: 520px; height: 520px; transform: translateX(-50%); pointer-events: none;
	background: radial-gradient(circle at 50% 45%, rgba(242, 207, 115, .38), rgba(242, 207, 115, .14) 40%, rgba(156, 195, 230, .08) 55%, transparent 72%); filter: blur(6px); }
.hier-sator.hier-angel .hier-sator-fig { position: relative; z-index: 1; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .75)) drop-shadow(0 0 40px rgba(242, 207, 115, .35)); }
.hier-sator.hier-angel .hier-sator-text { z-index: 2; }
@media (max-width: 560px) { .hier-sator.hier-angel.is-figure::before { width: 360px; height: 360px; } }
/* the dark behind the Sators' text fades out softly instead of a visible patch (2026-10-05) */
.hier-sator-text { background: none; isolation: isolate; }
.hier-sator-text::before { content: ""; position: absolute; z-index: -1; left: -14%; right: -14%; top: 0; bottom: -12%; pointer-events: none;
	background: radial-gradient(ellipse 52% 54% at 50% 46%, rgba(6, 5, 8, .86), rgba(6, 5, 8, .64) 38%, rgba(6, 5, 8, .3) 64%, transparent 82%); filter: blur(14px); }
.hier-sator-text h3, .hier-sator-text .hier-name, .hier-sator-text .hier-kicker { text-shadow: 0 2px 6px #000, 0 0 22px rgba(0, 0, 0, .95), 0 0 40px rgba(0, 0, 0, .7); }
/* the Sators line up over the Heaven and Hell boxes: same width and gap, each figure centred over its box (2026-10-05) */
.hier-sators { max-width: none; gap: 30px; }
/* "The Sators" title larger (2026-10-05) */
.section-head .eyebrow.hier-sators-title { font-size: clamp(1.25rem, 2.6vw, 1.9rem); letter-spacing: .32em; text-shadow: 0 0 22px rgba(233, 183, 101, .3); margin-bottom: 0; }
/* Hierarchy: the heaven and hell background reaches down behind the Sators and fades into the page (2026-10-05) */
.page-hierarchy main { position: relative; isolation: isolate; }
.page-hierarchy main::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: 1250px; pointer-events: none;
	background: radial-gradient(ellipse 75% 60% at 50% 22%, transparent, rgba(6, 5, 8, .35) 80%), linear-gradient(180deg, rgba(6, 5, 8, .84) 0, rgba(6, 5, 8, .8) 18%, rgba(6, 5, 8, .85) 42%, rgba(6, 5, 8, .93) 72%, rgba(6, 5, 8, .95) 100%),
		url(../img/art/hierarchy-bg.webp?v=3) center top / cover no-repeat; }
/* the background fades out to nothing at its foot, so no edge shows against the page (2026-10-05) */
.page-hierarchy main::before { -webkit-mask-image: linear-gradient(180deg, #000 0, #000 62%, transparent 100%); mask-image: linear-gradient(180deg, #000 0, #000 62%, transparent 100%); }
.page-hierarchy .page-hero-bg { display: none; }
.page-hierarchy .page-hero::after { display: none; }

/* Hierarchy: a faint black shadow behind the hero and Sators titles, to lift them off the picture (2026-10-05) */
.page-hierarchy .page-hero-inner .eyebrow, .page-hierarchy .page-hero-lede { text-shadow: 0 2px 10px rgba(0, 0, 0, .55), 0 0 24px rgba(0, 0, 0, .35); }
.page-hierarchy .page-hero-inner h1 { filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .7)) drop-shadow(0 4px 16px rgba(0, 0, 0, .5)) drop-shadow(0 0 30px rgba(224, 38, 44, .3)); }
.section-head .eyebrow.hier-sators-title { text-shadow: 0 2px 10px rgba(0, 0, 0, .6), 0 0 22px rgba(233, 183, 101, .3); }
