/* Портфолио Давида Вдовенко. Общий тон - ночное небо с неоновыми акцентами; каждый проект в своём стиле. */
:root {
  --bg: #0b0820;
  --bg2: #120d33;
  --ink: #f4f1ff;
  --muted: #b9b2dd;
  --line: rgba(255, 255, 255, .12);
  --glass: rgba(20, 14, 52, .62);
  --c1: #ff5ea8;
  --c2: #7c5cff;
  --c3: #29d3ff;
  --c4: #ffd23f;
  --c5: #38f2a2;
  --radius: 22px;
  --head: "Unbounded", "Manrope", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pixel: "Press Start 2P", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(1200px 800px at 80% -10%, #2a1670 0%, transparent 60%),
              radial-gradient(900px 700px at -10% 30%, #3b0f4f 0%, transparent 55%), var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; }

/* ---------- навигация ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: linear-gradient(to bottom, rgba(11, 8, 32, .85), rgba(11, 8, 32, 0));
  backdrop-filter: blur(6px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; }
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
  background: conic-gradient(from 140deg, var(--c1), var(--c2), var(--c3), var(--c4), var(--c1));
  font-family: var(--head); font-size: 14px; color: #0b0820;
}
.brand-text { font-family: var(--head); font-size: 15px; letter-spacing: .02em; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--ink); }
.lang { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; }
.lang button {
  border: 0; background: transparent; color: var(--muted); font: 700 12px var(--body);
  padding: 6px 10px; border-radius: 999px; cursor: pointer;
}
.lang button.on { background: var(--ink); color: var(--bg); }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px;
  font-weight: 800; text-decoration: none; font-size: 15px; transition: transform .2s, box-shadow .2s;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(90deg, var(--c1), var(--c2)); color: #fff; box-shadow: 0 10px 30px -10px var(--c1); }
.btn-ghost { border-color: var(--line); background: rgba(255, 255, 255, .04); }

/* ---------- герой ---------- */
.hero { position: relative; min-height: 100vh; display: grid; align-items: center; padding: 120px clamp(16px, 6vw, 96px) 80px; }
#hero3d { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(11, 8, 32, .82) 0%, rgba(11, 8, 32, .55) 40%, rgba(11, 8, 32, 0) 70%); }
.hero-inner, .hero-scroll { z-index: 2; }
.hero-inner { position: relative; max-width: 760px; }
.hero-hello { margin: 0 0 6px; color: var(--c3); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 14px; }
.hero-name {
  margin: 0; font-family: var(--head); font-weight: 900; line-height: .95;
  font-size: clamp(54px, 10vw, 128px);
  background: linear-gradient(100deg, #fff 10%, var(--c4) 40%, var(--c1) 70%, var(--c2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-role { font-family: var(--head); font-weight: 700; font-size: clamp(18px, 2.6vw, 28px); margin: 18px 0 8px; min-height: 1.5em; }
.caret { color: var(--c1); animation: blink 1s steps(1) infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }
.hero-lead { color: var(--muted); max-width: 560px; font-size: 19px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-scroll { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; border: 2px solid var(--line); border-radius: 14px; }
.hero-scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--ink); animation: wheel 1.8s infinite; }
@keyframes wheel { to { transform: translateY(14px); opacity: 0; } }

/* ---------- цифры ---------- */
.numbers {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin: 0 clamp(16px, 6vw, 96px) 40px;
}
.num { padding: 22px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--line); }
.num b { display: block; font-family: var(--head); font-size: clamp(32px, 4vw, 48px); line-height: 1.1;
  background: linear-gradient(90deg, var(--c3), var(--c5)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.num span { color: var(--muted); font-size: 15px; }

/* ---------- секции ---------- */
.section-title { font-family: var(--head); font-size: clamp(36px, 6vw, 72px); margin: 0 0 8px; line-height: 1; }
.section-sub { color: var(--muted); max-width: 640px; margin: 0 0 40px; font-size: 18px; }
.projects, .agents, .skills, .cv, .contact { padding: 100px clamp(16px, 6vw, 96px); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* общая форма проекта: сцена слева на всю ширину, карточка поверх справа */
.project {
  position: relative; min-height: 640px; margin: 0 0 56px; border-radius: 32px; overflow: hidden;
  display: flex; align-items: center; justify-content: flex-end; padding: 40px;
  border: 1px solid var(--line); isolation: isolate;
}
.project > canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.project-card {
  width: min(520px, 100%); padding: 32px; border-radius: 26px;
  background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(14px);
}
.project-card h3 { margin: 6px 0 12px; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.1; }
.project-card p { margin: 0 0 14px; color: #e6e1ff; }
.tag { font-size: 13px !important; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--c4) !important; }
.facts { margin: 0 0 16px; padding-left: 20px; color: var(--muted); }
.facts li { margin: 4px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chips span { font-size: 13px; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid var(--line); }

/* --- Satellite Odyssey: пиксель-арт --- */
.p-so2 { background: #3f7d2e; justify-content: flex-start; }
.p-so2 .project-card { background: rgba(24, 38, 18, .86); border: 4px solid #1b2a12; border-radius: 0; box-shadow: 8px 8px 0 #12200b; image-rendering: pixelated; }
.pixel { font-family: var(--pixel); line-height: 1.5 !important; }
.p-so2 h3.pixel { font-size: clamp(16px, 2.2vw, 24px); color: #ffe066; text-shadow: 3px 3px 0 #6b3d00; }
.p-so2 .tag.pixel { font-size: 10px !important; color: #9be36a !important; }
.p-so2 .chips span { border-radius: 0; background: #23381a; border: 2px solid #142410; font-family: var(--pixel); font-size: 9px; }
.btn-pixel { border-radius: 0; background: #ffcc33; color: #2b1a00; font-family: var(--pixel); font-size: 11px; box-shadow: 4px 4px 0 #6b3d00; }
.pixel-world { image-rendering: pixelated; }

/* --- Horizons: воксели --- */
.p-hz { background: linear-gradient(#7ec8ff, #c9ecff 70%); }
.p-hz .project-card { background: rgba(30, 40, 26, .72); border-radius: 6px; border: 3px solid rgba(0, 0, 0, .35); box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .25); }
.blocky { font-family: var(--head); font-weight: 900; text-transform: uppercase; letter-spacing: .02em; color: #8ee35a; text-shadow: 3px 3px 0 #2d5016; }
.btn-block { border-radius: 4px; background: #6bbf3a; color: #10200a; box-shadow: inset 0 -5px 0 #3f7d22; }

/* --- VoxAtrium: карточки слов --- */
.p-vox { background: radial-gradient(800px 500px at 20% 50%, #ffe8f3 0%, #fbd3ff 40%, #c9d6ff 100%); color: #1d1240; }
.p-vox .project-card { background: rgba(255, 255, 255, .72); color: #1d1240; border-color: rgba(29, 18, 64, .12); }
.p-vox .project-card p, .p-vox .facts { color: #3c2d70; }
.p-vox .tag { color: #c2187a !important; }
.p-vox .chips span { background: rgba(29, 18, 64, .06); border-color: rgba(29, 18, 64, .12); }
.vox-title { font-family: var(--head); background: linear-gradient(90deg, #ff4fa0, #7c5cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.btn-vox { background: #1d1240; color: #fff; }
.vox-cards { position: absolute; inset: 0; z-index: -1; perspective: 900px; }
.vcard {
  position: absolute; width: 190px; height: 120px; transform-style: preserve-3d;
  animation: flip 7s ease-in-out infinite, floaty 9s ease-in-out infinite alternate;
}
.vcard .vf, .vcard .vb {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 12px;
  border-radius: 18px; backface-visibility: hidden; font-weight: 800; font-size: 19px;
  box-shadow: 0 20px 40px -18px rgba(60, 20, 120, .45);
}
.vcard .vf { background: #fff; color: #7c5cff; font-family: var(--head); }
.vcard .vb { background: linear-gradient(135deg, #ff5ea8, #7c5cff); color: #fff; transform: rotateY(180deg); font-size: 16px; }
.vcard:nth-child(1) { left: 6%; top: 12%; animation-delay: 0s, 0s; }
.vcard:nth-child(2) { left: 26%; top: 52%; animation-delay: 1.4s, 1s; }
.vcard:nth-child(3) { left: 4%; top: 66%; animation-delay: 2.8s, 2s; }
.vcard:nth-child(4) { left: 34%; top: 14%; animation-delay: 4.2s, 3s; }
.vcard:nth-child(5) { left: 18%; top: 34%; animation-delay: 5.6s, .5s; }
@keyframes flip { 0%, 35% { transform: rotateY(0); } 50%, 85% { transform: rotateY(180deg); } 100% { transform: rotateY(360deg); } }
@keyframes floaty { from { margin-top: -10px; } to { margin-top: 14px; } }

/* --- Centurion: тёмное стекло и монета --- */
.p-cent { background: radial-gradient(700px 500px at 25% 50%, #3a2a00 0%, #120c02 60%, #050302 100%); justify-content: flex-end; }
.p-cent .project-card { background: rgba(20, 14, 4, .72); border-color: rgba(255, 210, 63, .25); }
.cent-title { font-family: var(--head); color: var(--c4); }
.btn-cent { background: linear-gradient(90deg, #ffd23f, #ff9f1c); color: #2b1a00; }
.coin-stage { position: absolute; inset: 0; z-index: -1; perspective: 1000px; }
.coin { position: absolute; left: 18%; top: 22%; width: 180px; height: 180px; transform-style: preserve-3d; animation: spin 6s linear infinite; }
.coin-face {
  position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; backface-visibility: hidden;
  background: radial-gradient(circle at 35% 30%, #fff3b0, #ffd23f 40%, #c98a00 75%, #8a5a00);
  font: 900 84px var(--head); color: #8a5a00; box-shadow: inset 0 0 0 10px rgba(138, 90, 0, .45), 0 30px 60px -20px #ffb000;
}
.coin-face.back { transform: rotateY(180deg); font-size: 70px; }
@keyframes spin { to { transform: rotateY(360deg); } }
.id-card {
  position: absolute; left: 10%; bottom: 14%; width: 300px; height: 180px; border-radius: 20px; padding: 22px;
  background: linear-gradient(135deg, rgba(255, 210, 63, .22), rgba(255, 255, 255, .04)); border: 1px solid rgba(255, 210, 63, .35);
  display: flex; flex-direction: column; justify-content: space-between; transform: rotate(-8deg); backdrop-filter: blur(6px);
  animation: floaty 7s ease-in-out infinite alternate;
}
.id-card b { font-family: var(--head); color: var(--c4); }
.id-card span { font: 700 22px var(--body); letter-spacing: .14em; }
.id-card i { position: absolute; right: 22px; top: 22px; width: 42px; height: 32px; border-radius: 6px; background: linear-gradient(135deg, #ffe58a, #c98a00); }

/* --- SPM бот: Telegram --- */
.p-spm { background: linear-gradient(135deg, #17212b, #0e1621); justify-content: flex-end; }
.p-spm .project-card { background: rgba(23, 33, 43, .85); border-color: rgba(42, 171, 238, .3); }
.tg-title { font-family: var(--head); color: #5fc2ff; }
.btn-tg { background: #2aabee; color: #fff; }
.tg-phone {
  position: absolute; left: 8%; top: 50%; transform: translateY(-50%) rotate(-4deg); z-index: -1;
  width: 320px; border-radius: 34px; padding: 14px; background: #0e1621; border: 2px solid #2b3a4a;
  box-shadow: 0 40px 80px -30px rgba(42, 171, 238, .5);
}
.tg-head { display: flex; align-items: center; gap: 10px; padding: 8px 6px 14px; border-bottom: 1px solid #22303e; }
.tg-ava { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #5fc2ff, #7c5cff); font-weight: 800; }
.tg-chat { display: flex; flex-direction: column; gap: 10px; padding: 14px 4px 6px; min-height: 280px; }
.msg { max-width: 82%; padding: 9px 13px; border-radius: 16px; font-size: 15px; opacity: 0; transform: translateY(10px); }
.msg.in { background: #182533; align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.out { background: #2b5278; align-self: flex-end; border-bottom-right-radius: 4px; }
.p-spm.play .msg { animation: pop .5s forwards; }
.p-spm.play .msg:nth-child(2) { animation-delay: .9s; }
.p-spm.play .msg:nth-child(3) { animation-delay: 2s; }
.p-spm.play .msg:nth-child(4) { animation-delay: 3s; }
@keyframes pop { to { opacity: 1; transform: none; } }

/* --- Claude Friends: ИИ-чат --- */
.p-ai { background: radial-gradient(700px 500px at 30% 40%, #3b2a20 0%, #1c1512 55%, #100c0a 100%); justify-content: flex-end; }
.p-ai .project-card { background: rgba(30, 22, 18, .82); border-color: rgba(218, 119, 86, .3); }
.ai-title { font-family: var(--head); color: #f0a07e; }
.btn-ai { background: #da7756; color: #fff; }
.ai-chat { position: absolute; left: 7%; top: 50%; transform: translateY(-50%); z-index: -1; width: min(440px, 46%); display: flex; flex-direction: column; gap: 14px; }
.ai-msg { padding: 14px 18px; border-radius: 18px; font-size: 16px; }
.ai-msg.user { align-self: flex-end; background: #3a2c25; max-width: 85%; }
.ai-msg.bot { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); min-height: 150px; }
.ai-graph { display: block; width: 100%; height: 90px; margin-top: 10px; }
.ai-graph path { fill: none; stroke: #f0a07e; stroke-width: 2.4; stroke-dasharray: 220; stroke-dashoffset: 220; }
.ai-graph line { stroke: rgba(255, 255, 255, .25); }
.ai-graph circle { fill: #ffd23f; opacity: 0; }
.p-ai.play .ai-graph path { animation: draw 1.6s 2.6s forwards; }
.p-ai.play .ai-graph circle { animation: pop .3s 4.1s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- агенты ---------- */
.agent-map { position: relative; height: 420px; margin: 10px 0 30px; }
.agent-links { position: absolute; inset: 0; width: 100%; height: 100%; }
.agent-links path { fill: none; stroke: url(#lg); stroke-width: 2; stroke-dasharray: 6 8; animation: dash 3s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -28; } }
.agent {
  position: absolute; transform: translate(-50%, -50%); padding: 12px 18px; border-radius: 16px; font-weight: 800; font-size: 15px;
  background: var(--glass); border: 1px solid var(--line); white-space: nowrap; animation: floaty 6s ease-in-out infinite alternate;
}
.agent.hq { left: 50%; top: 50%; padding: 18px 26px; font-family: var(--head); font-size: 16px;
  background: linear-gradient(135deg, var(--c1), var(--c2)); border: 0; box-shadow: 0 20px 60px -20px var(--c1); }
.agent.a1 { left: 14%; top: 16%; } .agent.a2 { left: 50%; top: 9%; animation-delay: 1s; } .agent.a3 { left: 86%; top: 18%; animation-delay: 2s; }
.agent.a4 { left: 14%; top: 84%; animation-delay: .5s; } .agent.a5 { left: 50%; top: 92%; animation-delay: 1.5s; } .agent.a6 { left: 86%; top: 82%; animation-delay: 2.5s; }
.agent-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0; list-style: none; }
.agent-points li { padding: 20px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--line); color: var(--muted); }

/* ---------- навыки ---------- */
.skill-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sg { padding: 24px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--line); position: relative; overflow: hidden; }
.sg::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--c1), var(--c2), var(--c3)); }
.sg h4 { font-family: var(--head); margin: 6px 0 8px; font-size: 20px; }
.sg p { margin: 0; color: var(--muted); }

/* ---------- резюме ---------- */
.cv-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.cv-col { padding: 28px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--line); }
.cv-col h4 { font-family: var(--head); margin: 0 0 14px; font-size: 18px; color: var(--c3); }
.tl { border-left: 2px solid var(--line); padding-left: 18px; margin-bottom: 26px; }
.tl-item { position: relative; margin-bottom: 18px; }
.tl-item::before { content: ""; position: absolute; left: -25px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--c1); }
.tl-when { display: block; color: var(--c4); font-weight: 800; font-size: 13px; }
.tl-item p { margin: 4px 0 0; color: var(--muted); }
.langs-list { list-style: none; padding: 0; margin: 0 0 24px; }
.langs-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.langs-list span { color: var(--muted); }
.cv-dl { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- контакты и подвал ---------- */
.contact { text-align: center; }
.contact .section-sub { margin-left: auto; margin-right: auto; }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.foot { text-align: center; color: var(--muted); padding: 30px 16px 50px; font-size: 14px; }

/* ---------- узкие экраны ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .lang { margin-left: auto; }
  .numbers { grid-template-columns: repeat(2, 1fr); }
  .project { flex-direction: column; justify-content: flex-end; padding: 16px; min-height: 760px; }
  .project-card { padding: 22px; }
  .tg-phone, .ai-chat { left: 50%; top: 22%; transform: translate(-50%, -50%) scale(.82); width: 300px; }
  .coin { left: 50%; margin-left: -90px; top: 6%; }
  .id-card { display: none; }
  .vcard { width: 150px; height: 96px; }
  .agent-points, .skill-groups, .cv-grid { grid-template-columns: 1fr; }
  .agent-map { height: 520px; }
  .agent { font-size: 13px; padding: 9px 12px; white-space: normal; text-align: center; max-width: 42vw; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .msg, .ai-graph circle { opacity: 1; transform: none; }
  .ai-graph path { stroke-dashoffset: 0; }
}
.badge { cursor: default; }
.badge:hover { transform: none; }
.cv-note { color: var(--muted); margin: 0 0 24px; }

/* ---------- живые статусы ---------- */
.links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--muted); }
.live i { width: 9px; height: 9px; border-radius: 50%; background: #8a84ad; }
.live.up i { background: #38f2a2; box-shadow: 0 0 0 0 rgba(56, 242, 162, .7); animation: ping 2s infinite; }
.live.down i { background: #ff5e6c; }
.live.unknown { display: none; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(56, 242, 162, 0); } 100% { box-shadow: 0 0 0 0 rgba(56, 242, 162, 0); } }
.p-vox .live { color: #3c2d70; }
.p-so2 .live { font-family: var(--pixel); font-size: 9px; color: #c9f5a8; }

/* ---------- мини-игра в Satellite Odyssey ---------- */
.play-btn { border: 0; cursor: pointer; background: #9be36a; color: #12200b; box-shadow: 4px 4px 0 #3f7d22; }
.p-so2.playing .project-card { opacity: 0; pointer-events: none; transform: translateY(20px); transition: opacity .4s, transform .4s; }
.p-so2.playing { cursor: crosshair; }
.game-hud {
  position: absolute; left: 16px; bottom: 16px; z-index: 3; padding: 10px 14px; background: rgba(18, 32, 11, .88);
  border: 3px solid #12200b; font: 11px/1.6 var(--pixel); color: #ffe066; box-shadow: 4px 4px 0 #0b1406; max-width: min(420px, calc(100% - 32px));
}
.game-hud b { color: #fff; }
.game-exit { margin-left: 10px; font: 10px var(--pixel); border: 0; background: #ffcc33; color: #2b1a00; padding: 6px 8px; cursor: pointer; }
.game-tip { margin: 8px 0 0; color: #c9f5a8; font-size: 9px; }

/* ---------- резюме под вакансию ---------- */
.match { padding: 100px clamp(16px, 6vw, 96px) 40px; }
.match-form textarea {
  width: 100%; resize: vertical; min-height: 160px; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--glass); color: var(--ink); font: 16px/1.5 var(--body);
}
.match-form textarea:focus { outline: 2px solid var(--c2); }
.match-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 14px; }
.match-row button { border: 0; cursor: pointer; }
.match-row button[disabled] { opacity: .6; cursor: wait; }
.match-note { color: var(--muted); font-size: 14px; }
.match-out { margin-top: 22px; padding: 26px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--line); }
.match-out h4 { font-family: var(--head); margin: 16px 0 8px; color: var(--c3); font-size: 18px; }
.match-out h4:first-child { margin-top: 0; }
.match-out ul { margin: 0; padding-left: 20px; color: #e6e1ff; }
.match-out p { color: #e6e1ff; }
.match-out .err { color: #ffb3c4; }
@media (max-width: 480px) { .brand-text { display: none; } }
