/* صقيع السلوت — descent into the ice cave, RTL (ar-JO). Hand-written, no framework. */
:root {
  --nuit: #071A2E;
  --glace: #0F3354;
  --glacier: #EAF6FB;
  --aurore: #3DF2A0;
  --givre: #8FD8F0;
  --abysse: #041120;
  --frost-line: rgba(143, 216, 240, .28);
  --frost-pane: rgba(15, 51, 84, .72);
  --muted: #B9D6E4;
  --display: 'Vibes', 'Beiruti', system-ui, sans-serif;
  --body: 'Beiruti', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --edge: 26px;
  --wrap: 1180px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--nuit); color: var(--glacier);
  font: 400 1.16rem/1.85 var(--body);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--givre); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--glacier); }
:focus-visible { outline: 3px solid var(--aurore); outline-offset: 3px; border-radius: 4px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; background: var(--aurore); color: var(--nuit); padding: .6rem 1rem; font-weight: 700; border-radius: 6px; }
.skip:focus { top: 12px; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.45; margin: 0 0 .7em; text-wrap: balance; }
h1 { font-size: clamp(1.75rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.3rem, 2.6vw, 1.85rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--glacier); max-width: 60ch; }
.eyebrow { font-weight: 700; font-size: .92rem; color: var(--givre); margin-bottom: 1rem; }
.eyebrow a { color: inherit; }
.depth { display: inline-block; font-variant-numeric: tabular-nums; color: var(--nuit); background: var(--givre); padding: .1em .55em; border-radius: 3px; margin-inline-end: .5em; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 1rem;
  padding: .7rem max(16px, calc((100% - var(--wrap)) / 2));
  background: rgba(7, 26, 46, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--frost-line);
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--glacier); margin-inline-end: auto; }
.brand-w { font-family: var(--display); font-size: 1.3rem; }
.brand-w b { font-weight: 400; color: var(--aurore); margin-inline-start: .3em; }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .2rem .3rem; }
.menu a { display: block; padding: .45rem .7rem; color: var(--glacier); text-decoration: none; font-size: 1rem; border-radius: 999px; border: 1px solid transparent; }
.menu a:hover { border-color: var(--frost-line); }
.menu a[aria-current="page"] { background: var(--glace); border-color: var(--givre); }
.menu-btn { display: none; }
@media (max-width: 960px) {
  .top { flex-wrap: wrap; }
  .js .menu-btn {
    display: inline-flex; align-items: center; gap: .5rem; background: transparent; color: var(--glacier);
    border: 1px solid var(--givre); border-radius: 999px; padding: .5rem .9rem; font: 700 .95rem var(--body); cursor: pointer; min-height: 44px;
  }
  .menu-ico, .menu-ico::before, .menu-ico::after { display: block; width: 16px; height: 2px; background: currentColor; position: relative; transition: transform .2s; }
  .menu-ico::before, .menu-ico::after { content: ""; position: absolute; left: 0; }
  .menu-ico::before { top: -5px; } .menu-ico::after { top: 5px; }
  .menu-btn[aria-expanded="true"] .menu-ico { background: transparent; }
  .menu-btn[aria-expanded="true"] .menu-ico::before { transform: translateY(5px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-ico::after { transform: translateY(-5px) rotate(-45deg); }
  .menu { width: 100%; }
  .js .menu { display: none; }
  .js .menu.open { display: block; }
  .menu ul { flex-direction: column; padding: .5rem 0 .3rem; }
  .menu a { padding: .75rem .9rem; border-radius: 8px; font-size: 1rem; }
}

/* ---------- depth gauge ---------- */
.gauge { display: none; }
@media (min-width: 1240px) {
  .gauge { display: block; position: fixed; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); z-index: 20; padding-inline-start: 14px; }
  .gauge::before { content: ""; position: absolute; inset-inline-start: 4px; top: 6px; bottom: 6px; width: 2px; background: var(--frost-line); }
  .gauge-fill { position: absolute; inset-inline-start: 4px; top: 6px; width: 2px; height: calc(var(--prog, 0) * (100% - 12px)); background: var(--aurore); box-shadow: 0 0 8px var(--aurore); }
  .gauge ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .28rem; }
  .gauge a { display: flex; align-items: baseline; gap: .45rem; text-decoration: none; color: var(--muted); font-size: .82rem; padding: .1rem .3rem; border-radius: 4px; font-variant-numeric: tabular-nums; }
  .gauge .g-d { min-width: 3.6em; color: var(--givre); font-weight: 700; }
  .gauge .g-l { opacity: 0; transform: translateX(4px); transition: opacity .2s, transform .2s; background: var(--nuit); padding: 0 .3rem; border-radius: 3px; }
  .gauge:hover .g-l, .gauge a:focus-visible .g-l, .gauge a[aria-current="true"] .g-l { opacity: 1; transform: none; }
  .gauge a[aria-current="true"] .g-d { color: var(--aurore); }
}

/* ---------- entrance ---------- */
.entree { position: relative; min-height: min(92vh, 860px); display: grid; align-items: end; isolation: isolate; overflow: hidden; }
.entree-art, .entree-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 45% 40%; z-index: -2; }
.entree::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 26, 46, .15) 0%, rgba(7, 26, 46, .35) 45%, var(--nuit) 100%); }
.entree-in { padding: clamp(12rem, 34vh, 20rem) 0 3.5rem; }
.entree-panel {
  max-width: 640px; padding: clamp(1.3rem, 3vw, 2.2rem);
  background: rgba(7, 26, 46, .84); border: 1px solid var(--frost-line); border-radius: 4px 28px 4px 28px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 0 0 1px rgba(61, 242, 160, .12) inset, 0 30px 60px rgba(0, 0, 0, .35);
}
.entree-panel h1 { max-width: 16ch; }
.descend {
  display: inline-flex; align-items: center; gap: .6rem; margin-top: .4rem; padding-block: .8rem; padding-inline: 1.4rem 1.2rem; min-height: 48px;
  background: var(--aurore); color: var(--nuit); font: 700 1.05rem var(--body); text-decoration: none; border-radius: 999px;
}
.descend svg { width: 20px; }
.descend:hover { color: var(--nuit); background: #7DF7BF; }
@media (prefers-reduced-motion: no-preference) { .descend svg { animation: bob 2.4s ease-in-out infinite; } }
@keyframes bob { 50% { transform: translateY(3px); } }
.snow { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
  background-image: radial-gradient(1.5px 1.5px at 12% 20%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 30% 60%, #fff 50%, transparent 51%), radial-gradient(2px 2px at 72% 35%, #dff 50%, transparent 51%), radial-gradient(1px 1px at 88% 75%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 52% 12%, #fff 50%, transparent 51%);
  background-size: 340px 340px; }
@media (prefers-reduced-motion: no-preference) { .snow { animation: drift 40s linear infinite; } }
@keyframes drift { to { background-position: 60px 340px, -40px 340px, 30px 340px, -20px 340px, 50px 340px; } }

/* ---------- cores (highlights) ---------- */
.carottes { background: var(--nuit); padding: 1rem 0 calc(3.5rem + var(--edge)); }
.carottes-in { display: grid; gap: 1.5rem; grid-template-columns: 1.2fr 1fr; align-items: start; }
.answer { padding: 1.2rem 1.3rem; background: linear-gradient(160deg, rgba(61, 242, 160, .1), rgba(15, 51, 84, .35)); border: 1px solid rgba(61, 242, 160, .45); border-radius: 3px; }
.answer-k { font: 700 1rem var(--body); color: var(--aurore); margin-bottom: .6rem; }
.answer p:last-child { margin: 0; }
.cores { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.cores li { display: grid; grid-template-columns: auto 1fr; gap: .1rem 1rem; padding: .9rem 1rem; background: linear-gradient(270deg, rgba(143, 216, 240, .14), rgba(143, 216, 240, .03)); border: 1px solid var(--frost-line); border-radius: 3px 16px 3px 16px; }
.core-l { grid-column: 1 / -1; font-size: .92rem; font-weight: 700; color: var(--givre); }
.core-v { font: 700 1.3rem var(--body); color: var(--aurore); white-space: nowrap; }
.core-n { font-size: 1rem; color: var(--muted); align-self: center; }
@media (max-width: 860px) { .carottes-in { grid-template-columns: 1fr; } .cores li { grid-template-columns: 1fr; } }

/* ---------- chambers with jagged ice edges ---------- */
.chamber { position: relative; margin-top: calc(var(--edge) * -1); padding: calc(var(--edge) + clamp(2.6rem, 6vw, 4.8rem)) 0 clamp(3rem, 7vw, 5.2rem);
  clip-path: polygon(0 18px, 6% 4px, 11% 20px, 18% 0, 26% 16px, 33% 6px, 41% 24px, 48% 2px, 57% 18px, 64% 8px, 72% 26px, 79% 4px, 86% 18px, 93% 0, 100% 14px, 100% 100%, 0 100%);
}
.chamber:nth-of-type(even) { clip-path: polygon(0 6px, 7% 22px, 14% 2px, 22% 18px, 30% 0, 37% 20px, 45% 8px, 53% 26px, 60% 4px, 68% 16px, 75% 0, 83% 22px, 90% 6px, 96% 20px, 100% 2px, 100% 100%, 0 100%); }
.chamber::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 70px; pointer-events: none; background: linear-gradient(180deg, rgba(143, 216, 240, .2), rgba(143, 216, 240, 0)); }
.d1 { background: #0C2E4D; }
.d2 { background: #0B2B49; }
.d3 { background: #0A2744; }
.d4 { background: #09233F; }
.d5 { background: #082039; }
.d6 { background: #071C33; }
.d7 { background: #06192E linear-gradient(180deg, rgba(4, 17, 32, .55), rgba(4, 17, 32, .85)), url(../img/bg-ice-1600.webp) center / cover; background-blend-mode: normal; }
.d8 { background: #05172A; }
.d9 { background: #051526; }
.d10 { background: #041222; }
.d11 { background: var(--abysse); }

/* ---------- Le Gel comparator ---------- */
.gel { background: #0C2E4D radial-gradient(ellipse 70% 60% at 30% 0%, rgba(61, 242, 160, .16), transparent 70%); }
.gel h2 { font-size: clamp(1.4rem, 3.2vw, 2.2rem); }
.gel-intro { max-width: 62ch; color: var(--muted); }
.gel-toggles { display: none; }
.js .gel-toggles { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.4rem 0 1.6rem; }
.tog { font: 700 1rem var(--body); color: var(--glacier); background: rgba(7, 26, 46, .6); border: 1px solid var(--givre); border-radius: 2px 12px 2px 12px; padding: .6rem 1rem; min-height: 44px; cursor: pointer; }
.tog:hover { background: var(--glace); }
.tog[aria-pressed="true"] { background: var(--aurore); color: var(--nuit); border-color: var(--aurore); }
.tog.is-pinned::after { content: " · مثبّت"; font-weight: 400; }
.gel-body { display: grid; gap: 1.6rem; }
.gel-stage-wrap { display: none; }
.js .gel-stage-wrap { display: block; }
.js .gel-body { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 900px) { .js .gel-body { grid-template-columns: minmax(0, 1fr); } }
.gel-stage {
  position: relative; aspect-ratio: 4 / 3; border-radius: 6px;
  background: linear-gradient(160deg, rgba(234, 246, 251, .1), rgba(143, 216, 240, .03)), #082039;
  border: 1px solid rgba(234, 246, 251, .35); box-shadow: inset 0 0 40px rgba(143, 216, 240, .15), 0 24px 50px rgba(0, 0, 0, .35);
  padding: 10px; overflow: hidden; direction: ltr;
}
.gel-cells { position: absolute; inset: 10px; }
.gc {
  position: absolute; display: grid; place-items: center;
  left: var(--x); top: var(--y); width: var(--w); height: var(--h);
  padding: 2px; opacity: var(--o, 1);
  transition: left .55s cubic-bezier(.3, .9, .3, 1), top .55s cubic-bezier(.3, .9, .3, 1), width .55s cubic-bezier(.3, .9, .3, 1), height .55s cubic-bezier(.3, .9, .3, 1), opacity .35s;
}
.gc > span { width: 100%; height: 100%; display: grid; place-items: center; border-radius: 4px; background: linear-gradient(150deg, rgba(234, 246, 251, .22), rgba(143, 216, 240, .06)); border: 1px solid rgba(234, 246, 251, .28); transition: background .3s, box-shadow .3s; }
.gc svg { width: min(70%, 54px); height: auto; max-height: 78%; }
.gc.lit > span { background: linear-gradient(150deg, rgba(61, 242, 160, .45), rgba(61, 242, 160, .12)); box-shadow: 0 0 14px rgba(61, 242, 160, .55); border-color: var(--aurore); }
.gc.dim > span { opacity: .45; }
.gc[data-x]::after { content: attr(data-x); position: absolute; right: 6%; top: 6%; font: 700 .7rem var(--body); color: var(--nuit); background: var(--aurore); border-radius: 3px; padding: 0 .3em; }
.gel-lines { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); pointer-events: none; opacity: 0; transition: opacity .3s; }
.gel-lines path { fill: none; stroke: var(--aurore); stroke-width: 3; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-dasharray: 2400; stroke-dashoffset: 0; filter: drop-shadow(0 0 4px rgba(61, 242, 160, .9)); }
.gel-stage[data-f="video"] .gel-lines { opacity: 1; }
@media (prefers-reduced-motion: no-preference) { .gel-stage[data-f="video"] .gel-lines path { animation: draw 1.4s ease-out both; } .gel-stage[data-f="video"] .gel-lines path:nth-child(2) { animation-delay: .25s; } .gel-stage[data-f="video"] .gel-lines path:nth-child(3) { animation-delay: .5s; } }
@keyframes draw { from { stroke-dashoffset: 2400; } }
.gel-meter { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); width: min(80%, 360px); display: grid; grid-template-columns: auto 1fr; gap: .2rem .7rem; align-items: center; padding: .55rem .8rem; background: rgba(4, 17, 32, .9); border: 1px solid var(--aurore); border-radius: 999px; opacity: 0; transition: opacity .3s; }
.gel-stage[data-f="jackpot"] .gel-meter { opacity: 1; }
.gm-l { font: 700 .9rem var(--body); color: var(--aurore); }
.gm-bar { height: 10px; border-radius: 99px; background: rgba(143, 216, 240, .2); overflow: hidden; }
.gm-bar i { display: block; height: 100%; width: 55%; background: linear-gradient(90deg, var(--givre), var(--aurore)); }
@media (prefers-reduced-motion: no-preference) { .gel-stage[data-f="jackpot"] .gm-bar i { animation: fill 2.2s ease-out both; } }
@keyframes fill { from { width: 8%; } }
.gm-n { grid-column: 1 / -1; font-size: .82rem; color: var(--muted); text-align: center; }
.gel-under { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: .9rem; }
.gel-cap { margin: 0; font-size: 1.02rem; color: var(--glacier); flex: 1 1 260px; font-variant-numeric: tabular-nums; }
.gel-draw, .gel-pin { font: 700 .98rem var(--body); color: var(--glacier); background: transparent; border: 1px dashed var(--givre); border-radius: 999px; padding: .55rem 1rem; min-height: 44px; cursor: pointer; }
.gel-draw:hover, .gel-pin:hover { border-style: solid; background: rgba(143, 216, 240, .1); }
.gel-pin { display: none; }
.js .gel-pin { display: inline-block; margin-top: 1rem; }
.gel-pin[aria-pressed="true"] { border-color: var(--aurore); color: var(--aurore); }
.gel-specs { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.js .gel-specs { grid-template-columns: 1fr; }
.js .gel-specs.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .js .gel-specs.two { grid-template-columns: 1fr; } }
.js .spec { display: none; }
.js .spec.is-active, .js .spec.is-pinned { display: block; }
.spec { background: var(--frost-pane); border: 1px solid var(--frost-line); border-radius: 3px 18px 3px 18px; padding: 1.1rem 1.2rem; }
.spec.is-active { border-color: var(--aurore); }
.spec.is-pinned:not(.is-active) { border-style: dashed; }
.spec h3 { color: var(--aurore); font-size: 1.15rem; }
.spec dl { margin: 0; display: grid; gap: .55rem; }
.spec dl div { display: grid; gap: .05rem; }
.spec dt { font-size: .88rem; font-weight: 700; color: var(--givre); }
.spec dd { margin: 0; font-size: 1.02rem; }
.spec-more { margin: .8rem 0 0; font-size: .9rem; }

/* ---------- format chambers ---------- */
.chamber-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(1.6rem, 5vw, 4.5rem); align-items: center; }
.flip .block-ice { order: 2; }
@media (max-width: 860px) { .chamber-grid { grid-template-columns: minmax(0, 1fr); } .flip .block-ice { order: 0; } }
.fiche { max-width: 62ch; }
.block-ice { margin: 0; }
.block-ice figcaption { margin-top: .8rem; font-size: .98rem; font-weight: 700; color: var(--muted); }
.frozen {
  position: relative; display: grid; gap: 5px; padding: 12px; border-radius: 4px;
  background: linear-gradient(155deg, rgba(234, 246, 251, .16), rgba(143, 216, 240, .04) 40%, rgba(234, 246, 251, .1)), #0A2744;
  border: 1px solid rgba(234, 246, 251, .4);
  box-shadow: inset 0 0 0 1px rgba(143, 216, 240, .15), inset 0 0 50px rgba(143, 216, 240, .12), 0 30px 60px rgba(0, 0, 0, .35);
  transform: perspective(900px) rotateY(6deg) rotateX(3deg); direction: ltr;
}
.flip .frozen { transform: perspective(900px) rotateY(-6deg) rotateX(3deg); }
.fc { display: grid; place-items: center; aspect-ratio: 1; border-radius: 3px; background: rgba(234, 246, 251, .1); border: 1px solid rgba(234, 246, 251, .2); }
.fc svg { width: 68%; }
.fc.lit { background: rgba(61, 242, 160, .3); border-color: var(--aurore); box-shadow: 0 0 12px rgba(61, 242, 160, .5); }
.fc.mark { position: relative; border-color: var(--aurore); }
.fc.mark::after { content: attr(data-x); position: absolute; right: 2px; top: 1px; font: 700 .62rem var(--body); color: var(--nuit); background: var(--aurore); border-radius: 2px; padding: 0 .2em; }
.frozen-video, .frozen-jackpot { grid-template-columns: repeat(5, 1fr); }
.frozen-jackpot { padding-top: 46px; }
.frozen-jackpot .fc { opacity: .75; }
.jmeter { position: absolute; left: 12px; right: 12px; top: 12px; height: 22px; border-radius: 99px; border: 1px solid var(--aurore); background: rgba(4, 17, 32, .8); padding: 4px; }
.jmeter i { display: block; height: 100%; width: 55%; border-radius: 99px; background: linear-gradient(90deg, var(--givre), var(--aurore)); }
.fl { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); pointer-events: none; }
.fl path { stroke: var(--aurore); stroke-width: 3; vector-effect: non-scaling-stroke; fill: none; filter: drop-shadow(0 0 4px var(--aurore)); }
.frozen-megaways { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr); height: clamp(260px, 34vw, 380px); }
.mcol { display: grid; grid-template-rows: repeat(var(--n), minmax(0, 1fr)); gap: 4px; min-height: 0; }
.mcol .fc { aspect-ratio: auto; min-height: 0; overflow: hidden; }
.mcol .fc svg { width: auto; height: 70%; max-width: 70%; }
.frozen-cluster { grid-template-columns: repeat(6, 1fr); gap: 4px; }
.frozen-grid { grid-template-columns: repeat(7, 1fr); gap: 3px; }

/* ---------- content blocks ---------- */
.shards { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: .55rem; }
.shards li { position: relative; padding-inline-start: 1.6rem; }
.shards li::before { content: ""; position: absolute; inset-inline-start: 0; top: .7em; width: 10px; height: 10px; background: var(--givre); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.rungs { margin: 0 0 1.2rem; padding-inline-start: 1.6rem; display: grid; gap: .5rem; }
.rungs li::marker { color: var(--aurore); font-weight: 700; }
.steps { list-style: none; counter-reset: st; padding: 0; margin: 0 0 1.4rem; display: grid; gap: .8rem; }
.steps li { counter-increment: st; position: relative; padding-block: .9rem; padding-inline: 3.4rem 1rem; background: rgba(143, 216, 240, .07); border: 1px solid var(--frost-line); border-radius: 3px 14px 3px 14px; }
.steps li::before { content: counter(st); position: absolute; inset-inline-start: .9rem; top: .85rem; width: 1.8rem; height: 1.8rem; display: grid; place-items: center; font: 400 .8rem var(--display); color: var(--nuit); background: var(--givre); clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
.step-t { display: block; font-weight: 700; margin-bottom: .2rem; }
.steps p { margin: 0; color: var(--muted); }
.tip { margin: 0 0 1.4rem; padding: 1rem 1.2rem; border: 1px solid var(--givre); border-radius: 3px 18px 3px 18px; background: rgba(143, 216, 240, .08); }
.tip-t { display: flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--givre); margin-bottom: .35rem; }
.tip-t svg { width: 18px; flex: none; }
.tip p:last-child { margin: 0; }
.calc { margin: 0 0 1.4rem; padding: 1.1rem 1.2rem; background: var(--abysse); border: 1px dashed rgba(61, 242, 160, .6); font-variant-numeric: tabular-nums; }
.calc-t { font: 700 1rem var(--body); color: var(--aurore); margin-bottom: .5rem; }
.calc p:last-child { margin: 0; }
.tablewrap { overflow-x: auto; margin: 0 0 1.5rem; border: 1px solid var(--frost-line); border-radius: 4px; }
table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 1rem; }
caption { text-align: start; padding: .8rem 1rem; font-weight: 700; color: var(--givre); }
th, td { text-align: start; padding: .7rem 1rem; border-top: 1px solid var(--frost-line); vertical-align: top; }
thead th { font-size: .9rem; color: var(--givre); background: rgba(143, 216, 240, .08); }
tbody th { font-weight: 700; color: var(--glacier); }

/* ---------- studios ---------- */
.atelier-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: center; margin-bottom: 2rem; }
.atelier-head > div { background: rgba(4, 17, 32, .72); padding: 1.4rem; border-radius: 4px; }
.atelier-img { border-radius: 4px 30px 4px 30px; border: 1px solid var(--frost-line); }
@media (max-width: 860px) { .atelier-head { grid-template-columns: minmax(0, 1fr); } }
.frost-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.frost-cards li { padding: 1.2rem; background: rgba(15, 51, 84, .82); border: 1px solid var(--frost-line); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.fcard-t { display: block; font: 700 1.1rem var(--body); color: var(--aurore); margin-bottom: .5rem; }
.frost-cards p { margin: 0; font-size: 1.04rem; }

/* ---------- promo: hexagonal ice block ---------- */
.coffre { display: grid; justify-items: center; gap: .9rem; margin: 2rem auto; max-width: 440px; }
.coffre-hex {
  position: relative; width: min(100%, 420px); aspect-ratio: 1 / 1.08; display: grid; place-items: center; isolation: isolate;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: #0A2744;
}
.coffre-hex img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.05); }
.coffre-hex::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 50% 50%, rgba(4, 17, 32, .15), rgba(4, 17, 32, .55) 75%); transition: background .5s; }
.coffre-hex::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(115deg, rgba(234, 246, 251, .16) 0 2px, transparent 2px 14px), linear-gradient(180deg, rgba(234, 246, 251, .3), rgba(143, 216, 240, .08));
  transition: opacity .6s;
}
.coffre:hover .coffre-hex::after, .coffre:focus-within .coffre-hex::after { opacity: 0; }
.coffre:hover .coffre-hex::before, .coffre:focus-within .coffre-hex::before { background: radial-gradient(circle at 50% 50%, rgba(61, 242, 160, .22), rgba(4, 17, 32, .35) 75%); }
.coffre-etch { position: relative; z-index: 2; text-align: center; margin: 0 13%; padding: 1rem 1.1rem; background: rgba(4, 17, 32, .86); border: 1px solid rgba(234, 246, 251, .35); border-radius: 4px; box-shadow: 0 0 30px rgba(4, 17, 32, .6); transition: box-shadow .5s, border-color .5s; }
.coffre:hover .coffre-etch, .coffre:focus-within .coffre-etch { border-color: var(--aurore); box-shadow: 0 0 34px rgba(61, 242, 160, .35); }
.coffre-k { font-size: .9rem; font-weight: 700; color: var(--givre); margin-bottom: .6rem; }
.coffre-code { font: 400 clamp(1rem, 3.6vw, 1.3rem)/1.3 var(--display); color: var(--glacier); margin-bottom: .6rem; }
.coffre-note { font-size: .96rem; color: var(--glacier); margin: 0; }
.icicle {
  display: block; width: min(100%, 300px); text-align: center; padding: .85rem 1rem 1.3rem; min-height: 48px;
  background: var(--aurore); color: var(--nuit); font-weight: 700; text-decoration: none;
  clip-path: polygon(0 0, 100% 0, 100% 62%, 88% 70%, 76% 64%, 62% 82%, 50% 100%, 38% 80%, 24% 66%, 12% 74%, 0 62%);
}
.icicle:hover { color: var(--nuit); background: #7DF7BF; }
.icicle:focus-visible { outline: 3px solid var(--glacier); outline-offset: 4px; }
.coffre-small { margin: 0; font-size: .92rem; color: var(--givre); }
.coffre-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.coffre-wrap .coffre { margin: 0 auto; }
@media (max-width: 860px) { .coffre-wrap { grid-template-columns: minmax(0, 1fr); } }

/* ---------- tunnels ---------- */
.tunnel-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
@media (max-width: 860px) { .tunnel-list { grid-template-columns: minmax(0, 1fr); } }
.tunnel a { display: grid; text-decoration: none; color: var(--glacier); }
.tunnel-arch { display: block; aspect-ratio: 4 / 3.4; overflow: hidden; border-radius: 50% 50% 4px 4px / 42% 42% 4px 4px; border: 2px solid var(--givre); margin-bottom: 1rem; box-shadow: inset 0 0 30px #000; }
.tunnel-arch img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.tunnel a:hover .tunnel-arch img, .tunnel a:focus-visible .tunnel-arch img { transform: scale(1.06); }
.tunnel a:hover .tunnel-arch { border-color: var(--aurore); }
.tunnel-n { font-size: .95rem; font-weight: 700; color: var(--aurore); }
.tunnel-t { font: 700 1.12rem/1.55 var(--body); margin: .3rem 0 .6rem; text-decoration: underline; text-decoration-color: var(--frost-line); text-underline-offset: .25em; }
.tunnel p { color: var(--muted); font-size: 1.02rem; }

/* ---------- FAQ bubbles ---------- */
.faq-wrap { max-width: 860px; }
.bubbles { display: grid; gap: .8rem; }
.bubble { border: 1px solid var(--frost-line); border-radius: 26px; background: radial-gradient(circle at 88% 0%, rgba(234, 246, 251, .14), transparent 60%), rgba(15, 51, 84, .5); transition: border-radius .35s, background .35s; }
.bubble summary { cursor: pointer; list-style: none; padding-block: 1rem; padding-inline: 1.3rem 3.2rem; font-weight: 700; position: relative; border-radius: 26px; }
.bubble summary::-webkit-details-marker { display: none; }
.bubble summary::after { content: ""; position: absolute; inset-inline-end: 1.2rem; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: var(--givre); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); transition: transform .3s; }
.bubble[open] { border-radius: 6px 26px 6px 26px; border-color: var(--aurore); background: rgba(15, 51, 84, .8); }
.bubble[open] summary::after { transform: rotate(45deg); background: var(--aurore); }
.bubble p { padding: 0 1.3rem 1.1rem; margin: 0; color: var(--glacier); }

/* ---------- remontée ---------- */
.remontee-in { max-width: 820px; }
.rem-links { display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; margin-top: 1.5rem; }
.rem-links a { font-weight: 700; }
.rem-links .up::before { content: "↑ "; }

/* ---------- guides ---------- */
.g-hero { position: relative; isolation: isolate; padding: clamp(6rem, 22vw, 15rem) 0 3rem; overflow: hidden; }
.g-art, .g-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.g-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 26, 46, .2), rgba(7, 26, 46, .7) 45%, var(--nuit) 92%); }
.g-hero-in { background: rgba(7, 26, 46, .8); padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid var(--frost-line); max-width: 820px; margin-inline-start: max(16px, calc((100% - var(--wrap)) / 2)); }
.g-hero h1 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); max-width: 22ch; }
.g-hero .lead { margin: 0; }
.g-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); padding: 2.5rem 0 4rem; align-items: start; }
@media (max-width: 900px) { .g-layout { grid-template-columns: minmax(0, 1fr); } }
.g-side { position: sticky; top: 90px; display: grid; gap: 1rem; }
@media (max-width: 900px) { .g-side { position: static; } }
.g-specs, .g-toc, .g-next { background: rgba(143, 216, 240, .08); border: 1px solid var(--frost-line); border-radius: 3px 18px 3px 18px; padding: 1.1rem 1.2rem; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.g-specs-t { font: 700 1rem var(--body); color: var(--aurore); margin-bottom: .8rem; }
.g-specs dl { margin: 0; display: grid; gap: .5rem; }
.g-specs dl div { display: flex; justify-content: space-between; gap: .8rem; border-bottom: 1px dashed var(--frost-line); padding-bottom: .4rem; }
.g-specs dt { font-size: .95rem; color: var(--muted); }
.g-specs dd { margin: 0; font-weight: 700; font-size: 1rem; text-align: end; }
.g-toc ol { margin: 0; padding-inline-start: 1.3rem; display: grid; gap: .4rem; font-size: 1rem; }
.g-body { max-width: 74ch; }
.g-sec { padding-top: 1.2rem; margin-bottom: 1.6rem; }
.g-sec h2 { padding-top: 1rem; border-top: 1px solid var(--frost-line); }
.narvalo { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; align-items: center; margin-bottom: 1.5rem; }
.narvalo img { border-radius: 50%; border: 2px solid var(--givre); background: var(--glace); }
.narvalo-bubble { position: relative; background: var(--glace); border: 1px solid var(--givre); border-radius: 22px 22px 4px 22px; padding: 1rem 1.2rem; }
.narvalo-bubble p:last-child { margin: 0; }
.narvalo-k { font: 700 1rem var(--body); color: var(--aurore); margin-bottom: .4rem; }
@media (max-width: 560px) { .narvalo { grid-template-columns: 1fr; } .narvalo img { width: 96px; } }
.g-next ul { margin: 0; padding-inline-start: 1.3rem; display: grid; gap: .4rem; }

/* ---------- simple pages ---------- */
.pg-hero { padding: 4rem 0 2.5rem; background: radial-gradient(ellipse 60% 80% at 15% 0%, rgba(61, 242, 160, .14), transparent 70%), linear-gradient(180deg, #0C2E4D, var(--nuit)); border-bottom: 1px solid var(--frost-line); }
.pg-hero h1 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); max-width: 24ch; }
.pg-body { padding: 2.5rem 0 4rem; }
.pg-body > * { max-width: 780px; }
.pg-sec { margin-bottom: 2.2rem; }
.pg-responsible .pg-hero { background: radial-gradient(ellipse 60% 80% at 15% 0%, rgba(143, 216, 240, .18), transparent 70%), linear-gradient(180deg, #0F3354, var(--nuit)); }

/* ---------- 404 ---------- */
.lost { min-height: 70vh; display: grid; align-items: center; padding: 3rem 0; }
.lost-in { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; align-items: center; }
.lost-in img { border-radius: 50%; border: 2px solid var(--givre); }
@media (max-width: 700px) { .lost-in { grid-template-columns: 1fr; } .lost-in img { width: 160px; } }

/* ---------- footer ---------- */
.foot { position: relative; background: var(--abysse); border-top: 1px solid var(--frost-line); padding: 3rem 0 2rem; font-size: 1rem; }
.foot-ice { position: absolute; left: 0; right: 0; top: -1px; height: 18px; background: var(--frost-line); clip-path: polygon(0 0, 100% 0, 96% 60%, 91% 10%, 85% 90%, 78% 15%, 70% 70%, 62% 5%, 55% 100%, 47% 10%, 38% 75%, 30% 0, 22% 85%, 14% 10%, 7% 65%, 3% 5%); }
.foot-in { width: min(100% - 32px, var(--wrap)); margin-inline: auto; display: grid; grid-template-columns: 1fr 1.6fr auto; gap: 2rem; }
@media (max-width: 860px) { .foot-in { grid-template-columns: 1fr; } }
.foot-brand { display: flex; gap: .8rem; align-items: flex-start; color: var(--muted); }
.foot-brand svg { flex: none; }
.foot-legal p { margin: 0 0 .6rem; color: var(--muted); }
.foot-18 { color: var(--glacier) !important; font-weight: 700; }
.badge18 { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; margin-inline-end: .5rem; border-radius: 50%; border: 2px solid var(--aurore); color: var(--aurore); font-size: .85rem; vertical-align: middle; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; align-content: start; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- RTL / Arabic details ---------- */
bdi[dir="ltr"] { unicode-bidi: isolate; }
.depth bdi, .g-d bdi { font-variant-numeric: tabular-nums; }
.rem-links .up::before { content: "↑ "; }
.gel-meter { direction: rtl; }

/* ---------- ref CTA (2026-11-03): thaw button, open vault, ice-floe bar ---------- */
.entree-cta { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1.1rem; margin: .2rem 0 .5rem; }
.thaw {
  display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: .8rem 1.9rem;
  font: 700 1.25rem var(--body); color: var(--nuit); text-decoration: none;
  background: linear-gradient(135deg, #B9FFDD, var(--aurore) 55%, #22C986); border-radius: 3px 22px 3px 22px;
  box-shadow: 0 0 0 2px rgba(234, 246, 251, .55) inset, 0 0 28px rgba(61, 242, 160, .55);
}
.thaw:hover { color: var(--nuit); filter: brightness(1.08); }
.thaw:focus-visible { outline: 3px solid var(--glacier); outline-offset: 4px; }
.thaw-code { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; font-weight: 700; color: var(--givre); }
.thaw-code [data-code], .code-ice { font: 700 1.15rem/1.3 ui-monospace, 'Consolas', monospace; color: var(--glacier); background: rgba(143, 216, 240, .14); border: 1px dashed var(--givre); padding: .15rem .55rem; border-radius: 3px; user-select: all; }
.thaw-small { margin: 0 0 .9rem; font-size: .9rem; color: var(--muted); }
.copy { font: 700 .92rem var(--body); color: var(--glacier); background: transparent; border: 1px solid var(--givre); border-radius: 999px; padding: .3rem .85rem; min-height: 36px; cursor: pointer; }
.copy:hover { background: var(--glace); }
.copy-st { font-size: .88rem; color: var(--aurore); min-width: 4em; }
.entree-panel .descend { background: transparent; color: var(--givre); border: 1px solid var(--givre); min-height: 44px; padding-block: .5rem; }
.entree-panel .descend:hover { background: var(--glace); color: var(--glacier); }
.coffre-l { font-size: .9rem; color: var(--muted); margin: 0 0 .2rem; }
.coffre-code .code-ice { font-size: clamp(1.3rem, 4.6vw, 1.7rem); display: inline-block; }
.coffre-copy { margin: 0 0 .5rem; display: flex; justify-content: center; align-items: center; gap: .5rem; flex-wrap: wrap; }
.coffre-terms { font-size: .95rem; }
.coffre .icicle { font-size: 1.15rem; width: min(100%, 340px); }
.coffre-top { margin-top: 0; background: linear-gradient(180deg, var(--nuit), var(--glace)); }
.coffre-top .coffre-hex { box-shadow: none; }
.coffre-top .coffre-etch { border-color: var(--aurore); box-shadow: 0 0 34px rgba(61, 242, 160, .3); }
.floe { display: none; }
@media (max-width: 760px) {
  .entree { min-height: auto; }
  .entree-in { padding: 6.5rem 0 2rem; }
  .entree-panel h1 { font-size: 1.55rem; margin-bottom: .4em; }
  .entree-panel .lead { font-size: 1rem; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .entree-panel .eyebrow { margin-bottom: .5rem; }
  .thaw { width: 100%; }
  body.has-floe { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .floe {
    position: fixed; z-index: 40; inset-inline: 0; bottom: 0; display: flex; align-items: center; gap: .6rem;
    padding: .55rem 12px calc(.55rem + env(safe-area-inset-bottom));
    background: rgba(4, 17, 32, .94); border-top: 1px solid var(--aurore); box-shadow: 0 -8px 24px rgba(0, 0, 0, .45);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  }
  .floe::before { content: ""; position: absolute; inset-inline: 0; top: -7px; height: 7px; background: rgba(61, 242, 160, .55); clip-path: polygon(0 100%, 6% 0, 13% 100%, 21% 20%, 30% 100%, 41% 10%, 52% 100%, 63% 30%, 74% 100%, 84% 0, 93% 100%, 100% 40%, 100% 100%); }
  .floe-code { font-size: .85rem; color: var(--muted); white-space: nowrap; }
  .floe-code bdi { font: 700 .95rem ui-monospace, 'Consolas', monospace; color: var(--glacier); }
  .floe-go { flex: 1; text-align: center; min-height: 44px; display: grid; place-items: center; padding: 0 .8rem; font-weight: 700; color: var(--nuit); background: var(--aurore); text-decoration: none; border-radius: 3px 14px 3px 14px; }
  .floe-go:hover { color: var(--nuit); }
  .floe-18 { font-size: .75rem; color: var(--muted); white-space: nowrap; }
}
@media (max-width: 760px) and (prefers-reduced-motion: no-preference) { .floe::before { animation: floe-glint 3.2s ease-in-out infinite; } }
@keyframes floe-glint { 50% { opacity: .45; } }
@media (min-width: 761px) {
  .entree { min-height: min(88vh, 820px); }
  .entree-in { padding: clamp(4rem, 12vh, 9rem) 0 2.4rem; }
  .entree-panel h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
}
