@font-face { font-family: Rubik; src: url("assets/fonts/Rubik-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Rubik; src: url("assets/fonts/Rubik-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
:root {
  color-scheme: dark;
  --bg: #080e29;
  --glass: rgba(10, 16, 48, .76);
  --line: #356b9e;
  --ink: #f3f7ff;
  --muted: #becdeb;
  --cyan: #5fd3ff;
  --gold: #f5c451;
  --violet: #8b5cf6;
  --element: #bac9ed;
  font: 16px/1.5 Rubik, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; color: var(--ink); background: var(--bg); isolation: isolate; }
body::before, body::after { content: ""; position: fixed; inset: 0; pointer-events: none; }
body::before {
  z-index: -2;
  background: linear-gradient(180deg, #05091cab, #07113336 65%, #070c2342), url("assets/bg-wide.webp") center bottom / cover no-repeat fixed;
}
body::after {
  z-index: -1;
  background: radial-gradient(1.5px 1.5px at 14% 21%, #dcf8ff 65%, transparent),
    radial-gradient(2px 2px at 72% 27%, #81dcff 60%, transparent),
    radial-gradient(1.5px 1.5px at 54% 60%, #edcd85 65%, transparent);
  background-size: 269px 239px, 389px 311px, 337px 283px;
  animation: twinkle 8s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .18; } to { opacity: .72; } }
@keyframes float { 50% { transform: translateY(-9px); } }
[hidden] { display: none !important; }
a { color: #9ce5ff; text-underline-offset: .22em; }
a:hover { color: #fff1bd; }
:focus-visible { outline: 2px solid #ffe391; outline-offset: 3px; }
.shell { width: min(1560px, calc(100% - 2rem)); margin-inline: auto; }
header, footer { background: #070e29eb; border-block-end: 1px solid var(--line); }
.masthead, #sections, .footer-content { display: flex; align-items: center; gap: .55rem; }
.masthead { justify-content: space-between; min-height: 74px; }
.brand { display: inline-flex; gap: .55rem; align-items: center; color: var(--ink); font-size: clamp(1rem, 3vw, 1.3rem); font-weight: 700; text-decoration: none; }
.brand img { width: 48px; height: auto; }
.decor { display: inline-block; object-fit: contain; vertical-align: middle; max-width: 100%; }
#sections { flex-wrap: wrap; }
#sections a { color: var(--muted); text-decoration: none; border: 1px solid transparent; padding: .38rem .7rem; border-radius: 999px; }
#sections a:is(:hover, [aria-current]) { color: var(--ink); border-color: #487fb4; background: #1a3562; box-shadow: inset 0 0 12px #5fd3ff24, 0 0 12px #5fd3ff32; }
.tudan-chips, .tudan-codes, .tudan-guide-list { list-style: none; padding: 0; }
.tudan-chips, .tudan-codes { display: flex; flex-wrap: wrap; gap: .5rem; }
.tudan-chips li, .tudan-codes li { padding: .3rem .65rem; border: 1px solid #487fb4; border-radius: .6rem; overflow-wrap: anywhere; }
.tudan-codes li { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; max-width: 100%; }
.tudan-guide-list, .tudan-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: .75rem; }
.tudan-fields { margin-bottom: .8rem; }
/* Заголовок по центру (кот справа) */
.section-heading.is-centered { display: grid; grid-template-columns: 1fr auto 1fr; text-align: center; }
.section-heading.is-centered::before { content: ""; }
.section-heading.is-centered > .cat { justify-self: end; }
/* Кнопки гайдов — в стиле плашки анонса альянсовой акции */
.tudan-guide-list { margin: 0 0 1rem; gap: 1rem; }
.tudan-guide-list li { display: flex; margin: 0; }
.tudan-guide-btn { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .45rem;
  text-align: center; min-height: 8.5rem; margin: 0; padding: .9rem 1.4rem 1.1rem; border-radius: 22px; border: 3px solid #a98bff;
  background: radial-gradient(120% 70% at 50% 0%, #8fa4ff8c, transparent 60%), linear-gradient(180deg, #5466ff 0%, #3b3fd8 48%, #2a1f95 100%);
  box-shadow: inset 0 2px 0 #ffffff70, inset 0 -6px 14px #1a0f6a, inset 0 0 0 2px #2b1c8a, 0 0 0 2px #23166e, 0 10px 22px #02061ba0, 0 0 22px #8a6bff55;
  color: #fff; font-weight: 800; font-size: 1.06rem; letter-spacing: .02em; text-transform: uppercase; line-height: 1.2; text-decoration: none;
  text-shadow: 0 2px 0 #1b1470, 0 0 2px #1b1470, 1px 1px 0 #1b1470, -1px 1px 0 #1b1470; cursor: pointer;
  transition: transform .15s, box-shadow .15s, border-color .15s, filter .15s; }
.tudan-guide-btn img { width: 3.6rem; height: 3.6rem; object-fit: contain; filter: drop-shadow(0 4px 6px #0b0640b0); }
.tudan-guide-btn::after { content: ""; position: absolute; left: 50%; bottom: -.6rem; width: .95rem; height: .95rem; margin-left: -.48rem;
  background: linear-gradient(135deg, #e8fdff, #6fe0ff 45%, #2a8bdc); border: 1px solid #c9f6ff; transform: rotate(45deg);
  box-shadow: 0 0 10px #6fe0ffb0; }
.tudan-guide-list { row-gap: 1.4rem; }
.tudan-guide-btn:hover, .tudan-guide-btn:focus-visible { transform: translateY(-3px); border-color: #ffd27a; filter: brightness(1.12);
  box-shadow: inset 0 2px 0 #ffffff80, inset 0 -6px 14px #1a0f6a, inset 0 0 0 2px #2b1c8a, 0 0 0 2px #23166e, 0 12px 26px #02061bb0, 0 0 28px #ffd27a66; }
.tudan-fields :is(label, input, select) { min-width: 0; width: 100%; }
.tudan-table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.tudan-table th, .tudan-table td { border-bottom: 1px solid #487fb4; padding: .45rem .25rem; text-align: left; overflow-wrap: anywhere; }
.tudan-table :is(th, td):nth-child(2):has(+ :nth-child(3)) { width: 2rem; }
.tudan-table img { vertical-align: middle; margin-right: .25rem; }
.tudan-table tr[aria-current] { background: #243f66; box-shadow: inset .18rem 0 #e7bd72; }
.menu-toggle { display: none; }
main { flex: 1; padding-block: 1.75rem 3.2rem; }
footer { border-top: 1px solid var(--line); border-bottom: 0; padding-block: .7rem; color: var(--muted); font-size: .88rem; }
.footer-content { gap: 1rem; }
.footer-content .cat { width: clamp(74px, 14vw, 130px); }
.skip { position: absolute; z-index: 3; top: .5rem; left: .5rem; transform: translateY(-200%); padding: .5rem; background: var(--bg); }
.skip:focus { transform: none; }
h1, h2, h3 { margin: 0 0 .55em; line-height: 1.14; overflow-wrap: anywhere; }
h1 { font-size: clamp(2rem, 6vw, 4rem); text-shadow: 0 1px #eec372, 0 0 22px #5fd3ff85; }
h2 { font-size: clamp(1.25rem, 2.5vw, 1.65rem); text-shadow: 0 0 16px #5fd3ff65; }
h3 { font-size: 1.08rem; color: var(--gold); }
p { margin: 0 0 .65rem; }
p:last-child { margin-bottom: 0; }
.muted, small { color: var(--muted); }
.description { white-space: pre-line; }
.time, .countdown { font-variant-numeric: tabular-nums; }
.panel, .hero-card, .welcome {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--glass);
  box-shadow: inset 0 0 0 3px #0f173b, inset 0 0 0 4px #dca54938, 0 9px 24px #02061b85, 0 0 12px #5fd3ff24;
}
.panel, .welcome { backdrop-filter: blur(7px); }
.panel { padding: clamp(.85rem, 2vw, 1.4rem); margin-block: 0 1rem; overflow-wrap: anywhere; }
.cat { display: block; width: clamp(96px, 16vw, 170px); aspect-ratio: 1; object-fit: contain; flex: none; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: .65rem; padding-block: .2rem; min-height: 115px; }
.section-heading h1 { margin-bottom: .18em; }
.welcome {
  display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 1rem;
  padding: clamp(1rem, 4vw, 3rem); margin-bottom: 1rem; overflow: hidden;
  background: radial-gradient(ellipse at 78% 72%, #327bcd55, transparent 53%), linear-gradient(112deg, #0d163ce8, #15174595 66%, #4f2aa66b);
}
.welcome-copy { min-width: 0; }
.welcome-copy > .decor { width: clamp(60px, 8vw, 100px); margin-bottom: .65rem; }
.welcome h1 { margin-bottom: .18em; }
.welcome .muted { font-size: clamp(1rem, 2vw, 1.26rem); margin-bottom: 1.35rem; }
.welcome-stage { display: grid; place-items: center; }
.float { position: relative; display: grid; justify-items: center; width: min(100%, 360px); animation: float 6s ease-in-out infinite; }
.float .cat { width: 86%; z-index: 1; margin-bottom: -23%; filter: drop-shadow(0 0 21px #63d8ff65); }
.float .decor { width: 100%; }
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .7rem; margin-bottom: 1.25rem; }
.tiles a { display: grid; justify-items: center; gap: .15rem; margin: 0; text-align: center; color: var(--ink); text-decoration: none; }
.tiles img { width: clamp(48px, 7vw, 78px); height: auto; aspect-ratio: 1; filter: drop-shadow(0 0 10px #5fd3ff55); }
.tiles small { color: var(--gold); }
.tiles a:hover, .hero-card:hover { border-color: var(--cyan); }
.split, .directory { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 295px), 1fr)); gap: .85rem; }
.split { align-items: start; }
.split .panel, .directory .panel { margin: 0; }
.directory { margin-bottom: 1.15rem; }

.search { max-width: 35rem; }
.search-row { display: flex; gap: .5rem; margin-top: .3rem; }
label { display: grid; align-content: start; gap: .3rem; min-width: 0; }
input, select, button { font: inherit; border: 1px solid #4f75a3; border-radius: .65rem; padding: .6rem .78rem; min-height: 44px; }
input, select { background: #0c193b; color: var(--ink); width: 100%; min-width: 0; }
button, .price { background: linear-gradient(#ffe69a, #f8c451 50%, #dc8e27); border: 1px solid #ffe399; color: #271500; font-weight: 700; box-shadow: inset 0 -3px #9c50094d, 0 3px 10px #03061a88; }
button { cursor: pointer; }
button:hover { box-shadow: inset 0 -3px #9c50094d, 0 0 20px #f5c45180; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 165px), 1fr)); gap: .65rem; margin-top: .8rem; }
.pills { margin: .7rem 0 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: .4rem; min-width: 0; }
.pills legend { margin-bottom: .35rem; }
.pills label { position: relative; }
.pills input { position: absolute; width: 1px; min-height: 0; height: 1px; opacity: 0; padding: 0; }
.pills label > span, .facts > div {
  display: inline-flex; align-items: center; gap: .25rem; border: 1px solid #345984;
  border-radius: 999px; background: #102449; padding: .32rem .7rem; color: var(--ink);
}
.pills label > span { min-height: 42px; cursor: pointer; }

.pills input:checked + span { background: #274c75; border-color: var(--cyan); box-shadow: 0 0 12px #5fd3ff4f; }
.pills input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.hero-grid, .family-grid { display: grid; list-style: none; padding: 0; gap: .7rem; }
.hero-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 145px), 1fr)); }
.family-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 165px), 1fr)); }
.hero-card {
  height: 100%; display: grid; justify-items: center; align-content: start; gap: .65rem;
  padding: .75rem .45rem; color: var(--ink); border-color: var(--element); text-decoration: none; text-align: center;
  overflow-wrap: anywhere; transition: transform .18s ease, box-shadow .18s ease;
}
.hero-card:hover { transform: translateY(-4px); box-shadow: 0 0 20px color-mix(in srgb, var(--element) 50%, transparent); }
[data-element="Red"] { --element: #ff5a4f; }
[data-element="Blue"] { --element: #4fb4ff; }
[data-element="Green"] { --element: #49d16a; }
[data-element="Yellow"] { --element: #ffd84a; }
[data-element="Purple"] { --element: #b06cff; }
.portrait {
  height: auto; width: min(120px, 100%); aspect-ratio: 1; object-fit: cover; border: 2px solid var(--element); border-radius: 15px;
  box-shadow: 0 0 16px color-mix(in srgb, var(--element) 50%, transparent);
}
.placeholder { display: grid; place-items: center; position: relative; isolation: isolate; background: radial-gradient(ellipse, var(--element), #14234e 77%); font-size: 2rem; font-weight: 700; text-shadow: 0 2px 8px #03061b, 0 0 6px #03061b; }
.placeholder::before { content: ""; position: absolute; z-index: -1; inset: 12%; opacity: .48; background: url("assets/decor/emblem.webp") center / contain no-repeat; }
.hero-intro { display: flex; align-items: center; gap: clamp(.8rem, 3vw, 2rem); }
.hero-intro h1 { margin-bottom: .15em; }
.hero-intro .portrait { flex: none; width: clamp(90px, 23vw, 200px); border-radius: 50%; font-size: clamp(2rem, 7vw, 4.5rem); }
.hero-rank { display: flex; align-items: center; justify-content: center; gap: .32rem; }
.hero-intro .hero-rank { justify-content: flex-start; }

.facts { display: flex; flex-wrap: wrap; gap: .4rem; margin: .6rem 0 0; }
.facts > div { flex-wrap: wrap; border-radius: 12px; }
dt { color: var(--muted); }
dd { margin: 0; font-weight: 700; }
.skill h2 { color: var(--gold); }
.no-results { display: grid; justify-items: center; }
#hero-more { display: block; margin-inline: auto; }
table { border-collapse: collapse; width: min(100%, 45rem); text-align: left; }
th, td { padding: .5rem .3rem; border-bottom: 1px solid #345685; }
meter, progress { display: block; width: min(100%, 16rem); height: .66rem; margin-top: .24rem; accent-color: var(--bar, var(--cyan)); }
meter::-webkit-meter-bar { background: #090f2c; border: 1px solid #405b83; border-radius: 7px; }
progress::-webkit-progress-bar { background: #090f2c; border: 1px solid #405b83; border-radius: 7px; }
meter::-webkit-meter-optimum-value { background: var(--bar, var(--cyan)); border-radius: 6px; }
progress::-webkit-progress-value { background: var(--bar, var(--cyan)); border-radius: 6px; }
meter::-moz-meter-bar { background: var(--bar, var(--cyan)); border-radius: 6px; }
progress::-moz-progress-bar { background: var(--bar, var(--cyan)); border-radius: 6px; }
[data-rarity="1"] { --bar: #a7b0be; }
[data-rarity="2"] { --bar: #49d16a; }
[data-rarity="3"] { --bar: #4fb4ff; }
[data-rarity="4"] { --bar: #ad77ff; }
[data-rarity="5"] { --bar: #f5c451; }
.entries { margin: 0 0 .65rem; padding: 0; list-style: none; }
.entries > li { padding: .55rem 0; }
.entries > li + li { border-top: 1px solid #42649063; }
.timeline { padding-left: 1rem; border-left: 1px solid #527fae; }
.timeline > li { position: relative; margin-bottom: .45rem; padding: .55rem .65rem; border: 1px solid #4264908c; border-radius: 10px; background: #172f577a; }
.timeline > li::before { content: ""; position: absolute; left: -1.27rem; top: .95rem; width: .45rem; aspect-ratio: 1; transform: rotate(45deg); background: var(--cyan); box-shadow: 0 0 9px var(--cyan); }
.timeline > .featured-event { border-color: var(--gold); box-shadow: 0 0 14px #f5c45143; }
.timeline > .featured-event::before { background: var(--gold); box-shadow: 0 0 9px var(--gold); }
.kind, .price { display: inline-block; padding: .12rem .45rem; border-radius: 999px; }
.kind { background: #29426e; font-size: .78rem; margin-right: .25rem; }
.kind.portal { color: #b1f0ff; background: #17456a; }
.kind.event { color: #eee2ff; background: #553591; }
.kind.offer { color: #ffe6aa; background: #654617; }
.countdown { color: var(--gold); font-size: .86rem; }
details { margin-block: .65rem; }
summary { font-weight: 700; cursor: pointer; color: var(--gold); }
details[open] > summary { margin-bottom: .6rem; }
.family-grid a { color: color-mix(in srgb, var(--element) 70%, white); }
:target { scroll-margin-block-start: 1rem; }
@media (max-width: 1100px) {
  .masthead { flex-wrap: wrap; padding-block: .5rem; }
  .menu-toggle { display: block; }
  #sections { width: 100%; padding-bottom: .3rem; }
  .menu-toggle[aria-expanded="false"] + #sections { display: none; }
  #sections { flex-direction: column; align-items: stretch; }
  #sections a { text-align: center; }
}
@media (max-width: 580px) {
  .shell { width: calc(100% - 1.25rem); }
  body::before { background-attachment: scroll; background-position: center bottom; }
  main { padding-block-start: .9rem; }
  .welcome { grid-template-columns: minmax(0, 1fr); gap: .45rem; }
  .welcome-stage { justify-items: end; }
  .float { width: 156px; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; }
  .tiles a { padding-inline: .36rem; }
  .hero-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-intro { align-items: start; flex-wrap: wrap; }
  .hero-intro > div:last-child { flex: 1 1 175px; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  body::after, .float { animation: none; }
  .hero-card { transition: none; }
}

.game-icon { object-fit: contain; vertical-align: middle; margin-inline-end: .25em; }
.stars { display: inline-flex; gap: 1px; align-items: center; vertical-align: middle; }
.stars .game-icon { margin: 0; }
.filter-label { display: flex; align-items: center; gap: .3rem; min-height: 24px; }
.hero-card { background-image: linear-gradient(#0a103093, #0a1030), var(--hero-landscape, none); background-size: cover; background-position: center; }
.hero-icons { flex-wrap: wrap; margin-top: .2rem; }
.hero-intro { position: relative; isolation: isolate; overflow: hidden; }
.hero-landscape { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.hero-intro .hero-art { object-fit: contain; width: clamp(110px, 31vw, 260px); border-radius: 18px; background: #080e2260; }
.facts dd { display: flex; align-items: center; }
.family-grid .stars { margin-inline: .25em; }
.game-banner { display: block; width: min(100%, 640px); height: auto; margin: .55rem 0; border-radius: 12px; }
.portal-card .game-banner { width: 100%; }
.timeline .game-banner { width: min(100%, 320px); }
.stat-table { overflow-x: auto; }
.stat-table th:first-child { white-space: nowrap; }
.entries li > .game-icon + .description { display: inline; }
.welcome img.decor { height: auto; }

[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.exchange-tabs { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .8rem; }
.exchange-tabs button[aria-pressed="true"] { border-color: #e7c56e; color: #ffe4a0; background: #254477; }
.exchange-pair { display: grid; grid-template-columns: minmax(0, 27rem) auto minmax(0, 27rem); gap: .6rem; align-items: center; justify-content: center; }
.exchange-vs { color: #ffe4a0; font-weight: 800; }
.exchange-roster { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: .65rem; }
.exchange-card { min-width: 0; text-align: center; }
.exchange-pair .exchange-card { position: relative; }
.exchange-pair .exchange-card:has(.exchange-choice:hover) { border-color: var(--gold); }
.exchange-pair .exchange-card > a { position: relative; z-index: 1; }
.exchange-choice { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; background: transparent; box-shadow: none; }
.exchange-choice:hover { background: #e7c56e14; box-shadow: none; }
.exchange-choice:disabled { cursor: wait; }
.exchange-art { display: block; margin-inline: auto; width: min(100%, 14rem); height: clamp(5rem, 26vh, 15rem); object-fit: contain; }
.exchange-icons { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .22rem; }
.exchange-icons .stars img { width: clamp(9px, 2.3vw, 18px); height: auto; }
.exchange-stats { font-size: .85rem; text-align: start; margin: .45rem auto; max-width: 15rem; }
.exchange-stats div { display: flex; gap: .25rem; justify-content: space-between; }
.exchange-stats dt img { vertical-align: middle; margin-right: .25rem; }
.exchange-stats dd { margin: 0; }
.exchange-ranking { padding: 0; list-style: none; margin: 0 0 1.2rem; }
.exchange-ranking li { display: grid; grid-template-columns: 2rem minmax(0, 1fr) minmax(7rem, 14rem); gap: .7rem; align-items: center;
  margin-bottom: .45rem; padding: .4rem .7rem; border: 1px solid #e7c56e33; border-radius: 12px; background: #0b1a4acc; }
.exchange-ranking li > span:first-child { font-weight: 700; font-size: 1.15rem; color: var(--gold); text-align: center; }
.exchange-ranking li:nth-child(1) > span:first-child { font-size: 1.4rem; text-shadow: 0 0 10px #e7c56e99; }
.exchange-rank-hero { display: flex; align-items: center; gap: .65rem; overflow-wrap: anywhere; min-width: 0; font-weight: 700; }
.exchange-rank-hero img { width: 3.2rem; height: 3.2rem; flex: none; object-fit: cover; border-radius: 10px; border: 2px solid #e7c56e88; background: #061033; }
.exchange-result { font-size: .9rem; white-space: nowrap; text-align: end; color: #cfe0ff; }
.exchange-ranking progress { display: block; width: 100%; height: .6rem; margin-top: .3rem; border: 0; border-radius: 99px; overflow: hidden; background: #ffffff1f; accent-color: #e7c56e; }
.exchange-ranking progress::-webkit-progress-bar { background: #ffffff1f; border-radius: 99px; }
.exchange-ranking progress::-webkit-progress-value { background: linear-gradient(90deg, #b8862b, #ffe08a); border-radius: 99px; }
.exchange-ranking progress::-moz-progress-bar { background: linear-gradient(90deg, #b8862b, #ffe08a); border-radius: 99px; }
@media (max-width: 580px) {
  .exchange-pair { gap: .25rem; }
  .exchange-pair .panel { padding: .2rem; }
  .exchange-card h3 { font-size: 1rem; }
  .exchange-art { height: clamp(5rem, 18vh, 8rem); }
  .exchange-stats dt img { display: none; }
  .exchange-vs { font-size: .75rem; }
  .exchange-ranking li { grid-template-columns: 1.3rem minmax(0, 1fr) minmax(0, 6.5rem); gap: .45rem; padding: .35rem .45rem; }
  .exchange-rank-hero img { width: 2.4rem; height: 2.4rem; }
  .exchange-result { font-size: .8rem; }
}

.offer-notice { color: #ffda92; }
.offer-filters { display: grid; gap: .75rem; }
.offer-filters label { display: grid; gap: .35rem; max-width: 27rem; }
.offer-categories { display: flex; flex-wrap: wrap; gap: .45rem; }
.offer-week { margin-block: 1rem; }
.offer-week h2 { margin-top: 0; }
.offer-week-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .4rem; }
.offer-day { min-width: 0; padding: .35rem; border: 1px solid #3c5985; border-radius: .65rem; background: #102747bb; }
.offer-day.is-past { opacity: .63; }
.offer-day.is-today { border-color: #ffcf75; box-shadow: inset 0 0 0 1px #ffcf75; }
.offer-day-heading { display: grid; gap: .15rem; margin-bottom: .45rem; color: var(--muted); font-size: .73rem; overflow-wrap: anywhere; }
.offer-day-heading time { color: var(--ink); font-size: 1.15rem; font-weight: 800; }
.offer-pill { display: flex; align-items: center; gap: .3rem; min-width: 0; padding: .3rem .4rem;
  background: linear-gradient(160deg, var(--offer-top, #405278), var(--offer-bottom, #202b49));
  border: 1px solid #b5a2e8; border-radius: .55rem; color: #fff; font-weight: 750;
  text-shadow: 0 1px 2px #10102b, 0 0 3px #10102b; }
.offer-day .offer-pill { width: 100%; margin-top: .25rem; font-size: .78rem; }
.offer-pill:hover, .offer-pill:focus-visible { border-color: #ffd27a; filter: brightness(1.18); }
.offer-pill[aria-pressed=false] { opacity: .55; }
.offer-pill img { flex: 0 0 18px; object-fit: contain; }
.offer-pill-name { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: left; }
.offer-pill small { color: #ffda92; font-size: .62rem; }
.offer-day .offer-pill-name { white-space: normal; overflow-wrap: normal; word-break: normal; hyphens: auto; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.15; }
.offer-day .offer-pill img { flex-basis: 20px; }
.offer-ongoing { margin-top: .45rem; }
.offer-ongoing summary { cursor: pointer; padding: .25rem .4rem; border: 1px dashed #5a78a8; border-radius: .5rem;
  color: var(--muted); font-size: .72rem; text-align: center; list-style: none; }
.offer-ongoing summary::-webkit-details-marker { display: none; }
.offer-ongoing summary:hover { color: #ffd27a; border-color: #ffd27a; }
.offer-ongoing[open] summary { color: #ffd27a; }
.offer-ongoing .offer-pill { opacity: .85; }
.offer-summon { --offer-top: #3659a7; --offer-bottom: #202c70; }
.offer-dragon { --offer-top: #a34a24; --offer-bottom: #622413; }
.offer-alliance { --offer-top: #714ca2; --offer-bottom: #412767; }
.offer-hotm { --offer-top: #916b21; --offer-bottom: #563c12; }
.offer-aether { --offer-top: #287b9e; --offer-bottom: #1b496a; }
.offer-lures { --offer-top: #9c3e60; --offer-bottom: #5c223f; }
.offer-resources { --offer-top: #377746; --offer-bottom: #214732; }

.offer-dialog { box-sizing: border-box; position: fixed; width: min(740px, calc(100% - 1rem)); max-height: 90dvh;
  overflow: auto; overflow-wrap: anywhere; padding: clamp(.85rem, 3vw, 1.5rem); background: #111f3d;
  border: 1px solid #e8ba6e; border-radius: 1rem; color: var(--ink); }
.offer-dialog::backdrop { background: #030917bf; }
.offer-dialog h2 { margin: 0 2.8rem .35rem 0; }
.offer-close { float: right; min-width: 2.5rem; font-size: 1.25rem; }
.offer-card-image { display: block; width: min(100%, 520px); height: auto; margin: .75rem auto; }
.offer-badge { display: inline-block; padding: .2rem .55rem; border: 1px solid #b5a2e8; border-radius: .5rem; background: #412767; }
.offer-levels { width: 100%; table-layout: fixed; }
.offer-levels th:first-child { width: 31%; }
.offer-levels td { vertical-align: top; }
.offer-levels td:first-child > :is(span, strong, small) { display: block; }
.offer-rubles { color: #ffda92; font-size: 1.15rem; }
.offer-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 5rem), 1fr));
  padding: 0; margin: .25rem 0; gap: .3rem; list-style: none; }
.offer-items li { display: grid; justify-items: center; align-content: start; text-align: center;
  padding: .25rem; border-radius: .35rem; background: #243860; font-size: .75rem; }
.offer-items img { width: 2.4rem; height: 2.4rem; object-fit: contain; }
.offer-gift { background: #382451; }
@media (max-width: 700px) {
  .offer-week-grid { grid-template-columns: minmax(0, 1fr); }
  .offer-day-heading { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
  .offer-day .offer-pill { font-size: .88rem; }
}

.talent-stats table { width: 100%; table-layout: fixed; text-align: center; }
.talent-stats th, .talent-stats td { padding: .45rem .15rem; overflow-wrap: anywhere; }
.talent-stats img { display: block; width: 21px; height: 21px; margin: auto; object-fit: contain; }
.talent-stats small { display: block; color: #a4afc4; font-size: .75rem; }
.talent-stat-result { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 .3rem; }
.talent-stat-result strong { color: #ffe192; font-size: clamp(1rem, 3.8vw, 1.4rem); }
.talent-stat-result span { color: #a4ffb9; font-size: .72rem; }
.talent-controls { display: grid; grid-template-columns: minmax(0, 1fr) repeat(4, auto); align-items: end; gap: .55rem; margin-block: 1rem; }
.talent-controls label { display: grid; gap: .25rem; min-width: 0; padding: .38rem .5rem; border: 1px solid #58638d; border-radius: .55rem; background: #111d3acc; color: #c3cee4; font-size: .78rem; white-space: nowrap; }
.talent-controls select, .talent-mana { width: 100%; min-width: 0; height: 2rem; color: #f0efff; font: inherit; }
.talent-controls select { background: #192547; border: 1px solid #8277b2; border-radius: .4rem; padding-inline: .35rem; text-overflow: ellipsis; }
.talent-mana { display: flex; align-items: center; gap: .3rem; cursor: pointer; }
.talent-mana input { appearance: none; position: relative; flex: none; width: 1.8rem; height: 1.05rem; margin: 0; border: 1px solid #8277b2; border-radius: 1rem; background: #192547; cursor: pointer; }
.talent-mana input:checked { background: #534ed4; }
.talent-mana input::before { content: ""; position: absolute; top: .13rem; left: .13rem; width: .66rem; height: .66rem; border-radius: 50%; background: #fff; }
.talent-mana input:checked::before { left: auto; right: .13rem; }
.talent-controls .tudan-guide-btn { min-height: 44px; padding: 0 .7rem; border-radius: .65rem; border-width: 2px; font-size: .85rem; text-transform: none; white-space: nowrap; }
.talent-controls .tudan-guide-btn::after { content: none; }
.talent-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 1rem; }
.talent-board { min-width: 0; text-align: center; padding: .65rem; border: 1px solid #58638d; border-radius: .85rem; background: radial-gradient(ellipse at 50% 20%, #263961, #10192f 70%); box-shadow: inset 0 0 22px #627ac52b; }
.talent-status { display: inline-block; margin: 0 0 .4rem; padding: .25rem .65rem; border: 1px solid #a68b53; border-radius: 1rem; background: #192547; color: #ffe192; font-size: .8rem; }
.talent-tree { container-type: inline-size; position: relative; width: min(100%, 300px); margin-inline: auto; }
.talent-tree svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.talent-tree line { stroke: #667395; stroke-width: 2px; vector-effect: non-scaling-stroke; }
.talent-tree line.selected { stroke: #7ee6ff; stroke-width: 4px; filter: drop-shadow(0 0 3px #52ccff); }
.talent-node { --node-size: 19cqw; position: absolute; transform: translate(-50%, -50%); width: var(--node-size); min-height: 0; aspect-ratio: 1; padding: 0; display: grid; place-content: center; justify-items: center; background: url(assets/game/talents/node.webp) center / contain no-repeat; color: #a4ffb9; border: 0; cursor: pointer; font-size: clamp(.58rem, 4.2cqw, .85rem); line-height: 1; font-weight: 800; text-shadow: 1px 0 #07101f, -1px 0 #07101f, 0 1px #07101f, 0 -1px #07101f; }
.talent-node.talent-skill { --node-size: 21.3cqw; }
.talent-node, .talent-node:hover { box-shadow: none; }
.talent-node img { width: calc(var(--node-size) * .55); height: calc(var(--node-size) * .55); object-fit: contain; }
.talent-node:disabled { background-image: url(assets/game/talents/node_locked.webp); cursor: default; opacity: .65; }
.talent-node.talent-master { background-image: url(assets/game/talents/node_master.webp); }
.talent-node[aria-pressed=true] { filter: drop-shadow(0 0 1px #ffda7c) drop-shadow(0 0 3px #ffbf42); }
.talent-node[aria-pressed=true]:not(.talent-master) { background-image: url(assets/game/talents/node_notches.webp); }
.talent-node:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.talent-summary { align-self: start; padding: 1rem; min-width: 0; background: #111d3acc; border: 1px solid #a68b535e; border-radius: .75rem; }
.talent-summary img { width: 24px; height: 24px; object-fit: contain; vertical-align: middle; margin-right: .4rem; }
.talent-summary ul { list-style: none; padding: 0; }
.talent-summary li { margin-block: .35rem; }
.talent-summary strong { color: #ffe192; }
@media (max-width: 700px) {
  .talent-layout { grid-template-columns: minmax(0, 1fr); }
  .talent-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .talent-controls .tudan-guide-btn { grid-column: 1 / -1; }
  .talent-stats table { font-size: .75rem; }
}
@media (max-width: 420px) {
  .talent-tree { width: min(100%, 212px); }
}
