/*! Run3.org */
:root {
  --bg: #070a16;
  --bg-alt: #0a0f22;
  --card: #10162c;
  --card-2: #161e3a;
  --line: rgba(150, 170, 255, .1);
  --line-2: rgba(150, 170, 255, .2);
  --text: #eef1ff;
  --muted: #b6bedb;
  --dim: #8a93b6;
  --amber: #f59e0b;
  --amber-2: #fbbf24;
  --cyan: #22d3ee;
  --on-amber: #1d1303;
  --grad: linear-gradient(135deg, #fcd34d 0%, #f59e0b 45%, #f97316 100%);
  --radius: 16px;
  --header: 62px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 12px); }
body {
  position: relative; margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  -webkit-font-smoothing: antialiased; overflow-wrap: break-word;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
  background-image:
    radial-gradient(1px 1px at 23px 41px, #fff, transparent), radial-gradient(1px 1px at 141px 97px, #cfe0ff, transparent),
    radial-gradient(1.5px 1.5px at 207px 178px, #fff, transparent), radial-gradient(1px 1px at 78px 211px, #ffe9b8, transparent),
    radial-gradient(1px 1px at 260px 22px, #fff, transparent), radial-gradient(1.5px 1.5px at 302px 266px, #bfeaff, transparent);
  background-size: 320px 300px;
}
:lang(ja) body { font-family: system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, sans-serif; }
:lang(zh) body { font-family: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
:lang(ko) body { font-family: system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; word-break: keep-all; }
:lang(hi) body { font-family: system-ui, -apple-system, "Nirmala UI", "Kohinoor Devanagari", "Noto Sans Devanagari", sans-serif; }
:lang(ar) body { font-family: system-ui, -apple-system, "Segoe UI", Tahoma, "Geeza Pro", "Noto Sans Arabic", sans-serif; }
:lang(ja) :is(h1, h2, h3), :lang(zh) :is(h1, h2, h3) { word-break: auto-phrase; }
:lang(de) :is(p, li, td, .lead), :lang(nl) :is(p, li, td, .lead) { hyphens: auto; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--amber-2); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--amber-2); outline-offset: 2px; border-radius: 6px; }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i-sm { width: 14px; height: 14px; }
[dir="rtl"] .i-dir { transform: scaleX(-1); }

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

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 10, 22, .9); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(150%) blur(10px); backdrop-filter: saturate(150%) blur(10px);
}
.header-in { position: relative; display: flex; align-items: center; gap: 14px; height: var(--header); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 850; font-size: 21px; letter-spacing: -.02em; white-space: nowrap; flex: none; }
.brand img { width: 34px; height: 34px; }
.brand-name span { color: var(--amber-2); }
.nav { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; min-width: 0; }
.nav a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 650; font-size: 15px; white-space: nowrap; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav a[aria-current="page"] { color: var(--text); background: rgba(245, 158, 11, .16); }
.nav .nav-play { color: var(--on-amber); background: var(--grad); margin-inline-end: 6px; padding: 8px 14px 8px 11px; font-weight: 800; }
.nav .nav-play:hover { color: var(--on-amber); background: var(--grad); filter: brightness(1.08); }
.nav .nav-play .i { width: 16px; height: 16px; }
.header-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.menu-btn { display: none; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; }
.menu-btn .i-close, .menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }

.dd { position: relative; }
.dd > summary {
  display: flex; align-items: center; gap: 6px; height: 42px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 10px;
  color: var(--muted); font-weight: 700; font-size: 14px; cursor: pointer; list-style: none; user-select: none;
}
.dd > summary::-webkit-details-marker { display: none; }
.dd > summary:hover, .dd[open] > summary { color: var(--text); border-color: rgba(245, 158, 11, .6); }
.dd[open] > summary .i-sm { transform: rotate(180deg); }
/* Tall enough for all 16 languages on common screens; on short ones the scrollbar and the edge shadows show there is more */
.dd-menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 60; min-width: 200px;
  max-height: calc(100vh - var(--header) - 16px); overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: rgba(170, 185, 255, .45) transparent;
  padding: 6px; border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 20px 50px rgba(0, 0, 0, .55);
  background:
    linear-gradient(#121935 30%, rgba(18, 25, 53, 0)) top / 100% 36px no-repeat local,
    linear-gradient(rgba(18, 25, 53, 0), #121935 70%) bottom / 100% 36px no-repeat local,
    radial-gradient(farthest-side at 50% 0, rgba(170, 185, 255, .3), transparent) top / 100% 12px no-repeat scroll,
    radial-gradient(farthest-side at 50% 100%, rgba(170, 185, 255, .3), transparent) bottom / 100% 12px no-repeat scroll,
    #121935;
}
@supports (height: 100dvh) { .dd-menu { max-height: calc(100dvh - var(--header) - 16px); } }
.dd-title { margin: 4px 10px 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.dd-menu ul { list-style: none; margin: 0; padding: 0; }
.dd-menu a { display: block; padding: 7px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 600; line-height: 1.5; text-align: left; }
[dir="rtl"] .dd-menu a { text-align: right; }
.dd-menu a:hover { background: rgba(255, 255, 255, .07); }
.dd-menu a[aria-current="true"] { color: var(--amber-2); background: rgba(245, 158, 11, .12); }

/* Compact header: below 980px, or when js/site.js finds that the full nav does not fit (same rules twice) */
@media (max-width: 980px) {
  .js .menu-btn { display: inline-flex; }
  .js .header-tools { margin-inline-start: auto; }
  .js .nav {
    display: none; position: absolute; inset-inline: 0; top: var(--header); margin: 0;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 14px 16px;
    background: #0b1024; border-bottom: 1px solid var(--line-2); box-shadow: 0 24px 40px rgba(0, 0, 0, .5);
    max-height: calc(100vh - var(--header)); overflow-y: auto;
  }
  .js .nav.open { display: flex; }
  .js .nav a { padding: 12px 14px; font-size: 17px; white-space: normal; }
  .js .nav .nav-play { margin: 0 0 6px; justify-content: center; }
  html:not(.js) .header-in { height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  html:not(.js) .nav { flex-wrap: wrap; order: 3; width: 100%; margin: 0; }
}
.js .site-header.compact .menu-btn { display: inline-flex; }
.js .site-header.compact .header-tools { margin-inline-start: auto; }
.js .site-header.compact .nav {
  display: none; position: absolute; inset-inline: 0; top: var(--header); margin: 0;
  flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 14px 16px;
  background: #0b1024; border-bottom: 1px solid var(--line-2); box-shadow: 0 24px 40px rgba(0, 0, 0, .5);
  max-height: calc(100vh - var(--header)); overflow-y: auto;
}
.js .site-header.compact .nav.open { display: flex; }
.js .site-header.compact .nav a { padding: 12px 14px; font-size: 17px; white-space: normal; }
.js .site-header.compact .nav .nav-play { margin: 0 0 6px; justify-content: center; }
.nav-scrim { position: fixed; inset: 0; z-index: 40; background: rgba(2, 4, 12, .66); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.nav-scrim[hidden] { display: none; }
@media (max-width: 380px) {
  .brand { font-size: 19px; gap: 8px; }
  .brand img { width: 30px; height: 30px; }
}
@media (max-height: 560px) and (orientation: landscape) {
  .site-header { position: relative; }
  html { scroll-padding-top: 0; }
}

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 22px; border: 0; border-radius: 999px;
  background: var(--grad); color: var(--on-amber); font-weight: 850; font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 30px -10px rgba(245, 158, 11, .7);
}
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .65; cursor: default; }
.btn .i { width: 18px; height: 18px; }
.btn-lg { padding: 15px 30px; font-size: 18px; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 10px;
  background: rgba(255, 255, 255, .03); color: var(--text); font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap;
}
.btn-ghost:hover { border-color: rgba(245, 158, 11, .7); }
.more { margin: 24px 0 0; }
.more-link { display: inline-flex; align-items: center; gap: 8px; color: var(--amber-2); font-weight: 750; text-decoration: none; }
.more-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.more-link .i { width: 18px; height: 18px; transition: transform .2s; }
.more-link:hover .i { transform: translateX(3px); }
[dir="rtl"] .more-link:hover .i-dir { transform: scaleX(-1) translateX(3px); }

/* Ads: no gap when Ezoic leaves a placeholder empty */
.ad { max-width: 1180px; margin: 28px auto; padding: 0 20px; text-align: center; }
.ad:has(> div:empty) { margin: 0 auto; padding: 0; }
.prose .ad { padding: 0; max-width: none; }

/* Home: hero and game */
.home-hero { padding: 34px 0 20px; text-align: center; background: radial-gradient(ellipse 900px 320px at 50% -40px, rgba(34, 211, 238, .14), transparent 70%); }
.home-hero h1 { margin: 0 0 12px; font-size: clamp(28px, 4.6vw, 48px); line-height: 1.12; font-weight: 850; letter-spacing: -.025em; }
.home-hero .hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.intro { max-width: 72ch; margin: 0 auto; color: var(--muted); font-size: clamp(16px, 1.7vw, 18px); }

.game-sec { padding: 6px 0 8px; }
.game-box {
  position: relative; overflow: hidden; background: #000; border: 1px solid var(--line-2); border-radius: 18px;
  box-shadow: 0 30px 80px -30px rgba(34, 211, 238, .35), 0 20px 50px rgba(0, 0, 0, .5);
}
.game-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100vh - 150px); background: #050812; }
@supports (height: 100svh) { .game-frame { max-height: calc(100svh - 150px); } }
.game-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #050812; }
.game-poster { position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: #050812; cursor: pointer; }
.game-poster picture, .game-poster img { width: 100%; height: 100%; }
.game-poster img { object-fit: cover; opacity: .8; transition: opacity .3s, transform .5s; }
.game-poster::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(5, 8, 18, 0) 30%, rgba(5, 8, 18, .65) 100%); }
.game-poster:hover img { opacity: .95; transform: scale(1.015); }
.poster-play {
  position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 12px; padding: 16px 34px 16px 28px; border-radius: 999px;
  background: var(--grad); color: var(--on-amber); font-weight: 900; font-size: clamp(20px, 2.4vw, 28px); line-height: 1.1; white-space: nowrap;
  box-shadow: 0 14px 40px rgba(245, 158, 11, .5), 0 0 0 6px rgba(255, 255, 255, .12);
  transition: transform .2s;
}
.poster-play .i { width: 1.15em; height: 1.15em; }
.game-poster:hover .poster-play { transform: translate(-50%, -50%) scale(1.05); }
.game-loading { position: absolute; inset: 0; z-index: 3; display: none; align-items: center; justify-content: center; gap: 12px; margin: 0; background: rgba(5, 8, 18, .72); color: #fff; font-weight: 700; }
.game-box.loading .game-loading { display: flex; }
.spinner { width: 26px; height: 26px; border: 3px solid rgba(255, 255, 255, .25); border-top-color: var(--amber); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.game-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; background: #0c1226; border-top: 1px solid var(--line); }
.game-hint { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.fs-btn .i-exit, .is-fs .fs-btn .i-enter, .is-fs .fs-label { display: none; }
.is-fs .fs-btn .i-exit { display: block; }
/* Fullscreen: the game fills the whole screen; the exit button floats bottom-left, clear of the game's HUD (top) and jump button (bottom-right) */
.game-box.is-fs { position: fixed; inset: 0; z-index: 1000; width: 100%; height: 100%; border: 0; border-radius: 0; box-shadow: none; }
@supports (height: 100dvh) { .game-box.is-fs { height: 100dvh; } }
.game-box.is-fs .game-frame { position: absolute; inset: 0; width: auto; height: auto; min-height: 0; max-height: none; aspect-ratio: auto; }
.game-box.is-fs .game-hint { display: none; }
.game-box.is-fs .game-bar { position: absolute; left: calc(12px + env(safe-area-inset-left, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 4; padding: 0; background: none; border: 0; }
.game-box.is-fs .fs-btn { padding: 9px; border-color: rgba(255, 255, 255, .25); border-radius: 12px; background: rgba(5, 8, 18, .55); }
.game-box:fullscreen { width: 100%; height: 100%; }
html.no-scroll, html.no-scroll body { overflow: hidden; }

@media (max-width: 700px) {
  .home-hero { padding: 22px 0 14px; }
  .home-hero h1 { font-size: 27px; }
  .intro { font-size: 15.5px; }
  .game-sec .wrap-game { padding: 0; }
  .game-box { border-radius: 0; border-left: 0; border-right: 0; }
  .game-bar { flex-wrap: wrap; padding: 10px 16px; }
  .game-hint { flex: 1 1 200px; font-size: 13.5px; }
}
@media (max-width: 700px) and (orientation: portrait) {
  .game-frame { aspect-ratio: auto; height: min(calc(100svh - 170px), 150vw); min-height: 380px; max-height: none; }
}
@media (max-height: 560px) and (orientation: landscape) {
  .game-frame { max-height: calc(100vh - 56px); }
  @supports (height: 100svh) { .game-frame { max-height: calc(100svh - 56px); } }
}

/* Home sections */
.sec { padding: clamp(40px, 6vw, 68px) 0; }
.sec-alt { background: rgba(10, 15, 34, .82); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-title { margin: 0 0 8px; font-size: clamp(25px, 3.2vw, 34px); line-height: 1.2; font-weight: 820; letter-spacing: -.02em; }
.sec-sub { max-width: 72ch; margin: 0 0 26px; color: var(--muted); font-size: 17px; }
.sec h3 { line-height: 1.3; }

.steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.step { position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.step-img { position: relative; background: #050812; }
.step-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.step-n { position: absolute; top: 10px; inset-inline-start: 10px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--grad); color: var(--on-amber); font-weight: 900; box-shadow: 0 6px 16px rgba(0, 0, 0, .45); }
.step h3 { margin: 14px 16px 6px; font-size: 17px; }
.step p { margin: 0 16px 18px; color: var(--muted); font-size: 15px; line-height: 1.55; }

.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.feature { padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, transform .2s; }
.feature:hover { border-color: rgba(245, 158, 11, .5); transform: translateY(-2px); }
.f-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: rgba(34, 211, 238, .12); color: var(--cyan); }
.f-icon .i { width: 24px; height: 24px; }
.feature h3 { margin: 14px 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; }

.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.g-item { min-width: 0; }
.gallery figure { margin: 0; height: 100%; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.g-link { display: block; overflow: hidden; background: #050812; }
.g-link img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .4s; }
.g-link:hover img { transform: scale(1.03); }
.gallery figcaption { padding: 10px 14px 12px; color: var(--muted); font-size: 14.5px; line-height: 1.45; }

.tunnels { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tunnel { padding: 18px 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.tunnel-art { display: grid; place-items: center; height: 120px; border-radius: 12px; background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--c1) 22%, transparent), transparent 70%), #060a18; }
.tunnel-svg { width: 104px; height: 104px; }
.tunnel h3 { margin: 16px 0 6px; font-size: 18px; }
.tunnel p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.tunnel-orbit { --c1: #3b82f6; --c2: #22d3ee; }
.tunnel-nebula { --c1: #a855f7; --c2: #ec4899; }
.tunnel-void { --c1: #f59e0b; --c2: #14b8a6; }
.tunnel-endless { --c1: #22d3ee; --c2: #fbbf24; border-color: rgba(245, 158, 11, .32); background: linear-gradient(160deg, rgba(245, 158, 11, .1), rgba(34, 211, 238, .06)), var(--card); }

.stats { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat { padding: 24px 16px; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.stat strong { display: block; font-size: clamp(36px, 5vw, 52px); line-height: 1; font-weight: 900; letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; margin-top: 10px; color: var(--muted); font-weight: 600; }

.tips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tip { display: flex; gap: 14px; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.tip-n { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--amber); color: var(--amber-2); font-weight: 850; font-size: 15px; }
.tip h3 { margin: 4px 0 6px; font-size: 17px; }
.tip p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }

.faq { display: grid; gap: 10px; margin-top: 22px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.faq-item[open] { border-color: rgba(245, 158, 11, .4); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.4; }
.faq-item summary .i { color: var(--amber-2); transition: transform .2s; }
.faq-item[open] summary .i { transform: rotate(180deg); }
.faq-a { padding: 0 18px 16px; }
.faq-a p { margin: 0; color: var(--muted); }

.about-text p { margin: 0 0 14px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.about-text p:last-child { margin-bottom: 0; }
.about-text strong { color: var(--text); }

.cards { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cards li { min-width: 0; }
.card-link { position: relative; display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px 22px 46px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s; }
.card-link:hover { border-color: rgba(245, 158, 11, .55); transform: translateY(-2px); }
.card-kicker { color: var(--cyan); font-size: 13px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.card-link strong { font-size: 18px; line-height: 1.3; }
.card-text { color: var(--muted); font-size: 15px; line-height: 1.55; }
.card-go { position: absolute; inset-inline-start: 22px; bottom: 16px; color: var(--amber-2); }

@media (max-width: 1060px) {
  .steps { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .step { grid-column: span 2; }
  .step:nth-child(4), .step:nth-child(5) { grid-column: span 3; }
  .tunnels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .features, .tips, .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step, .step:nth-child(4) { grid-column: auto; }
  .step:nth-child(5) { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .gallery { display: flex; gap: 12px; margin: 0 -20px; padding: 0 20px 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
  .g-item { flex: 0 0 84%; scroll-snap-align: center; }
}
@media (max-width: 600px) {
  .steps, .features, .tips, .cards, .tunnels { grid-template-columns: 1fr; }
  .step, .step:nth-child(4), .step:nth-child(5) { grid-column: auto; }
  .tunnel { display: grid; grid-template-columns: 96px 1fr; column-gap: 14px; align-items: center; padding: 12px; }
  .tunnel-art { grid-row: span 2; height: 96px; }
  .tunnel-svg { width: 80px; height: 80px; }
  .tunnel h3 { margin: 2px 0 2px; }
  .tunnel p { font-size: 14.5px; }
  .stats { gap: 10px; }
  .stat { padding: 18px 10px; }
}

/* Article pages */
.page-hero { padding: 30px 0 26px; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse 900px 300px at 15% -60px, rgba(34, 211, 238, .15), transparent 70%); }
[dir="rtl"] .page-hero { background: radial-gradient(ellipse 900px 300px at 85% -60px, rgba(34, 211, 238, .15), transparent 70%); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--dim); }
.crumbs li + li::before { content: "›"; display: inline-block; margin-inline-end: 8px; color: var(--dim); }
[dir="rtl"] .crumbs li + li::before { content: "‹"; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.page-hero h1 { margin: 12px 0 12px; font-size: clamp(30px, 4.6vw, 46px); line-height: 1.12; font-weight: 850; letter-spacing: -.025em; }
.lead { max-width: 62ch; margin: 0; color: var(--muted); font-size: clamp(17px, 2vw, 19.5px); line-height: 1.6; }

.prose { padding: 8px 0 6px; color: #dde2f5; font-size: 18px; line-height: 1.75; }
.prose > * { max-width: 72ch; }
.prose > .table-wrap, .prose > .ad { max-width: none; }
.prose h2 { margin: 44px 0 12px; color: var(--text); font-size: clamp(24px, 2.8vw, 30px); line-height: 1.25; font-weight: 800; letter-spacing: -.015em; }
.prose h3 { margin: 30px 0 8px; color: var(--text); font-size: 20px; line-height: 1.35; font-weight: 750; }
.prose h2 + h3 { margin-top: 18px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-inline-start: 1.4em; }
.prose li { margin: 7px 0; padding-inline-start: .2em; }
.prose li::marker { color: var(--amber); font-weight: 700; }
.prose a { color: var(--amber-2); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: #fde68a; }
.prose strong { color: var(--text); }
.table-wrap { overflow-x: auto; margin: 20px 0 24px; border: 1px solid var(--line-2); border-radius: 12px; -webkit-overflow-scrolling: touch; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.prose th { background: #18203f; color: var(--text); font-weight: 750; white-space: nowrap; }
.prose th, .prose td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: start; }
.prose tbody tr:nth-child(even) { background: rgba(255, 255, 255, .025); }
.prose tbody tr:last-child td { border-bottom: 0; }
/* inline, not inline-block: Chrome allows a line break next to an inline-block even after a no-break space */
.prose kbd {
  padding: .12em .45em; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px;
  background: rgba(255, 255, 255, .06); color: var(--text); font-family: inherit; font-size: .88em; font-weight: 700; white-space: nowrap;
}
.prose .keys { white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
.prose td.kbd { min-width: 8em; }
@media (min-width: 601px) { .prose td.kbd { white-space: nowrap; } }
.nw { white-space: nowrap; }
.prose .note { margin: 22px 0; padding: 14px 18px; border: 1px solid rgba(34, 211, 238, .3); border-inline-start: 4px solid var(--cyan); border-radius: 12px; background: rgba(34, 211, 238, .07); font-size: 17px; }
.prose .note p:last-child, .prose .note ul:last-child { margin-bottom: 0; }
.legal { font-size: 17px; }
.legal h2 { font-size: 24px; }
#ezoic-privacy-policy-embed { display: block; }

.cta { margin: 40px 0 34px; padding: 30px 24px; text-align: center; border-radius: 20px; border: 1px solid rgba(245, 158, 11, .35); background: linear-gradient(135deg, rgba(245, 158, 11, .18), rgba(34, 211, 238, .1)); }
.cta h2 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 30px); line-height: 1.2; }
.cta p { max-width: 56ch; margin: 0 auto 20px; color: var(--muted); }
.related { margin: 0 0 30px; }
.related h2 { margin: 0 0 12px; font-size: 22px; }
.related-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.related-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 100%; padding: 14px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; color: var(--text); font-weight: 700; text-decoration: none; }
.related-list a:hover { border-color: rgba(245, 158, 11, .55); }
.related-list .i { color: var(--amber-2); }
.back { margin: 26px 0 34px; }
.back a { display: inline-flex; align-items: center; gap: 8px; color: var(--amber-2); font-weight: 700; text-decoration: none; }
.back a:hover { text-decoration: underline; }
@media (max-width: 600px) {
  .page-hero { padding: 22px 0 20px; }
  .page-hero h1 { font-size: 29px; }
  .prose { font-size: 17px; line-height: 1.7; }
  .prose h2 { margin-top: 36px; font-size: 23px; }
  .prose h3 { font-size: 18.5px; }
  .prose table { font-size: 15px; }
  .prose th, .prose td { padding: 9px 10px; }
  .prose th { white-space: normal; }
  .related-list { grid-template-columns: 1fr; }
  .cta { padding: 24px 16px; }
}

/* Contact */
.contact-card { margin: 28px 0 0; padding: 26px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; }
.contact-card h2 { margin: 0 0 6px; font-size: 24px; }
.contact-card > p { margin: 0 0 18px; color: var(--muted); }
/* form.js parks its honeypot field at left:-10000px; clip it so RTL pages do not get a 10000px scroll */
.form { position: relative; overflow: hidden; margin: -6px; padding: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 14px; }
.field > label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 15px; }
.field > input, .field > textarea {
  display: block; width: 100%; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: 10px;
  background: #0a0f22; color: var(--text); font: inherit; font-size: 16px; line-height: 1.5;
}
.field textarea { min-height: 150px; resize: vertical; }
.field > input:focus, .field > textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(245, 158, 11, .25); }
.field[data-feedback-captcha]:empty { display: none; }
.form altcha-widget { --altcha-max-width: 100%; --altcha-color-base: #0a0f22; --altcha-color-text: var(--text); --altcha-color-border: var(--line-2); --altcha-border-radius: 10px; display: block; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.form-status { flex: 1 1 220px; margin: 0; color: var(--muted); font-weight: 600; }
.form[data-state="sent"] .form-status { color: #4ade80; }
.form[data-state="error"] .form-status { color: #f87171; }
.contact-mail { display: flex; align-items: flex-start; gap: 10px; margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); }
.contact-mail .i { margin-top: 3px; color: var(--amber-2); }
@media (max-width: 600px) {
  .contact-card { padding: 20px 16px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .form-foot .btn { width: 100%; }
}

/* 404 */
.nf { padding: 56px 0 30px; text-align: center; }
.nf-code { margin: 0; font-size: clamp(72px, 14vw, 120px); line-height: 1; font-weight: 900; letter-spacing: -.04em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf h1 { margin: 10px 0 12px; font-size: clamp(28px, 4vw, 40px); }
.nf .lead { margin: 0 auto 24px; }
.nf-links { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin: 26px 0 0; padding: 0; }

/* Footer */
.site-footer { margin-top: 24px; padding: 36px 0 30px; border-top: 1px solid var(--line); background: #050811; color: #a3acce; font-size: 14.5px; }
.page-home .site-footer { margin-top: 0; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 40px; }
.foot-brand p { margin: 8px 0 0; max-width: 40ch; }
.foot-nav { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px 20px; max-width: 640px; }
.foot-nav a, .foot-langs a { color: var(--muted); text-decoration: none; }
.foot-nav a:hover, .foot-langs a:hover { color: var(--text); text-decoration: underline; }
.foot-langs { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.foot-langs a[aria-current="true"] { color: var(--amber-2); }
.foot-note { max-width: 90ch; margin: 22px 0 6px; color: var(--muted); line-height: 1.55; }
.foot-copy { margin: 0; }

/* Lightbox */
.lightbox { max-width: min(1280px, 96vw); max-height: 96vh; padding: 0; border: 1px solid var(--line-2); border-radius: 14px; background: #050812; color: var(--text); overflow: visible; }
.lightbox::backdrop { background: rgba(0, 0, 0, .82); }
.lightbox figure { margin: 0; }
.lightbox img { width: auto; max-width: 100%; max-height: calc(96vh - 56px); border-radius: 14px 14px 0 0; }
.lightbox figcaption { padding: 12px 16px; color: var(--muted); font-size: 15px; }
.lb-close { position: absolute; top: -14px; inset-inline-end: -14px; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 50%; background: #121935; cursor: pointer; }
@media (max-width: 700px) { .lb-close { top: 8px; inset-inline-end: 8px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation-duration: .01ms !important; }
}
