/* ============================================================
   האי: משחק הווידאו · haai.css  (v3, 22.10.2026)
   רעיון אחד: העמוד הוא המשחק. מסך פתיחה, מכתב מהמפתחים, משחקים את השלב
   הראשון בגלילה, תיק חפצים, סודות, עורך, ויומן משימה פתוח.
   בלי כרטיסים מעוגלים ובלי כפתורי גלולה: פינות ישרות, שפת HUD, נייר.
   צבע: ים בלילה (--ink), שקיעה במרינה (--sun), נייר של מכתב (--paper).
   ============================================================ */
.ha { --ink: #0a1114; --ink-2: #111b1f; --ink-3: #18262b; --sun: #f2a33a; --sea: #7cc3cf;
  --paper: #ece3cf; --paper-ink: #2b2219; --hud: rgba(236, 227, 207, .72); --rule: rgba(236, 227, 207, .14);
  --hand: 'Daniel Letters', var(--font-display);
  --mono: ui-monospace, 'Cascadia Mono', Consolas, 'Courier New', monospace;
  background: var(--ink); color: #e9e4d8; }
.ha [hidden] { display: none !important; }
.ha .tc { font-family: var(--mono); font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; letter-spacing: .02em; }
.ha-w { width: min(1240px, 92vw); margin-inline: auto; }

/* כפתור משחק: מקש + פעולה. פינות ישרות. */
.key { display: inline-flex; align-items: center; gap: 12px; padding: 0; background: none; border: 0; color: #fff; font-family: var(--font-ui); font-weight: 600; font-size: 1rem; cursor: pointer; text-decoration: none; }
.key kbd { display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 8px; border: 2px solid currentColor; border-bottom-width: 4px; border-radius: 6px; font-family: var(--mono); font-size: .9rem; font-weight: 700; transition: transform .15s, border-bottom-width .15s; }
.key kbd svg { width: 14px; height: 14px; fill: currentColor; }
.key:hover kbd, .key:focus-visible kbd { transform: translateY(2px); border-bottom-width: 2px; }
.key--sun { color: var(--sun); }
.key--sun span { color: #fff; }
.key:focus-visible { outline: 2px solid var(--sun); outline-offset: 6px; }

/* ═════ 1. מסך הפתיחה ═════ */
.t-screen { position: relative; min-height: min(94vh, 920px); display: grid; align-items: end; overflow: hidden; background: #000; }
.t-screen__media { position: absolute; inset: 0; }
.t-screen__media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.t-screen__media::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 70% at 30% 40%, transparent, rgba(10, 17, 20, .55)), linear-gradient(180deg, rgba(10, 17, 20, .5), transparent 30%, transparent 50%, var(--ink)); }
.t-screen__in { position: relative; z-index: 2; padding: calc(var(--nav-h) + 40px) 0 clamp(70px, 9vw, 120px); display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 30px; }
.t-screen h1 { font-family: var(--hand); font-weight: 900; font-size: clamp(6rem, 20vw, 17rem); line-height: .78; color: #fff; text-shadow: 0 10px 60px rgba(0, 0, 0, .5); }
.t-screen__sub { margin-top: 18px; font-family: var(--font-ui); font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: #f4efe3; max-width: 34ch; line-height: 1.55; }
.t-screen__sub b { color: var(--sun); font-weight: 600; }
.t-screen__menu { display: grid; gap: 16px; justify-items: start; padding-bottom: 8px; }
.t-screen__build { position: absolute; z-index: 3; inset-inline-end: 4vw; bottom: 22px; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; color: rgba(255, 255, 255, .5); direction: ltr; text-align: left; line-height: 1.6; }
.t-screen__build b { color: var(--sun); font-weight: 400; }

/* ═════ 2. המכתב ═════ */
.letter, .log { position: relative; background: var(--paper); color: var(--paper-ink); overflow: hidden; }
.letter { padding: clamp(80px, 10vw, 140px) 0; }
.letter::before, .log::before { content: ''; position: absolute; inset: 0; opacity: .5; pointer-events: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35  0 0 0 0 .28  0 0 0 0 .2  0 0 0 .22 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.letter__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(30px, 6vw, 90px); align-items: center; }
.letter__kicker { font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; color: #8a6f4c; }
.letter h2 { margin-top: 14px; font-family: var(--hand); font-weight: 900; font-size: clamp(2.8rem, 6vw, 5.2rem); line-height: .95; color: var(--paper-ink); }
.letter__body { margin-top: 26px; display: grid; gap: 16px; max-width: 54ch; }
.letter__body p { font-family: var(--font-body); font-size: clamp(1.04rem, 1.25vw, 1.16rem); line-height: 1.8; color: #3a2f24; }
.letter__body p strong { font-weight: 600; color: var(--paper-ink); background: linear-gradient(transparent 62%, rgba(242, 163, 58, .42) 62%); }
.letter__sign { margin-top: 26px; font-family: var(--hand); font-weight: 700; font-size: 2rem; color: #1f3d6b; rotate: -3deg; transform-origin: right; display: inline-block; }
.letter__sign small { display: block; font-family: var(--font-ui); font-weight: 400; font-size: .82rem; color: #6d5a43; rotate: 3deg; margin-top: 2px; }
.pols { position: relative; height: clamp(420px, 44vw, 560px); }
.pol { position: absolute; margin: 0; width: 58%; padding: 10px 10px 0; background: #fbf8f1; box-shadow: 0 18px 40px -16px rgba(43, 34, 25, .55), 0 2px 3px rgba(43, 34, 25, .2); }
.pol img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.pol figcaption { padding: 10px 4px 14px; font-family: var(--hand); font-weight: 500; font-size: 1.15rem; line-height: 1.2; color: #2b3f63; text-align: center; }
.pol::before { content: ''; position: absolute; top: -12px; left: 50%; width: 90px; height: 26px; translate: -50% 0; background: rgba(226, 214, 188, .78); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); rotate: -3deg; }
.pol:nth-child(1) { inset-inline-start: 4%; top: 0; rotate: 4deg; z-index: 2; }
.pol:nth-child(2) { inset-inline-end: 0; top: 22%; rotate: -5deg; z-index: 3; }
.pol:nth-child(3) { inset-inline-start: 12%; bottom: 0; rotate: -1.5deg; z-index: 1; width: 52%; }

/* ═════ 3. השלב הראשון: משחקים בגלילה ═════ */
.lvl { position: relative; padding: clamp(90px, 11vw, 150px) 0 clamp(60px, 8vw, 100px); background: var(--ink); }
.lvl__card { text-align: center; padding-bottom: clamp(50px, 7vw, 90px); }
.lvl__card small { font-family: var(--mono); font-size: .8rem; letter-spacing: .3em; color: var(--sun); }
.lvl__card h2 { margin-top: 12px; font-family: var(--hand); font-weight: 900; font-size: clamp(3rem, 7.5vw, 6.4rem); line-height: .95; color: #fff; }
.lvl__card p { margin: 18px auto 0; max-width: 46ch; font-family: var(--font-ui); font-size: 1.02rem; line-height: 1.7; color: var(--hud); }
.lvl__path { position: relative; display: grid; gap: clamp(60px, 9vw, 120px); }
.lvl__path::before { content: ''; position: absolute; top: 0; bottom: 0; inset-inline-start: 50%; border-inline-start: 2px dashed rgba(242, 163, 58, .28); z-index: 0; }
.loc { position: relative; z-index: 1; display: grid; gap: clamp(18px, 3vw, 44px); align-items: center; }
.loc--wide { grid-template-columns: minmax(0, 1fr); }
.loc--split { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.loc--split.loc--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
.loc--split.loc--flip .loc__frame { order: 2; }
.loc--split .loc__notes { background: var(--ink); padding: 18px 0; }
.loc__frame { position: relative; margin: 0; background: #000; overflow: hidden; box-shadow: 0 50px 100px -50px #000; }
.loc__frame > img, .loc__frame > video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.loc--wide .loc__frame > img, .loc--wide .loc__frame > video { aspect-ratio: 21 / 9; }
.loc__frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .6), transparent 42%); pointer-events: none; }
/* כרטיס המקום, כמו במשחק כשנכנסים לאזור חדש */
.loc__name { position: absolute; z-index: 2; inset-inline-start: clamp(18px, 3vw, 40px); bottom: clamp(16px, 2.6vw, 34px); display: grid; gap: 8px; }
.loc__name b { font-family: var(--hand); font-weight: 900; font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: .9; color: #fff; text-shadow: 0 4px 24px rgba(0, 0, 0, .6); }
.loc__name i { font-style: normal; font-family: var(--font-ui); font-size: clamp(.82rem, 1vw, .95rem); letter-spacing: .04em; color: #f4efe3; display: flex; align-items: center; gap: 10px; }
.loc__name i::before { content: ''; width: 46px; height: 2px; background: var(--sun); transform-origin: right; }
.loc.is-armed .loc__name b, .loc.is-armed .loc__name i { opacity: 0; transform: translateY(12px); }
.loc.is-armed .loc__name i::before { transform: scaleX(0); }
.loc.is-in .loc__name b, .loc.is-in .loc__name i { opacity: 1; transform: none; transition: opacity .9s var(--ease) .15s, transform .9s var(--ease) .15s; }
.loc.is-in .loc__name i { transition-delay: .45s; }
.loc.is-in .loc__name i::before { transform: none; transition: transform .8s var(--ease) .3s; }
.loc__notes { display: grid; gap: 16px; align-content: start; }
.loc--wide .loc__notes { grid-template-columns: minmax(0, 1fr) auto; align-items: end; background: var(--ink); padding: 10px 0; }
.loc__notes p { font-family: var(--font-body); font-size: clamp(1rem, 1.2vw, 1.1rem); line-height: 1.75; color: #ddd7ca; max-width: 56ch; }
.loc__notes [data-clock] { color: var(--sun); font-family: var(--mono); font-weight: 700; }
.loc__more { display: flex; gap: 6px; }
.loc__more img { width: 33%; min-width: 0; aspect-ratio: 16 / 10; object-fit: cover; display: block; background: #000; }
.loc__tc { display: inline-flex; align-items: center; gap: 10px; justify-self: start; padding: 8px 14px; background: rgba(0, 0, 0, .35); border: 1px solid var(--rule); color: #fff; font-family: var(--font-ui); font-size: .88rem; text-decoration: none; white-space: nowrap; transition: border-color .3s, background .3s; }
.loc__tc .tc { color: var(--sun); font-weight: 700; }
.loc__tc svg { width: 12px; height: 12px; fill: var(--sun); }
.loc__tc:hover, .loc__tc:focus-visible { border-color: var(--sun); background: rgba(242, 163, 58, .08); }
/* הודעת משימה בין המקומות */
.quest { position: relative; z-index: 1; justify-self: center; display: flex; align-items: center; gap: 14px; padding: 14px 22px; background: var(--ink); border: 1px solid rgba(242, 163, 58, .45); box-shadow: 0 0 0 8px var(--ink); max-width: 92vw; }
.quest::before { content: ''; width: 11px; height: 11px; rotate: 45deg; background: var(--sun); flex: 0 0 auto; }
.quest small { display: block; font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; color: var(--sun); }
.quest b { display: block; margin-top: 2px; font-family: var(--font-ui); font-weight: 600; font-size: 1rem; color: #fff; }
/* השלב הבא בטעינה */
.next-lvl { position: relative; z-index: 1; }
.next-lvl__bar { display: grid; gap: 12px; justify-items: center; text-align: center; background: var(--ink); padding: 14px 0; }
.next-lvl__bar small { font-family: var(--mono); font-size: .78rem; letter-spacing: .2em; color: var(--hud); }
.next-lvl__bar b { font-family: var(--hand); font-weight: 900; font-size: clamp(2.4rem, 5vw, 4rem); color: #fff; line-height: 1; }
.next-lvl__track { position: relative; width: min(420px, 80vw); height: 6px; background: var(--ink-3); overflow: hidden; }
.next-lvl__track i { position: absolute; inset-block: 0; inset-inline-start: 0; width: 38%; background: var(--sun); overflow: hidden; }
.next-lvl__track i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent); animation: ha-shine 2.4s linear infinite; }
@keyframes ha-shine { from { transform: translateX(120%); } to { transform: translateX(-120%); } }
.next-lvl__bar p { font-family: var(--font-ui); font-size: .95rem; color: var(--hud); max-width: 46ch; line-height: 1.6; }
.next-lvl__clips { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 6px; margin-top: 30px; }
.next-lvl__clips figure { position: relative; margin: 0; background: #000; overflow: hidden; }
.next-lvl__clips video { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.next-lvl__clips figcaption { position: absolute; inset-inline-start: 12px; bottom: 10px; font-family: var(--hand); font-weight: 700; font-size: 1.4rem; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .7); }

/* ═════ 4. התיק: החפצים ═════ */
.inv { background: var(--ink-2); padding: clamp(80px, 10vw, 130px) 0; }
.inv__bar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.inv__bar h2 { font-family: var(--hand); font-weight: 900; font-size: clamp(2.2rem, 4.4vw, 3.6rem); color: #fff; line-height: 1; }
.inv__bar span { font-family: var(--mono); font-size: .8rem; color: var(--hud); }
.inv__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(24px, 4vw, 60px); margin-top: 30px; align-items: start; }
.inv__slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.slot { position: relative; aspect-ratio: 1; padding: 0; border: 1px solid var(--rule); background: radial-gradient(circle at 50% 45%, #2c3438, #151c1f 75%); cursor: pointer; overflow: hidden; transition: border-color .25s; }
.slot img { position: absolute; inset: 10%; width: 80%; height: 80%; object-fit: contain; transition: transform .4s var(--ease); }
.slot:hover img { transform: scale(1.06); }
.slot[aria-selected="true"] { border: 2px solid var(--sun); box-shadow: inset 0 0 0 4px rgba(242, 163, 58, .12); }
.slot__n { position: absolute; top: 6px; inset-inline-end: 8px; font-family: var(--mono); font-size: .7rem; color: var(--hud); }
.slot:focus-visible { outline: 2px solid var(--sun); outline-offset: 2px; }
.slot--empty { cursor: default; background: repeating-linear-gradient(135deg, transparent 0 8px, rgba(236, 227, 207, .03) 8px 16px), #12191c; }
.slot--empty span { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-size: .72rem; color: rgba(236, 227, 207, .38); text-align: center; padding: 10px; }
.item { display: grid; gap: 18px; }
.item__view { position: relative; aspect-ratio: 4 / 3; background: radial-gradient(circle at 50% 42%, #353e42, #12181b 75%); border: 1px solid var(--rule); overflow: hidden; }
.item__view img, .item__view video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.item__tag { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; padding: 5px 9px; background: rgba(10, 17, 20, .8); color: var(--sun); }
.item__swap { position: absolute; bottom: 12px; inset-inline-start: 12px; z-index: 2; padding: 8px 12px; border: 1px solid var(--sun); background: rgba(10, 17, 20, .85); color: var(--sun); font-family: var(--font-ui); font-size: .82rem; font-weight: 600; cursor: pointer; }
.item h3 { font-family: var(--hand); font-weight: 900; font-size: clamp(1.9rem, 3vw, 2.6rem); color: #fff; line-height: 1; }
.item p { margin-top: 10px; font-family: var(--font-body); font-size: 1.04rem; line-height: 1.7; color: #ddd7ca; max-width: 50ch; }
.item small { display: block; margin-top: 12px; font-family: var(--mono); font-size: .76rem; color: var(--hud); }

/* ═════ 5. סודות ═════ */
.secrets { background: var(--ink); padding: clamp(80px, 10vw, 130px) 0; }
.secrets__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 20px; }
.secrets__head h2 { font-family: var(--hand); font-weight: 900; font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: .95; color: #fff; }
.secrets__head p { margin-top: 12px; font-family: var(--font-ui); font-size: 1rem; color: var(--hud); max-width: 46ch; line-height: 1.6; }
.secrets__count { text-align: end; font-family: var(--mono); color: var(--hud); font-size: .78rem; letter-spacing: .1em; }
.secrets__count b { display: block; font-family: var(--hand); font-weight: 900; font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; color: var(--sun); letter-spacing: 0; direction: ltr; }
.secrets__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; margin-top: 34px; }
.secret { position: relative; }
.secret:first-child { grid-row: span 3; }
.secret__btn { position: relative; display: block; width: 100%; height: 100%; min-height: 200px; padding: 0; border: 1px solid rgba(242, 163, 58, .25); background: #000; cursor: pointer; overflow: hidden; color: #fff; text-align: start; }
.secret__btn img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(16px) brightness(.4) saturate(.5); transform: scale(1.15); transition: filter .8s var(--ease), transform 1s var(--ease); }
.secret.is-found .secret__btn img { filter: none; transform: none; }
.secret__q { position: absolute; inset: 0; z-index: 2; display: grid; align-content: end; justify-items: start; gap: 12px; padding: clamp(18px, 2.4vw, 30px); transition: opacity .4s; }
.secret__q b { font-family: var(--hand); font-weight: 700; font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.15; max-width: 20ch; }
.secret__q .key { font-size: .88rem; color: var(--sun); }
.secret__q .key span { color: #fff; }
.secret.is-found .secret__q { opacity: 0; pointer-events: none; }
.secret__a { position: absolute; z-index: 3; inset-inline: 0; bottom: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; padding: 50px clamp(16px, 2vw, 24px) 16px; background: linear-gradient(0deg, rgba(10, 17, 20, .95), transparent); }
.secret:not(.is-found) .secret__a { display: none; }
.secret__a p { font-family: var(--font-ui); font-size: .98rem; line-height: 1.55; color: #fff; max-width: 46ch; }
.secret__a a { font-family: var(--font-ui); font-size: .84rem; color: var(--sun); white-space: nowrap; }
.secrets__done { margin-top: 22px; text-align: center; font-family: var(--hand); font-weight: 700; font-size: 1.6rem; color: var(--sun); }

/* ═════ 6. העורך: מקופסה לבנה ═════ */
.ed { background: var(--ink-2); padding: clamp(80px, 10vw, 130px) 0; }
.ed__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; align-items: end; }
.ed__head h2 { font-family: var(--hand); font-weight: 900; font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: .95; color: #fff; }
.ed__head p { font-family: var(--font-body); font-size: 1.04rem; line-height: 1.75; color: #ddd7ca; max-width: 50ch; }
.build { margin-top: 34px; border: 1px solid var(--rule); background: #0d1416; }
.build__top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; padding: 10px 14px; border-bottom: 1px solid var(--rule); background: #141d20; }
.build__tab { padding: 6px 0; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--hud); font-family: var(--font-ui); font-weight: 600; font-size: .95rem; cursor: pointer; }
.build__tab[aria-selected="true"] { color: #fff; border-bottom-color: var(--sun); }
.build__play { margin-inline-start: auto; font-size: .88rem; }
.build__play kbd { min-width: 32px; height: 32px; }
.build__stage { position: relative; aspect-ratio: 16 / 9; background: #1a1d21; overflow: hidden; }
.build__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #1a1d21; opacity: 0; }
.build__stage img.is-on { opacity: 1; }
.build__stage img.is-top { z-index: 1; }
/* הקו שמוביל את הווייפ */
.build__edge { position: absolute; z-index: 2; top: 0; bottom: 0; left: 100%; width: 3px; margin-left: -1.5px; background: var(--sun); opacity: 0; pointer-events: none;
  box-shadow: 0 0 18px 4px rgba(242, 163, 58, .55), 0 0 60px 10px rgba(242, 163, 58, .22); }
.build__step { position: absolute; inset-inline-start: 14px; top: 12px; z-index: 3; font-family: var(--mono); font-size: .8rem; color: #fff; background: rgba(0, 0, 0, .6); padding: 4px 8px; }
.build__step b { color: var(--sun); font-weight: 700; margin-inline-end: 8px; }
.build__ctrl { padding: 14px 14px 12px; border-top: 1px solid var(--rule); }
.build__range { width: 100%; accent-color: var(--sun); direction: rtl; }
.build__ticks { display: flex; justify-content: space-between; margin-top: 4px; padding-inline: 2px; font-family: var(--mono); font-size: .72rem; color: rgba(236, 227, 207, .4); }
.build__ticks span.is-on { color: var(--sun); }

/* ═════ 7. יומן המשימה (נייר) ═════ */
.log { padding: clamp(80px, 10vw, 130px) 0; }
.log__in { position: relative; }
.log h2 { font-family: var(--hand); font-weight: 900; font-size: clamp(2.6rem, 5.4vw, 4.6rem); line-height: .95; }
.log__lead { margin-top: 14px; font-family: var(--font-body); font-size: 1.08rem; line-height: 1.75; color: #4a3d2f; max-width: 58ch; }
.log__cols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 80px); margin-top: 40px; align-items: start; }
.log__cols h3 { font-family: var(--mono); font-size: .8rem; letter-spacing: .14em; color: #8a6f4c; padding-bottom: 10px; border-bottom: 2px solid var(--paper-ink); }
.log ul { list-style: none; margin: 0; padding: 0; }
.log li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px dashed rgba(43, 34, 25, .25); }
.log li::before { content: ''; width: 16px; height: 16px; border: 2px solid var(--paper-ink); translate: 0 3px; box-sizing: border-box; }
.log li.done::before { background: var(--paper-ink) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 8.5l3 3 7-7' fill='none' stroke='%23ece3cf' stroke-width='2.4'/></svg>") center/12px no-repeat; }
.log li b { font-family: var(--font-ui); font-weight: 600; font-size: 1rem; line-height: 1.4; }
.log li.done b { color: #4a3d2f; }
.log li span { display: block; margin-top: 2px; font-family: var(--font-ui); font-size: .88rem; color: #6d5a43; line-height: 1.5; }
.log li span a { color: #1f3d6b; text-decoration: underline; text-underline-offset: 3px; }
.log li time { font-family: var(--mono); font-size: .78rem; color: #8a6f4c; direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
.log li.unknown::before { border-style: dashed; }
.log li.open time { font-family: var(--font-ui); font-weight: 600; letter-spacing: 0; direction: rtl; }
.log li.unknown time { color: #b0461f; font-family: var(--hand); font-weight: 700; font-size: 1.05rem; direction: rtl; }
.log__note { margin-top: 30px; font-family: var(--hand); font-weight: 700; font-size: 1.6rem; line-height: 1.3; color: #1f3d6b; rotate: -1.5deg; max-width: 30ch; }

/* ═════ 8. לצפייה ═════ */
.watch { background: var(--ink); padding: clamp(80px, 10vw, 130px) 0; }
.watch h2 { font-family: var(--hand); font-weight: 900; font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: .95; color: #fff; }
.watch__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 10px; margin-top: 30px; }
.watch__side { display: grid; gap: 10px; }
.watch__shorts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 200px)) minmax(0, 1fr); gap: 10px 28px; align-items: center; }
.vt { position: relative; display: block; background: #000; color: #fff; text-decoration: none; overflow: hidden; }
.vt__img { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.vt--portrait .vt__img { aspect-ratio: 9 / 15; }
.vt__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease), filter .4s; }
.vt__cap { position: absolute; inset-inline: 0; bottom: 0; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 40px 14px 12px; background: linear-gradient(0deg, rgba(0, 0, 0, .88), transparent); }
.vt__cap b { font-family: var(--font-ui); font-weight: 600; font-size: .98rem; line-height: 1.3; }
.vt__cap small { grid-column: 1; font-family: var(--mono); font-size: .72rem; color: rgba(255, 255, 255, .72); }
.vt__cap i { grid-column: 2; grid-row: 1 / span 2; align-self: end; font-style: normal; font-family: var(--mono); font-size: .76rem; color: var(--sun); direction: ltr; }
.vt:hover .vt__img img, .vt:focus-visible .vt__img img { transform: scale(1.04); filter: brightness(1.1); }
.vt:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; }
.watch__aside { font-family: var(--font-body); font-size: 1.02rem; line-height: 1.75; color: #ddd7ca; max-width: 46ch; }
.watch__aside b { color: #fff; }

/* ═════ 9. להצטרף ═════ */
.join { background: var(--ink-2); padding: clamp(80px, 10vw, 130px) 0; }
.join__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(200px, 280px); gap: clamp(30px, 5vw, 80px); align-items: center; }
.join h2 { font-family: var(--hand); font-weight: 900; font-size: clamp(2.6rem, 5.6vw, 4.8rem); line-height: .95; color: #fff; }
.join__text { margin-top: 20px; font-family: var(--font-body); font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.85; color: #ddd7ca; max-width: 58ch; }
.join__text b { font-family: var(--hand); font-weight: 900; font-size: 1.45em; color: var(--sun); line-height: 1; }
.join__acts { display: flex; flex-wrap: wrap; gap: 18px 34px; margin-top: 30px; }
.join__fig { margin: 0; }
.join__fig video { display: block; width: 100%; aspect-ratio: 512 / 720; object-fit: cover; background: #2b2d33; }
.join__fig figcaption { padding-top: 10px; font-family: var(--hand); font-weight: 500; font-size: 1.1rem; color: var(--hud); }

.ha-legal { padding: 30px 0 50px; background: var(--ink-2); border-top: 1px solid var(--rule); }
.ha-legal p { max-width: 74ch; margin: 0 auto; text-align: center; font-family: var(--font-ui); font-size: .8rem; line-height: 1.7; color: rgba(236, 227, 207, .55); }

/* ── הנגן (זהה ללגו ולסיפור) ── */
.vc-player { position: fixed; inset: 0; z-index: 2600; display: grid; place-items: center; padding: 4vw; background: rgba(4, 6, 10, .92); backdrop-filter: blur(10px); opacity: 0; pointer-events: none; transition: opacity .35s; }
.vc-player.is-open { opacity: 1; pointer-events: auto; }
.vc-player > div { width: min(1080px, 100%); }
.vc-player.is-portrait > div { width: min(420px, 100%); }
.vc-player__box { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; overflow: hidden; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 1); }
.vc-player.is-portrait .vc-player__box { aspect-ratio: 9 / 16; max-height: 86vh; }
.vc-player__box .ytstage { position: absolute; inset: 0; height: 100%; max-height: none; aspect-ratio: auto; }
.vc-player__box video { width: 100%; height: 100%; display: block; background: #000; }
.vc-player__cap { margin-top: 14px; text-align: center; font-family: var(--font-ui); color: var(--hud); }
.vc-player__x { position: absolute; top: 18px; inset-inline-end: 18px; width: 44px; height: 44px; border: 1px solid var(--rule); background: rgba(10, 17, 20, .7); color: #fff; font-size: 1.4rem; cursor: pointer; }

/* תוויות בעברית: לא במונו ובלי ריווח אותיות (עברית מרווחת נקראת שבורה) */
.letter__kicker, .lvl__card small, .quest small, .next-lvl__bar small, .inv__bar span, .slot--empty span, .item__tag, .item small,
.secrets__count, .build__step, .log__cols h3, .vt__cap small, .vt__cap i { font-family: var(--font-ui); letter-spacing: .02em; }
.lvl__card small, .next-lvl__bar small { font-size: .9rem; font-weight: 600; }
.vt--portrait .vt__cap { padding: 30px 10px 10px; }
.vt--portrait .vt__cap b { font-size: .86rem; }

@media (prefers-reduced-motion: reduce) {
  .loc.is-armed .loc__name b, .loc.is-armed .loc__name i { opacity: 1; transform: none; }
  .loc.is-armed .loc__name i::before { transform: none; }
  .next-lvl__track i::after { animation: none; }
  .secret__btn img { transition: none; }
}

@media (max-width: 900px) {
  .t-screen { min-height: 0; }
  .t-screen__in { grid-template-columns: minmax(0, 1fr); padding-top: calc(var(--nav-h) + 220px); }
  .t-screen__build { inset-inline-end: auto; inset-inline-start: 4vw; bottom: 14px; font-size: .62rem; }
  .letter__grid, .inv__grid, .ed__head, .log__cols, .join__grid, .secrets__head { grid-template-columns: minmax(0, 1fr); }
  .pols { height: 420px; max-width: 460px; width: 100%; margin-inline: auto; }
  .lvl__path::before { inset-inline-start: 18px; }
  .loc--split, .loc--split.loc--flip { grid-template-columns: minmax(0, 1fr); }
  .loc--split.loc--flip .loc__frame { order: 0; }
  .loc--wide .loc__frame > img, .loc--wide .loc__frame > video { aspect-ratio: 16 / 10; }
  .loc--wide .loc__notes { grid-template-columns: minmax(0, 1fr); }
  .quest { justify-self: stretch; }
  .next-lvl__clips { grid-template-columns: 1fr 1fr; }
  .next-lvl__clips figure:first-child { grid-column: 1 / -1; }
  .secrets__count { text-align: start; }
  .secrets__grid { grid-template-columns: 1fr 1fr; }
  .secret:first-child { grid-column: 1 / -1; grid-row: auto; }
  .secret__a { grid-template-columns: minmax(0, 1fr); }
  .watch__grid { grid-template-columns: minmax(0, 1fr); }
  .watch__side { grid-template-columns: 1fr 1fr; }
  .watch__shorts { grid-template-columns: 1fr 1fr; }
  .watch__aside { grid-column: 1 / -1; }
  .join__fig { max-width: 240px; }
}
@media (max-width: 560px) {
  .t-screen h1 { font-size: 7.4rem; }
  .pols { height: 360px; }
  .pol figcaption { font-size: 1rem; }
  .inv__slots { gap: 6px; }
  .secrets__grid { grid-template-columns: minmax(0, 1fr); }
  .watch__side { grid-template-columns: minmax(0, 1fr); }
  .log li { grid-template-columns: 22px minmax(0, 1fr); }
  .log li time { grid-column: 2; }
}
