/* www.yamiko.ru — «Аниме дня» (/anime-day) и страницы игр (/games). Подключается только на них, с ?v=хеш.
   Язык тот же, что у сайта: линии вместо карточек, один сиреневый акцент, антиква для крупного текста. */

.data-note { margin-top: 12px; font-size: 12px; line-height: 1.5; color: var(--ink-3); }
.live { font-weight: 700; color: var(--ok); }

/* ── Короткий заголовок: на странице игры поле ввода должно быть видно сразу ─────────────────────── */
.page-head-compact { padding-bottom: clamp(24px, 3vw, 40px); }
.page-head-compact h1 { font-size: clamp(40px, 6vw, 92px); max-width: 16ch; }
.page-head-compact .page-script { bottom: clamp(28px, 4vw, 52px); }

/* ── Режимы и аккаунт ──────────────────────────────────────────────────────────────────────────── */
.anime-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.anime-modes { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.anime-mode { position: relative; min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink-3); font: 600 15px/1 var(--sans); cursor: pointer; transition: color .3s var(--ease); }
.anime-mode:hover { color: var(--ink); }
.anime-mode[aria-selected="true"] { color: var(--ink); }
.anime-mode[aria-selected="true"]::after { content: ""; position: absolute; left: -6px; right: -6px; bottom: 4px; height: 10px; z-index: -1; background: var(--brand); -webkit-mask: url('/brush.svg') center/100% 100% no-repeat; mask: url('/brush.svg') center/100% 100% no-repeat; opacity: .85; }
.anime-mode { isolation: isolate; }
.anime-account { min-height: 44px; display: flex; align-items: center; }
.account-user { display: flex; align-items: center; gap: 12px; }
.account-avatar { width: 36px; height: 36px; object-fit: cover; box-shadow: inset 0 0 0 1px var(--line-2); background: var(--bg-2); }
svg.account-avatar.is-star { padding: 7px; fill: var(--brand-2); }
.account-name { font-weight: 600; font-size: 15px; }
.account-logout { font-size: 13px; color: var(--ink-3); transition: color .3s; }
.account-logout:hover { color: var(--ink); }
.account-guest { display: grid; gap: 2px; justify-items: end; text-align: right; }
.account-guest-text { font-size: 14px; color: var(--ink-2); }
.account-guest-how { font-size: 13px; color: var(--ink-3); }

/* ── Серия: звезда Yamiko с числом дней подряд — как огонёк в TikTok, но наша ─────────────────────── */
.streak { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px 28px; align-items: center; padding: 22px 0 0; }
.streak-badge { position: relative; display: flex; align-items: center; gap: 14px; }
.streak-star { width: 64px; height: 64px; flex: none; fill: none; stroke: var(--line-2); stroke-width: 14; stroke-linejoin: round; transition: fill .6s var(--ease), stroke .6s var(--ease); }
.streak.is-lit .streak-star { fill: var(--brand); stroke: var(--brand); }
.streak.is-pending .streak-star { stroke: var(--brand-2); stroke-dasharray: 26 18; }
.streak-count { margin: 0; overflow: hidden; font: 800 clamp(48px, 6vw, 72px)/1 var(--sans); letter-spacing: -.05em; font-variant-numeric: tabular-nums; color: var(--ink); }
.streak.is-zero .streak-count { color: var(--ink-3); }
.streak-num { display: inline-block; }
.streak-text { display: grid; gap: 8px; min-width: 0; }
.streak-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0; }
.streak-label { font: 400 clamp(20px, 2vw, 26px)/1.15 var(--display); letter-spacing: -.01em; }
.streak-milestone, .streak-up { font-size: clamp(22px, 2.2vw, 30px); line-height: 1; color: var(--brand-2); transform: rotate(-4deg); }
.streak-meta { margin: 0; font-size: 14px; color: var(--ink-3); }
.streak-week { display: flex; gap: 10px; margin: 4px 0 0; padding: 0; list-style: none; }
.streak-week li { display: grid; justify-items: center; gap: 4px; font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--ink-3); }
.streak-day { width: 20px; height: 20px; fill: none; stroke: var(--line-2); stroke-width: 22; stroke-linejoin: round; }
.streak-week li.is-on .streak-day { fill: var(--brand); stroke: var(--brand); }
.streak-week li.is-today { color: var(--ink); }
.streak-week li.is-today:not(.is-on) .streak-day { stroke: var(--brand-2); stroke-dasharray: 30 22; }
.streak .anime-next { margin: 2px 0 0; }
@keyframes streak-pop { 0% { transform: scale(.55) rotate(-24deg); } 55% { transform: scale(1.18) rotate(10deg); } 100% { transform: none; } }
@keyframes streak-num-in { from { transform: translateY(70%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes streak-up-in { from { transform: translateY(8px) rotate(-4deg); opacity: 0; } to { transform: rotate(-4deg); opacity: 1; } }
.streak.is-bumped .streak-star { animation: streak-pop .9s var(--ease) both; }
.streak.is-bumped .streak-num { animation: streak-num-in .6s var(--ease) .3s both; }
.streak.is-bumped .streak-up { animation: streak-up-in .6s var(--ease) .6s both; }

/* ── Бесконечный режим ────────────────────────────────────────────────────────────────────────── */
.endless-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 24px; align-items: center; padding: 18px 0 0; }
.endless-lead { margin: 0; font: 400 clamp(19px, 1.8vw, 24px)/1.2 var(--display); }
.endless-stats { grid-column: 1; margin: 0; font-size: 14px; color: var(--ink-3); }
.endless-actions { grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: center; gap: 18px; }
.endless-giveup { border: 0; background: none; padding: 0; cursor: pointer; color: var(--ink-2); }
.anime-result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 6px 0 10px; }
.anime-link-call { display: grid; gap: 8px; justify-items: start; padding-top: 18px; border-top: 1px solid var(--line); }
.anime-link-call p { margin: 0; max-width: 56ch; color: var(--ink-2); }
.anime-link-how { font-size: 14px; color: var(--ink-3) !important; }
.anime-code.is-used .anime-code-text { color: var(--ink-3); }

/* ── Поле с подсказками ───────────────────────────────────────────────────────────────────────── */
.anime-game { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 48px); padding-bottom: clamp(48px, 6vw, 80px); }
.guess-form { display: grid; gap: 12px; max-width: 880px; }
.guess-field { position: relative; display: flex; align-items: center; gap: 12px 20px; border-bottom: 1px solid var(--line-2); transition: border-color var(--dur) var(--ease); }
.guess-field:focus-within { border-color: var(--brand-2); }
.guess-input { flex: 1; min-width: 0; height: 64px; padding: 0; border: 0; background: none; color: var(--ink); font: 500 clamp(19px, 2vw, 24px)/1.2 var(--sans); letter-spacing: -.01em; outline: none; }
.guess-input::placeholder { color: var(--ink-3); }
.guess-input:disabled { opacity: .5; }
.guess-field .button { flex: none; }
.guess-field .button:disabled { opacity: .45; cursor: default; }
.guess-options { position: absolute; z-index: 5; top: calc(100% + 1px); left: 0; right: 0; max-height: min(360px, 52vh); margin: 0; padding: 0; list-style: none; overflow-y: auto; background: var(--bg-2); border: 1px solid var(--line-2); border-top: 0; overscroll-behavior: contain; }
.guess-option { display: grid; gap: 2px; padding: 12px 18px; border-left: 2px solid transparent; cursor: pointer; }
.guess-option + .guess-option { border-top: 1px solid var(--line); }
.guess-option[aria-selected="true"] { background: var(--bg-3); border-left-color: var(--brand-2); }
.guess-option-title { font-size: 16px; font-weight: 600; color: var(--ink); }
.guess-option-meta { font-size: 13px; color: var(--ink-3); }
.guess-status { min-height: 1.6em; margin: -12px 0 0; font-size: 15px; color: var(--ink-2); }
.guess-status:empty { display: none; }
.anime-note { font-size: 16px; color: var(--ink-2); }

/* ── Доска попыток: сиреневая клетка — совпало, обведённая — рядом или частично ─────────────────── */
.board-wrap { overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: thin; }
.board { width: 100%; min-width: 860px; border-collapse: separate; border-spacing: 4px; font-size: 14px; line-height: 1.35; }
.board th[scope="col"] { padding: 0 12px 8px; font: var(--label); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); text-align: left; white-space: nowrap; }
.board td, .board .cell-title { padding: 12px; vertical-align: top; }
.board .cell-title { width: 22%; text-align: left; font-weight: 400; border-bottom: 1px solid var(--line); }
.cell-title .cell-value { display: block; font: 400 18px/1.2 var(--display); letter-spacing: -.01em; color: var(--ink); }
.cell-year { display: block; margin-top: 4px; font-size: 12px; color: var(--ink-3); }
.cell { background: var(--bg-2); color: var(--ink-2); }
.cell.is-hit { background: var(--brand); color: var(--brand-ink); font-weight: 600; }
.cell.is-near, .cell.is-partial { background: none; color: var(--ink); box-shadow: inset 0 0 0 1px var(--brand-2); }
.cell.is-miss { color: var(--ink-3); }
.cell-match { color: var(--brand-2); font-weight: 600; }
.cell-arrow { display: inline-block; margin-left: 6px; font-weight: 700; }
.board tbody tr:first-child { animation: yamiko-in .5s var(--ease) both; }
.board tr.is-solved .cell-title .cell-value { color: var(--brand-2); }

/* ── Итог ─────────────────────────────────────────────────────────────────────────────────────── */
.anime-result { display: grid; grid-template-columns: minmax(160px, 260px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding: clamp(28px, 4vw, 48px) 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.anime-result:not(:has(.anime-poster)) { grid-template-columns: minmax(0, 1fr); }
.anime-poster { margin: 0; position: relative; aspect-ratio: 2 / 3; overflow: hidden; background: var(--bg-2); }
.anime-poster img { width: 100%; height: 100%; object-fit: cover; }
.anime-poster::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); pointer-events: none; }
.anime-result-body { display: grid; gap: 14px; align-content: start; min-width: 0; }
.anime-result-title { font: 400 clamp(32px, 4.4vw, 64px)/1 var(--display); letter-spacing: -.03em; outline: none; }
.anime-result-meta { font-size: 15px; color: var(--ink-2); }
.anime-result-line { font-size: 15px; color: var(--ink); }
.anime-result-body > .button { justify-self: start; margin: 6px 0 10px; }
.anime-play { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 3.4vw, 40px); }
.anime-share, .anime-code { display: grid; gap: 10px; justify-items: start; padding-top: 18px; border-top: 1px solid var(--line); }
.anime-share-text { margin: 0; max-width: 100%; padding: 14px 16px; overflow-x: auto; background: var(--bg-2); font: 400 15px/1.35 var(--sans); white-space: pre; }
.anime-code-text { max-width: 56ch; font-size: 14px; color: var(--ink-2); }
.anime-code-value { font: 600 clamp(20px, 2.4vw, 26px)/1.2 var(--mono); letter-spacing: .08em; color: var(--brand-2); user-select: all; }
.anime-next { font-size: 14px; color: var(--ink-3); }

/* ── Как играть, вчерашний ответ, серия ───────────────────────────────────────────────────────── */
.anime-info { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); padding-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--line); }
.anime-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 22px; }
.anime-steps li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.anime-step-idx { font-size: 40px; line-height: .9; color: var(--brand-2); transform: rotate(-5deg); }
.anime-steps p { max-width: 54ch; color: var(--ink-2); line-height: 1.6; }
.anime-aside { display: grid; gap: 28px; align-content: start; }
.anime-aside-block { display: grid; gap: 8px; }
.anime-aside-block p:not(.eyebrow) { color: var(--ink-2); line-height: 1.6; max-width: 44ch; }

/* ── Игры: список, приглашение в «Аниме дня», «сейчас идёт» ────────────────────────────────────── */
.games-facts { margin-bottom: clamp(24px, 3vw, 40px); font-size: 15px; color: var(--ink-2); }
.games-anime-link { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "eyebrow go" "title go" "text go"; gap: 8px 32px; align-items: center; padding: clamp(24px, 3vw, 36px) 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.games-anime-link .eyebrow { grid-area: eyebrow; }
.games-anime-title { grid-area: title; font: 400 clamp(30px, 4vw, 56px)/1 var(--display); letter-spacing: -.03em; transition: color .4s var(--ease); }
.games-anime-text { grid-area: text; max-width: 56ch; color: var(--ink-2); }
.games-anime-go { grid-area: go; display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.games-anime-go .icon { transition: transform var(--dur) var(--ease); }
.games-anime-link:hover .games-anime-title { color: var(--brand-2); }
.games-anime-link:hover .games-anime-go .icon { transform: translateX(6px); }

.games-list { padding-top: clamp(48px, 6vw, 88px); }
.game-rows { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--line); }
.game-row a { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 20px; align-items: baseline; padding: clamp(20px, 2.6vw, 30px) 0; border-bottom: 1px solid var(--line); }
.game-row a::before { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--brand-2); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.game-row a:hover::before { transform: scaleX(1); }
.game-row-text { display: grid; gap: 8px; min-width: 0; }
.game-row-name { font: 400 clamp(28px, 3.4vw, 48px)/1 var(--display); letter-spacing: -.03em; transition: color .4s var(--ease); }
.game-row a:hover .game-row-name { color: var(--brand-2); }
.game-row-lead { max-width: 70ch; color: var(--ink-2); line-height: 1.55; }
.game-row-stats { font-size: 13px; color: var(--ink-3); }
.game-row-go { align-self: center; transition: transform var(--dur) var(--ease); }
.game-row a:hover .game-row-go { transform: translateX(6px); }
.games-more { margin-top: 28px; max-width: 90ch; color: var(--ink-2); line-height: 1.7; }
.games-more .eyebrow { margin-right: 10px; }

.game-live { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-bottom: clamp(32px, 4vw, 56px); padding-block: 18px; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.game-live-name { font: 400 clamp(22px, 2.4vw, 32px)/1.1 var(--display); flex: 1; min-width: 12ch; }

.game-summary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 96px); padding-bottom: clamp(48px, 6vw, 88px); }
.game-rewards { display: grid; margin: 14px 0 0; border-top: 1px solid var(--line-2); }
.game-rewards > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.game-rewards dt { order: -1; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.game-rewards dd { margin: 0; font-size: clamp(36px, 4vw, 56px); font-weight: 800; letter-spacing: -.05em; line-height: 1; color: var(--brand-2); font-variant-numeric: tabular-nums; }
.game-summary-text { display: grid; gap: 16px; align-content: start; }
.game-summary-text p { max-width: 60ch; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; color: var(--ink-2); }
.game-summary-text .game-stats { font-size: 14px; color: var(--ink-3); }

.game-rules { padding-bottom: clamp(48px, 6vw, 88px); }
.rules-body { display: grid; gap: 14px; max-width: 78ch; padding-top: 8px; border-top: 1px solid var(--line); }
.rules-body h3 { margin-top: 18px; font: 400 clamp(22px, 2.2vw, 30px)/1.15 var(--display); letter-spacing: -.02em; }
.rules-body p { color: var(--ink-2); line-height: 1.65; }
.rules-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rules-list li { position: relative; padding-left: 26px; color: var(--ink-2); line-height: 1.6; }
.rules-list li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 8px; height: 8px; background: var(--brand-2); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.rules-list li.sub { margin-left: 26px; color: var(--ink-3); }
.rules-list li.sub::before { width: 6px; height: 1px; top: .85em; clip-path: none; background: var(--ink-3); }

.game-how { padding-bottom: clamp(40px, 5vw, 72px); }
.game-how .principle p { max-width: 40ch; }
.game-join { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-block: clamp(28px, 4vw, 48px); border-top: 1px solid var(--line); }
.game-join .data-note { margin: 0; font-size: 14px; }
.game-others { display: flex; flex-wrap: wrap; gap: 4px 28px; padding-top: 12px; }

/* ── Профиль игрока (/profile) ──────────────────────────────────────────────────────────────────── */
.profile { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 48px); padding-bottom: clamp(48px, 6vw, 80px); }
.profile-status { margin: 0; font-size: 15px; color: var(--ink-2); }
.profile-user { display: flex; align-items: center; gap: 18px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.profile-avatar { width: 72px; height: 72px; flex: none; object-fit: cover; box-shadow: inset 0 0 0 1px var(--line-2); background: var(--bg-2); }
.profile-avatar.is-star { display: grid; place-items: center; }
.profile-avatar-star { width: 34px; height: 34px; fill: var(--brand-2); }
.profile-who { flex: 1; min-width: 0; }
.profile-name { margin: 0; font: 400 clamp(30px, 4vw, 48px)/1.05 var(--display); letter-spacing: -.03em; overflow-wrap: anywhere; }
.profile-logout { font-size: 14px; color: var(--ink-3); transition: color .3s; }
.profile-logout:hover { color: var(--ink); }
/* «Для стаффа» — строка на всю ширину с сиреневой меткой: видна сразу, но не спорит с профилем. */
.profile-staff { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 32px; align-items: center; padding: clamp(20px, 2.6vw, 28px) 0 clamp(20px, 2.6vw, 28px) 22px; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.profile-staff::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; background: var(--brand); }
.profile-staff-text { display: grid; gap: 6px; min-width: 0; }
.profile-staff-eyebrow { color: var(--brand-2); }
.profile-staff-title { font: 400 clamp(24px, 2.8vw, 36px)/1.05 var(--display); letter-spacing: -.02em; transition: color .4s var(--ease); }
.profile-staff-lead { color: var(--ink-2); line-height: 1.5; }
.profile-staff-go { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.profile-staff-go .icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform var(--dur) var(--ease); }
.profile-staff:hover .profile-staff-title { color: var(--brand-2); }
.profile-staff:hover .profile-staff-go .icon { transform: translateX(6px); }
.profile-guest { display: grid; gap: 14px; justify-items: start; }
.profile-guest-title { margin: 0; font: 400 clamp(26px, 3vw, 40px)/1.1 var(--display); letter-spacing: -.02em; }
.profile-guest-text, .profile-guest-alt { margin: 0; max-width: 60ch; color: var(--ink-2); line-height: 1.6; }
.profile-guest-alt { font-size: 14px; color: var(--ink-3); }
.profile-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.profile-actions .text-link .icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.profile-card { margin: 0; display: grid; gap: 18px; }
.profile-card img { width: 100%; height: auto; aspect-ratio: 1200 / 630; box-shadow: 0 0 0 1px var(--line-2); background: var(--bg-2); }
.profile-calendar { display: grid; gap: 14px; align-content: start; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px 6px; justify-items: center; }
.calendar-head { font: var(--label); letter-spacing: .12em; color: var(--ink-3); }
.calendar-day { display: grid; place-items: center; width: 100%; max-width: 40px; aspect-ratio: 1; }
.calendar-star { width: 70%; height: 70%; fill: none; stroke: var(--line-2); stroke-width: 22; stroke-linejoin: round; }
.calendar-day.is-on .calendar-star { fill: var(--brand); stroke: var(--brand); }
.calendar-day.is-today { box-shadow: inset 0 0 0 1px var(--brand-2); }
.profile-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); padding-top: clamp(20px, 3vw, 32px); border-top: 1px solid var(--line); }
.profile-facts { display: grid; margin: 14px 0 0; border-top: 1px solid var(--line-2); }
.profile-facts > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.profile-facts dt { order: -1; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.profile-facts dd { margin: 0; font-size: clamp(28px, 3vw, 40px); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--brand-2); font-variant-numeric: tabular-nums; }
/* На телефоне «Открыть» уходит под текст блока «Для стаффа», чтобы не сжимать описание. */
@media (max-width: 640px) {
  .profile-staff { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}

/* ── Поддержать (/donate): три кошелька через тонкие линии, значки сетей линией, адрес моноширинным ────── */
.donate { padding-bottom: clamp(36px, 5vw, 64px); }
.donate .section-head { padding-bottom: 24px; }
.wallets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.wallet { display: grid; align-content: start; justify-items: start; gap: 18px; min-width: 0; padding: 30px 30px 32px 0; }
.wallet:nth-child(even) { padding-left: 30px; border-left: 1px solid var(--line); }
.wallet:nth-child(n + 3) { border-top: 1px solid var(--line); }
.wallet-head { display: flex; align-items: center; gap: 16px; }
.wallet-icon { flex: none; color: var(--ink-2); transition: color .4s var(--ease); }
.wallet:hover .wallet-icon { color: var(--brand-2); }
.wallet-coin { margin: 0; font: 800 28px/1 var(--sans); letter-spacing: -.04em; }
.wallet-note { margin-left: 4px; font: 500 14px/1 var(--sans); letter-spacing: 0; color: var(--ink-3); }
.wallet-net { margin: 6px 0 0; font: var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.wallet-short { margin: 0; }
.wallet-short code { font: 500 clamp(17px, 1.6vw, 20px)/1.2 var(--mono); letter-spacing: .02em; color: var(--ink); }
.wallet-copy { min-height: 44px; padding: 0 22px; font-size: 14px; }
.wallet-copy.is-done::before { background: var(--ok); }
.wallet-more { width: 100%; }
.wallet-more summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink-2); list-style: none; transition: color .3s; }
.wallet-more summary::-webkit-details-marker { display: none; }
.wallet-more summary::after { content: ""; width: 7px; height: 7px; margin-top: -3px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform var(--dur) var(--ease), margin-top var(--dur) var(--ease); }
.wallet-more[open] summary::after { margin-top: 3px; transform: rotate(225deg); }
.wallet-more summary:hover { color: var(--ink); }
.wallet-qr { display: block; width: min(200px, 100%); height: auto; margin: 18px 0 14px; border-radius: 2px; }
.wallet-address { display: block; font: 500 13px/1.6 var(--mono); color: var(--ink-2); word-break: break-all; user-select: all; }
.wallet-warn { margin: 0; padding-left: 12px; border-left: 2px solid var(--brand); font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.donate-why { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px clamp(32px, 5vw, 80px); align-items: start; padding-bottom: clamp(36px, 5vw, 64px); }
.donate-why-text { margin: 16px 0 0; max-width: 34ch; font: 400 clamp(24px, 2.6vw, 36px)/1.25 var(--display); letter-spacing: -.02em; }
.donate-goes { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.donate-goes li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.donate-goes h3 { margin: 0 0 6px; font-size: 16px; letter-spacing: -.02em; }
.donate-goes p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.donate-care { padding-bottom: clamp(56px, 7vw, 104px); }
.donate-care ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 30px; margin: 16px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.donate-care li { padding: 16px 0 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.vinyl-support { margin-top: 0; padding-bottom: clamp(40px, 5vw, 72px); color: var(--ink-2); font-size: 15px; }
.vinyl-support .text-link { display: inline-flex; margin-left: 8px; }

@media (max-width: 900px) {
  .wallets { grid-template-columns: minmax(0, 1fr); }
  .wallet, .wallet:nth-child(even) { padding: 26px 0 28px; border-left: 0; }
  .wallet + .wallet { border-top: 1px solid var(--line); }
  .donate-why, .donate-care ul { grid-template-columns: minmax(0, 1fr); }
  .profile-grid, .profile-stats { grid-template-columns: minmax(0, 1fr); }
  .anime-info, .game-summary { grid-template-columns: minmax(0, 1fr); }
  /* Доска шире экрана — название аниме остаётся на месте, клетки прокручиваются под ним. */
  .board { min-width: 760px; }
  .board .cell-title { position: sticky; left: 0; z-index: 1; width: 150px; background: var(--bg); box-shadow: 4px 0 0 var(--bg); }
  .cell-title .cell-value { font-size: 16px; }
  .anime-result { grid-template-columns: minmax(0, 1fr); }
  .anime-poster { max-width: 220px; }
}
@media (max-width: 640px) {
  .account-guest { justify-items: start; text-align: left; }
  .streak { grid-template-columns: minmax(0, 1fr); }
  .endless-bar { grid-template-columns: minmax(0, 1fr); }
  .endless-actions { grid-column: 1; grid-row: auto; }
  .guess-field { flex-wrap: wrap; padding-bottom: 12px; }
  .guess-input { flex-basis: 100%; height: 56px; }
  .guess-options { top: 56px; }
  .game-row a { grid-template-columns: 40px minmax(0, 1fr); }
  .game-row-go { display: none; }
  .games-anime-link { grid-template-columns: minmax(0, 1fr); grid-template-areas: "eyebrow" "title" "text" "go"; }
}
