/* Ticvoo — Girvoo's own table, with the bottle a clock and yes/no two icons. Nothing else (2026-11-17).

   «طلبت نفس Girvoo بالضبط لكن عوضا عن فكرة الزجاجة يكون الساعة بنفس المقاس للزجاجة و ايضا يجب ان يكون الدائرة
    التي تعد الثواني و بدل نعم / لا التي تظهر في Girvoo يكون ايقونتين صداقة حب»
   «لا اريد الساعة كلها ان تدور بل فقط العقارب تكون 12 و 6 و هي التي تلف و تقف عند اللاعبين»
   «عوضا عن ظهور القلب يجب ان يظهر ايقونة مااختاره اللاعبين منقسمة و تلتصق مع بعضها»

   Every piece of this table is Girvoo's own and untouched — the seats, the ring that counts the seconds, the
   scene that lifts the two chosen cards, the two answer buttons, the timings, the turn machine. This stylesheet
   is loaded by Ticvoo's page alone, and it does four things:

     1. the clock FACE stands still in the bottle's place, at the bottle's size;
     2. only TWO HANDS turn — one at 12 and one at 6, a single needle through the middle, which is the bottle's
        neck and the bottle's base: they turn and they stop pointing at the two players;
     3. yes / no wear ❤️ حب and 🤝 صداقة, in Girvoo's own two places (their words come from the panel);
     4. the split heart between the two cards becomes the ICON THE TWO CHOSE — split, and coming together.

   Not one file of Girvoo's is touched for any of it (CLAUDE.md §5). */

/* ── 1. the face: still, in the bottle's place, at the bottle's size ──────────────────────────────────────── */
/* It hangs on the wrap rather than on the button, because the TABLE turns the button — and he asked for a clock
   whose face does not turn. The wrap's own ::before paints under the button, so the hands sit on top of it. */
.bottle-wrap::before {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: calc(160 * var(--u)); height: calc(160 * var(--u));
  margin: calc(-80 * var(--u)) 0 0 calc(-80 * var(--u));
  /* The face whose heart is SMALL inside a wide dial — «اجعل الساعة اكبر و القلب داخلها اصغر» — and SQUARED ON
     ITS DIAL, not on the picture: he saw that too («الساعة ليست في منتصف الدائرة»). Measured in the drawing, the
     dial sat 11px left and the heart 12px above the picture's own centre, which is why the clock looked off the
     ring. Its bell is cut out of it and lives in bell-t1.webp, so the bell can ring on its own. */
  background: url("../img/clockface5-t1.webp") center / contain no-repeat;
  filter: drop-shadow(0 calc(5 * var(--u)) calc(9 * var(--u)) rgba(0, 0, 0, .45));
  pointer-events: none;
}

/* ── 2. the two hands — 12 and 6, one needle, and the only thing that turns ───────────────────────────────── */
/* The table gives this button its rotation (it is the bottle's own); the button carries nothing but the hands
   now, so what the player sees turning is the needle alone, on a face that stays where it is. */
.bottle {
  width: calc(160 * var(--u)) !important;
  height: calc(160 * var(--u)) !important;
  /* (its background is the pin, set further down) */
  filter: drop-shadow(0 calc(2 * var(--u)) calc(3 * var(--u)) rgba(0, 0, 0, .5));
}
.bottle .bottle-art, .bottle svg, .bottle img { display: none !important; }
/* Both hands are THE HEART'S OWN COLOUR — «تغيير العقرب بدايته يظهر سيئ للغاية بنفس لون القلب» (2026-11-17):
   the base of the old one was a blunt block that met the middle badly. Each one now tapers to a point at BOTH
   ends, so where they meet in the centre there is nothing to see but the pin.
   THEIR LENGTH IS THE CLOCK'S OWN: measured in clockface5-t1.webp, the drawn body reaches 55u of the 80u
   half-face (the square is wider than the clock because it was squared on the dial). At 62u the long hand
   stuck out past the case — seen on the table, not guessed. 50u and 33u keep both inside it. */
/* 12 — the long one: the bottle's neck */
.bottle::before {
  content: "";
  position: absolute; left: 50%; bottom: 50%;
  width: calc(11 * var(--u)); height: calc(50 * var(--u)); margin-inline-start: calc(-5.5 * var(--u));
  background: linear-gradient(#ff8fc0 0%, #ff4f93 45%, #c70247 100%);
  clip-path: polygon(50% 0, 100% 14%, 62% 100%, 38% 100%, 0 14%);
  filter: drop-shadow(0 0 calc(2 * var(--u)) rgba(199, 2, 71, .55));
}
/* 6 — the shorter one: the bottle's base, pointed the same way so neither end looks cut off */
.bottle::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: calc(11 * var(--u)); height: calc(33 * var(--u)); margin-inline-start: calc(-5.5 * var(--u));
  background: linear-gradient(#c70247 0%, #ff4f93 55%, #ff8fc0 100%);
  clip-path: polygon(38% 0, 62% 0, 100% 86%, 50% 100%, 0 86%);
  filter: drop-shadow(0 0 calc(2 * var(--u)) rgba(199, 2, 71, .55));
}
/* THE HANDS PIVOT ON THE HEART, not on the dial's centre — «حتى نقطة العقرب ليست في منتصف القلب». The heart is
   drawn 1.33% right and 2.03% above the dial's middle (measured in the file when it was cut), so the whole
   button that carries the hands is moved by exactly that, and the pin lands in the heart. */
.bottle { margin-inline-start: 1.33%; margin-top: -2.03%; }

/* THE BELL, which rings when the clock stops on the two — «عندما تتوقف يجب ان يهتز الجرس الذي في اعلى الساعة».
   It is cut out of the face's own drawing and put back on top, so it is the same bell and the only one.
   What "stopped" means, in the DOM: the scene of the two cards is up (Girvoo shows it the moment the clock has
   chosen), which `:has` can see from here. */
.bottle-wrap { --bell-w: 20.32%; }
.bottle-wrap::after {
  content: ""; position: absolute; left: 50%; top: 0.18%;
  width: var(--bell-w); aspect-ratio: 230 / 213;
  margin-inline-start: calc(var(--bell-w) / -2);
  background: url("../img/bell-t1.webp") center / contain no-repeat;
  transform-origin: 50% 12%;
  pointer-events: none;
}
.ring-box:has(.kiss-scene:not([hidden])) .bottle-wrap::after { animation: tic-bell .5s ease-in-out 3; }
@keyframes tic-bell {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(-13deg); }
  60% { transform: rotate(10deg); }
  85% { transform: rotate(-5deg); }
}
@media (prefers-reduced-motion: reduce) { .ring-box:has(.kiss-scene:not([hidden])) .bottle-wrap::after { animation: none; } }

/* The pin that covers where the two hands meet. It rides the HANDS, not the wrap — the wrap carries the bell
   now — and a circle turning with them shows nothing. */
.bottle {
  background: radial-gradient(circle at 50% 50%, #ffe9a8 0 calc(3 * var(--u)), #f0b429 calc(3 * var(--u)) calc(6 * var(--u)), transparent calc(6.2 * var(--u))) !important;
}
/* The shake, WHILE IT REALLY TURNS and not a moment longer. It used to hang on the ring being lit, which is the
   whole turn -- the clock trembled while the two were still answering. The wrap now carries data-turning="1" for
   exactly the spinning phase: one line in THIS game's own main.js, through the table's own public onRender hook,
   so Girvoo's table.js is not forked by a byte. The shake is a margin, never a transform: the table owns the
   button's rotation and a transform here would fight it. */
.bottle-wrap[data-turning="1"] .bottle { animation: tic-wobble .35s ease-in-out infinite; }
@keyframes tic-wobble {
  0%, 100% { margin-top: -2.03%; }
  50% { margin-top: calc(-2.03% - 1.6 * var(--u)); }
}
/* and it stops the instant the clock stops. The hook is set on every redraw, and the answer moment does not
   redraw the table, so the flag would linger into it; the scene of the two cards opens at exactly that moment,
   and the stylesheet can see it. Tap to stop, nothing more. */
.ring-box:has(.kiss-scene:not([hidden])) .bottle-wrap[data-turning="1"] .bottle { animation: none; }
@media (prefers-reduced-motion: reduce) { .bottle-wrap[data-turning="1"] .bottle { animation: none; } }

/* ── 3. the two answers: ❤️ حب and 🤝 صداقة, in Girvoo's own two places ───────────────────────────────────── */
.btn.yes { background: linear-gradient(160deg, #ff5f95, #c70247); }
.btn.no { background: linear-gradient(160deg, #3d7fd6, #27509b); }
.btn.yes .kb-ico, .btn.no .kb-ico { display: none; }
.btn.yes .kb-txt::before, .btn.no .kb-txt::before {
  margin-inline-end: calc(6 * var(--u));
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
}
.btn.yes .kb-txt::before { content: "\2764\FE0F"; }
.btn.no .kb-txt::before { content: "\1F91D"; }

/* the badge that lands on a card when that player has answered: their own icon, not a kiss */
.scene-choice { font-size: 0 !important; }
.scene-choice::before {
  font-size: calc(18 * var(--u));
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
}
.scene-choice.yes { box-shadow: 0 0 0 3px #c70247; }
.scene-choice.no { box-shadow: 0 0 0 3px #3d7fd6; }
.scene-choice.yes::before { content: "\2764\FE0F"; }
.scene-choice.no::before { content: "\1F91D"; }

/* ── 3b. the question between the two cards ──────────────────────────────────────────────────────────────── */
/* «لاحظ ايضا كيف يظهر النص بين الاثنين ليس احترافيا» (2026-11-18). Girvoo's question is three short words and fits
   the 80u column it is given; this game's is «صداقة أم حب؟», and in English and Russian it is longer still. With
   only a text-shadow behind it, it ran out over both photographs. It gets a plate of its own and a width it may
   not pass, so it is read on its own ground whatever the language. */
.kiss-scene .scene-mid { min-width: calc(106 * var(--u)); max-width: calc(106 * var(--u)); gap: calc(9 * var(--u)); }
.kiss-scene .scene-q {
  font-size: calc(15 * var(--u)); line-height: 1.3; font-weight: 800; text-align: center;
  padding: calc(7 * var(--u)) calc(10 * var(--u));
  border-radius: calc(13 * var(--u));
  background: linear-gradient(165deg, rgba(42, 12, 34, .94), rgba(16, 4, 14, .94));
  box-shadow: 0 calc(5 * var(--u)) calc(12 * var(--u)) rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .13);
  text-shadow: none;
}
.kiss-v2 .scene-q { letter-spacing: 0; text-shadow: none; }

/* ── 4. the icon they chose, split and coming together ───────────────────────────────────────────────────── */
/* Girvoo draws a heart in two halves here that join on a kiss and break on a no. The halves stay — it is his
   «منقسمة و تلتصق مع بعضها» — and only what they are made of changes: the icon the two actually chose.
   Which icon it is, is read off the two badges: both ❤️ (yes) or both 🤝 (no). */
.kheart { position: relative; }
.kheart svg { display: none !important; }
.kheart::before, .kheart::after {
  content: "\2764\FE0F";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: calc(70 * var(--u)); line-height: 1;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
  transition: transform .45s cubic-bezier(.3, 1.6, .5, 1), opacity .4s;
}
/* While the two are still choosing, the halves sit apart but STRAIGHT — one icon cut in two, waiting. They used
   to be thrown apart and tilted, which on an emoji reads as a heart already broken, before anyone had answered. */
.kheart::before { clip-path: inset(0 50% 0 0); transform: translateX(calc(-2.5 * var(--u))); }
.kheart::after { clip-path: inset(0 0 0 50%); transform: translateX(calc(2.5 * var(--u))); }
.kheart.joined::before, .kheart.joined::after { transform: none; }
.kheart.broken::before { transform: translateX(calc(-18 * var(--u))) rotate(-24deg); opacity: .6; }
.kheart.broken::after { transform: translateX(calc(18 * var(--u))) rotate(24deg); opacity: .6; }
/* both chose friendship: the halves are a handshake instead */
.kiss-scene:has(.scene-choice.no):not(:has(.scene-choice.yes)) .kheart::before,
.kiss-scene:has(.scene-choice.no):not(:has(.scene-choice.yes)) .kheart::after { content: "\1F91D"; }
/* and the kiss itself has no place here: the two halves say what happened */
.scene-lips { display: none !important; }
