/* Главная tabula.by: тёмная бенто-сетка карточек. Монохромная основа, как чёрно-белое фото;
   цвет дают только проекты — у каждого расширения своё свечение под скриншотом попапа */
:root {
  color-scheme: dark;
  --bg: #09090b;
  --card: #121215;
  --card-2: #19191d;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.15);
  --ink: #f4f4f5;
  --ink-2: #a1a1aa;
  --ink-3: #74747d;
  --radius: 26px;
  --pad: 30px;
  --gap: 14px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 10px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; }
.brand { font: 700 18px/1 var(--display); letter-spacing: -0.02em; text-decoration: none; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 9px 13px; border-radius: 999px; color: var(--ink-2); font-size: 14.5px; text-decoration: none; transition: color 0.15s, background 0.15s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--card-2); }

/* Сетка: привет и фото, под приветом соцсети; дальше три расширения; игра и доклад */
.bento {
  display: grid; gap: var(--gap); grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas: "hero hero photo" "social social photo" "e1 e2 e3" "game game talk";
}
.card { position: relative; margin: 0; padding: var(--pad); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color 0.25s; animation: rise 0.7s var(--ease) both; }
.card:hover { border-color: var(--line-2); }
.card:nth-child(2) { animation-delay: 0.06s; } .card:nth-child(3) { animation-delay: 0.12s; }
.card:nth-child(4) { animation-delay: 0.18s; } .card:nth-child(5) { animation-delay: 0.22s; } .card:nth-child(6) { animation-delay: 0.26s; }
.card:nth-child(7) { animation-delay: 0.3s; } .card:nth-child(8) { animation-delay: 0.34s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

.eyebrow { margin: 0 0 6px; color: var(--ink-3); font-size: 13.5px; }
.card-title { margin: 0; font: 650 20px/1.25 var(--display); letter-spacing: -0.015em; text-wrap: balance; }
.card-title.big { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.03em; }
.desc { margin: 14px 0 0; color: var(--ink-2); font-size: 15.5px; text-wrap: pretty; }
.links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; }
.link { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; font-size: 15px; text-decoration: none; }
.link svg { width: 15px; height: 15px; transition: transform 0.2s var(--ease); }
.link:hover svg { transform: translate(2px, -2px); }
.link.quiet { color: var(--ink-2); font-weight: 500; }
.link.quiet:hover { color: var(--ink); }

/* Кнопки */
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 48px; padding: 0 22px; border-radius: 999px; font: 600 15.5px/1 var(--font); text-decoration: none; transition: background 0.15s, border-color 0.15s, transform 0.12s; }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--ink); color: #0b0b0d; }
.btn-primary:hover { background: #fff; }
.btn-ghost { border: 1px solid var(--line-2); color: var(--ink); }
.btn-ghost:hover { background: var(--card-2); border-color: rgba(255, 255, 255, 0.24); }

/* Привет */
.hero { grid-area: hero; display: flex; flex-direction: column; justify-content: space-between; min-height: 410px; padding: 46px 48px 42px; }
.hero::before { content: ""; position: absolute; inset: -40% 30% auto -20%; height: 120%; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.07), transparent); pointer-events: none; }
.hero h1 { position: relative; margin: 0; font: 700 clamp(42px, 5.6vw, 70px)/1.0 var(--display); letter-spacing: -0.045em; }
.lead { position: relative; margin: 26px 0 0; max-width: 28em; font-size: clamp(18px, 1.75vw, 21px); line-height: 1.42; letter-spacing: -0.01em; text-wrap: pretty; }
.about { position: relative; margin: 10px 0 0; max-width: 34em; color: var(--ink-2); text-wrap: pretty; }

/* Фото */
.photo { grid-area: photo; padding: 0; background: #000; touch-action: manipulation; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; }
.photo img { -webkit-touch-callout: none; }
.photo picture, .photo img { width: 100%; height: 100%; }
.photo img { object-fit: cover; object-position: 60% 16%; }

/* Соцсети */
.social { grid-area: social; }
.soc-note { margin: 8px 0 0; color: var(--ink-3); font-size: 13.5px; }
.soc-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.soc { display: flex; flex-direction: column; gap: 22px; height: 100%; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--card-2); text-decoration: none; transition: border-color 0.2s, transform 0.2s var(--ease); }
.soc:hover { border-color: var(--line-2); transform: translateY(-2px); }
.soc svg { flex: none; width: 32px; height: 32px; }
.soc-threads svg { color: var(--ink); }
.soc b { display: block; font-size: 15.5px; font-weight: 650; }
.soc span span { display: block; color: var(--ink-3); font-size: 13.5px; overflow-wrap: anywhere; }

/* Расширения: скриншот попапа выглядывает снизу из цветного свечения */
.ext { display: flex; flex-direction: column; min-height: 480px; padding-bottom: 0; }
.ext-head { display: flex; align-items: center; gap: 14px; }
.ext-head img { width: 44px; height: 44px; flex: none; }
.ext-head .eyebrow { margin-bottom: 2px; }
.shot { position: relative; display: flex; justify-content: center; height: 240px; margin: auto calc(-1 * var(--pad)) 0; padding-top: 30px; overflow: hidden;
  background: radial-gradient(58% 80% at 38% 100%, color-mix(in srgb, var(--c1) 62%, transparent), transparent 72%),
    radial-gradient(48% 70% at 72% 100%, color-mix(in srgb, var(--c2) 52%, transparent), transparent 72%); }
.shot img { align-self: flex-start; width: min(72%, 248px); height: auto; border-radius: 18px 18px 0 0; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 -10px 40px -12px rgba(0, 0, 0, 0.7); transform: translateY(16px); transition: transform 0.45s var(--ease); }
.ext:hover .shot img { transform: translateY(4px); }

/* Игра: обложка, при наведении — геймплей */
.game { grid-area: game; display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.2fr); gap: 30px; align-items: center; }
.game .actions { margin-top: 24px; }
.game-media { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #0e1a26; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07); }
.game-media video, .game-media .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.game-media .poster { transition: opacity 0.5s, transform 0.6s var(--ease); }
.game:hover .poster { transform: scale(1.02); }
.game.playing .poster { opacity: 0; }
.hint { position: absolute; inset-inline-start: 12px; bottom: 12px; display: none; padding: 7px 12px; border-radius: 999px; background: rgba(8, 8, 10, 0.62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font-size: 12.5px; transition: opacity 0.3s; }
.game.playing .hint { opacity: 0; }
@media (hover: hover) and (pointer: fine) { .hint { display: block; } }

/* Доклад: превью, по нажатию — плеер YouTube прямо в карточке */
.talk { grid-area: talk; display: flex; flex-direction: column; }
.talk-media { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; margin: 0 0 20px; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: #000; cursor: pointer; }
.talk-media img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.82); transition: transform 0.5s var(--ease), filter 0.3s; }
.talk-media:hover img { transform: scale(1.03); filter: brightness(0.95); }
.talk-media iframe { width: 100%; height: 100%; border: 0; }
.play { position: absolute; inset: 0; width: 60px; height: 60px; margin: auto; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.94); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45); transition: transform 0.2s var(--ease); }
.play svg { width: 24px; height: 24px; margin-left: 3px; fill: #0b0b0d; }
.talk-media:hover .play { transform: scale(1.07); }
.talk .links { margin-top: auto; padding-top: 18px; }

/* Внутренние страницы («Выступаю», «Пишу»): заголовок раздела и карточки под ним */
.page-main { display: grid; gap: var(--gap); }
.page-head { padding: 34px 4px 20px; }
.page-head h1 { margin: 0; font: 700 clamp(42px, 5.6vw, 66px)/1.02 var(--display); letter-spacing: -0.045em; }
.page-head .lead { margin-top: 14px; color: var(--ink-2); }
.talk-wide { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 34px; align-items: center; }
.talk-wide .talk-media { margin: 0; }
.talk-info .desc { margin-top: 16px; }
.empty { display: flex; flex-direction: column; align-items: flex-start; padding: 44px; }
.empty-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 22px; border: 1px solid var(--line); border-radius: 17px; background: var(--card-2); color: var(--ink-2); }
.empty-icon svg { width: 24px; height: 24px; }
.empty .desc { max-width: 34em; }
.empty .actions { margin-top: 26px; }

.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding: 30px 0 44px; color: var(--ink-3); font-size: 14px; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* --- Языки: выбор внизу страницы и предложение перейти на язык браузера --- */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lang-offer { display: flex; align-items: center; gap: 12px; margin: 0 0 var(--gap); padding: 8px; padding-inline-start: 16px; border: 1px solid var(--line-2); border-radius: 20px; background: var(--card); font-size: 14px; animation: rise 0.5s var(--ease) both; }
.lang-offer[hidden] { display: none; }
.lang-offer > svg { flex: none; width: 18px; height: 18px; color: var(--ink-2); }
.lo-text { flex: 1; min-width: 0; color: var(--ink-2); }
.lo-go { flex: none; padding: 9px 15px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 600; text-decoration: none; white-space: nowrap; }
.lo-go:hover { background: #fff; }
.lo-x { flex: none; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink-3); font: 22px/1 var(--font); cursor: pointer; }
.lo-x:hover { background: var(--card-2); color: var(--ink); }
.lang-pick { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); }
.lang-pick svg { flex: none; width: 16px; height: 16px; }
.lang-pick select { -webkit-appearance: none; appearance: none; max-width: 190px; padding: 6px 22px 6px 4px; border: 0; border-radius: 8px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23a1a1aa' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 6px center / 10px 6px; color: inherit; font: inherit; cursor: pointer; }
[dir="rtl"] .lang-pick select { padding: 6px 4px 6px 22px; background-position: left 6px center; }
.lang-pick select:hover, .lang-pick select:focus-visible { color: var(--ink); }
.lang-pick option { background: #141417; color: var(--ink); }
@media (max-width: 640px) {
  .lang-offer { flex-wrap: wrap; gap: 8px 12px; padding: 12px; padding-inline-start: 16px; }
  .lo-text { flex-basis: calc(100% - 80px); }
  .lo-go { order: 3; flex: 1; text-align: center; }
  .lo-x { margin-inline-start: auto; }
}

/* --- Игровой слой: полоса опыта и достижения --- */
.hud { position: sticky; top: 10px; z-index: 30; display: flex; align-items: center; gap: 12px; margin: 0 0 var(--gap); padding: 7px 8px; padding-inline-start: 16px; border: 1px solid var(--line); border-radius: 999px; background: rgba(18, 18, 21, 0.8); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); font-size: 13.5px; }
.hud-lvl, .hud-xp { color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hud-lvl b, .hud-xp b { color: var(--ink); font-weight: 650; }
.hud-bar { position: relative; flex: 1; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.hud-bar i { position: absolute; inset-block: 0; inset-inline-start: 0; width: calc(var(--p, 0) * 1%); border-radius: inherit; background: linear-gradient(90deg, #4fc23d, #b6f46a); box-shadow: 0 0 14px rgba(150, 240, 100, 0.45); transition: width 0.6s var(--ease); }
[dir="rtl"] .hud-bar i { background: linear-gradient(270deg, #4fc23d, #b6f46a); }
.hud-ach { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card-2); color: var(--ink); font: 600 13.5px/1 var(--font); cursor: pointer; transition: border-color 0.15s; }
.hud-ach:hover { border-color: var(--line-2); }
.hud-ach svg { width: 16px; height: 16px; color: #f5c84b; }
.hud-streak { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hud-streak[hidden] { display: none; }
.hud-streak svg { width: 16px; height: 16px; color: #ff8a3d; }
.ach-panel { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); width: min(350px, calc(100vw - 28px)); padding: 8px; border: 1px solid var(--line-2); border-radius: 20px; background: #141417; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); }
.ach-head { display: flex; justify-content: space-between; margin: 0; padding: 8px 10px 10px; font-size: 14px; }
.ach-head span { color: var(--ink-3); }
.ach-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ach-item { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 14px; }
.ach-item .ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--card-2); color: var(--ink-3); }
.ach-item .ico svg { width: 18px; height: 18px; }
.ach-item.on .ico { background: linear-gradient(135deg, #f8d66e, #e3982a); color: #3a2604; }
.ach-text b { display: block; font-size: 14px; font-weight: 600; }
.ach-text span { display: block; color: var(--ink-3); font-size: 12.5px; }
.ach-item:not(.on) .ach-text b { color: var(--ink-2); }
.ach-item .pts { color: var(--ink-3); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.ach-item.on .pts { color: #9be36d; }
.ach-foot { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; padding: 12px 10px 6px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 13px; }
.ach-foot svg { flex: none; width: 18px; height: 18px; color: #ff8a3d; }

.toasts { position: fixed; inset-inline-end: 16px; bottom: 16px; z-index: 70; display: grid; gap: 10px; pointer-events: none; }
.toast { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: center; width: min(320px, calc(100vw - 32px)); padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 18px; background: rgba(22, 22, 26, 0.95); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55); animation: toast-in 0.45s var(--ease) both; }
.toast.out { animation: toast-out 0.35s ease-in both; }
.toast .ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: linear-gradient(135deg, #f8d66e, #e3982a); color: #3a2604; }
.toast-level .ico { background: linear-gradient(135deg, #b6f46a, #3fae32); color: #0f2a07; }
.toast-streak .ico { background: linear-gradient(135deg, #ffc35a, #ff6a2b); color: #3a1302; }
.toast .ico svg { width: 22px; height: 22px; }
.toast small { display: block; color: var(--ink-3); font-size: 12px; }
.toast b { display: block; font-size: 15px; font-weight: 650; }
.toast em { color: #9be36d; font-size: 13px; font-style: normal; font-weight: 600; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(0.97); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px); } }

/* --- Секретный режим Windows XP (↑↑↓↓←→←→BA): небо и холм, окна с синими заголовками,
   панель задач с «пуск» и часами. Своя отрисовка в духе XP, без логотипов и обоев Microsoft --- */
.xp-desktop, .xp-taskbar { display: none; }
html.xp {
  color-scheme: light;
  --card: #ece9d8; --card-2: #fff; --line: #aca899; --line-2: #7f9db9;
  --ink: #000; --ink-2: #2b2b2b; --ink-3: #5a5a5a; --radius: 8px;
  --font: Tahoma, Verdana, "Segoe UI", sans-serif;
  --display: "Trebuchet MS", Tahoma, Verdana, sans-serif;
}
html.xp body { padding-bottom: 40px; }
html.xp .xp-desktop { display: block; position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: linear-gradient(180deg, #2160d2 0%, #4a8ae6 34%, #86bdf1 58%, #c4e2fb 74%); }
.xp-desktop .hill { position: absolute; left: -4%; bottom: 0; width: 108%; height: 46vh; }
.xp-desktop .cloud { position: absolute; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0)); }
.xp-desktop .c1 { left: 6%; top: 9%; width: 340px; height: 90px; }
.xp-desktop .c2 { left: 52%; top: 5%; width: 460px; height: 110px; opacity: 0.85; }
.xp-desktop .c3 { left: 30%; top: 24%; width: 260px; height: 70px; opacity: 0.7; }
.xp-desktop .c4 { right: 4%; top: 30%; width: 300px; height: 80px; opacity: 0.75; }
html.xp .brand, html.xp .nav a, html.xp .page-head, html.xp .foot, html.xp .foot a { color: #fff; text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.55); }
html.xp .page-head .lead { color: #f2f7ff; }
html.xp .nav a:hover, html.xp .nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.2); }
html.xp .card { padding-top: calc(var(--pad) + 30px); border: 3px solid #0b56e3; border-top: 0; border-radius: 9px 9px 4px 4px; box-shadow: 0 10px 26px rgba(0, 25, 90, 0.38); animation: none; }
html.xp .card:hover { border-color: #0b56e3; }
html.xp .card[data-title]::before { content: attr(data-title); position: absolute; inset: 0 0 auto 0; z-index: 2; display: block; height: 30px; padding-block: 0; padding-inline: 10px 82px; border-radius: 7px 7px 0 0; background: linear-gradient(180deg, #0997ff 0%, #0053ee 8%, #0050ee 40%, #0066ff 88%, #0066ff 93%, #005bff 95%, #003dd7 96%, #003dd7 100%); color: #fff; font: 700 13px/30px var(--display); text-shadow: 1px 1px 0 #0b1f6b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; filter: none; }
html.xp .card[data-title]::after { content: ""; position: absolute; top: 5px; inset-inline-end: 7px; z-index: 3; width: 67px; height: 21px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='67' height='21'%3E%3Cdefs%3E%3ClinearGradient id='b' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%237aa8ff'/%3E%3Cstop offset='.5' stop-color='%233b77f0'/%3E%3Cstop offset='1' stop-color='%232457d8'/%3E%3C/linearGradient%3E%3ClinearGradient id='r' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23f3a68d'/%3E%3Cstop offset='.5' stop-color='%23e2552c'/%3E%3Cstop offset='1' stop-color='%23c43b16'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='.5' y='.5' width='20' height='20' rx='3' fill='url%28%23b%29' stroke='%23fff'/%3E%3Crect x='6' y='13' width='8' height='2.6' fill='%23fff'/%3E%3Crect x='23.5' y='.5' width='20' height='20' rx='3' fill='url%28%23b%29' stroke='%23fff'/%3E%3Crect x='28.5' y='5.5' width='10' height='9' fill='none' stroke='%23fff' stroke-width='1.6'/%3E%3Crect x='28.5' y='5.5' width='10' height='2.6' fill='%23fff'/%3E%3Crect x='46.5' y='.5' width='20' height='20' rx='3' fill='url%28%23r%29' stroke='%23fff'/%3E%3Cpath d='M52 6l9 9M61 6l-9 9' stroke='%23fff' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat; pointer-events: none; }
html.xp .photo { padding: 30px 0 0; }
.photo .photo-xp, html.xp .photo .photo-main { display: none; }
html.xp .photo .photo-xp { display: block; }
html.xp .photo img { object-position: 56% 60%; }
html.xp .shot { margin-inline: calc(-1 * var(--pad)); }
html.xp .hero h1 { letter-spacing: -0.02em; }
html.xp .btn { height: 34px; padding: 0 16px; border: 1px solid #003c74; border-radius: 4px; background: linear-gradient(180deg, #fff 0%, #f1efe8 70%, #dcd6c8 100%); color: #000; font: 13px/1 var(--font); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7); }
html.xp .btn:hover { background: linear-gradient(180deg, #fff 0%, #f1efe8 70%, #dcd6c8 100%); box-shadow: inset 0 -2px 0 0 #fbbf55, inset 0 2px 0 0 #ffe7b0; }
html.xp .btn svg { color: #1f4fbf; }
html.xp .link { color: #0b3fc7; text-decoration: underline; }
html.xp .link.quiet { color: #333; }
html.xp .soc { border-color: #7f9db9; border-radius: 4px; background: #fff; }
html.xp .hud { border: 1px solid #0b56e3; border-radius: 6px; background: #ece9d8; box-shadow: 0 6px 16px rgba(0, 25, 90, 0.3); }
html.xp .hud-bar { height: 15px; border: 1px solid #7f9db9; border-radius: 3px; background: #fff; }
html.xp .hud-bar i { border-radius: 0; background: repeating-linear-gradient(90deg, #36c93a 0 8px, transparent 8px 10px); box-shadow: none; }
html.xp .hud-ach { height: 26px; border: 1px solid #003c74; border-radius: 4px; background: linear-gradient(180deg, #fff, #dcd6c8); font: 12px/1 var(--font); }
html.xp .ach-panel { border: 1px solid #0b56e3; border-radius: 6px; background: #fff; }
html.xp .lang-offer { border: 1px solid #c5c19c; border-radius: 0; background: #ffffe1; color: #000; font: 12px/1.35 Tahoma, Verdana, sans-serif; box-shadow: 0 2px 8px rgba(0, 25, 90, 0.3); animation: none; }
html.xp .lang-offer > svg { color: #1f4fbf; }
html.xp .lo-text { color: #000; }
html.xp .lo-go { padding: 0; border-radius: 0; background: none; color: #0b3fc7; font-weight: 400; text-decoration: underline; }
html.xp .lo-x { width: 22px; height: 22px; border-radius: 3px; color: #000; font-size: 16px; }
html.xp .lo-x:hover { background: #316ac5; color: #fff; }
html.xp .lang-pick select { padding: 3px 24px 3px 6px; border: 1px solid #7f9db9; border-radius: 0; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='19'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23d7e4fd'/%3E%3Cstop offset='1' stop-color='%23a6c0f6'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='.5' y='.5' width='16' height='18' rx='2' fill='url(%23g)' stroke='%23b9cbf3'/%3E%3Cpath d='M5 8l3.5 3.5L12 8' fill='none' stroke='%234d6185' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 1px center; color: #000; font: 12px Tahoma, Verdana, sans-serif; text-shadow: none; }
html.xp[dir="rtl"] .lang-pick select { padding: 3px 6px 3px 24px; background-position: left 1px center; }
html.xp .lang-pick option { background: #fff; color: #000; }
html.xp .toasts { bottom: 50px; }
html.xp .toast { grid-template-columns: 34px minmax(0, 1fr); border: 1px solid #000; border-radius: 9px; background: #ffffe1; color: #000; box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.35); font-family: var(--font); }
html.xp .toast .ico { width: 34px; height: 34px; border-radius: 50%; }
html.xp .toast small { color: #555; }
html.xp .toast em { color: #1a7f1a; }

html.xp .xp-taskbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; align-items: stretch; height: 38px; background: linear-gradient(180deg, #1f2f86 0%, #3165c4 3%, #3682e5 6%, #4490e6 10%, #3883e5 12%, #2b71e0 15%, #2663da 18%, #235bd6 20%, #2258d5 23%, #2157d6 38%, #245ddb 54%, #2562df 86%, #245fdc 89%, #2158d4 92%, #1d4ec0 95%, #1941a5 98%); font: 12px/1 Tahoma, Verdana, sans-serif; }
.xp-start { display: flex; align-items: center; padding-block: 0 2px; padding-inline: 16px 26px; border: 0; border-start-end-radius: 14px; border-end-end-radius: 14px; background: linear-gradient(180deg, #5ec05e 0%, #3ba43b 8%, #2f9a2f 45%, #238d23 55%, #3aa43a 92%, #2a7f2a 100%); color: #fff; font: italic 700 19px/1 "Trebuchet MS", Tahoma, sans-serif; text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.55); cursor: pointer; box-shadow: inset -2px 0 4px rgba(0, 0, 0, 0.25), 3px 0 6px rgba(0, 0, 0, 0.3); }
.xp-start:hover, .xp-start[aria-expanded="true"] { filter: brightness(1.08); }
:is(:lang(ar), :lang(fa), :lang(he), :lang(hi), :lang(th), :lang(ja), :lang(ko), :lang(zh)) .xp-start { font-style: normal; }
.xp-task { display: block; min-width: 0; max-width: 240px; margin-block: 4px; margin-inline: 10px 0; padding: 0 12px; line-height: 30px; border-radius: 3px; background: #1e52b7; box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.35); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xp-tray { display: flex; align-items: center; margin-inline-start: auto; padding: 0 16px; border-inline-start: 1px solid #1042af; background: linear-gradient(180deg, #0c59b9 1%, #139ee9 6%, #18b5f2 10%, #139beb 14%, #1290e8 19%, #0d8dea 63%, #0d9ff1 81%, #0f9eed 88%, #119be9 91%, #1392e2 94%, #137ed7 97%, #095bc9 100%); color: #fff; }
.xp-menu { position: fixed; inset-inline-start: 0; bottom: 38px; z-index: 61; width: min(320px, 100vw); overflow: hidden; border: 1px solid #0b56e3; border-radius: 8px 8px 0 0; background: #fff; box-shadow: 4px -2px 18px rgba(0, 0, 0, 0.45); font: 13px/1.3 Tahoma, Verdana, sans-serif; }
.xp-menu[hidden] { display: none; }
.xp-menu-head { display: flex; align-items: center; gap: 10px; padding: 10px; background: linear-gradient(180deg, #1868ce 0%, #0e60cb 12%, #0e60cb 50%, #1c6cd7 100%); color: #fff; font: 700 15px "Trebuchet MS", Tahoma, sans-serif; text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5); }
.xp-menu-head img { width: 44px; height: 44px; border: 2px solid #fff; border-radius: 4px; }
.xp-menu-body { display: grid; padding: 6px; }
.xp-menu-body a { padding: 9px 10px; border-radius: 2px; color: #000; text-decoration: none; }
.xp-menu-body a:hover, .xp-menu-body a:focus-visible { background: #316ac5; color: #fff; outline: none; }
.xp-menu-body hr { width: 100%; margin: 4px 0; border: 0; border-top: 1px solid #d5d1c4; }
.xp-menu-foot { display: flex; justify-content: flex-end; padding: 8px 10px; background: linear-gradient(180deg, #4282d6 0%, #3b85e0 3%, #418ae3 5%, #418ae3 17%, #3c87e2 21%, #3786e4 26%, #3482e3 29%, #2e7ee1 39%, #2374df 49%, #2072db 57%, #196edb 62%, #176bd8 72%, #1468d7 75%, #1165d5 83%, #0f61cb 88%); }
.xp-exit { display: flex; align-items: center; gap: 7px; border: 0; background: none; color: #fff; font: 13px Tahoma, Verdana, sans-serif; cursor: pointer; }
.xp-exit i { width: 22px; height: 22px; background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'><rect width='22' height='22' rx='3' fill='%23e2552c'/><path d='M11 5v6M7.2 7.6a5 5 0 1 0 7.6 0' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'/></svg>") no-repeat; }

@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "hero hero" "photo social" "e1 e2" "e3 talk" "game game"; }
  .social { display: flex; flex-direction: column; }
  .soc-list { flex: 1; grid-template-columns: minmax(0, 1fr); grid-auto-rows: 1fr; }
  .soc { flex-direction: row; align-items: center; gap: 14px; }
  .photo { min-height: 440px; }
}
@media (max-width: 640px) {
  :root { --pad: 22px; --gap: 12px; }
  .wrap { padding: 0 14px; }
  .top { height: 64px; }
  .nav a { padding: 8px 11px; font-size: 14px; }
  .page-head { padding: 20px 2px 10px; }
  .page-head h1 { font-size: 42px; }
  .talk-wide { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .empty { padding: 30px 22px; }
  .bento { grid-template-columns: minmax(0, 1fr); grid-template-areas: "hero" "photo" "social" "e1" "e2" "e3" "game" "talk"; }
  .hero { min-height: 0; padding: 32px 24px 26px; }
  .hero h1 { font-size: 38px; }
  .hero .btn { flex: 1 1 auto; }
  .hud { gap: 9px; padding-inline-start: 12px; font-size: 13px; }
  .xp-task { display: none; }
  .photo { aspect-ratio: 4 / 5; min-height: 0; }
  .photo img { object-position: 58% 22%; }
  .ext { min-height: 0; }
  .shot { height: 220px; }
  .game { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .game-media { order: -1; }
  .foot { padding-bottom: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
