/* Sneak & Snitch - site styles. The look comes from the game itself: red museum walls, gold frames, cream lettering.
   Dark = the museum at night · Light = the museum by day. Logical properties everywhere, so Arabic (RTL) mirrors cleanly. */

:root, [data-theme="dark"] {
  --bg: #120a09; --bg-2: #1b0f0d; --surface: #241412; --surface-2: #301b17;
  --text: #f6ecd9; --muted: #cdb89b; --line: rgba(231, 184, 79, 0.18);
  --red: #c9342a; --red-deep: #8f1f18; --gold: #e7b84f; --gold-deep: #9c6f1a;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  --skel-a: #241412; --skel-b: rgba(231, 184, 79, 0.12);
  --wall: radial-gradient(900px 480px at 72% -10%, rgba(255, 196, 110, 0.20), transparent 62%), repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.10) 0 2px, transparent 2px 180px), linear-gradient(180deg, #5d1410 0%, #3a0c0a 70%, #2a0807 100%);
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f8f1e4; --bg-2: #f0e4cd; --surface: #fffaf1; --surface-2: #f5e9d3;
  --text: #2a1713; --muted: #6c5545; --line: rgba(130, 90, 30, 0.22);
  --red: #b42a20; --red-deep: #861b14; --gold: #b5831e; --gold-deep: #8a6416;
  --shadow: 0 16px 34px rgba(90, 50, 10, 0.16);
  --skel-a: #efe2ca; --skel-b: rgba(255, 255, 255, 0.6);
  --wall: radial-gradient(900px 480px at 72% -10%, rgba(255, 232, 170, 0.45), transparent 62%), repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.07) 0 2px, transparent 2px 180px), linear-gradient(180deg, #b8352b 0%, #8f2219 72%, #7a1c15 100%);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { overflow-x: clip; }
.hero-grid > *, .step > *, .gsec > *, .grid2 > *, .grid3 > *, .press-grid > *, .footer-grid > * { min-width: 0; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.65 "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background-color 0.3s, color 0.3s;
}
:lang(ar) body, body:lang(ar) { font-family: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif; font-size: 18px; }
img { max-width: 100%; }
a { color: var(--gold); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.wrap.narrow { width: min(860px, 100% - 40px); }
.skip { position: absolute; inset-inline-start: -9999px; top: 10px; z-index: 100; background: var(--gold); color: #1a0d0b; padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { inset-inline-start: 12px; }

/* ---------- type ---------- */
.display { font-family: "Ultra", Georgia, serif; font-weight: 400; line-height: 1.08; letter-spacing: 0.005em; margin: 0 0 16px; }
:lang(ar) .display { font-family: "Lalezar", "IBM Plex Sans Arabic", sans-serif; line-height: 1.3; letter-spacing: 0; }
h1.display { font-size: clamp(40px, 6.2vw, 74px); }
h2.display { font-size: clamp(32px, 4.4vw, 54px); }
.h3, h3 { font-size: 22px; line-height: 1.3; margin: 0 0 10px; font-weight: 700; }
.kicker { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
:lang(ar) .kicker { letter-spacing: 0; font-size: 15px; text-transform: none; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 24px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 12px; font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s, filter 0.15s; white-space: nowrap; }
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
/* the wishlist button: a light sweep, a slow gold glow, a springy hover and a sparkle burst on click (site.js) */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(180deg, #e5493c 0%, var(--red) 42%, var(--red-deep) 100%); color: #fff6e6; border-color: #f0cf7a; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3); box-shadow: 0 4px 0 #9c6f1a, 0 12px 26px rgba(0, 0, 0, 0.28); animation: glow 2.6s ease-in-out infinite; transition: transform 0.28s cubic-bezier(0.3, 1.7, 0.5, 1), filter 0.2s; }
.btn-primary::after { content: ""; position: absolute; z-index: -1; top: -30%; bottom: -30%; left: -50%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 244, 214, 0.65), transparent); transform: skewX(-20deg); animation: shine 3.4s ease-in-out infinite; pointer-events: none; }
.btn-primary:hover { transform: translateY(-3px) scale(1.05); filter: brightness(1.1) saturate(1.1); }
.btn-primary:hover svg { animation: wiggle 0.6s ease-in-out; }
.btn-primary:active { transform: translateY(3px) scale(0.97); animation: none; box-shadow: 0 1px 0 #9c6f1a, 0 5px 12px rgba(0, 0, 0, 0.3); }
@keyframes glow { 0%, 100% { box-shadow: 0 4px 0 #9c6f1a, 0 12px 26px rgba(0, 0, 0, 0.28), 0 0 0 0 rgba(240, 207, 122, 0); } 50% { box-shadow: 0 4px 0 #9c6f1a, 0 12px 26px rgba(0, 0, 0, 0.28), 0 0 24px 5px rgba(240, 207, 122, 0.55); } }
@keyframes shine { 0%, 50% { transform: translateX(0) skewX(-20deg); } 80%, 100% { transform: translateX(480%) skewX(-20deg); } }
@keyframes wiggle { 0%, 100% { transform: none; } 20% { transform: rotate(-18deg) scale(1.2); } 45% { transform: rotate(14deg) scale(1.2); } 70% { transform: rotate(-6deg); } }
.btn-ghost { color: var(--text); border-color: var(--gold); background: transparent; }
.btn-discord { background: #5865f2; color: #fff; box-shadow: 0 4px 0 #3c45a5; }
.btn-sm { padding: 8px 14px; font-size: 15px; border-radius: 10px; box-shadow: 0 3px 0 #9c6f1a; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; padding: 0; }
.icon-btn svg { width: 20px; height: 20px; fill: currentColor; }
[data-theme="dark"] .theme-btn svg:last-child, [data-theme="light"] .theme-btn svg:first-child { display: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; }
.link-arrow svg { width: 18px; height: 18px; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }
.back svg { transform: scaleX(-1); }
[dir="rtl"] .back svg { transform: none; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); transition: box-shadow 0.2s, background-color 0.3s; }
.site-header.scrolled { box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28); }
.header-row { display: flex; align-items: center; gap: 18px; height: 74px; position: relative; }
.brand img { height: 46px; width: auto; display: block; }
.nav { display: flex; gap: 2px; margin-inline-start: 10px; }
.nav a { padding: 8px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 15.5px; }
.nav a:hover { background: var(--surface); }
.nav a[aria-current="page"] { color: var(--gold); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.nav .nav-steam { display: none; }
.tools { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.lang-link { font-weight: 700; text-decoration: none; color: var(--text); padding: 7px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; }
.lang-link:hover, .icon-btn:hover { border-color: var(--gold); }
.menu-btn { display: none; }

/* ---------- media + skeleton ---------- */
.media { position: relative; overflow: hidden; aspect-ratio: var(--ar, 16 / 9); background: var(--skel-a); }
.media img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.6s ease, transform 0.6s ease; }
.media.loaded img { opacity: 1; }
.skel:not(.loaded)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 15%, var(--skel-b) 50%, transparent 85%); transform: translateX(-100%); animation: shimmer 1.25s ease-in-out infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

/* a painting in a gold frame */
.exhibit { margin: 0; }
.frame { padding: 11px; border-radius: 3px; background: linear-gradient(135deg, #f7dc8f 0%, #c58f26 30%, #8a5e12 52%, #f0cf7a 78%, #b98625 100%); box-shadow: inset 0 0 0 2px rgba(70, 40, 0, 0.55), var(--shadow); transition: transform 0.4s ease; }
.frame .media { box-shadow: 0 0 0 5px #f6eddc, inset 0 0 0 1px rgba(0, 0, 0, 0.25); margin: 5px; }
.exhibit:hover .frame { transform: rotate(-0.6deg) scale(1.01); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--wall); color: #fbf1df; padding: 72px 0 84px; overflow: hidden; border-bottom: 6px solid; border-image: linear-gradient(90deg, #8a5e12, #f0cf7a, #8a5e12) 1; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto; height: 120%; background: conic-gradient(from 180deg at 70% 0%, transparent 0deg, rgba(255, 214, 140, 0.10) 20deg, transparent 40deg); pointer-events: none; animation: sweep 9s ease-in-out infinite alternate; }
@keyframes sweep { from { transform: translateX(-4%); } to { transform: translateX(4%); } }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero .kicker { color: #f3cf7a; }
.hero .lead { color: #f1dcc0; }
.hero .btn-ghost { color: #fff3dc; border-color: #f0cf7a; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.facts li { padding: 6px 12px; border: 1px solid rgba(240, 207, 122, 0.45); border-radius: 999px; font-size: 14.5px; font-weight: 600; color: #fbe9c8; background: rgba(0, 0, 0, 0.15); }
.hero-art .exhibit { transform-origin: 50% -30px; animation: hang 7s ease-in-out infinite; }
@keyframes hang { 0%, 100% { transform: rotate(-1.3deg); } 50% { transform: rotate(0.7deg); } }

/* ---------- sections ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.sec-head { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.sec-head.row { display: flex; justify-content: space-between; align-items: end; gap: 20px; text-align: start; max-width: none; }
.sec-title { margin-top: 56px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

/* trailer (YouTube only loads on click) */
.yt { position: relative; border-radius: 16px; overflow: hidden; border: 3px solid var(--gold); box-shadow: var(--shadow); background: #000; }
.yt-play { all: unset; display: block; position: relative; width: 100%; cursor: pointer; }
.yt-play:focus-visible { outline: 3px solid var(--gold); outline-offset: -6px; }
.yt-play .media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.55)); }
.yt-icon { position: absolute; z-index: 2; inset: 0; margin: auto; width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; background: var(--red); box-shadow: 0 0 0 7px rgba(231, 184, 79, 0.55), 0 10px 30px rgba(0, 0, 0, 0.5); transition: transform 0.2s; }
.yt-icon svg { width: 40px; height: 40px; fill: #fff; margin-inline-start: 5px; }
[dir="rtl"] .yt-icon svg { margin-inline-start: 0; margin-inline-end: 5px; transform: none; }
.yt-play:hover .yt-icon { transform: scale(1.08); }
.yt-title { position: absolute; z-index: 2; inset-inline-start: 18px; bottom: 14px; color: #fff; font-weight: 700; text-shadow: 0 2px 10px #000; }
.yt iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }

/* here's the plan */
.step { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; margin: 64px 0; }
.step.flip .step-copy { order: 2; }
.step-no { display: block; font-family: "Ultra", Georgia, serif; font-size: 66px; line-height: 1; color: var(--gold); margin-bottom: 10px; }
.step h3 { font-size: 30px; }
.step p { color: var(--muted); font-size: 18px; }

/* cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.news-card a { display: block; color: inherit; text-decoration: none; height: 100%; }
.news-card .card-body { padding: 20px 22px 24px; }
.news-card h3 { font-size: 21px; }
.news-card p { color: var(--muted); margin: 0 0 14px; }
.news-card .more { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-weight: 700; }
.news-card .more svg { width: 16px; height: 16px; }
.news-card { transition: transform 0.2s, box-shadow 0.2s; }
.news-card:hover { transform: translateY(-4px); }
.news-card:hover img { transform: scale(1.04); }
.meta { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.tag { padding: 3px 10px; border-radius: 999px; background: var(--red); color: #fff4e2; font-weight: 700; font-size: 12.5px; letter-spacing: 0.04em; }

/* two teams, face to face */
.versus { display: grid; grid-template-columns: 1fr 0 1fr; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); border: 3px solid var(--gold); }
.team { position: relative; min-height: 470px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff7ea; isolation: isolate; }
.team-bg { position: absolute !important; inset: 0; z-index: -2; aspect-ratio: auto; }
.team::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.team.thieves::before { background: linear-gradient(180deg, rgba(60, 6, 4, 0.30) 0%, rgba(70, 8, 5, 0.86) 52%, #3d0705 100%); }
.team.guards::before { background: linear-gradient(180deg, rgba(8, 18, 60, 0.30) 0%, rgba(10, 24, 74, 0.86) 52%, #0a1442 100%); }
.team-in { padding: 34px 40px 34px; }
.team.thieves .team-in { padding-inline-end: 76px; }
.team.guards .team-in { padding-inline-start: 76px; }
.team-name { font-family: "Ultra", Georgia, serif; font-weight: 400; font-size: clamp(36px, 4.4vw, 58px); line-height: 1; margin: 0 0 18px; text-shadow: 0 4px 0 rgba(0, 0, 0, 0.35); }
:lang(ar) .team-name { font-family: "Lalezar", sans-serif; line-height: 1.2; }
.team.thieves .team-name { color: #ffd2c4; }
.team.guards .team-name { color: #cfdcff; }
.team-goal { font-size: 19px; font-weight: 600; line-height: 1.5; margin: 0 0 18px; max-width: 30em; }
.team-goal span { display: block; font-size: 12.5px; letter-spacing: 0.18em; text-transform: uppercase; color: #f3cf7a; margin-bottom: 4px; }
:lang(ar) .team-goal span { letter-spacing: 0; font-size: 14px; }
.team ul { list-style: none; margin: 0; padding: 0; }
.team li { padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, 0.18); color: #f1e3cf; font-size: 16px; }
.vs { position: relative; z-index: 3; align-self: start; justify-self: center; width: 0; height: 0; margin-top: 150px; }
.vs span { position: absolute; left: -46px; top: -46px; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; font-family: "Ultra", Georgia, serif; font-size: 30px; color: #2a1406; background: radial-gradient(circle at 35% 30%, #fff1bf, #e7b84f 45%, #a8741a 100%); box-shadow: 0 0 0 5px #2a1406, 0 0 0 8px #e7b84f, 0 12px 28px rgba(0, 0, 0, 0.55); }
.versus.in .vs span { animation: vsIn 0.6s 0.35s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
@keyframes vsIn { from { transform: scale(0) rotate(-120deg); } to { transform: none; } }

/* sparkle burst from the wishlist button */
.spark { position: fixed; z-index: 300; width: 12px; height: 12px; pointer-events: none; background: #ffd66b; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.spark.red { background: #ff5a4a; }
.spark.white { background: #fff7e0; width: 8px; height: 8px; }

/* community */
.crew-box { display: flex; align-items: center; gap: 26px; padding: 30px 34px; border-radius: 20px; color: #fff; background: radial-gradient(500px 220px at 85% 0%, rgba(255, 255, 255, 0.16), transparent 60%), linear-gradient(135deg, #5865f2, #3a43a6); box-shadow: var(--shadow); }
.crew-box .display { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 6px; }
.crew-box p { margin: 0; color: #e8eaff; }
.crew-icon svg { width: 64px; height: 64px; fill: #fff; }
.crew-box .btn-discord { margin-inline-start: auto; background: #fff; color: #3a43a6; box-shadow: 0 4px 0 #c9cdf7; }

/* final call */
.final { background: var(--wall); color: #fbf1df; text-align: center; padding: 90px 0; border-top: 6px solid; border-image: linear-gradient(90deg, #8a5e12, #f0cf7a, #8a5e12) 1; }
.final .display { margin-bottom: 28px; }

/* inner pages */
.page-head { background: var(--wall); color: #fbf1df; text-align: center; padding: 76px 0 64px; border-bottom: 6px solid; border-image: linear-gradient(90deg, #8a5e12, #f0cf7a, #8a5e12) 1; }
.page-head .kicker { color: #f3cf7a; }
.page-head .lead { color: #f1dcc0; margin: 10px auto 0; max-width: 680px; }
.page-head.nf { padding: 120px 0; }
.page-head.nf .btn { margin-top: 18px; }
.game-secs { padding: 30px 0 10px; }
.gsec { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; margin: 70px 0; }
.gsec.flip .gsec-copy { order: 2; }
.gsec.text-only { grid-template-columns: 1fr; max-width: 760px; margin-inline: auto; text-align: center; }
.gsec p { color: var(--muted); font-size: 18px; }
.videos { margin: 56px 0 0; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-bottom: 80px; }
.shot { display: block; border-radius: 12px; overflow: hidden; border: 2px solid var(--line); }
.shot:hover img { transform: scale(1.05); }
.faq { padding: 50px 0 20px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin: 12px 0; overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 18px; display: flex; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--gold); font-size: 24px; line-height: 1; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin: 0; padding: 0 22px 20px; color: var(--muted); }
.press-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; padding: 56px 0 84px; }
.press-grid .h3 { margin-top: 30px; }
.press-grid .h3:first-child { margin-top: 0; }
.press-grid .exhibit { margin: 26px 0; }
.facts-table { width: 100%; border-collapse: collapse; }
.facts-table th, .facts-table td { text-align: start; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts-table th { color: var(--muted); font-weight: 600; width: 38%; padding-inline-end: 16px; }
.dl { padding-inline-start: 20px; }
.dl li { margin: 6px 0; }
.post { padding: 56px 0 84px; }
.post .back { margin-bottom: 26px; }
.post .exhibit { margin: 28px 0 36px; }
.prose { font-size: 19px; line-height: 1.8; }
.prose ol, .prose ul { padding-inline-start: 24px; }
.prose li { margin: 8px 0; }
.prose h2 { font-size: 26px; line-height: 1.25; margin: 40px 0 10px; }
.prose .note { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 36px; }
.faq-item .faq-more { margin-top: -8px; }
.post-cta { margin-top: 34px; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 60px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; }
.f-brand img { width: 180px; height: auto; display: block; margin-bottom: 12px; }
.f-tag { font-family: "Ultra", Georgia, serif; font-size: 18px; margin: 0; }
:lang(ar) .f-tag { font-family: "Lalezar", sans-serif; font-size: 22px; }
.f-rel { color: var(--muted); margin: 4px 0 16px; }
.f-h { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin: 6px 0 14px; }
:lang(ar) .f-h { letter-spacing: 0; font-size: 15px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 8px 0; }
.site-footer li a { color: var(--text); text-decoration: none; }
.site-footer li a:hover { color: var(--gold); }
.f-social a { display: inline-flex; align-items: center; gap: 10px; }
.f-social svg { width: 18px; height: 18px; fill: currentColor; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* lightbox */
.lightbox { padding: 0; border: 0; background: transparent; max-width: 94vw; overflow: visible; }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.86); }
.lightbox img { display: block; max-width: 94vw; max-height: 86vh; border: 6px solid #f6eddc; }
.lb-close { position: absolute; top: -50px; inset-inline-end: 0; color: #fff; border-color: rgba(255, 255, 255, 0.4); font-size: 26px; }

/* ---------- small screens ---------- */
@media (max-width: 980px) {
  .menu-btn { display: inline-grid; }
  .head-cta span { display: none; }
  .head-cta { padding: 8px 10px; }
  /* one column: the swinging frame, the light sweep and a second pulsing button all share one small screen and read as
     the page shaking (his report, 11-24). Here only the big wishlist button keeps its glow and shine. */
  .hero-art .exhibit, .hero::before, .head-cta, .head-cta::after { animation: none; }
  .nav { display: none; position: absolute; top: 74px; inset-inline: -20px; flex-direction: column; gap: 0; padding: 10px 20px 20px; background: var(--bg-2); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(0, 0, 0, 0.3); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 6px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav .nav-steam { display: flex; align-items: center; gap: 8px; color: var(--gold); border-bottom: 0; }
  .nav .nav-steam svg { width: 20px; height: 20px; fill: currentColor; }
  .hero-grid, .step, .gsec, .press-grid { grid-template-columns: 1fr; gap: 34px; }
  .step.flip .step-copy, .gsec.flip .gsec-copy { order: 0; }
  .grid3, .gallery { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .versus { grid-template-columns: 1fr; }
  .vs { align-self: center; margin-top: 0; }
  .team { min-height: 400px; }
  .team.thieves .team-in, .team.guards .team-in { padding: 30px 24px 26px; }
  .team.thieves .team-in { padding-bottom: 72px; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .brand img { height: 38px; }
  .lang-link { padding: 6px 9px; }
  .hero { padding: 48px 0 60px; }
  .section { padding: 60px 0; }
  .grid2, .grid3, .gallery { grid-template-columns: 1fr; }
  .btn { white-space: normal; justify-content: center; text-align: center; }
  .cta-row .btn { flex: 1 1 100%; }
  .crew-box { flex-direction: column; text-align: center; }
  .crew-box .btn-discord { margin-inline-start: 0; }
  .sec-head.row { flex-direction: column; align-items: start; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
