/* Version A, "Map and ground". One look for the map, the ground and the games: chart paper cards with ink edges,
   the sea under everything, tribe colours only where a tribe is meant. */
:root {
  --ink: #24170f;
  --paper: #fbf1da;
  --paper2: #f1e2bf;
  --cream: #fdf6e3;
  --sea: #0f4a70;
  --deep: #0a3150;
  --night: #07233a;
  --lagoon: #35b9bd;
  --sun: #fed577;
  --grass: #6aab43;
  --ig: #c13584;
  --ig-grad: linear-gradient(120deg, #f58529 0%, #dd2a7b 52%, #8134af 100%);
  --tt: #101014;
  --cyan: #25f4ee;
  --red: #fe2c55;
  --vein: #5dff9b;
  --body: Heebo, "Segoe UI", "Arial Hebrew", Arial, system-ui, sans-serif;
  --head: "Secular One", Heebo, "Arial Hebrew", Arial, sans-serif;
  --st: env(safe-area-inset-top, 0px);
  --sb: env(safe-area-inset-bottom, 0px);
  --sl: env(safe-area-inset-left, 0px);
  --sr: env(safe-area-inset-right, 0px);
  --shadow: 0 3px 0 var(--ink);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; height: 100%; overflow: hidden; background: radial-gradient(ellipse at 50% 45%, #1c5f95, #0a3150 80%) fixed var(--deep); color: var(--cream);
  font-family: var(--body); font-weight: 500;
  overscroll-behavior: none; -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; margin: 0; cursor: pointer; touch-action: manipulation; }
a { color: inherit; }
[hidden] { display: none !important; }
.ico { width: 1.15em; height: 1.15em; vertical-align: -0.2em; }

#app { position: fixed; inset: 0; overflow: hidden; max-width: 560px; margin: 0 auto; background: var(--deep); }
@supports (height: 100dvh) { #app { bottom: auto; height: 100dvh; } }
.view { position: absolute; inset: 0; overflow: hidden; }

/* ---------- map ---------- */
#mapHost { position: absolute; inset: 0; overflow: hidden; transform-origin: 50% 50%; will-change: transform; background: radial-gradient(circle at 50% 50%, #1c5f95, #0d355f 75%); }
#mapHost::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 75% 62% at 50% 46%, rgba(0,0,0,0) 55%, rgba(6,20,40,.45) 100%); }
.map-canvas { position: absolute; inset: 0; touch-action: pan-y; cursor: pointer; will-change: transform; }
.map-canvas canvas { position: absolute; left: 0; top: 0; display: block; }
.map-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: manipulation; }
.map-svg .isl .hit { cursor: pointer; }
.map-svg .glow { animation: glow 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.map-svg .ripple { animation: ripple 2.2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.map-svg .waves-move { animation: drift 18s linear infinite; }
.map-svg .current { animation: dash 9s linear infinite; }
.map-svg .foam { animation: dash 14s linear infinite; }
.map-svg .bob { animation: bob 3s ease-in-out infinite; }
.map-svg .puller { animation: pull 0.9s ease-in-out infinite; animation-delay: calc(var(--i) * -0.2s); transform-box: fill-box; }
@keyframes glow { 50% { opacity: 0.45; transform: scale(1.18); } }
@keyframes ripple { from { opacity: 0.6; transform: scale(0.6); } to { opacity: 0; transform: scale(1.7); } }
@keyframes drift { to { transform: translate(46px, 30px); } }
@keyframes dash { to { stroke-dashoffset: -88; } }
@keyframes bob { 50% { transform: translate(0, 1.5px); } }
@keyframes pull { 50% { transform: translate(0, -1px); } }
.lite .map-svg .waves-move, .lite .map-svg .foam, .lite .map-svg .current, .lite .map-svg .puller { animation: none; }

/* pins over the map (HTML, so the text is crisp and upright) */
.mlbl {
  transform: translate(-50%, -100%); pointer-events: none; font-weight: 800; font-size: 12px; line-height: 1; color: #fff;
  padding: 3px 7px 4px; border-radius: 999px; background: rgba(20,16,12,.72); box-shadow: 0 1px 3px rgba(0,0,0,.35);
}
.me-ig .mlbl { background: rgba(160,30,100,.86); }
.me-tt .mlbl { background: rgba(12,12,16,.86); box-shadow: -1.5px 0 0 var(--cyan), 1.5px 0 0 var(--red), 0 1px 3px rgba(0,0,0,.35); }
#pins { position: absolute; inset: 0; pointer-events: none; }
.pin { position: absolute; transform: translate(-50%, -50%); pointer-events: auto; white-space: nowrap; font-family: var(--body); }
button.pin::before, .pin.here::before { content: ""; position: absolute; inset: -12px -8px; }
.pin.edge { top: 46%; transform: translateY(-50%); min-height: 40px; padding: 0 12px; font: 800 13.5px/1 var(--body, Heebo, sans-serif); color: var(--ink); background: var(--paper, #fbf1da); border: 2px solid var(--ink, #24170f); box-shadow: 0 3px 0 var(--ink, #24170f); display: flex; align-items: center; gap: 6px; }
.pin.edge.right { right: 0; border-radius: 12px 0 0 12px; border-right: 0; }
.pin.edge.left { left: 0; border-radius: 0 12px 12px 0; border-left: 0; }
.pin.edge.right::after { content: "›"; font-size: 20px; }
.pin.edge.left::before { content: "‹"; font-size: 20px; }
.isl-name {
  font-family: var(--head); font-size: 17px; line-height: 1; padding: 6px 12px 7px; border-radius: 999px;
  border: 2px solid var(--ink); box-shadow: var(--shadow); color: #fff; letter-spacing: 0.2px;
}
.isl-name.ig { background: var(--ig-grad); }
.isl-name.tt { background: var(--tt); box-shadow: -2px 0 0 var(--cyan) inset, 2px 0 0 var(--red) inset, var(--shadow); }
.isl-name small { display: block; font-family: var(--body); font-weight: 700; font-size: 12px; opacity: 0.95; margin-top: 2px; text-align: center; }
.isl-name.far { opacity: 0.92; }
/* the survivors count floating over each island, in its tribe's look: one calm line, logo + number + "שורדים" */
.isl-count { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px 0 4px; border: 2px solid var(--ink); border-radius: 999px; box-shadow: 0 3px 0 var(--ink), 0 6px 14px rgba(0, 0, 0, 0.3); color: #fff; white-space: nowrap; animation: islfloat 3.2s ease-in-out infinite; pointer-events: none; }
.isl-count .cl { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; }
.isl-count .cl svg { width: 15px; height: 15px; }
.isl-count span { display: flex; align-items: baseline; gap: 5px; line-height: 1; }
.isl-count b { font-family: var(--body); font-weight: 900; font-size: 16px; letter-spacing: 0.4px; color: #fff; font-variant-numeric: tabular-nums; }
.isl-count small { font-family: var(--body); font-weight: 700; font-size: 13px; opacity: 0.95; }
.isl-count.ig { background: var(--ig-grad); }
.isl-count.ig .cl { background: rgba(255, 255, 255, 0.22); }
.isl-count.tt { background: var(--tt); box-shadow: inset 2px 0 0 var(--cyan, #25f4ee), inset -2px 0 0 var(--red, #fe2c55), 0 3px 0 var(--ink), 0 6px 14px rgba(0, 0, 0, 0.3); }
.isl-count.tt .cl { background: #24242c; }
@keyframes islfloat { 0%, 100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, calc(-50% - 4px)); } }
@media (prefers-reduced-motion: reduce) { .isl-count { animation: none; } }
.here {
  font-weight: 900; font-size: 13px; background: var(--sun); color: var(--ink); border: 2px solid var(--ink); border-radius: 9px;
  padding: 3px 9px; box-shadow: var(--shadow); animation: hop 1.6s ease-in-out infinite;
}
.here::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 10px; height: 10px; background: var(--sun); border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateX(-50%) rotate(45deg); }
@keyframes hop { 50% { transform: translate(-50%, calc(-50% - 4px)); } }
.newtag {
  font-weight: 900; font-size: 13px; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 8px; padding: 3px 9px;
  box-shadow: 0 2px 0 var(--ink);
}
.newtag::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--red); margin-inline-end: 5px; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0.2; } }
.secret {
  font-weight: 800; font-size: 12px; color: #e9f6fb; background: rgba(7, 35, 58, 0.78); border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 8px; padding: 2px 8px;
}

/* top bar */
.top { position: absolute; top: 0; left: 0; right: 0; padding: calc(10px + var(--st)) calc(12px + var(--sr)) 0 calc(12px + var(--sl)); pointer-events: none; z-index: 3; }
.top .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.brand { display: flex; align-items: center; gap: 8px; }
.logo { font-family: var(--head); font-size: 26px; line-height: 1; color: var(--sun); text-shadow: 0 2px 0 var(--ink), 0 0 14px rgba(0,0,0,0.25); -webkit-text-stroke: 1px var(--ink); paint-order: stroke fill; }
/* the day sign, as in the videos' opening: a wooden board on two posts, glowing orange letters, a torch each side */
.day { display: inline-flex; align-items: flex-end; gap: 1px; transform: rotate(-3deg); margin-top: 2px; }
.day .torch { width: 15px; height: 40px; overflow: visible; margin-bottom: -6px; }
.day .torch .fl { transform-origin: 12px 24px; animation: flick 0.9s ease-in-out infinite alternate; }
.day .torch:last-child .fl { animation-duration: 0.7s; animation-delay: -0.3s; }
.day .torch .glow { animation: glow 1.3s ease-in-out infinite alternate; }
@keyframes flick { 0% { transform: scale(1, 1) rotate(-2deg); } 40% { transform: scale(0.94, 1.08) rotate(3deg); } 100% { transform: scale(1.05, 0.95) rotate(-1deg); } }
@keyframes glow { to { opacity: 0.12; } }
.day .board {
  position: relative; display: block; padding: 4px 15px 5px; border: 2.5px solid var(--ink); border-radius: 6px;
  background:
    linear-gradient(180deg, transparent 0 31%, rgba(43, 26, 18, 0.35) 31% 34%, transparent 34% 64%, rgba(43, 26, 18, 0.35) 64% 67%, transparent 67%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 3px, transparent 3px 11px),
    linear-gradient(180deg, #d8a25e, #b87a3a 60%, #9a6229);
  box-shadow: 0 3px 0 var(--ink), inset 0 2px 0 rgba(255, 230, 170, 0.55), inset 0 -3px 0 rgba(80, 45, 15, 0.45);
}
.day .board b {
  display: block; font-family: var(--head); font-size: 20px; line-height: 1; color: #ffe7a8; letter-spacing: 0.5px;
  -webkit-text-stroke: 3px #4a1f05; paint-order: stroke fill;
  text-shadow: 0 2px 0 #6b3408;
}
.day .nail { position: absolute; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: #3a3f46; box-shadow: 0 0 0 1px var(--ink); }
.day .nail.a { left: 4px; } .day .nail.b { right: 4px; }
@media (prefers-reduced-motion: reduce) { .day .torch .fl, .day .torch .glow { animation: none; } }
.clock { text-align: left; line-height: 1.05; text-shadow: 0 2px 0 var(--ink); }
.clock small { display: block; font-size: 13px; font-weight: 800; }
.clock.last small { color: #ff8fa3; }
.clock.last b { color: #ff5a76; animation: pulse 1s ease-in-out infinite; display: inline-block; }
@keyframes pulse { 50% { transform: scale(1.08); } }
.clock b { font-size: 19px; font-weight: 900; color: var(--sun); font-variant-numeric: tabular-nums; }
.tug { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.tug .n, .gtug .n {
  position: relative; display: flex; align-items: center; gap: 4px; min-width: 64px; justify-content: center; font-weight: 900; font-size: 15px; padding: 2px 7px 2px 5px; color: #fff; border-radius: 9px; border: 2px solid var(--ink);
  font-variant-numeric: tabular-nums; box-shadow: 0 2px 0 var(--ink);
}
.n.ig { background: var(--ig-grad); }
.n.tt { background: var(--tt); box-shadow: -2px 0 0 var(--cyan) inset, 2px 0 0 var(--red) inset, 0 2px 0 var(--ink); }
.bar { position: relative; flex: 1; height: 14px; border-radius: 99px; border: 2px solid var(--ink); background: var(--tt); overflow: visible; box-shadow: 0 2px 0 var(--ink); }
.bar .fill-ig { position: absolute; inset: 0 auto 0 0; width: 50%; border-radius: 99px 0 0 99px; background: var(--ig-grad); transition: width 0.8s ease; }
.bar .mid { position: absolute; left: 50%; top: -5px; bottom: -5px; width: 2px; background: var(--cream); opacity: 0.8; }
.bar .knot { position: absolute; top: 50%; left: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: var(--sun); border: 2px solid var(--ink); transition: left 0.8s ease; }
.n .ic { display: inline-grid; width: 16px; height: 16px; flex: none; }
.n .ic svg { width: 16px; height: 16px; display: block; }
.me-ig .tug .n.ig, .me-tt .tug .n.tt, .me-ig .gtug .n.ig, .me-tt .gtug .n.tt { outline: 2px solid var(--sun); outline-offset: 1px; }
.me-ig .tug .n.ig::after, .me-tt .tug .n.tt::after {
  content: "אתם"; position: absolute; top: -9px; left: 50%; transform: translateX(-50%); font-size: 10.5px; line-height: 1; font-weight: 900;
  color: var(--ink); background: var(--sun); border: 1.5px solid var(--ink); border-radius: 6px; padding: 1px 5px; direction: rtl;
}
.n.bump { animation: bump 0.5s ease-out 3; }
@keyframes bump { 40% { transform: scale(1.18); } }
.stake { margin: 7px auto 0; width: fit-content; max-width: 100%; display: flex; align-items: center; gap: 6px; text-align: center; text-wrap: balance; font-size: 13px; font-weight: 700; line-height: 1.25; color: var(--ink);
  background: var(--paper); border: 2px solid var(--ink); border-radius: 14px; padding: 3px 12px 4px 10px; box-shadow: 0 2px 0 var(--ink); }
.stake svg { width: 20px; height: 20px; flex: none; }
.stake b { font-weight: 900; display: block; }
.stake small { display: block; font-size: 12px; font-weight: 700; opacity: 0.8; }

/* bottom dock: chart paper */
.dock {
  position: absolute; left: calc(10px + var(--sl)); right: calc(10px + var(--sr)); bottom: calc(10px + var(--sb)); z-index: 3;
  background: var(--paper); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 20px; box-shadow: 0 5px 0 var(--ink);
  padding: 12px 12px 10px;
  background-image: linear-gradient(rgba(36,23,15,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(36,23,15,0.05) 1px, transparent 1px);
  background-size: 18px 18px;
}
.me { display: flex; align-items: center; gap: 10px; }
.badge { width: 40px; height: 40px; flex: none; border-radius: 12px; border: 2px solid var(--ink); background: var(--paper2); display: grid; place-items: center; }
.badge.ig { background: var(--ig-grad); }
.badge.tt { background: var(--tt); }
.badge svg { width: 24px; height: 24px; }
.who { flex: 1; min-width: 0; line-height: 1.15; }
.who b { display: block; font-family: var(--head); font-size: 19px; font-weight: 400; }
.who small { font-size: 13px; font-weight: 700; opacity: 0.85; }
.streak { display: inline-flex; align-items: center; gap: 3px; font-weight: 900; color: #b4520a; }
.streak svg { width: 15px; height: 15px; }
.mine-pts { text-align: center; line-height: 1.05; }
.mine-pts small { display: block; font-size: 13px; font-weight: 800; opacity: 0.85; }
.mine-pts.none b { display: none !important; }
.mine-pts .zero { font-size: 13px; opacity: 1; color: #8a3b12; }
#myPts.bump { display: inline-block; animation: bump 0.5s ease-out 3; }
.mine-pts b { font-size: 20px; font-weight: 900; font-variant-numeric: tabular-nums; }
.goal { margin-top: 9px; }
.goal-bar { height: 12px; border-radius: 99px; border: 2px solid var(--ink); background: #e8d6ad; overflow: hidden; }
.goal-bar i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(-45deg, #6aab43 0 8px, #5d9c3a 8px 16px); border-left: 2px solid var(--ink); transition: width 0.8s ease; }
.goal-txt { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; margin-top: 4px; }
#goalTxt { display: flex; align-items: center; gap: 4px; min-width: 0; }
#goalTxt span { line-height: 1.25; }
#goalTxt b { font-weight: 900; }
#goalPct { flex: none; }
#goalTxt svg { width: 16px; height: 16px; flex: none; }
.goal.done .goal-bar i { background: repeating-linear-gradient(-45deg, #fed577 0 8px, #f2c04d 8px 16px); }
.goal.done #goalTxt { color: #8a5a00; }
/* the play button: the hero of the dock and of the ground (its look: css/buttons.css, .kb-hero) */
.plays, .gbtns { display: flex; margin-top: 10px; }
.plays .play, .gbtns .play { flex: 1; }
/* a small rope with its knot, in the two tribes' colours */
.rope { position: absolute; right: 9px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; border: 2px solid var(--ink); background: #101014; }
.rope::before { content: ""; position: absolute; left: 2px; right: 2px; top: 50%; height: 4px; margin-top: -2px; border-radius: 3px;
  background: linear-gradient(90deg, #dd2a7b 0 30%, #e9c98a 30% 70%, #25f4ee 70%); }
.rope::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--sun); border: 1.5px solid var(--ink); }
.row2 { display: flex; gap: 7px; margin-top: 10px; align-items: stretch; }
.row2 .dive { flex: 1.15; min-height: 58px; padding: 0 8px var(--lipH); font-size: 15.5px; gap: 6px; }
.row2 .dive .ki { width: 28px; height: 28px; }
.row2 .dive { white-space: nowrap; }
@media (max-width: 380px) { .row2 .dive { font-size: 14.5px; gap: 4px; padding-inline: 6px; } .row2 .dive .ki { width: 24px; height: 24px; } .row2, .tabs { gap: 6px; } }
.dive.loading .ki { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tabs { flex: 2.2; display: flex; gap: 7px; }
.tabs .kb-tab { flex: 1; min-width: 0; }
.dock.wait .plays, .dock.wait .row2, .dock.wait .goal { opacity: 0.55; pointer-events: none; }
.dock.wait .plays .play::after, .dock.wait .kh-ic, .dock.wait .kh-go { animation: none; }

/* first visit: what this is */
.intro {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); width: min(340px, calc(100% - 32px)); z-index: 4;
  background: var(--paper); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 18px; box-shadow: 0 4px 0 var(--ink);
  padding: 14px 16px 12px; text-align: center; animation: rise 0.3s ease-out;
}
.intro p { margin: 0 0 10px; font-size: 16px; line-height: 1.45; font-weight: 700; }
.intro button { min-width: 130px; }
/* the data did not come */
.oops {
  position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); width: min(320px, calc(100% - 32px)); z-index: 5;
  background: var(--paper); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 18px; box-shadow: 0 4px 0 var(--ink);
  padding: 16px; text-align: center;
}
.oops b { display: block; font-family: var(--head); font-weight: 400; font-size: 22px; }
.oops p { margin: 4px 0 12px; font-size: 15px; font-weight: 700; }
.oops button { width: 100%; }
.toast {
  position: absolute; left: 50%; top: calc(128px + var(--st)); transform: translateX(-50%); z-index: 7; max-width: calc(100% - 32px); width: max-content;
  text-align: center; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 12px; box-shadow: 0 3px 0 var(--ink);
  padding: 8px 12px; font-weight: 800; font-size: 14px; pointer-events: none;
}
.toast.big { font-family: var(--head); font-weight: 400; font-size: 20px; background: var(--sun); padding: 10px 16px; animation: rise 0.3s ease-out; }
.going {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 7; display: flex; align-items: center; gap: 10px;
  background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 99px; box-shadow: 0 3px 0 var(--ink); padding: 10px 18px; font-weight: 900; font-size: 16px;
}
.spin { width: 18px; height: 18px; border-radius: 50%; border: 3px solid rgba(36,23,15,0.25); border-top-color: var(--ink); animation: spin 0.8s linear infinite; }
.confetti { position: absolute; left: 0; right: 0; bottom: 30%; height: 0; z-index: 8; pointer-events: none; }
.confetti i { position: absolute; bottom: 0; width: 8px; height: 12px; border-radius: 2px; animation: conf 1.8s cubic-bezier(.2,.6,.4,1) forwards; }
@keyframes conf { 60% { opacity: 1; } to { transform: translate(var(--dx), var(--dy)) rotate(var(--r)); opacity: 0; } }

/* ---------- ground ---------- */
#groundView { background: #9fd8ea; }
#gl { position: absolute; inset: 0; touch-action: none; }
#gl canvas { display: block; width: 100%; height: 100%; touch-action: none; }
#labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.lbl {
  position: absolute; left: 0; top: 0; pointer-events: auto; white-space: nowrap; will-change: transform;
  font-weight: 800; font-size: 13px; color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: 10px;
  padding: 4px 9px 4px; box-shadow: 0 2px 0 var(--ink); min-height: 30px; display: flex; align-items: center; gap: 5px;
}
.lbl::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 9px; height: 9px; background: var(--paper); border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateX(-50%) rotate(45deg); }
.lbl.new { background: var(--sun); }
.lbl.new::after { background: var(--sun); }
.lbl.new::before { content: "חדש"; font-size: 12px; color: #fff; background: var(--red); border-radius: 6px; padding: 1px 5px; border: 1.5px solid var(--ink); }
.lbl.far { opacity: 0.8; font-size: 12px; }
.gtop { position: absolute; top: 0; left: 0; right: 0; padding: calc(10px + var(--st)) calc(12px + var(--sr)) 0 calc(12px + var(--sl)); display: flex; justify-content: space-between; align-items: flex-start; z-index: 3; pointer-events: none; }
.gtop .up { pointer-events: auto; min-height: 48px; }
.gchip { pointer-events: none; display: flex; align-items: center; gap: 6px; font-weight: 900; color: var(--ink); background: var(--paper); border: 2.5px solid var(--ink); border-radius: 14px; box-shadow: 0 3px 0 var(--ink); padding: 4px 6px 4px 10px; min-height: 46px; }
.gchip .gc { display: inline-flex; align-items: center; gap: 5px; font-family: var(--head); font-weight: 400; font-size: 17px; color: #fff; border: 2px solid var(--ink); border-radius: 10px; padding: 2px 8px; }
.gchip .gc.ig { background: var(--ig-grad); }
.gchip .gc.tt { background: var(--tt); box-shadow: -2px 0 0 var(--cyan) inset, 2px 0 0 var(--red) inset; }
.gchip .gc svg { width: 16px; height: 16px; }
.gchip small { font-size: 13px; font-weight: 900; }
.hint {
  position: absolute; left: 50%; top: calc(68px + var(--st)); transform: translateX(-50%); z-index: 2; pointer-events: none;
  font-size: 13px; font-weight: 800; background: rgba(7,35,58,0.8); padding: 4px 12px; border-radius: 99px; white-space: nowrap; max-width: calc(100% - 24px); text-align: center;
  transition: opacity 0.6s;
}
.hint.gone { opacity: 0; }
.hint.off { visibility: hidden; }
.card {
  position: absolute; left: 12px; right: 12px; bottom: calc(150px + var(--sb)); z-index: 4; color: var(--ink); background: var(--paper);
  border: 2.5px solid var(--ink); border-radius: 18px; box-shadow: 0 4px 0 var(--ink); padding: 10px 14px 11px; animation: rise 0.28s ease-out;
  max-height: 38vh; overflow-y: auto;
}
@keyframes rise { from { transform: translateY(16px); opacity: 0; } }
.card small { font-weight: 900; font-size: 13px; color: #a2361a; }
.card { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
.card .pic { grid-row: 1; width: 64px; height: 64px; border-radius: 14px; border: 2.5px solid var(--ink); box-shadow: 0 2px 0 var(--ink); background: #2f8fb0; }
.card.new .pic { border-color: var(--red); box-shadow: 0 0 0 2px var(--sun), 0 2px 0 var(--ink); }
.card .ctext { grid-row: 1; min-width: 0; padding-left: 34px; }
.card .pic[hidden] + .ctext { grid-column: 1 / -1; }
.card p { grid-column: 1 / -1; margin: 8px 0 0; }
.card.new small { color: #fff; background: var(--red); border: 1.5px solid var(--ink); border-radius: 6px; padding: 0 6px; }
.card h3 { margin: 2px 0 0; font-family: var(--head); font-weight: 400; font-size: 21px; line-height: 1.15; }
.card p { font-size: 14.5px; line-height: 1.4; font-weight: 600; }
.card .x { position: absolute; top: 8px; left: 8px; width: 40px; height: 40px; min-height: 40px; }
.gbar { position: absolute; left: calc(10px + var(--sl)); right: calc(10px + var(--sr)); bottom: calc(10px + var(--sb)); z-index: 3; }
.gtug { margin: 0; padding: 6px 8px; background: rgba(7,35,58,0.8); border-radius: 14px; }
.gtug-row { display: flex; align-items: center; gap: 6px; }
.gme { text-align: center; font-size: 13px; font-weight: 800; margin-top: 5px; color: var(--cream); }
.gme b { color: var(--sun); font-variant-numeric: tabular-nums; }
.gbtns { margin-top: 8px; }
.ground2d #gl { display: none; }

/* the dive: a flash of cloud between the map and the ground */
.dive-veil { position: absolute; inset: 0; pointer-events: none; z-index: 6; opacity: 0; background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.0) 20%, rgba(235,246,250,0.95) 75%); transition: opacity 0.35s; }
.dive-veil.on { opacity: 1; }

/* ---------- sheets ---------- */
.scrim { position: absolute; inset: 0; background: rgba(5,20,34,0.5); z-index: 8; animation: fade 0.2s; }
@keyframes fade { from { opacity: 0; } }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 9; max-height: 82%; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: var(--paper); color: var(--ink); border-top: 2.5px solid var(--ink); border-radius: 24px 24px 0 0;
  padding: 8px 18px calc(22px + var(--sb)); animation: up 0.28s cubic-bezier(.2,.9,.3,1.2);
  touch-action: pan-y;
}
@keyframes up { from { transform: translateY(100%); } }
.sheet .x { position: absolute; top: 10px; left: 12px; }
.sheet h2:focus { outline: none; }
.grip { width: 44px; height: 5px; border-radius: 9px; background: rgba(36,23,15,0.3); margin: 0 auto 10px; }
.sheet h2 { font-family: var(--head); font-weight: 400; font-size: 25px; margin: 2px 0 2px; padding-left: 44px; }
.sheet .sub { margin: 0 0 12px; font-size: 14px; font-weight: 700; opacity: 0.85; }
.quote { position: relative; background: #fff; border: 2px solid var(--ink); border-radius: 16px; padding: 12px 14px; box-shadow: 0 3px 0 var(--ink); }
.quote .u { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 15px; direction: rtl; }
.quote .u > b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; unicode-bidi: plaintext; }
.quote p { margin: 10px 0 2px; font-size: 16px; line-height: 1.45; font-weight: 600; }
/* the series' winning comment: gold border, soft glow, avatar with a crown, a heart with the count */
.quote.win { margin-top: 18px; border: 3px solid #f2b51d; box-shadow: 0 0 0 2px var(--ink), 0 0 22px 4px rgba(254,213,119,0.75), 0 5px 0 2px var(--ink); padding-top: 14px; }
.quote .av { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; border: 2.5px solid var(--ink); display: grid; place-items: center; color: #fff; font: 400 21px/1 var(--head); }
.quote.ig .av { background: var(--ig-grad); }
.quote.tt .av { background: var(--tt); box-shadow: -2px 0 0 var(--cyan) inset, 2px 0 0 var(--red) inset; }
.quote .av i { font-style: normal; text-shadow: 0 1px 0 var(--ink); }
.quote .av svg { position: absolute; top: -17px; left: 50%; width: 28px; height: 28px; margin-left: -14px; transform: rotate(-8deg); }
.quote .likes { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 16px; font-weight: 900; color: var(--ink); background: #ffe3ea; border: 2px solid var(--ink); border-radius: 99px; padding: 2px 10px 2px 8px; }
.quote .likes svg { width: 18px; height: 18px; }
.quote .ribbon { position: absolute; top: -13px; left: 14px; font: 400 13px/1 var(--head); color: var(--ink); background: var(--sun); border: 2px solid var(--ink); border-radius: 8px; padding: 4px 8px 5px; transform: rotate(-3deg); }
.sheet .btn, .daycard .btn, .ox-in .btn { display: flex; width: 100%; margin-top: 14px; }
ol.lead { list-style: none; padding: 0; margin: 0; counter-reset: l; }
ol.lead li { display: flex; align-items: center; gap: 9px; min-height: 46px; padding: 6px 8px; border-bottom: 1.5px dashed rgba(36,23,15,0.25); font-weight: 800; }
ol.lead .rk { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--ink); background: #fff; font-weight: 900; font-size: 14px; }
ol.lead li.m1 .rk, ol.lead li.m2 .rk, ol.lead li.m3 .rk { border: 0; background: none; }
ol.lead .rk svg { width: 34px; height: 34px; display: block; }
ol.lead .dot { width: 14px; height: 14px; flex: none; border-radius: 50%; border: 2px solid var(--ink); }
ol.lead .dot.ig { background: var(--ig-grad); }
ol.lead .dot.tt { background: var(--tt); box-shadow: -2px 0 0 var(--cyan) inset, 2px 0 0 var(--red) inset; }
ol.lead .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; unicode-bidi: plaintext; text-align: right; }
ol.lead li.m1 { font-size: 17px; }
ol.lead li b { font-variant-numeric: tabular-nums; font-size: 16px; }
ol.lead .rk.out { font-size: 11px; }
ol.lead.pinned { margin-top: 8px; border-top: 2px dashed rgba(36,23,15,0.35); padding-top: 6px; }
.result { display: flex; gap: 10px; align-items: stretch; margin-top: 6px; }
.result > div { flex: 1; border: 2px solid var(--ink); border-radius: 14px; padding: 10px; text-align: center; box-shadow: 0 3px 0 var(--ink); color: #fff; }
.result .ig { background: var(--ig-grad); }
.result .tt { background: var(--tt); }
.result b { display: block; font-size: 24px; font-weight: 900; font-variant-numeric: tabular-nums; }
.result small { font-weight: 800; }
.crown { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 900; color: var(--ink); background: var(--sun); border-radius: 6px; padding: 1px 6px; border: 1.5px solid var(--ink); }
.note { font-size: 14px; font-weight: 700; opacity: 0.85; margin-top: 12px; line-height: 1.4; }
ol.lead li.me { background: var(--sun); border: 2px solid var(--ink); border-radius: 12px; box-shadow: 0 2px 0 var(--ink); }
.mine { margin: 12px 0 0; font-size: 15px; font-weight: 800; }
.switch { margin: 14px 0 0; text-align: center; font-size: 13px; font-weight: 700; opacity: 0.85; }

/* ---------- tribe choice ---------- */
.pick {
  position: absolute; left: calc(10px + var(--sl)); right: calc(10px + var(--sr)); bottom: calc(10px + var(--sb)); z-index: 7; color: var(--ink); text-align: center;
  background: var(--paper); border: 2.5px solid var(--ink); border-radius: 22px; box-shadow: 0 5px 0 var(--ink); padding: 16px 14px 14px;
}
.pick h2 { margin: 0; font-family: var(--head); font-weight: 400; font-size: 26px; }
.pick p { margin: 4px 0 12px; font-size: 14px; font-weight: 700; opacity: 0.85; }
.pick-row { display: flex; gap: 10px; }
.pick button { flex: 1; flex-direction: column; gap: 2px; min-height: 92px; line-height: 1.15; }
.pick button .ki { width: 26px; height: 26px; }
.pick button b { display: block; font-family: var(--head); font-weight: 400; font-size: 22px; }
.pick button small { font-weight: 800; font-size: 13px; opacity: 0.95; }
.choosing .dock { display: none; }

@media (min-height: 760px) { .dock { padding: 14px 14px 12px; } }
@media (max-height: 700px) { .plays { margin-top: 8px; } .plays .kb-hero { min-height: 64px; } .goal { margin-top: 6px; } .dock { padding: 10px 10px 8px; } }
@media (max-width: 345px) {
  .tug .n, .gtug .n { min-width: 0; font-size: 13.5px; }
  .hint { white-space: normal; } .stake { font-size: 12px; } .logo { font-size: 22px; }
  .dive .ki { display: none; } .dive { font-size: 14px; flex: 1; } .kb-tab { font-size: 12.5px; }
  .kb-hero .kh-t b, .kb-hero .kh-t b.long { font-size: 17px; } .kb-hero .kh-go { display: none; }
  .pin.secret { display: none; } .intro p { font-size: 14px; } .who b { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- a closed day: the rope, both totals, what each tribe gets ---------- */
.ycard { margin-top: 6px; text-align: center; }
.ycard .rope-art { display: block; width: 100%; max-width: 300px; height: auto; margin: 2px auto 4px; }
.ycard.empty { background: #fff8e8; border: 2px dashed rgba(36,23,15,0.4); border-radius: 16px; padding: 10px 12px 14px; }
.ycard.empty b { display: block; font-family: var(--head); font-weight: 400; font-size: 20px; margin-top: 2px; }
.ycard.empty span { display: block; font-size: 14px; font-weight: 700; opacity: 0.85; margin-top: 4px; line-height: 1.4; }
.ycard .yhead { margin: 0; font-family: var(--head); font-size: 21px; }
.sides { display: flex; gap: 10px; align-items: stretch; margin-top: 4px; }
.sides .side { position: relative; flex: 1; min-width: 0; border: 2.5px solid var(--ink); border-radius: 16px; padding: 10px 8px 9px; box-shadow: 0 3px 0 var(--ink); color: #fff; text-align: center; }
.sides .ig { background: var(--ig-grad); }
.sides .tt { background: var(--tt); box-shadow: -3px 0 0 var(--cyan) inset, 3px 0 0 var(--red) inset, 0 3px 0 var(--ink); }
.sides .side.won { outline: 3px solid var(--sun); outline-offset: 2px; }
.sides .side small { display: inline-flex; align-items: center; gap: 4px; font-weight: 900; font-size: 14px; }
.sides .side small svg { width: 16px; height: 16px; }
.sides .you { font-style: normal; font-size: 11px; color: var(--ink); background: var(--sun); border: 1.5px solid var(--ink); border-radius: 6px; padding: 0 5px; }
.sides .tot { display: block; font-size: 27px; font-weight: 900; font-variant-numeric: tabular-nums; text-shadow: 0 2px 0 var(--ink); line-height: 1.15; }
.sides ul { list-style: none; margin: 6px 0 0; padding: 0; text-align: start; }
.sides li { display: flex; gap: 5px; align-items: flex-start; font-size: 13px; font-weight: 700; line-height: 1.3; margin-top: 5px; background: rgba(255,255,255,0.16); border-radius: 9px; padding: 4px 6px; }
.sides li svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.sides li b { font-weight: 900; }
.sides .miss { opacity: 0.85; }
.crownb { position: absolute; top: -22px; left: 50%; margin-left: -17px; width: 34px; height: 34px; transform: rotate(-8deg); }
.crownb svg { width: 34px; height: 34px; display: block; }

/* the result moment */
.daycard { position: absolute; inset: 0; z-index: 10; display: flex; align-items: center; justify-content: center; padding: calc(16px + var(--st)) 14px calc(16px + var(--sb));
  background: rgba(5,20,34,0.72); overflow-y: auto; animation: fade 0.25s; }
.dc-in { width: 100%; max-width: 400px; margin: auto; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 24px; box-shadow: 0 6px 0 var(--ink);
  padding: 16px 14px 14px; text-align: center; animation: pop 0.4s cubic-bezier(.3,1.5,.5,1);
  background-image: linear-gradient(rgba(36,23,15,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(36,23,15,0.05) 1px, transparent 1px); background-size: 18px 18px; }
@keyframes pop { from { transform: scale(0.85); opacity: 0; } }
.dc-top { margin: 0; display: inline-block; font-weight: 900; font-size: 13px; background: var(--ink); color: var(--sun); border-radius: 8px; padding: 2px 10px 3px; }
.daycard h2 { margin: 6px 0 0; font-family: var(--head); font-weight: 400; font-size: 34px; line-height: 1.1; }
.daycard h2:focus { outline: none; }
.daycard.won h2 { color: #f2a000; -webkit-text-stroke: 1.2px var(--ink); paint-order: stroke fill; text-shadow: 0 3px 0 var(--ink); font-size: 40px; }
.dc-sub { margin: 4px 0 6px; font-size: 15px; font-weight: 700; }
.dc-txt { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 4px 4px 12px; font-size: 15px; font-weight: 700; line-height: 1.4; text-align: start; }
.dc-txt .spin { flex: none; }
.daycard .ycard.big { margin-top: 14px; }
.daycard .rope-art { max-width: 260px; }
.dc-me { margin: 12px 0 0; font-size: 16px; font-weight: 800; }
.dc-me b { font-size: 20px; }
.dc-btns { display: flex; gap: 8px; margin-top: 4px; }
.dc-btns .btn { flex: 1; width: auto; }
.dc-btns #dcShare { flex: 0.7; }
.dc-btns svg { width: 22px; height: 22px; }
@media (max-width: 345px) { .daycard h2 { font-size: 29px; } .daycard.won h2 { font-size: 33px; } .sides .tot { font-size: 22px; } .sides li { font-size: 12px; } .stake { font-size: 12px; } }
@media (min-width: 560px) { #app { box-shadow: 0 0 0 1px rgba(0,0,0,0.25), 0 0 40px rgba(0,0,0,0.35); } }
/* the tug islet's name on the map (a tap opens the tug) */
.pin.isletTag { font-weight: 900; font-size: 12.5px; color: var(--ink); background: var(--paper, #fbf1da); border: 2px solid var(--ink); border-radius: 8px; padding: 2px 8px 3px; box-shadow: 0 2px 0 var(--ink); display: flex; align-items: center; gap: 5px; }
/* the islet's mark: the two tribes' logo coins pulling one rope, the red flag in the middle */
.pin.isletTag::after { content: ""; width: 40px; height: 20px; order: -1; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 40'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='1' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%23f58529'/%3E%3Cstop offset='.5' stop-color='%23dd2a7b'/%3E%3Cstop offset='1' stop-color='%238134af'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M16 21h48' stroke='%232B1A12' stroke-width='8' stroke-linecap='round'/%3E%3Cpath d='M16 21h48' stroke='%23e2b877' stroke-width='4.4' stroke-linecap='round'/%3E%3Cpath d='M22 19l3 4M29 19l3 4M36 19l3 4M44 19l3 4M51 19l3 4M58 19l3 4' stroke='%23a87a3e' stroke-width='1.6'/%3E%3Cpath d='M40 21v13' stroke='%232B1A12' stroke-width='2'/%3E%3Cpath d='M40 23l8 4-8 4z' fill='%23e8322e' stroke='%232B1A12' stroke-width='2' stroke-linejoin='round'/%3E%3Ccircle cx='13' cy='20' r='11' fill='url(%23g)' stroke='%232B1A12' stroke-width='2.6'/%3E%3Crect x='7.6' y='14.6' width='10.8' height='10.8' rx='3.4' fill='none' stroke='%23fff' stroke-width='1.9'/%3E%3Ccircle cx='13' cy='20' r='2.6' fill='none' stroke='%23fff' stroke-width='1.9'/%3E%3Ccircle cx='16.2' cy='16.9' r='.9' fill='%23fff'/%3E%3Ccircle cx='67' cy='20' r='11' fill='%23101014' stroke='%232B1A12' stroke-width='2.6'/%3E%3Cpath d='M68.6 13.5v8.6a2.7 2.7 0 1 1-2.3-2.7' fill='none' stroke='%2325f4ee' stroke-width='2' stroke-linecap='round' transform='translate(-.9 .5)'/%3E%3Cpath d='M68.6 13.5v8.6a2.7 2.7 0 1 1-2.3-2.7' fill='none' stroke='%23fe2c55' stroke-width='2' stroke-linecap='round' transform='translate(.7 -.3)'/%3E%3Cpath d='M68.6 13.5v8.6a2.7 2.7 0 1 1-2.3-2.7M68.6 13.5c.4 2 1.8 3.3 3.6 3.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }

/* ---------- the survivors: name tags, the survivor card ---------- */
.hint { top: calc(74px + var(--st)); }
#groundView:has(.openx.on-ground) .hint { top: calc(124px + var(--st)); }
.lbl.sv { font-size: 12px; min-height: 26px; padding: 2px 8px; direction: ltr; }
.lbl.sv.test { border-style: dashed; background: #f3ecdc; }
.lbl.sv.hl { font-size: 14px; background: var(--sun); box-shadow: 0 0 0 3px rgba(255,255,255,.75), 0 3px 0 var(--ink); z-index: 2; }
.lbl.sv.hl::after { background: var(--sun); }
.cmore { grid-column: 1 / -1; margin-top: 8px; display: grid; gap: 6px; }
.cmore .row { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 700; }
.cmore .row b { font-weight: 900; }
.cmore .pw { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 4px; background: #fff5da; border: 2px solid var(--ink); border-radius: 99px; font-weight: 900; }
.cmore .pw svg { width: 26px; height: 26px; }
.cmore .tag { font-size: 12px; font-weight: 900; color: #fff; background: #6b5a4a; border-radius: 6px; padding: 1px 6px; }
.cmore .me { justify-self: start; }
.cmore form { display: flex; gap: 6px; }
.cmore form input { flex: 1; min-width: 0; min-height: 44px; border: 2px solid var(--ink); border-radius: 10px; padding: 0 10px; font: 800 16px Heebo, Arial, sans-serif; direction: ltr; }
.cmore .note { font-size: 13px; font-weight: 700; color: #6b5a4a; }
.ycard .yisl { margin: 10px 0 0; display: flex; justify-content: center; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; }
.ycard .yisl svg { width: 20px; height: 20px; flex: none; }

/* "פתחו בדפדפן לחוויה מלאה": only inside the Instagram / TikTok app (js/openx.js). Small, under the top bar. */
.openx { display: inline-flex; align-items: stretch; pointer-events: auto; margin-top: 8px; background: linear-gradient(180deg, rgba(255,255,255,0.5), rgba(255,255,255,0) 55%) no-repeat, #fff8e8; color: var(--ink);
  border: 2.5px solid var(--ink); border-radius: 99px; box-shadow: inset 0 -4px 0 #e3cf9f, 0 3px 0 var(--ink); font-weight: 900; font-size: 13px; line-height: 1; overflow: hidden; }
.openx button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; transition: transform 0.08s ease-out; }
.openx button:active { transform: translateY(2px) scale(0.98); }
.openx .ox-go { display: inline-flex; align-items: center; gap: 6px; padding: 0 6px 3px 12px; min-height: 38px; }
.openx .ox-go svg { width: 17px; height: 17px; flex: none; padding: 3px; box-sizing: content-box; border-radius: 7px; background: var(--sun); border: 1.5px solid var(--ink); }
.openx .ox-x { padding: 0 11px 3px; font-size: 19px; font-weight: 900; border-inline-start: 2px solid rgba(36,23,15,0.2); min-width: 38px; }
.openx button:focus-visible { outline: 3px solid var(--ink); outline-offset: -4px; border-radius: 99px; }
.openx.on-ground { position: absolute; z-index: 2; top: calc(72px + var(--st)); right: calc(12px + var(--sr)); margin: 0; }
.oxcard { position: absolute; inset: 0; z-index: 11; display: flex; align-items: center; justify-content: center; padding: calc(16px + var(--st)) 16px calc(16px + var(--sb)); background: rgba(5,20,34,0.6); animation: fade 0.2s; }
.ox-in { position: relative; width: min(340px, 100%); max-height: 100%; overflow-y: auto; background: var(--paper); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 18px; box-shadow: 0 4px 0 var(--ink); padding: 16px 16px 14px; text-align: center; }
.ox-in .x { position: absolute; top: 8px; left: 8px; }
.ox-in h3 { margin: 4px 30px 8px; font-family: var(--head); font-weight: 400; font-size: 21px; line-height: 1.15; }
.ox-phone { display: block; margin: 0 auto 6px; }
.ox-in ol { text-align: right; margin: 6px 0 4px; padding-inline-start: 22px; font-size: 15.5px; font-weight: 700; line-height: 1.45; }
.ox-ic { display: inline-block; min-width: 26px; text-align: center; background: var(--sun); border: 1.5px solid var(--ink); border-radius: 8px; padding: 0 4px; line-height: 1.2; }
.ox-en { display: block; font-size: 13px; font-weight: 600; opacity: 0.75; }
.ox-note { margin: 6px 0 0; font-size: 14px; font-weight: 800; }
.ox-small { margin: 8px 0 0; font-size: 12.5px; opacity: 0.75; }

/* the tug strip (js/tugstrip.js): both totals and who leads, then the drawn rope, both teams and the red flag.
   Instagram always on the left, TikTok on the right, on an RTL page too. */
.tug { display: block; margin-top: 8px; padding: 5px 6px 0; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 14px; box-shadow: 0 2px 0 var(--ink); overflow: hidden; }
.ts-top { display: flex; align-items: center; gap: 6px; }
.ts-lead { flex: 1; min-width: 0; text-align: center; font-size: 12.5px; font-weight: 900; line-height: 1.1; color: var(--ink); white-space: nowrap; overflow: visible; }
/* who leads the tug: the tribe's own logo tile and a big +N, like a score bug */
.lead-b { display: inline-flex; align-items: center; gap: 0; vertical-align: middle; border: 2.5px solid var(--ink); border-radius: 12px; box-shadow: 0 3px 0 var(--ink); background: #fff; overflow: hidden; transform: rotate(-2deg); }
.lead-b .lg { display: grid; place-items: center; width: 34px; height: 32px; }
.lead-b .lg svg { width: 22px; height: 22px; }
.lead-b.ig .lg { background: var(--ig-grad); }
.lead-b.tt .lg { background: var(--tt); box-shadow: inset 2px 0 0 var(--cyan, #25f4ee), inset -2px 0 0 var(--red, #fe2c55); }
.lead-b b { padding: 0 10px 0 8px; font-family: var(--head); font-size: 21px; line-height: 32px; letter-spacing: 0.3px; }
.lead-b.ig b { color: #c13584; }
.lead-b.tt b { color: #101014; text-shadow: -1.5px 0 0 #25f4ee, 1.5px 0 0 #fe2c55; }
.lead-b.tie { padding: 4px 12px; font-family: var(--head); font-size: 17px; }
.lead-b.pop { animation: leadpop 0.5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes leadpop { 0% { transform: rotate(-2deg) scale(0.4); } 100% { transform: rotate(-2deg) scale(1); } }
.tug .n { min-width: 70px; font-size: 15px; box-shadow: none; }
.me-ig .tug .n.ig::after, .me-tt .tug .n.tt::after { top: auto; bottom: -8px; }
.ts-art { margin: 1px -6px 0; line-height: 0; }
.ts-svg { display: block; width: 100%; height: auto; aspect-ratio: 360 / 58; }
.gtug { padding: 0; background: none; }
.gme { width: fit-content; max-width: 100%; margin: 5px auto 0; padding: 3px 10px; background: rgba(7,35,58,0.82); border-radius: 10px; }
.who-sub { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.who .swbtn { min-height: 28px; padding: 0 7px var(--lipH); font-size: 12px; gap: 4px; }
.swbtn .ki { width: 14px; height: 14px; }
.swbtn::before { content: ""; position: absolute; inset: -9px -5px; } /* a bigger target than it looks */

/* the tribe switch card */
.swcard { position: absolute; inset: 0; z-index: 12; display: flex; align-items: center; justify-content: center; padding: calc(16px + var(--st)) 16px calc(16px + var(--sb)); background: rgba(7, 35, 58, 0.62); }
.sw-in { width: 100%; max-width: 360px; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 22px; box-shadow: 0 6px 0 var(--ink); padding: 18px 18px 16px; text-align: center; animation: swIn 0.28s ease-out; }
@keyframes swIn { from { transform: translateY(14px) scale(0.96); opacity: 0; } }
.sw-art { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--ink); }
.sw-art svg { width: 40px; height: 20px; }
.swcard.done .sw-art svg { opacity: 0.3; }
.swcard h2 { margin: 12px 0 0; font-family: var(--head); font-weight: 400; font-size: 24px; line-height: 1.2; text-wrap: balance; }
.swcard p { margin: 8px 0 0; font-size: 14.5px; font-weight: 600; line-height: 1.4; text-wrap: balance; }
.swcard .sw-go, .swcard .sw-stay { display: flex; width: 100%; }
.swcard .sw-go { margin-top: 18px; }
.swcard .sw-stay { margin-top: 14px; font-size: 15.5px; }
