/* Сторінки систем лаунчера (21.11.2026): /linux (термінал), /mac (Liquid Glass), блоки команд терміналу (.term) і для /steamdeck.
   Підключається після style.css. Спільне з рештою сайту: кнопки, .deck-toc, .section-title. */

:root {
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono", "Fira Code", Menlo, Consolas, "Liberation Mono", monospace;
  --term-bg: #0f1512;
  --term-bar: #1b2420;
  --term-ink: #d7f5e2;
  --term-dim: #7f9a8a;
  --term-ok: #4fdc8b;
  --term-key: #ffcf6b;
}

/* ---------- Блок команди терміналу ---------- */
.term { position: relative; max-width: 820px; margin: 0 auto; border-radius: 14px; overflow: hidden; background: var(--term-bg); color: var(--term-ink); box-shadow: 0 18px 44px rgba(10, 20, 14, .28), inset 0 0 0 1px rgba(255, 255, 255, .06); text-align: left; }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: var(--term-bar); font: 700 12.5px/1 var(--mono); color: var(--term-dim); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; flex: none; }
.term-bar i:nth-child(2) { background: #febc2e; }
.term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.term-body { margin: 0; padding: 16px 18px 18px; font: 500 15px/1.65 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.term-body .p { color: var(--term-ok); font-weight: 700; user-select: none; }
.term-body .c { color: var(--term-dim); }
.term-body .ok { color: var(--term-ok); }
.term-body .k { color: var(--term-key); }
.term-cur { display: inline-block; width: .6em; height: 1.1em; vertical-align: -.18em; background: var(--term-ok); animation: term-blink 1.1s steps(1) infinite; }
@keyframes term-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .term-cur { animation: none; } }
.term-copy { position: absolute; top: 6px; right: 8px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 8px; background: rgba(255, 255, 255, .06); color: var(--term-ink); font: 700 12.5px/1 var(--font); cursor: pointer; transition: background .15s, border-color .15s; }
.term-copy:hover { background: rgba(255, 255, 255, .14); }
.term-copy::after { content: "Копіювати"; }
.term-copy.is-copied { border-color: var(--term-ok); color: var(--term-ok); }
.term-copy.is-copied::after { content: "Скопійовано"; }
.term + .term { margin-top: 14px; }
.term.has-copy .term-bar { padding-right: 130px; }
.term-note { max-width: 820px; margin: 12px auto 0; font-size: 15px; color: var(--ink-2); text-align: center; }

/* ---------- Спільний каркас сторінки системи ---------- */
.osp-hero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 80px) 20px clamp(44px, 6vw, 84px); color: #fff; }
.osp-hero-in { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.osp-hero h1 { margin: 14px 0 12px; color: inherit; font-weight: 900; font-size: clamp(36px, 5.6vw, 70px); line-height: 1.02; }
.osp-lead { margin: 0 0 26px; max-width: 32em; font-size: clamp(17px, 1.8vw, 21px); font-weight: 700; line-height: 1.45; }
.osp-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.osp-actions .btn .dl-icon { width: 22px; height: 22px; margin-right: 8px; }
.osp-meta { margin: 14px 0 0; font-size: 14px; font-weight: 700; opacity: .75; }
.osp-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 800; letter-spacing: .02em; }
.osp-badge .dl-icon { width: 16px; height: 16px; }
.osp .section-lead { text-align: center; max-width: 720px; margin: 0 auto 26px; color: var(--ink-2); font-size: 17px; }

.osp-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1100px; margin: 0 auto; }
.osp-card { padding: 22px 22px 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.osp-card-ico { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 12px; border-radius: 13px; font-size: 23px; line-height: 1; }
.osp-card h3 { margin: 0 0 6px; font-size: 18.5px; font-weight: 900; }
.osp-card p { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }

.osp-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 22px auto 0; max-width: 900px; padding: 0; list-style: none; }
.osp-chips li { padding: 7px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 800; }
.osp-small { max-width: 760px; margin: 14px auto 0; text-align: center; font-size: 15px; color: var(--ink-2); }

.osp-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1100px; margin: 0 auto; padding: 0; list-style: none; counter-reset: st; }
.osp-steps.is-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.osp-steps li { position: relative; counter-increment: st; padding: 22px 20px 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.osp-steps li::before { content: counter(st); display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 12px; border-radius: 11px; font-weight: 900; font-size: 18px; }
.osp-steps h3 { margin: 0 0 6px; font-size: 19px; font-weight: 900; }
.osp-steps p { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }

.osp-help { max-width: 860px; margin: 0 auto; padding: 0; list-style: none; display: grid; gap: 10px; }
.osp-help li { padding: 14px 18px; border-radius: var(--radius-sm); background: var(--card); border: 1px solid var(--line); font-size: 16px; line-height: 1.55; color: var(--ink); }

.osp-plat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 860px; margin: 0 auto; }
.osp-plat a { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); font-weight: 800; font-size: 17px; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.osp-plat a:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); text-decoration: none; }
.osp-plat .dl-icon { width: 28px; height: 28px; background: currentColor; }
.osp-plat small { display: block; font-size: 13px; font-weight: 700; color: var(--ink-3); }
.osp-more { margin: 16px auto 0; text-align: center; font-size: 16px; color: var(--ink-2); }

/* Інлайн-команда в тексті: моноширинна «плашка терміналу» */
.osp code { font-family: var(--mono); font-size: .9em; padding: 2px 7px; border-radius: 6px; background: var(--term-bg); color: var(--term-ink); white-space: normal; overflow-wrap: anywhere; }

/* ---------- Linux: термінал, темний верх ---------- */
.osp-linux .osp-hero { background:
    radial-gradient(900px 420px at 85% 10%, rgba(79, 220, 139, .16), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(255, 207, 107, .10), transparent 60%),
    linear-gradient(160deg, #0c1210 0%, #121c17 55%, #0e1612 100%); }
.osp-linux .osp-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(180deg, #000 30%, transparent 100%); -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%); }
.osp-linux .osp-badge { background: rgba(79, 220, 139, .12); color: var(--term-ok); border: 1px solid rgba(79, 220, 139, .35); font-family: var(--mono); font-weight: 700; }
.osp-linux .osp-hero h1 .hl { color: var(--term-ok); }
.osp-linux .osp-lead { color: #d6e6dc; }
.osp-linux .term-hero { max-width: none; transform: rotate(-.6deg); }
.osp-linux .term-hero .term-body { font-size: 14.5px; min-height: 230px; }
.osp-linux .osp-card-ico { background: #0f1512; color: var(--term-ok); font-family: var(--mono); font-size: 18px; font-weight: 800; }
.osp-linux .osp-card h3 { font-family: var(--mono); font-size: 16.5px; letter-spacing: -.01em; }
.osp-linux .osp-card h3::before { content: "> "; color: var(--green); }
.osp-linux .osp-chips li { background: #0f1512; color: var(--term-ink); font-family: var(--mono); font-weight: 600; font-size: 13.5px; }
.osp-linux .osp-steps li::before { background: #0f1512; color: var(--term-ok); font-family: var(--mono); content: "$" counter(st); font-size: 15px; }
.osp-linux .osp-plat .dl-icon { color: var(--ink); }

/* ---------- Mac: Liquid Glass ---------- */
/* фон на body (клас osp-mac-body), щоб градієнт ішов до самого футера без різкого переходу */
body.osp-mac-body { background:
    radial-gradient(1100px 600px at 10% -5%, rgba(255, 170, 200, .55), transparent 60%),
    radial-gradient(900px 600px at 95% 5%, rgba(140, 180, 255, .55), transparent 60%),
    radial-gradient(900px 700px at 50% 60%, rgba(150, 230, 200, .40), transparent 65%),
    linear-gradient(180deg, #f6f4ff 0%, #f2f7f5 100%) fixed; }
.osp { padding-bottom: 72px; }
.osp-mac { position: relative; overflow-x: clip; }
.osp-mac .osp-hero { overflow: visible; }
.osp-mac .osp-hero { color: #1d1d1f; }
.osp-mac .osp-hero::before { content: ""; position: absolute; width: 520px; height: 520px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #ffd1e8, #b9c8ff 55%, transparent 70%); filter: blur(36px); opacity: .75; z-index: -1; pointer-events: none; }
.osp-mac .osp-hero::after { content: ""; position: absolute; width: 420px; height: 420px; left: -140px; bottom: -200px; border-radius: 50%; background: radial-gradient(circle at 60% 40%, #b8f2d9, #c9d7ff 60%, transparent 72%); filter: blur(36px); opacity: .75; z-index: -1; pointer-events: none; }
.glass { position: relative; background: linear-gradient(145deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .28)); border: 1px solid rgba(255, 255, 255, .75); box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 -1px 0 rgba(255, 255, 255, .25) inset, 0 20px 50px rgba(60, 70, 120, .16); -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%); }
.osp-mac .osp-hero-text { padding: clamp(24px, 3vw, 36px); border-radius: 30px; }
.osp-mac .osp-badge { background: rgba(255, 255, 255, .7); color: #1d1d1f; border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 4px 14px rgba(60, 70, 120, .12); }
.osp-mac .osp-hero h1 { color: #1d1d1f; letter-spacing: -.02em; }
.osp-mac .osp-hero h1 .hl { background: linear-gradient(90deg, #5b7cfa, #c05bd6 55%, #f08a5d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.osp-mac .osp-lead { color: #3a3a40; font-weight: 700; }
.osp-mac .btn-ghost { color: #1d1d1f !important; border-color: rgba(29, 29, 31, .25); background: rgba(255, 255, 255, .55); }
.osp-mac .btn-ghost:hover { background: rgba(255, 255, 255, .85); }
.osp-mac .osp-meta { color: #3a3a40; }
.mac-win { border-radius: 16px; overflow: hidden; transform: perspective(1400px) rotateY(-5deg) rotateX(2deg); transition: transform .6s cubic-bezier(.2, .8, .2, 1), box-shadow .6s; will-change: transform; }
.mac-win:hover { transform: perspective(1400px) rotateY(0) rotateX(0) translateY(-8px) scale(1.02); box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 34px 70px rgba(60, 70, 120, .26); }
.osp-linux .term-hero { transition: transform .6s cubic-bezier(.2, .8, .2, 1), box-shadow .6s; }
.osp-linux .term-hero:hover { transform: rotate(0) translateY(-6px); box-shadow: 0 28px 60px rgba(10, 20, 14, .45), 0 0 0 1px rgba(79, 220, 139, .35); }
@media (prefers-reduced-motion: reduce) { .mac-win, .osp-linux .term-hero { transition: none; } }
.mac-win-bar { display: flex; align-items: center; gap: 8px; padding: 11px 14px; background: rgba(255, 255, 255, .55); border-bottom: 1px solid rgba(255, 255, 255, .7); font-size: 12.5px; font-weight: 800; color: #4a4a52; }
.mac-win-bar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .15); }
.mac-win-bar i:nth-child(2) { background: #febc2e; }
.mac-win-bar i:nth-child(3) { background: #28c840; }
.mac-win-bar span { flex: 1; text-align: center; margin-right: 52px; }
.mac-win img { display: block; width: 100%; height: auto; border-radius: 0 !important; }
.osp-mac .osp-card, .osp-mac .osp-steps li, .osp-mac .osp-help li, .osp-mac .osp-plat a, .osp-mac .deck-toc { background: linear-gradient(145deg, rgba(255, 255, 255, .66), rgba(255, 255, 255, .34)); border: 1px solid rgba(255, 255, 255, .8); box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 16px 40px rgba(60, 70, 120, .12); -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%); }
.osp-mac .osp-card-ico { background: linear-gradient(145deg, #ffffff, #e9ecff); box-shadow: 0 6px 16px rgba(91, 124, 250, .18); }
.osp-mac .osp-steps li::before { background: linear-gradient(145deg, #5b7cfa, #c05bd6); color: #fff; box-shadow: 0 6px 16px rgba(91, 124, 250, .3); }
.osp-mac .osp-chips li { background: rgba(255, 255, 255, .7); border: 1px solid rgba(255, 255, 255, .95); box-shadow: 0 4px 12px rgba(60, 70, 120, .1); color: #1d1d1f; }
.osp-mac .deck-toc a:hover { background: rgba(255, 255, 255, .7); }
.osp-mac .section-title { color: #1d1d1f; letter-spacing: -.01em; }
.chip-cpu { display: grid; place-items: center; }
.sil-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 900px; margin: 0 auto; }
.sil-card { padding: 24px; border-radius: 24px; }
.sil-card b.sil-tag { display: inline-block; margin-bottom: 10px; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 900; color: #fff; background: linear-gradient(90deg, #5b7cfa, #c05bd6); }
.sil-card.is-rosetta b.sil-tag { background: linear-gradient(90deg, #f08a5d, #e5484d); }
.sil-card h3 { margin: 0 0 6px; font-size: 21px; font-weight: 900; color: #1d1d1f; }
.sil-card p { margin: 0; font-size: 16px; line-height: 1.5; color: #3a3a40; }
.osp-mac .term { max-width: 900px; margin-top: 16px; }

/* ---------- Steam Deck: розкладка кнопок ---------- */
.pad-table { width: 100%; max-width: 900px; margin: 0 auto; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; font-size: 15.5px; }
.pad-table th, .pad-table td { padding: 11px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.pad-table tr:last-child th, .pad-table tr:last-child td { border-bottom: 0; }
.pad-table thead th { background: #101a14; color: #fff; font-size: 14px; font-weight: 800; }
.pad-table tbody th { width: 30%; font-weight: 800; white-space: nowrap; }
.pad-table td { color: var(--ink-2); }
.pad-table kbd { display: inline-block; min-width: 1.6em; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line); border-bottom-width: 2px; background: #f7faf8; font: 700 13px/1.5 var(--mono); color: var(--ink); text-align: center; }
.pad-wrap { overflow-x: auto; max-width: 900px; margin: 0 auto; }

@media (max-width: 960px) {
  .osp-hero-in { grid-template-columns: minmax(0, 1fr); }
  .osp-cards, .osp-steps, .osp-steps.is-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .osp-linux .term-hero { transform: none; }
  .mac-win { transform: none; }
}
@media (max-width: 640px) {
  .osp-cards, .osp-steps, .osp-steps.is-4, .osp-plat, .sil-grid { grid-template-columns: minmax(0, 1fr); }
  .term-body { font-size: 13.5px; padding: 14px; }
  .term-copy { position: static; margin: 0 14px 14px; }
  .pad-table tbody th { white-space: normal; }
}
