/* Omega · play.omegasuite.it
   Foglio di stile unico per index.html e installa.html.
   Nessuna risorsa esterna: font di sistema, SVG locali. */

:root {
  --bg: #0c0e14;
  --bg-2: #11141c;
  --surface: #161a24;
  --surface-2: #1c2130;
  --line: #252b3b;
  --line-2: #333b50;
  --ink: #eceef4;
  --ink-2: #aab0c0;
  --ink-3: #7d8497;
  --accent: #7b82ff;
  --accent-ink: #a9adff;
  --green: #3ccf87;
  --amber: #f2b84b;
  --red: #f0596a;
  --r: 12px;
  --nav-h: 60px;
  --latin: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial;
  --script: sans-serif; /* font della scrittura, vedi :lang() in fondo */
  --font: var(--latin), var(--script);
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
body.is-locked { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; overflow-wrap: break-word; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
code { font-family: var(--mono); font-size: .9em; padding: .1em .35em; border-radius: 5px; background: var(--surface-2); word-break: break-word; }
strong { color: var(--ink); font-weight: 600; }
em { font-style: normal; color: var(--accent-ink); }
::selection { background: rgba(123, 130, 255, .4); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 300; padding: 10px 14px; border-radius: 8px; background: #fff; color: #000; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); line-height: 1.15; letter-spacing: -.02em; }
.h3 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.65rem); line-height: 1.25; letter-spacing: -.01em; margin-bottom: 12px; }
.h4 { font-size: 1.06rem; line-height: 1.35; margin-bottom: 6px; }
.lead { font-size: 1.08rem; color: var(--ink-2); max-width: 38em; margin: 14px 0 0; }
.h2, .h3, .hero__title, .inst-title { text-wrap: balance; }

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border: 1px solid transparent; border-radius: 10px;
  font-weight: 600; font-size: 15px; line-height: 1.2; text-align: center; text-decoration: none;
  cursor: pointer; transition: background-color .15s, border-color .15s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--lg { min-height: 50px; padding: 0 22px; font-size: 16px; }
.btn--sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: #8d93ff; }
.btn--ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { background: var(--surface); border-color: #47506a; }
.btn:disabled { opacity: .6; cursor: default; }
.btn.is-done { border-color: var(--green); color: var(--green); }

.link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 0;
  border: 0; background: none; color: var(--accent-ink); font-weight: 600; font-size: 15px; cursor: pointer;
}
.link svg { width: 14px; height: 14px; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Barra ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 14, 20, .88);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(1px)) { .nav { background: rgba(12, 14, 20, .75); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); } }
.nav__inner { display: flex; align-items: center; gap: 16px; min-height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand__mark { width: 28px; height: 28px; }
.brand__word { font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.nav__menu { display: flex; align-items: center; gap: 4px; }
.nav__menu > a:not(.btn) { padding: 8px 10px; border-radius: 8px; color: var(--ink-2); font-size: 15px; text-decoration: none; }
.nav__menu > a:not(.btn):hover { color: var(--ink); background: var(--surface); }
.nav__menu .btn { margin-left: 6px; }
.nav__toggle { display: none; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line-2); border-radius: 10px; background: transparent; cursor: pointer; }
.nav__toggle svg { width: 22px; height: 22px; }
.nav__tools { display: flex; align-items: center; gap: 8px; }

@media (max-width: 960px) {
  .nav__toggle { display: grid; }
  .nav__menu {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px 20px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    max-height: calc(100vh - var(--nav-h)); max-height: calc(100dvh - var(--nav-h)); overflow-y: auto;
  }
  .nav.is-open .nav__menu { display: flex; }
  .nav__menu > a:not(.btn) { padding: 12px 4px; font-size: 17px; color: var(--ink); border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav__menu > a:not(.btn):hover { background: none; }
  .nav__menu .btn { margin: 14px 0 0; min-height: 48px; font-size: 16px; }
}

/* ---------- Selettore della lingua ---------- */
.lang { position: relative; }
.lang__btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px;
  border: 1px solid var(--line-2); border-radius: 8px; color: var(--ink-2); font-size: 14px; font-weight: 600;
  cursor: pointer; list-style: none; user-select: none;
}
.lang__btn::-webkit-details-marker { display: none; }
.lang__btn::marker { content: ""; }
.lang__btn:hover, .lang[open] > .lang__btn { color: var(--ink); background: var(--surface); }
.lang__globe { width: 16px; height: 16px; flex: none; }
.lang__chev { width: 14px; height: 14px; flex: none; opacity: .7; }
.lang[open] .lang__chev { transform: rotate(180deg); }
.lang--nav .lang__long { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lang__panel {
  position: absolute; z-index: 60; top: calc(100% + 8px); right: 0; width: min(480px, calc(100vw - 24px));
  padding: 8px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
}
.lang__title { margin: 4px 8px 8px; font-size: 13px; color: var(--ink-3); }
.lang__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
.lang .lang__list a { display: flex; align-items: center; min-height: 36px; padding: 6px 10px; border-radius: 6px; color: var(--ink-2); font-size: 14px; text-decoration: none; line-height: 1.25; }
.lang .lang__list a:hover, .lang .lang__list a:focus-visible { color: var(--ink); background: var(--surface-2); }
.lang .lang__list a[aria-current] { color: var(--ink); background: var(--surface-2); font-weight: 600; }
.lang .lang__list a[aria-current]::after { content: ""; flex: none; width: 6px; height: 6px; margin-left: auto; border-radius: 50%; background: var(--accent); }
.nav__menu .lang { margin-left: 6px; }
.lang--foot .lang__panel { top: auto; bottom: calc(100% + 8px); }

@media (max-width: 960px) {
  .nav__menu .lang { margin: 12px 0 0; }
  .nav__menu .lang__btn { width: 100%; min-height: 46px; padding: 0 12px; font-size: 16px; }
  .nav__menu .lang__chev { margin-left: auto; }
  .nav__menu .lang__short { display: none; }
  .nav__menu .lang--nav .lang__long { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; }
  .nav__menu .lang__panel { position: static; width: auto; margin-top: 6px; box-shadow: none; }
  .nav__menu .lang__title { display: none; }
  .lang__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .nav__tools .lang__panel { position: fixed; top: calc(var(--nav-h) + 4px); left: 12px; right: 12px; width: auto; max-height: calc(100vh - var(--nav-h) - 16px); overflow-y: auto; }
  .nav__tools .lang__short { display: none; }
  .lang--foot .lang__panel { right: auto; left: 0; }
}

/* ---------- Schermate ---------- */
.shot { margin: 0; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; background: var(--surface); aspect-ratio: 16 / 9; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.ph { position: relative; }
.ph.is-missing::after {
  content: attr(data-label); position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--ink-3); font-size: 14px; background: var(--surface);
}
.ph.is-missing > img { visibility: hidden; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 8vw, 88px) 0 clamp(48px, 7vw, 80px); }
.hero__copy { max-width: 820px; margin-bottom: clamp(32px, 5vw, 56px); }
.hero__tag { display: inline-block; margin: 0 0 18px; color: var(--ink-2); font-size: 14px; font-weight: 600; }
.hero__title { font-size: clamp(2.3rem, 1.4rem + 4vw, 4.2rem); line-height: 1.05; letter-spacing: -.03em; font-weight: 750; }
.hero__sub { margin: 20px 0 0; max-width: 36em; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--ink-2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 22px; color: var(--ink-3); font-size: 14px; }
.hero__meta li { display: inline-flex; align-items: center; gap: 7px; }
.hero__meta li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--line-2); }
.shot--hero { box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8); }

@media (max-width: 560px) {
  .hero__cta .btn { flex: 1 1 100%; }
}

/* ---------- Sezioni ---------- */
.sec { padding: clamp(56px, 9vw, 104px) 0; border-top: 1px solid var(--line); }
.sec--alt { background: var(--bg-2); }
.head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 52px); }

/* funzioni: testo e schermata affiancati, alternati */
.feat { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.feat + .feat { margin-top: clamp(56px, 8vw, 96px); }
.feat--flip .feat__text { order: 2; }
.feat__text > p { color: var(--ink-2); }
.feat__label { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--accent-ink); font-size: 14px; font-weight: 600; }
.feat__label svg { width: 18px; height: 18px; }
.ticks { display: grid; gap: 8px; margin-top: 18px; }
.ticks li { position: relative; padding-left: 26px; color: var(--ink); font-size: 15px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.swatches { display: flex; gap: 8px; margin-top: 18px; }
.sw { width: 30px; height: 30px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .12); }
.sw--1 { background: #3b5bff; } .sw--2 { background: #8a3df0; } .sw--3 { background: #e0457b; }
.sw--4 { background: #1fae74; } .sw--5 { background: #f08c2a; } .sw--6 { background: #2a2f3d; }

@media (max-width: 860px) {
  .feat { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .feat--flip .feat__text { order: 0; }
  .feat .shot { order: -1; }
}

/* store */
.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 56px); align-items: start; }
.points { display: grid; gap: 22px; }
.point p { color: var(--ink-2); font-size: 15px; }
.catalog { margin-top: clamp(40px, 6vw, 64px); padding-top: 28px; border-top: 1px solid var(--line); }
.catalog__n { color: var(--ink-2); margin-bottom: 14px; }
.catalog__n b { color: var(--ink); font-size: 1.4em; margin-right: 4px; }
.catalog__list { display: flex; flex-wrap: wrap; gap: 8px; }
.catalog__list li { padding: 5px 11px; border: 1px solid var(--line-2); border-radius: 6px; font-size: 14px; color: var(--ink-2); background: var(--surface); }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .catalog__list { gap: 6px; } .catalog__list li { padding: 3px 8px; font-size: 13px; } }

/* griglie di voci brevi (community, libertà) */
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.item { padding: 22px; background: var(--bg); }
.sec--alt .item { background: var(--bg-2); }
.item__k { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-weight: 600; }
.item__k svg { width: 18px; height: 18px; flex: none; color: var(--accent-ink); }
.item > p:not(.item__k) { color: var(--ink-2); font-size: 15px; }
.states { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.states li { display: inline-flex; align-items: center; gap: 6px; }
.st { width: 8px; height: 8px; border-radius: 50%; }
.st--on { background: var(--green); } .st--away { background: var(--amber); } .st--dnd { background: var(--red); } .st--inv { border: 1.5px solid var(--ink-3); }
@media (max-width: 860px) { .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid3 { grid-template-columns: minmax(0, 1fr); } .item { padding: 18px; } }

.extras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; margin-top: 32px; color: var(--ink-2); font-size: 15px; }
.extras li { display: flex; gap: 10px; align-items: flex-start; }
.extras svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--ink-3); }
@media (max-width: 560px) { .extras { grid-template-columns: minmax(0, 1fr); } }

/* video e galleria */
.tour { display: block; width: 100%; padding: 0; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; background: var(--surface); cursor: pointer; text-align: left; aspect-ratio: 16 / 9; }
.tour img { width: 100%; height: 100%; object-fit: cover; }
.tour__bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: linear-gradient(to top, rgba(8, 10, 16, .92), rgba(8, 10, 16, 0)); font-size: 15px; color: var(--ink-2); }
.tour__bar b { color: #fff; margin-right: 4px; }
.tour__play { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: #0c0e14; }
.tour__play svg { width: 18px; height: 18px; margin-left: 2px; }
.tour:hover .tour__play { background: var(--accent); color: #fff; }
.gal__title { margin: 40px 0 14px; }
.gal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.gitem { display: block; width: 100%; padding: 0; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; background: var(--surface); cursor: zoom-in; aspect-ratio: 16 / 9; }
.gitem img { width: 100%; height: 100%; object-fit: cover; }
.gitem:hover { border-color: #47506a; }
@media (max-width: 560px) {
  .gal { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tour__bar { padding: 12px; font-size: 14px; }
  .tour__bar > span:last-child > span { display: none; }
  .tour__play { width: 38px; height: 38px; }
}

/* libertà */
.server { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; padding: 26px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); }
.server > div { max-width: 40em; }
.server p { color: var(--ink-2); }
.server .btn { flex: none; }
@media (max-width: 760px) { .server { flex-direction: column; align-items: stretch; padding: 20px; } }
.credit { margin-top: 28px; color: var(--ink-3); font-size: 14px; }
.credit a, .foot a { color: var(--ink-2); }

/* installazione */
.install { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 72px); align-items: start; }
.steps { display: grid; gap: 22px; margin-bottom: 28px; counter-reset: st; }
.steps li { position: relative; padding-left: 46px; counter-increment: st; }
.steps li::before { content: counter(st); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 8px; font-weight: 700; font-size: 14px; }
.steps p { color: var(--ink-2); font-size: 15px; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; font-weight: 600; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary svg { width: 18px; height: 18px; flex: none; color: var(--ink-3); transition: transform .2s; }
.qa[open] summary svg { transform: rotate(180deg); }
.qa p { padding-bottom: 18px; color: var(--ink-2); font-size: 15px; }
.faq .h3 { margin-bottom: 4px; }
@media (max-width: 860px) { .install { grid-template-columns: minmax(0, 1fr); } }

/* download */
.dl { max-width: 820px; padding: clamp(22px, 4vw, 40px); border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface); }
.dl__head { display: flex; gap: 20px; align-items: center; margin-bottom: 24px; }
.dl__mark { width: 64px; height: 64px; flex: none; }
.dl__head .lead { margin-top: 6px; }
.dl__meta { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 0 0 24px; }
.dl__meta dt { font-size: 13px; color: var(--ink-3); }
.dl__meta dd { margin: 0; font-weight: 600; }
.dl__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sha { margin-top: 24px; }
.sha__label { display: block; margin-bottom: 8px; font-size: 13px; color: var(--ink-3); overflow-wrap: anywhere; }
.sha__row { display: flex; gap: 8px; }
.sha__field { flex: 1; min-width: 0; min-height: 36px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg); color: var(--ink-2); font-family: var(--mono); font-size: 13px; }
.dl__note { margin-top: 20px; color: var(--ink-3); font-size: 14px; }
@media (max-width: 560px) {
  .dl__head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .dl__mark { width: 48px; height: 48px; }
  .dl__actions .btn { flex: 1 1 100%; }
}

/* ---------- Piede ---------- */
.foot { padding: 44px 0 36px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }
.foot__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.foot__brand p { margin-top: 10px; max-width: 26em; }
.foot__side { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot__links a { text-decoration: none; }
.foot__links a:hover { color: var(--ink); }
.foot__legal { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }
.foot__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; }
@media (max-width: 760px) { .foot__side { align-items: flex-start; } }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; }
.lightbox__bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .85); }
.lightbox__box { position: relative; width: min(1100px, 100%); }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.lightbox__title { margin: 0; font-weight: 600; }
.lightbox__x { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); cursor: pointer; }
.lightbox__x svg { width: 20px; height: 20px; }
.lightbox__stage { aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.lightbox__stage video, .lightbox__stage img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- /installa ---------- */
.inst-hero { padding: clamp(40px, 8vw, 80px) 0 28px; }
.inst-title { font-size: clamp(2.2rem, 1.4rem + 3.5vw, 3.6rem); line-height: 1.08; letter-spacing: -.03em; }
.inst-sub { max-width: 34em; margin: 16px 0 0; color: var(--ink-2); font-size: 1.1rem; }
.inst-main { padding: 0 0 80px; }
.inst-card { padding: clamp(22px, 4vw, 36px); border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface); }
.inst-card > p { color: var(--ink-2); max-width: 40em; }
.inst-pre { display: grid; gap: 8px; margin: 20px 0 0; }
.inst-pre li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); }
.inst-pre svg { width: 18px; height: 18px; flex: none; color: var(--green); }
.inst-go { width: 100%; max-width: 480px; min-height: 56px; margin-top: 24px; font-size: 17px; }
.inst-go svg { width: 22px; height: 22px; }
.inst-hint { margin: 18px 0 0; padding: 12px 14px; border-left: 3px solid var(--amber); border-radius: 4px; background: rgba(242, 184, 75, .08); color: #f3d9a4; font-size: 15px; max-width: 40em; }

.status { margin-top: 22px; max-width: 560px; }
.status__row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg); }
.status__icon { position: relative; flex: none; width: 40px; height: 40px; }
.status__icon svg { width: 40px; height: 40px; }
.ring-bg { fill: none; stroke: var(--line-2); stroke-width: 4; }
.ring { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 138.2; stroke-dashoffset: 138.2; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset .3s; }
.status.is-spin .ring { stroke-dashoffset: 100; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(270deg); } }
.status__ok, .status__err { position: absolute; inset: 0; display: none; place-items: center; border-radius: 50%; }
.status__ok svg, .status__err svg { width: 20px; height: 20px; }
.status.is-done .status__ok { display: grid; background: rgba(60, 207, 135, .15); color: var(--green); }
.status.is-err .status__err { display: grid; background: rgba(240, 89, 106, .15); color: var(--red); }
.status.is-done .status__ring, .status.is-err .status__ring { display: none; }
.status__t { margin: 0; font-weight: 600; }
.status__d { margin: 2px 0 0; color: var(--ink-2); font-size: 14px; }
.status__next { display: grid; gap: 8px; margin-top: 12px; padding: 14px 16px 14px 36px; list-style: decimal; color: var(--ink-2); font-size: 15px; border-left: 3px solid var(--green); }
.status__help { margin-top: 12px; padding: 14px 16px; border-left: 3px solid var(--red); color: var(--ink-2); font-size: 15px; }
.status__help ul { display: grid; gap: 6px; margin: 8px 0 12px; padding-left: 18px; list-style: disc; }

.alt { margin-top: 48px; }
.alt > p { color: var(--ink-2); }
.tabs { display: flex; gap: 4px; margin-top: 18px; padding: 4px; border: 1px solid var(--line-2); border-radius: 12px; overflow-x: auto; }
.tab { flex: 1 0 auto; min-height: 42px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-2); font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--surface-2); color: var(--ink); }
.panel { margin-top: 12px; padding: clamp(18px, 3vw, 28px); border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); }
.panel .note, .note { display: block; margin-top: 6px; color: var(--ink-3); font-size: 14px; }
.panel ol.howto { display: grid; gap: 16px; margin-top: 16px; counter-reset: hw; }
.panel ol.howto > li { min-width: 0; position: relative; padding-left: 38px; color: var(--ink-2); counter-increment: hw; }
.panel ol.howto > li::before { content: counter(hw); position: absolute; left: 0; top: 0; width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 7px; color: var(--ink); font-size: 13px; font-weight: 700; }
.panel .btn { margin-top: 8px; }
.field { display: grid; gap: 6px; margin: 14px 0; max-width: 360px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field input { min-height: 46px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg); color: var(--ink); font-family: var(--mono); font-size: 16px; }
.field input:focus { border-color: var(--accent); outline: none; }
.field__err { margin: 0; color: var(--red); font-size: 14px; }
.linkout { margin: 8px 0 4px; }
.linkout a { font-family: var(--mono); font-size: 14px; color: var(--accent-ink); overflow-wrap: anywhere; }
.cmd { display: flex; gap: 8px; align-items: center; margin: 8px 0 4px; }
.cmd pre { flex: 1; min-width: 0; margin: 0; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg); font-family: var(--mono); font-size: 13px; overflow-x: auto; }
.cmd .btn { margin: 0; flex: none; }
.inst-back { margin-top: 48px; }
@media (max-width: 560px) {
  .cmd { flex-direction: column; align-items: stretch; }
  .tabs { flex-wrap: wrap; overflow: visible; }
  .tab { flex: 1 1 100%; white-space: normal; }
  .inst-back .btn { width: 100%; }
}

/* ---------- Scritture non latine ---------- */
:lang(ja) { --script: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", YuGothic, Meiryo, "Noto Sans CJK JP", "Noto Sans JP", sans-serif; }
:lang(zh-Hans) { --script: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", sans-serif; }
:lang(zh-Hant) { --script: "PingFang TC", "Microsoft JhengHei UI", "Microsoft JhengHei", "Noto Sans CJK TC", "Noto Sans TC", sans-serif; }
:lang(ko) { --script: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans CJK KR", "Noto Sans KR", sans-serif; }
:lang(th) { --script: Thonburi, "Leelawadee UI", Leelawadee, "Noto Sans Thai UI", "Noto Sans Thai", Tahoma, sans-serif; }
:lang(el), :lang(ru), :lang(uk) { --script: "Noto Sans", "Helvetica Neue", Arial, sans-serif; }

:lang(ja) body, :lang(zh) body, :lang(ko) body { line-height: 1.75; line-break: strict; }
:lang(ko) body { word-break: keep-all; overflow-wrap: anywhere; }
:lang(ja) :is(.h2, .h3, .h4, .hero__title, .inst-title, .btn, .lead, .hero__sub, .inst-sub) { word-break: auto-phrase; }
:is(:lang(ja), :lang(zh), :lang(ko)) :is(.h2, .h3, .hero__title, .inst-title) { letter-spacing: 0; line-height: 1.3; }
:lang(th) body { line-height: 1.8; }
:lang(th) :is(.h2, .h3, .h4, .hero__title, .inst-title) { letter-spacing: 0; line-height: 1.4; }
