/* Turnia — the public website (docs/STRONA.md). The look is the game's own: night-blue wells, bronze frames painted
   with Leonardo (border-image slices match ArtSource/ui_manifest.json), gold titles in Cinzel, text in Alegreya Sans. */

@font-face { font-family: "Cinzel"; src: url(/fonts/cinzel.woff2) format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url(/fonts/alegreya-sans.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url(/fonts/alegreya-sans-bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --night: #111922;        /* the page */
  --deep: #0c1219;         /* under the hero's fade */
  --well: #1c2731;         /* the game's panel */
  --well-2: #22303d;       /* a raised row */
  --well-3: #2b3b4a;
  --line: rgba(182, 131, 75, .32);
  --line-soft: rgba(182, 131, 75, .16);
  --bronze: #b6834b;
  --bronze-hi: #efba82;
  --gold: #f1cb85;
  --crimson: #8b262e;
  --crimson-hi: #b2343f;
  --text: #ece3cf;
  --mute: #a3adba;
  --dim: #7d8896;
  --online: #7fd06b;
  --silver: #d6dde6;
  --copper: #d99a6c;

  /* elements, as the game colours its spells and hits */
  --el-physical: #d2c9b8;
  --el-fire: #ff8a4c;
  --el-energy: #c79bff;
  --el-earth: #8fcf62;
  --el-ice: #86d4f5;
  --el-holy: #ffe08a;
  --el-death: #b9a3d6;
  --el-lifeDrain: #ff7b8a;
  --el-manaDrain: #7aa8ff;

  /* loot rarity, from plain to precious */
  --r-always: #d7d2c6;
  --r-common: #d7d2c6;
  --r-uncommon: #8fd07a;
  --r-semiRare: #7cb8ff;
  --r-rare: #c894ff;
  --r-veryRare: #ffbf5a;

  --wrap: 1180px;
  --gut: clamp(16px, 4vw, 40px);
  --t-small: .875rem;
  --t-base: 1.0625rem;
  --t-h3: 1.25rem;
  --t-h2: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
  --t-h1: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--night); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font: 400 var(--t-base)/1.55 "Alegreya Sans", "Segoe UI", system-ui, sans-serif; color: var(--text);
  background: var(--night);
  background-image: radial-gradient(ellipse 120% 60% at 50% 0%, rgba(40, 58, 76, .35), transparent 70%);
  font-variant-numeric: lining-nums;
}
main { flex: 1; outline: none; }
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: #ffe2a8; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { font-family: "Cinzel", Georgia, serif; font-weight: 700; color: var(--gold); line-height: 1.15; margin: 0; letter-spacing: .01em; }
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); }
p { margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--well); padding: 8px 14px; }
.skip:focus { left: 8px; }
.noscript { padding: 120px var(--gut); text-align: center; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.mute { color: var(--mute); }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- painted pieces from the game */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px;
  font: 700 1.05rem/1 "Cinzel", Georgia, serif; letter-spacing: .03em; color: #fbeedd; cursor: pointer;
  border-style: solid; border-width: 16px 18px; padding: 0 10px; background: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .7); white-space: nowrap; transition: filter .15s;
}
.btn:hover { color: #fff; filter: brightness(1.14); }
.btn:active { transform: translateY(1px); }
.btn-primary { border-image: url(/img/ui/button_primary.webp) 36 40 fill / 16px 18px stretch; }
.btn-secondary { border-image: url(/img/ui/button_secondary.webp) 36 40 fill / 16px 18px stretch; color: var(--text); }
.btn-lg { min-height: 60px; font-size: 1.3rem; border-width: 18px 22px; border-image-width: 18px 22px; padding: 0 22px; }
.btn[aria-disabled="true"] { filter: grayscale(.7) brightness(.8); cursor: default; }

.panel { border: 32px solid; border-image: url(/img/ui/window.webp) 64 fill / 32px stretch; padding: 6px 8px; }
.panel > h2, .panel > h3 { margin-bottom: 14px; }

.ring { position: relative; display: block; aspect-ratio: 1; flex: none; }
.ring > img { position: absolute; }
.ring-face { left: 15%; top: 14.4%; width: 70%; height: 70%; border-radius: 50%; object-fit: cover; background: var(--well); }
.ring-frame { inset: 0; width: 100%; height: 100%; pointer-events: none; }

.divider { height: 20px; background: url(/img/ui/divider.webp) center / contain no-repeat; margin: 10px auto 0; width: min(520px, 80%); opacity: .9; }

/* ---------------------------------------------------------------- header */

.bar { position: sticky; top: 0; z-index: 20; background: rgba(15, 22, 30, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-soft); }
.bar-in { max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 6px var(--gut); display: flex; align-items: center; gap: clamp(10px, 2.4vw, 28px); }
.bar-logo { flex: none; transition: opacity .3s; }
.bar-logo img { height: 42px; width: auto; }
.bar-nav { display: flex; gap: clamp(4px, 2vw, 22px); margin-right: auto; }
.bar-nav a { font: 700 1rem/1 "Cinzel", Georgia, serif; color: var(--text); padding: 12px 6px; border-bottom: 2px solid transparent; letter-spacing: .02em; }
.bar-nav a:hover { color: var(--gold); }
.bar-nav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--bronze); }
.lang { background: none; border: 1px solid var(--line); color: var(--mute); font: 700 .8rem/1 "Alegreya Sans", sans-serif; padding: 7px 8px; border-radius: 4px; cursor: pointer; letter-spacing: .04em; }
.lang:hover { color: var(--gold); border-color: var(--bronze); }
.btn-bar { min-height: 40px; font-size: .95rem; border-width: 12px 14px; border-image-width: 12px 14px; padding: 0 8px; }
/* over the home page's painting the bar is clear, and the small logo waits until the big one scrolls away */
.home .bar { background: linear-gradient(rgba(8, 12, 18, .55), rgba(8, 12, 18, 0)); border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; position: fixed; left: 0; right: 0; }
.home .bar .bar-logo { opacity: 0; pointer-events: none; }
.home.scrolled .bar { background: rgba(15, 22, 30, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom-color: var(--line-soft); }
.home.scrolled .bar .bar-logo { opacity: 1; pointer-events: auto; }

/* ---------------------------------------------------------------- home: the hero follows the world's clock */

.hero { position: relative; height: 100svh; min-height: 600px; max-height: 1080px; overflow: hidden; background: var(--deep); isolation: isolate; }
.hero-art { position: absolute; inset: 0; z-index: -2; }
.hero-art .layer { position: absolute; inset: 0; background-size: cover; background-position: 50% 42%; opacity: 0; transition: opacity 2.4s ease; }
.hero-art .layer.on { opacity: 1; }
.layer[data-p="day"] { background-image: url(/img/hero/day.webp); }
.layer[data-p="dusk"] { background-image: url(/img/hero/dusk.webp); }
.layer[data-p="night"] { background-image: url(/img/hero/night.webp); }
.layer[data-p="dawn"] { background-image: url(/img/hero/dawn.webp); }
@media (max-aspect-ratio: 4/5) {
  .hero-art .layer { background-position: 40% 50%; }
  .layer[data-p="day"] { background-image: url(/img/hero/day-p.webp); }
  .layer[data-p="dusk"] { background-image: url(/img/hero/dusk-p.webp); }
  .layer[data-p="night"] { background-image: url(/img/hero/night-p.webp); }
  .layer[data-p="dawn"] { background-image: url(/img/hero/dawn-p.webp); }
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 38% at 50% 18%, rgba(8, 12, 20, .42), transparent 72%),
    linear-gradient(to bottom, rgba(8, 12, 20, .35) 0%, transparent 22%, transparent 55%, rgba(12, 18, 25, .72) 80%, var(--night) 100%); }
.hero-in { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(64px, 11vh, 110px) var(--gut) clamp(28px, 6vh, 64px); }
.hero-logo { margin: 0; width: clamp(250px, 40vw, 580px); filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .55)); }
.hero-logo img { width: 100%; height: auto; }
.hero-line { margin-top: clamp(4px, 1.4vh, 14px); font: 600 clamp(1.15rem, .9rem + 1.3vw, 1.75rem)/1.25 "Cinzel", Georgia, serif; color: #fff4dd; text-shadow: 0 2px 10px rgba(0, 0, 0, .8), 0 0 2px rgba(0, 0, 0, .9); letter-spacing: .02em; }
.hero-cta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 12px 16px; justify-content: center; }
.hero-live { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chip-live { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px; background: rgba(10, 15, 22, .62); border: 1px solid rgba(239, 186, 130, .28); color: var(--text); font-size: .98rem; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.chip-live b { color: var(--gold); font-weight: 700; }
a.chip-live:hover { border-color: var(--bronze-hi); color: #fff; }
/* the game's sky badge (minimap): a painted disc in a thin bronze ring, so the night's dark one still shows */
.sky { width: 24px; height: 24px; flex: none; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(239, 186, 130, .6), 0 0 8px rgba(0, 0, 0, .5); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--online); box-shadow: 0 0 0 3px rgba(127, 208, 107, .18); flex: none; }
.dot.off { background: var(--dim); box-shadow: none; }

/* ---------------------------------------------------------------- home: sections */

.band { padding: clamp(56px, 9vw, 110px) 0 0; }
.band-head { text-align: center; margin-bottom: clamp(26px, 4vw, 44px); }
.band-head p { margin-top: 12px; color: var(--mute); font-size: 1.1rem; }

.vocs { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 3vw, 40px); list-style: none; margin: 0; padding: 0; }
.voc { display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--text); }
.voc .ring { width: min(100%, 200px); transition: transform .25s ease; }
.voc:hover .ring { transform: translateY(-4px); }
.voc b { margin-top: 10px; font: 700 1.3rem/1.2 "Cinzel", Georgia, serif; color: var(--gold); }
.voc span { color: var(--mute); font-size: 1rem; margin-top: 2px; }

.feats { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: 1fr 1fr; gap: clamp(12px, 1.6vw, 20px); height: clamp(420px, 48vw, 600px); }
.feat { position: relative; margin: 0; overflow: hidden; border-radius: 4px; background: var(--well); box-shadow: 0 0 0 1px rgba(239, 186, 130, .35), 0 0 0 5px rgba(17, 25, 34, .9), 0 0 0 6px rgba(182, 131, 75, .45), 0 18px 40px rgba(0, 0, 0, .45); }
.feat:first-child { grid-row: span 2; }
.feat img { width: 100%; height: 100%; object-fit: cover; transition: transform 6s ease; }
.feat:hover img { transform: scale(1.04); }
.feat figcaption { position: absolute; inset: auto 0 0; padding: 60px 22px 18px; background: linear-gradient(to top, rgba(8, 12, 18, .92), rgba(8, 12, 18, .6) 55%, transparent); }
.feat b { display: block; font: 700 clamp(1.2rem, 1rem + .8vw, 1.6rem)/1.2 "Cinzel", Georgia, serif; color: var(--gold); }
.feat span { display: block; margin-top: 4px; color: var(--text); font-size: 1.02rem; max-width: 38ch; }

.live { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.podium { display: grid; grid-template-columns: 1fr 1.25fr 1fr; align-items: end; gap: 10px; text-align: center; padding-top: 8px; }
.podium a { display: flex; flex-direction: column; align-items: center; color: var(--text); min-width: 0; }
.podium .ring { width: 100%; max-width: 150px; }
.podium .p1 .ring { max-width: 190px; }
.podium b { margin-top: 6px; font: 700 1.05rem/1.2 "Cinzel", Georgia, serif; color: var(--text); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium .p1 b { color: var(--gold); font-size: 1.2rem; }
.podium small { color: var(--mute); font-size: .95rem; }
.medal { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font: 700 .95rem/1 "Cinzel", Georgia, serif; color: #1a1208; margin-bottom: -14px; position: relative; z-index: 1; box-shadow: 0 2px 6px rgba(0, 0, 0, .5); }
.medal.m1 { background: radial-gradient(circle at 35% 30%, #fff1c1, #e2ae4a 60%, #9c6b1c); }
.medal.m2 { background: radial-gradient(circle at 35% 30%, #ffffff, #c9d1da 60%, #7e8894); }
.medal.m3 { background: radial-gradient(circle at 35% 30%, #ffe0c8, #cd8b58 60%, #85502b); }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.feed li:last-child { border-bottom: 0; }
.feed .when { margin-left: auto; color: var(--dim); font-size: .9rem; white-space: nowrap; }
.feed .skull { width: 16px; height: 16px; flex: none; align-self: center; opacity: .8; }
.feed-empty { color: var(--mute); padding: 8px 0; }
.live h3 { margin-bottom: 8px; }
.live-more { display: inline-block; margin-top: 14px; font-weight: 700; }

.beasts { display: flex; gap: clamp(8px, 2vw, 22px); justify-content: center; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 10px; scrollbar-width: none; }
.beasts::-webkit-scrollbar { display: none; }
.beast { flex: 0 0 clamp(120px, 13vw, 160px); scroll-snap-align: center; text-align: center; color: var(--text); }
.beast .stage { position: relative; aspect-ratio: 1; }
.beast .stage::before { content: ""; position: absolute; left: 14%; right: 14%; bottom: 5%; height: 12%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent); }
.beast img { position: relative; width: 100%; height: 100%; object-fit: contain; transition: transform .25s ease; }
.beast:hover img { transform: translateY(-4px) scale(1.03); }
.beast b { display: block; margin-top: 4px; font: 700 .98rem/1.2 "Cinzel", Georgia, serif; color: var(--text); }
.beast:hover b { color: var(--gold); }
.center { text-align: center; margin-top: 26px; }

.cta { position: relative; margin-top: clamp(64px, 10vw, 120px); min-height: 520px; overflow: hidden; isolation: isolate; }
.cta-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; z-index: -2; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 15, 22, .9) 0%, rgba(10, 15, 22, .72) 38%, rgba(10, 15, 22, .1) 70%), linear-gradient(to bottom, var(--night), transparent 18%, transparent 82%, var(--night)); }
.cta-in { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; padding-top: clamp(60px, 8vw, 100px); padding-bottom: clamp(60px, 8vw, 100px); }
.cta h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); max-width: 16ch; }
.cta p { margin-top: 14px; font-size: 1.15rem; max-width: 42ch; color: var(--text); }
.stores { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store-soon { flex-basis: 100%; color: var(--mute); font-size: .98rem; }
.phone-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.phone { position: relative; width: clamp(210px, 22vw, 270px); aspect-ratio: 9 / 18.6; border-radius: 34px; padding: 10px; cursor: pointer; background: linear-gradient(145deg, #2a2f36, #0d0f12 60%); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 60px rgba(0, 0, 0, .6), inset 0 0 0 2px rgba(255, 255, 255, .04); }
.phone img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: cover; object-position: top; border-radius: 26px; opacity: 0; transition: opacity .9s ease; }
.phone img.on { opacity: 1; }
.phone-cap { font: 700 1.05rem/1.2 "Cinzel", Georgia, serif; color: var(--gold); text-shadow: 0 1px 6px rgba(0, 0, 0, .9); min-height: 1.3em; text-align: center; }
.dots { display: flex; gap: 10px; }
.dots button { width: 11px; height: 11px; padding: 0; border-radius: 50%; border: 1px solid var(--bronze-hi); background: rgba(10, 15, 22, .6); cursor: pointer; }
.dots button[aria-current="true"] { background: var(--gold); border-color: var(--gold); }

/* ---------------------------------------------------------------- inner pages */

.head { position: relative; min-height: clamp(170px, 22vw, 260px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; margin-bottom: clamp(20px, 3vw, 34px); }
.head > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(12, 18, 25, .25), rgba(12, 18, 25, .55) 55%, var(--night)); }
.head .wrap { padding-bottom: clamp(14px, 2.4vw, 26px); }
.head h1 { text-shadow: 0 2px 12px rgba(0, 0, 0, .8); }
.head p { margin-top: 6px; color: var(--text); font-size: 1.12rem; text-shadow: 0 1px 6px rgba(0, 0, 0, .9); }
.crumbs { font-size: .95rem; margin-bottom: 6px; color: var(--mute); text-shadow: 0 1px 4px rgba(0, 0, 0, .9); }
.crumbs a { color: var(--bronze-hi); }
.page { padding-bottom: clamp(50px, 8vw, 90px); }
.page-plain { padding-top: clamp(90px, 12vw, 130px); }

.tools { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-bottom: 18px; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; max-width: 100%; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: rgba(28, 39, 49, .6); color: var(--text); font: 700 .95rem/1.1 "Alegreya Sans", sans-serif; cursor: pointer; }
.chip:hover { border-color: var(--bronze); color: var(--gold); }
.chip[aria-current="true"], .chip[aria-pressed="true"] { background: linear-gradient(#3a2a1a, #2a1d12); border-color: var(--bronze-hi); color: var(--gold); }
.chip img { width: 20px; height: 20px; }
.search { position: relative; flex: 1 1 240px; max-width: 360px; }
.search input { width: 100%; height: 44px; padding: 0 14px 0 40px; border-radius: 6px; border: 1px solid var(--line); background: rgba(12, 18, 25, .7); color: var(--text); font: inherit; }
.search input::placeholder { color: var(--dim); }
.search input:focus { outline: none; border-color: var(--bronze-hi); box-shadow: 0 0 0 3px rgba(239, 186, 130, .15); }
.search svg { position: absolute; left: 12px; top: 12px; width: 20px; height: 20px; color: var(--dim); pointer-events: none; }
select.pick { height: 44px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--line); background: rgba(12, 18, 25, .7); color: var(--text); font: inherit; }

.table { width: 100%; border-collapse: collapse; font-size: 1.02rem; }
.table th { font: 700 .82rem/1.2 "Cinzel", Georgia, serif; color: var(--bronze-hi); text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--line); letter-spacing: .03em; white-space: nowrap; }
.table td { padding: 9px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tbody tr:nth-child(even) td { background: rgba(28, 39, 49, .35); }
.table tbody tr:hover td { background: rgba(43, 59, 74, .45); }
.table .r { text-align: right; }
.table .c { text-align: center; }
.table .ico { width: 44px; padding-right: 0; }
.table .ico img { width: 36px; height: 36px; }
.table a.row-link { color: var(--text); font-weight: 700; }
.table a.row-link:hover { color: var(--gold); }
.rank-n { width: 52px; color: var(--mute); font-variant-numeric: tabular-nums; }
.rank-top td { background: rgba(60, 44, 24, .28) !important; }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who .ring { width: 38px; }
.who a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.voc-tag { color: var(--mute); font-size: .95rem; white-space: nowrap; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 18px; flex-wrap: wrap; }
.empty { padding: 36px 10px; text-align: center; color: var(--mute); }
.empty b { display: block; font: 700 1.25rem/1.3 "Cinzel", Georgia, serif; color: var(--gold); margin-bottom: 6px; }
.stamp { margin-top: 12px; color: var(--dim); font-size: .9rem; }

/* wiki */
.wiki-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(10px, 1.6vw, 18px); }
.tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; aspect-ratio: 4 / 5; padding: 16px 10px; border-radius: 4px; overflow: hidden; color: var(--text); background: radial-gradient(ellipse 80% 60% at 50% 38%, #2d3f50, var(--well) 70%); box-shadow: 0 0 0 1px var(--line), inset 0 -60px 60px -30px rgba(8, 12, 18, .8); isolation: isolate; }
.tile:hover { box-shadow: 0 0 0 1px var(--bronze-hi), inset 0 -60px 60px -30px rgba(8, 12, 18, .8); color: var(--text); }
.tile .art { position: absolute; inset: 6% 8% 26%; display: grid; place-items: center; z-index: -1; }
.tile .art img { max-height: 100%; object-fit: contain; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .5)); transition: transform .3s ease; }
.tile:hover .art img { transform: scale(1.05); }
.tile .art.cluster { grid-template-columns: 1fr 1fr; gap: 6px; inset: 8% 14% 28%; }
.tile .art.cluster img { width: 100%; height: 100%; }
.tile .art img.round { border-radius: 50%; }
.tile b { font: 700 1.2rem/1.2 "Cinzel", Georgia, serif; color: var(--gold); }
.tile span { color: var(--mute); font-size: .95rem; }
.results { margin-top: 20px; }
.results h3 { margin: 18px 0 8px; font-size: 1rem; color: var(--bronze-hi); }
.hits { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px; }
.hit { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 4px; background: rgba(28, 39, 49, .5); color: var(--text); }
.hit:hover { background: rgba(43, 59, 74, .7); color: var(--gold); }
.hit img { width: 40px; height: 40px; object-fit: contain; }

.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px 12px; }
.mcard { display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--text); padding: 4px 4px 10px; border-radius: 6px; }
.mcard:hover { background: rgba(28, 39, 49, .55); color: var(--text); }
.mcard .stage { position: relative; width: 100%; aspect-ratio: 1; background: radial-gradient(ellipse 60% 50% at 50% 55%, rgba(60, 82, 104, .38), transparent 70%); }
.mcard .stage::before { content: ""; position: absolute; left: 18%; right: 18%; bottom: 5%; height: 10%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent); }
.mcard img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.mcard b { margin-top: 2px; font: 700 1rem/1.2 "Cinzel", Georgia, serif; color: var(--text); }
.mcard:hover b { color: var(--gold); }
.mcard small { color: var(--mute); font-size: .9rem; margin-top: 2px; }
.mcard .boss { color: var(--r-veryRare); }

.detail { display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: clamp(20px, 4vw, 50px); align-items: start; }
.portrait { position: sticky; top: 76px; }
.portrait .stage { position: relative; aspect-ratio: 1; background: radial-gradient(ellipse 58% 48% at 50% 56%, rgba(70, 96, 120, .45), transparent 72%); }
.portrait .stage::before { content: ""; position: absolute; left: 16%; right: 16%; bottom: 5%; height: 10%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .6), transparent); }
.portrait img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.portrait .big-icon { width: 70%; height: auto; margin: 15% auto; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .55)); }
.desc { margin-top: 10px; color: var(--text); font-size: 1.12rem; font-style: italic; max-width: 60ch; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag { padding: 3px 10px; border-radius: 999px; font-size: .88rem; font-weight: 700; border: 1px solid var(--line); color: var(--mute); }
.tag.gold { color: var(--r-veryRare); border-color: rgba(255, 191, 90, .5); }
.tag.red { color: #ff9a8a; border-color: rgba(255, 120, 100, .45); }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 20px; }
.stat { padding: 12px 14px; border-radius: 6px; background: rgba(28, 39, 49, .7); border: 1px solid var(--line-soft); }
.stat small { display: block; color: var(--mute); font-size: .88rem; }
.stat b { display: block; font: 700 1.45rem/1.15 "Cinzel", Georgia, serif; color: var(--text); margin-top: 2px; font-variant-numeric: lining-nums tabular-nums; }
.stat b.gold { color: var(--gold); }
.sect { margin-top: 30px; }
.sect > h2 { font-size: 1.35rem; margin-bottom: 12px; }
.els { display: flex; flex-wrap: wrap; gap: 8px; }
.el { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 6px; background: rgba(28, 39, 49, .8); border: 1px solid var(--line-soft); font-weight: 700; font-size: .98rem; }
.el i { width: 10px; height: 10px; border-radius: 50%; background: currentColor; flex: none; }
.el .pct { font-variant-numeric: tabular-nums; }
.el.strong .pct { color: #9fe08a; }
.el.weak .pct { color: #ff8f80; }
.el.immune .pct { color: var(--silver); }
.el-note { margin-top: 8px; color: var(--dim); font-size: .92rem; }
.attacks { list-style: none; margin: 0; padding: 0; }
.attacks li { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.attacks li:last-child { border-bottom: 0; }
.attacks b { font-weight: 700; }
.attacks .dmg { font-variant-numeric: tabular-nums; color: var(--text); font-weight: 700; text-align: right; }
.attacks small { grid-column: 1 / -1; color: var(--mute); font-size: .92rem; }
.loot { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.loot a { display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 6px; border-radius: 5px; background: rgba(28, 39, 49, .6); color: var(--text); border-left: 3px solid var(--rc, var(--r-common)); }
.loot a:hover { background: rgba(43, 59, 74, .8); color: var(--gold); }
.loot img { width: 38px; height: 38px; flex: none; }
.loot .lname { flex: 1; min-width: 0; line-height: 1.2; }
.loot small { display: block; color: var(--rc, var(--r-common)); font-size: .82rem; font-weight: 700; }
.where { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.where li { padding: 6px 12px; border-radius: 6px; background: rgba(28, 39, 49, .7); border: 1px solid var(--line-soft); }
.where small { color: var(--mute); margin-left: 6px; }
.mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.mini { display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--text); padding: 6px; border-radius: 6px; }
.mini:hover { background: rgba(28, 39, 49, .6); color: var(--gold); }
.mini img { width: 96px; height: 96px; object-fit: contain; }
.mini small { color: var(--rc, var(--mute)); font-size: .82rem; font-weight: 700; }
.quote { margin-top: 14px; padding: 12px 16px; border-left: 3px solid var(--bronze); background: rgba(28, 39, 49, .55); font-style: italic; font-size: 1.08rem; max-width: 62ch; }
.quote em { font-style: italic; color: var(--gold); }
.words { font-family: "Cinzel", Georgia, serif; color: var(--gold); font-size: .95rem; letter-spacing: .02em; }
.bars { display: grid; grid-template-columns: auto 1fr auto; gap: 6px 12px; align-items: center; margin-top: 12px; max-width: 420px; }
.bars span { font-weight: 700; }
.bars .bar-track { height: 10px; border-radius: 5px; background: rgba(0, 0, 0, .45); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); overflow: hidden; }
.bars .bar-fill { height: 100%; border-radius: 5px; }
.bars b { font-variant-numeric: tabular-nums; }
.vocrow { display: grid; grid-template-columns: 180px 1fr; gap: clamp(16px, 3vw, 36px); align-items: start; padding: 26px 0; border-bottom: 1px solid var(--line-soft); }
.vocrow:last-child { border-bottom: 0; }
.spell-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.spell-list a { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: rgba(28, 39, 49, .7); color: var(--text); font-size: .95rem; }
.spell-list a:hover { color: var(--gold); }
.spell-list img { width: 26px; height: 26px; border-radius: 50%; }
.spell-list small { color: var(--dim); }

/* world and character */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 3vw, 36px); align-items: start; }
.clock-card { display: flex; align-items: center; gap: 18px; }
.clock-card .sky { width: 64px; height: 64px; box-shadow: 0 0 0 2px rgba(239, 186, 130, .7), 0 0 14px rgba(0, 0, 0, .6); }
.clock-card b { display: block; font: 700 2.4rem/1 "Cinzel", Georgia, serif; color: var(--gold); font-variant-numeric: tabular-nums; }
.clock-card span { color: var(--mute); }
.h-sm { font-size: 1.4rem; margin-bottom: 10px; }
.h-gap { margin-top: 26px; }
.gap-top { margin-top: 26px; }
.head-char { min-height: clamp(220px, 26vw, 300px); }
.charhead { display: flex; align-items: flex-end; gap: clamp(14px, 3vw, 28px); }
.charhead .ring { width: clamp(96px, 14vw, 150px); margin-bottom: -6px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .6)); }
.charhead h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.8rem); word-break: break-word; }
.charcard { display: grid; grid-template-columns: auto 1fr; gap: clamp(16px, 3vw, 30px); align-items: center; }
.charcard .ring { width: clamp(120px, 18vw, 180px); }
.charcard h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.8rem); word-break: break-word; }
.charcard .sub { margin-top: 6px; font-size: 1.15rem; }
.online-badge { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 700; }
.skills { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.skill { display: flex; justify-content: space-between; padding: 10px 14px; border-radius: 6px; background: rgba(28, 39, 49, .7); border: 1px solid var(--line-soft); }
.skill b { font-variant-numeric: tabular-nums; color: var(--gold); }
.find { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.find .search { max-width: none; }
.loading { padding: 130px 0 90px; display: grid; place-items: center; color: var(--mute); }
.spin { width: 44px; height: 44px; border-radius: 50%; border: 3px solid rgba(182, 131, 75, .2); border-top-color: var(--bronze-hi); animation: spin 1s linear infinite; margin-bottom: 14px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- footer */

.foot { margin-top: clamp(40px, 6vw, 70px); border-top: 1px solid var(--line-soft); background: rgba(10, 15, 21, .6); }
.foot-in { max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 26px var(--gut) 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; color: var(--dim); font-size: .95rem; }
.foot nav { display: flex; gap: 18px; }
.foot nav a { color: var(--mute); }
.foot nav a:hover { color: var(--gold); }
.foot p { flex-basis: 100%; }
.foot-copy { margin-top: -6px; }
.home .foot { margin-top: 0; }

/* ---------------------------------------------------------------- narrow screens */

@media (max-width: 960px) {
  .wiki-tiles { grid-template-columns: repeat(3, 1fr); }
  .detail { grid-template-columns: 1fr; }
  .portrait { position: static; max-width: 360px; margin: 0 auto; }
  .two, .live { grid-template-columns: 1fr; }
  .hide-md { display: none; }
}
@media (max-width: 720px) {
  :root { --t-base: 1.0625rem; }
  .bar-in { gap: 8px; }
  .bar-logo img { height: 34px; }
  .bar-nav a { font-size: .92rem; padding: 12px 4px; }
  .btn-bar { font-size: .88rem; border-width: 11px 12px; border-image-width: 11px 12px; padding: 0 4px; min-height: 36px; }
  .home .bar-nav { margin-left: 0; }
  .vocs { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
  .voc .ring { width: min(100%, 160px); }
  .feats { grid-template-columns: 1fr; grid-template-rows: none; height: auto; }
  .feat:first-child { grid-row: auto; }
  .feat { aspect-ratio: 4 / 3; }
  .beasts { justify-content: flex-start; }
  .cta-in { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .cta h2, .cta p { margin-left: auto; margin-right: auto; }
  .cta::before { background: linear-gradient(to bottom, var(--night), rgba(10, 15, 22, .78) 22%, rgba(10, 15, 22, .7) 70%, var(--night)); }
  .stores { justify-content: center; }
  .phone { width: 220px; }
  .wiki-tiles { grid-template-columns: repeat(2, 1fr); }
  .wiki-tiles .tile:last-child { grid-column: span 2; aspect-ratio: auto; min-height: 150px; }
  .mgrid { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); }
  .hide-sm { display: none; }
  .table { font-size: .98rem; }
  .table td, .table th { padding: 8px 6px; }
  .vocrow { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .vocrow .bars { margin-left: auto; margin-right: auto; text-align: left; }
  .vocrow .spell-list { justify-content: center; }
  .charcard { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}
@media (max-width: 400px) {
  .bar-nav a { font-size: .85rem; }
  .lang { padding: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
