/* The cook-off's screens (cooking.js builds them). Same soft UI as the town and fishing: cream cards, Fredoka, ink
   outlines; orange is you, teal is the rival and calm structure, gold is stars and rewards. Research rules: the judge's
   words stay pinned at the top while you pick; four big dish cards per course in the bottom third where the thumb is;
   the food is the hero, the room dims behind it; the verdict is the biggest screen in the game. */

/* the town's buttons step aside while cooking */
body.cooking .top, body.cooking .side, body.cooking .bottom, body.cooking .sign, body.cooking #prompt, body.cooking #hint, body.cooking #say { opacity: 0 !important; pointer-events: none !important; }
body.cooking .top *, body.cooking .side *, body.cooking .bottom *, body.cooking #menu { pointer-events: none !important; }
body.cooking #menu { display: none !important; }
body.cooking .fx-kidmark { display: none; }

.ck { position: fixed; z-index: 48; font-family: "Fredoka", system-ui, sans-serif; color: var(--ink, #4a3a30); -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
body:not(.cooking) .ck, body:not(.cooking) .ck * { visibility: hidden; pointer-events: none !important; }   /* gone in town: nothing invisible catches a town tap */
.ck button { font-family: inherit; color: inherit; -webkit-tap-highlight-color: transparent; cursor: pointer; }

/* top bar */
.ck-top { z-index: 58; left: 0; right: 0; top: 0; padding: calc(12px + env(safe-area-inset-top)) 12px 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; pointer-events: none; }
.ck-top button { pointer-events: auto; font-weight: 600; font-size: 16px; background: var(--card, #fffdf7); border: 0; border-radius: 999px; box-shadow: var(--shadow, 0 6px 18px rgba(74,58,48,.18));
  padding: 10px 15px; display: inline-flex; align-items: center; gap: 7px; }
.ck-top button:active { transform: scale(.96); }
.ck-top svg { width: 19px; height: 19px; }
.ck-topr { display: flex; gap: 8px; }
.ck-help { width: 42px; justify-content: center; padding: 10px 0 !important; font-size: 19px !important; }
.ck-round { background: rgba(74,58,48,.82); color: #fffdf7; font-size: 13px; padding: 7px 12px; border-radius: 999px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ck-round b { color: #ffc53d; font-weight: 600; }
#ckCount { font-variant-numeric: tabular-nums; font-size: 14px; }

/* the order: what the judge wants, pinned under the top bar */
.ck-order { left: 50%; top: calc(64px + env(safe-area-inset-top)); width: min(440px, calc(100vw - 24px)); transform: translateX(-50%) translateY(-12px); opacity: 0; pointer-events: none;
  background: var(--card, #fffdf7); border: 2.5px solid var(--ink, #4a3a30); border-radius: 18px; padding: 10px 14px 9px; box-shadow: 0 8px 22px rgba(74,58,48,.2); transition: opacity .25s, transform .25s cubic-bezier(.2,.9,.3,1.3); }
.ck-order.on { opacity: 1; transform: translateX(-50%); pointer-events: auto; cursor: pointer; }
.ck-ohead { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #a08a78; margin-bottom: 3px; }
.ck-ol { font-size: 16px; line-height: 1.35; margin: 2px 0; }
.ck-ol b { margin-right: 6px; }
.ck-ask { margin-top: 5px; font-size: 13px; color: #2f9fa8; font-weight: 500; }
.ck-ask.done { color: #a08a78; }

/* a speech bubble over someone in the kitchen */
.ck-bub { left: 0; top: 0; max-width: min(300px, 78vw); background: var(--card, #fffdf7); border: 2.5px solid var(--ink, #4a3a30); border-radius: 16px; padding: 8px 13px; font-size: 16px; line-height: 1.3;
  opacity: 0; pointer-events: none; transition: opacity .2s; box-shadow: 0 6px 16px rgba(74,58,48,.18); }
.ck-bub.on { opacity: 1; }
.ck-bub b { display: block; font-size: 13px; color: #ff8a3d; }
.ck-bub::after { content: ''; position: absolute; left: 50%; bottom: -9px; width: 14px; height: 14px; background: var(--card, #fffdf7); border-right: 2.5px solid var(--ink, #4a3a30); border-bottom: 2.5px solid var(--ink, #4a3a30); transform: translateX(-50%) rotate(45deg); }

/* the pick tray: three plate slots and four dish cards */
.ck-tray { left: 0; right: 0; bottom: 0; padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(rgba(255,253,247,0), rgba(255,253,247,.94) 22px); transform: translateY(105%); transition: transform .32s cubic-bezier(.2,.9,.3,1.1); }
.ck-tray.on { transform: none; }
.ck-slots { display: flex; justify-content: center; gap: 10px; margin-bottom: 8px; }
.ck-slot { background: none; border: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; opacity: .75; }
.ck-slot.cur { opacity: 1; }
.ck-slot small { font-size: 12px; font-weight: 600; }
.ck-slot.cur small { color: #ff8a3d; }
.ck-plate { width: 54px; height: 54px; border-radius: 50%; border: 2.5px dashed #c9b8a6; background: #fffdf7; display: grid; place-items: center; overflow: hidden; }
.ck-slot.cur .ck-plate { border-color: #ff8a3d; border-style: solid; box-shadow: 0 0 0 4px rgba(255,138,61,.2); }
.ck-slot.full .ck-plate { border-style: solid; border-color: var(--ink, #4a3a30); }
.ck-plate img { width: 120%; height: 120%; object-fit: cover; }
.ck-slot.pop .ck-plate { animation: ckPop .35s cubic-bezier(.2,.9,.3,1.6); }
@keyframes ckPop { 40% { transform: scale(1.18); } }
.ck-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 520px; margin: 0 auto; }
@media (min-width: 760px) { .ck-cards { grid-template-columns: repeat(4, 1fr); max-width: 760px; } }
.ck-dcard { background: var(--card, #fffdf7); border: 2.5px solid var(--ink, #4a3a30); border-radius: 16px; padding: 4px 6px 7px; display: grid; grid-template-columns: 62px 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 6px;
  text-align: left; min-height: 74px; box-shadow: 0 3px 0 var(--ink, #4a3a30); animation: ckIn .3s var(--d, 0ms) both cubic-bezier(.2,.9,.3,1.3); }
@keyframes ckIn { from { opacity: 0; transform: translateY(14px); } }
.ck-dcard img { grid-row: 1 / 3; width: 62px; height: 62px; object-fit: contain; }
.ck-dcard b { font-size: 15px; font-weight: 600; line-height: 1.15; align-self: end; }
.ck-dcard:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink, #4a3a30); }
.ck-dcard.sel { background: #fff1e4; border-color: #ff8a3d; box-shadow: 0 3px 0 #ff8a3d; }
.ck-dcard.hl { outline: 3px solid #2f9fa8; outline-offset: 2px; }
.ck-tags { display: flex; flex-wrap: wrap; gap: 3px; align-self: start; margin-top: 3px; }
.ck-tags i { font-style: normal; font-size: 11px; font-weight: 500; padding: 1px 6px; border-radius: 999px; background: #f1e8dc; }
.t-spicy { background: #ffd9d2 !important; color: #b8321f; } .t-saucy { background: #f3dcc8 !important; color: #8a4a22; } .t-plain { background: #eceae4 !important; color: #6b6156; }
.t-fancy { background: #e8dcf6 !important; color: #6a45a3; } .t-hearty { background: #ffe6c2 !important; color: #a8641c; } .t-fresh { background: #dcf2df !important; color: #2f7a3a; } .t-crispy { background: #fff1c2 !important; color: #8a6a10; }
.ck-cook { display: none; margin: 10px auto 0; font-size: 20px; font-weight: 600; background: #ff8a3d; color: #fff !important; border: 2.5px solid var(--ink, #4a3a30); border-radius: 999px; padding: 11px 40px; box-shadow: 0 4px 0 var(--ink, #4a3a30); }
.ck-cook.on { display: block; animation: ckPop .4s cubic-bezier(.2,.9,.3,1.6); }
.ck-cook:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink, #4a3a30); }

/* the plate tap */
.ck-tapper { left: 50%; bottom: calc(34px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(380px, calc(100vw - 32px)); background: rgba(74,58,48,.88); color: #fffdf7; border-radius: 20px; padding: 10px 16px 14px;
  text-align: center; opacity: 0; pointer-events: none; transition: opacity .2s; }
.ck-tapper.on { opacity: 1; pointer-events: auto; }
.ck-tapper b { display: block; font-size: 15px; color: #ffc53d; }
.ck-tapper span { font-size: 18px; font-weight: 600; }
.ck-tapper.perfect span { color: #ffc53d; }
.ck-meter { position: relative; height: 12px; margin-top: 8px; background: rgba(255,253,247,.18); border-radius: 999px; }
.ck-meter i:first-child { position: absolute; left: 37.5%; width: 25%; top: 0; bottom: 0; background: #ffc53d; border-radius: 999px; opacity: .85; }
.ck-meter i:last-child { position: absolute; top: -4px; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: #fffdf7; border: 2.5px solid #ff8a3d; }

/* the reveal: the dish's name on a ribbon, your rival's dish, the judges' paddles, the running totals */
.ck-ribbon { left: 50%; top: calc(66px + env(safe-area-inset-top)); transform: translateX(-50%) scale(.6); opacity: 0; background: #2f9fa8; color: #fffdf7; border: 2.5px solid var(--ink, #4a3a30); border-radius: 14px;
  padding: 5px 22px 7px; text-align: center; transition: opacity .2s, transform .35s cubic-bezier(.2,.9,.3,1.5); pointer-events: none; white-space: nowrap; }
.ck-ribbon.on { opacity: 1; transform: translateX(-50%); }
.ck-ribbon small { display: block; font-size: 12px; opacity: .85; text-transform: uppercase; letter-spacing: .08em; }
.ck-ribbon b { font-size: 22px; font-weight: 600; }
.ck-rival { right: 12px; top: 50%; background: var(--card, #fffdf7); border: 2px solid #2f9fa8; border-radius: 12px; padding: 4px 10px; font-size: 13px; opacity: 0; transition: opacity .2s; pointer-events: none; max-width: 44vw; }
.ck-rival.on { opacity: 1; }
.ck-rival small { color: #2f9fa8; font-weight: 600; display: block; }
.ck-react { left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(460px, calc(100vw - 24px)); display: flex; flex-direction: column; gap: 6px; opacity: 0; transition: opacity .2s; pointer-events: none; }
.ck-react.on { opacity: 1; }
.ck-rx { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 8px; background: var(--card, #fffdf7); border: 2.5px solid var(--ink, #4a3a30); border-radius: 16px; padding: 7px 10px;
  opacity: .25; transform: scale(.96); transition: opacity .2s, transform .3s cubic-bezier(.2,.9,.3,1.5); }
.ck-rx.on { opacity: 1; transform: none; }
.ck-face { font-size: 32px; line-height: 1; text-align: center; }
.ck-rx.on .ck-face { animation: ckPop .45s cubic-bezier(.2,.9,.3,1.6); }
.ck-rx b { font-size: 14px; display: block; }
.ck-rline { display: block; font-size: 15px; line-height: 1.25; min-height: 1.25em; }
.ck-rv { text-align: right; font-size: 11px; color: #2f9fa8; }
.ck-rv small { display: block; font-weight: 600; }
.ck-rv .ck-stars i { font-size: 12px; }
.ck-stars i { font-style: normal; font-size: 18px; color: #e3d8ca; letter-spacing: -1px; }
.ck-stars i.f { color: #ffc53d; text-shadow: 0 1px 0 #c8902a; }
.ck-tally { left: 50%; top: calc(132px + env(safe-area-inset-top)); transform: translateX(-50%); display: flex; align-items: center; gap: 10px; background: rgba(74,58,48,.84); color: #fffdf7; border-radius: 999px; padding: 4px 16px;
  opacity: 0; transition: opacity .2s; pointer-events: none; }
.ck-tally.on { opacity: 1; }
.ck-tv { text-align: center; } .ck-tv small { display: block; font-size: 10px; opacity: .8; } .ck-tv b { font-size: 20px; font-variant-numeric: tabular-nums; }
.ck-tv.you b { color: #ffb27a; } .ck-tv.them b { color: var(--them, #8fdbe2); filter: brightness(1.25); }
.ck-tvs { font-size: 11px; opacity: .8; }
.ck-flash { inset: 0; pointer-events: none; opacity: 0; }
.ck-flash.spot { background: radial-gradient(circle at 30% 50%, rgba(255,197,61,.0) 0, rgba(255,197,61,.0) 16%, rgba(42,29,20,.55) 34%); }
.ck-flash.spot.on { animation: ckSpot .9s ease-in-out; }
@keyframes ckSpot { 0% { opacity: 0; background-position: 0 0; } 25% { opacity: 1; } 100% { opacity: 0; } }

/* cards: the verdict, a new dish, how to play */
.ck-cardwrap { inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(42,29,20,.25); opacity: 0; pointer-events: none; transition: opacity .2s; }
.ck-cardwrap.on { opacity: 1; pointer-events: auto; }
.ck-card { width: min(400px, 100%); background: var(--card, #fffdf7); border: 3px solid var(--ink, #4a3a30); border-radius: 24px; padding: 18px 18px 16px; text-align: center; box-shadow: 0 14px 40px rgba(42,29,20,.3); max-height: calc(100vh - 40px); overflow: auto; }
.ck-card.pop { animation: ckCard .4s cubic-bezier(.2,.9,.3,1.35); }
@keyframes ckCard { from { transform: scale(.7); opacity: 0; } }
.ck-card h3 { margin: 2px 0 6px; font-size: 24px; font-weight: 600; }
.ck-kick { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #ff8a3d; font-weight: 600; }
.ck-vhead { font-size: 30px; font-weight: 700; }
.ck-vhead.win { color: #ff8a3d; } .ck-vhead.lose { color: #2f9fa8; }
.ck-vnums { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 6px 0 2px; }
.ck-vnums small { display: block; font-size: 13px; font-weight: 600; }
.ck-vnums b { font-size: 46px; line-height: 1; font-variant-numeric: tabular-nums; }
.ck-vnums .you b { color: #ff8a3d; } .ck-vnums .them b { color: var(--them, #2f9fa8); } .ck-vnums > span { color: #a08a78; font-weight: 700; font-size: 18px; }
.ck-vline { font-size: 17px; line-height: 1.35; margin: 8px 0; }
.ck-small, .ck-cost, .ck-tie { font-size: 13px; color: #a08a78; display: block; }
.ck-menu small { font-size: 12px; font-weight: 600; color: #2f9fa8; }
.ck-menu > div { display: flex; justify-content: center; gap: 6px; margin-top: 4px; }
.ck-menu span { width: 30%; } .ck-menu img { width: 64px; height: 64px; object-fit: contain; display: block; margin: 0 auto; } .ck-menu i { font-style: normal; font-size: 12px; line-height: 1.15; display: block; }
.ck-btns { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.ck-btn { font-size: 17px; font-weight: 600; background: #fffdf7; border: 2.5px solid var(--ink, #4a3a30); border-radius: 999px; padding: 10px 18px; box-shadow: 0 3px 0 var(--ink, #4a3a30); }
.ck-btn.go { background: #ff8a3d; color: #fff !important; font-size: 19px; }
.ck-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink, #4a3a30); }
.ck-rimg img { width: 170px; height: 170px; object-fit: contain; }
.ck-rimg.big { font-size: 80px; line-height: 1.2; }
.ck-how { text-align: left; padding-left: 22px; margin: 8px 0; font-size: 16px; line-height: 1.4; }
.ck-how li { margin: 4px 0; }

/* the recipe book */
.ck-bookwrap { inset: 0; z-index: 62; opacity: 0; pointer-events: none; transition: opacity .2s; }
.ck-bookwrap.on { opacity: 1; pointer-events: auto; }
.ck-bookbg { position: absolute; inset: 0; background: rgba(42,29,20,.35); }
.ck-book { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: min(620px, 100%); max-height: 86vh; overflow: auto; background: var(--card, #fffdf7); border: 3px solid var(--ink, #4a3a30); border-bottom: 0;
  border-radius: 24px 24px 0 0; padding: 16px 16px calc(18px + env(safe-area-inset-bottom)); }
.ck-book h3 { margin: 2px 0 8px; font-size: 22px; }
.ck-book h4 { margin: 12px 0 6px; font-size: 15px; color: #a08a78; }
.ck-x { position: absolute; right: 12px; top: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: #f1e8dc; display: grid; place-items: center; }
.ck-x svg { width: 15px; height: 15px; }
.ck-tabs { display: flex; gap: 6px; }
.ck-tabs button { flex: 1; font-size: 15px; font-weight: 600; border: 2px solid var(--ink, #4a3a30); background: #fffdf7; border-radius: 999px; padding: 7px 0; }
.ck-tabs button.cur { background: #2f9fa8; color: #fffdf7; }
.ck-bgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ck-bd { text-align: center; background: #faf3e8; border-radius: 14px; padding: 4px 4px 6px; }
.ck-bd img { width: 100%; max-width: 110px; aspect-ratio: 1; object-fit: contain; }
.ck-bd b { display: block; font-size: 13px; line-height: 1.15; }
.ck-bd small { display: block; font-size: 11px; color: #a08a78; }
.ck-bd .ck-stars i { font-size: 13px; }
.ck-bd.locked img { filter: brightness(0) opacity(.18); }
.ck-notes { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.ck-note { background: #faf3e8; border-radius: 14px; padding: 8px 12px; text-align: left; position: relative; }
.ck-note b { display: block; font-size: 16px; }
.ck-note span { display: block; font-size: 14px; }
.ck-note em { position: absolute; right: 10px; top: 8px; font-style: normal; font-size: 11px; font-weight: 600; background: #ffc53d; border-radius: 999px; padding: 1px 8px; }
.ck-switches { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.ck-switches input { width: 18px; height: 18px; vertical-align: -3px; accent-color: #2f9fa8; }

/* the wipe: a circle that closes on the door and opens on the kitchen */
.ck-wipe { position: fixed; inset: 0; z-index: 90; background: #fffdf7; pointer-events: none; clip-path: circle(0% at 50% 50%); transition: clip-path .4s cubic-bezier(.6,0,.4,1); }
.ck-wipe.closed { clip-path: circle(150% at 50% 50%); pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .ck-wipe { transition: opacity .3s; clip-path: none; opacity: 0; } .ck-wipe.closed { opacity: 1; } }

/* phones: a slimmer order card and smaller dish cards, so the kitchen shows between them */
@media (max-width: 540px) {
  .ck-order { padding: 7px 12px 6px; border-radius: 15px; }
  .ck-ohead { font-size: 11px; margin-bottom: 1px; }
  .ck-ol { font-size: 15px; line-height: 1.3; }
  .ck-ask { margin-top: 3px; font-size: 12px; }
  .ck-plate { width: 44px; height: 44px; }
  .ck-slots { margin-bottom: 6px; }
  .ck-dcard { grid-template-columns: 50px 1fr; min-height: 62px; padding: 3px 5px 5px; border-radius: 14px; }
  .ck-dcard img { width: 50px; height: 50px; }
  .ck-dcard b { font-size: 14px; }
  .ck-tags i { font-size: 10px; padding: 0 5px; }
}

/* the final's three judges: slimmer rows so the dish still shows */
.ck-react.panel { gap: 4px; }
.ck-react.panel .ck-rx { grid-template-columns: 30px 1fr auto; padding: 4px 9px; border-radius: 13px; border-width: 2px; }
.ck-react.panel .ck-face { font-size: 22px; }
.ck-react.panel .ck-rline { font-size: 13px; }
.ck-react.panel .ck-stars i { font-size: 14px; }
.ck-react.panel .ck-rx b { font-size: 12px; display: inline; margin-right: 5px; }

/* the versus card: anime food-battle drama (Darren, Oct 29: "anime drama. ME vs X -- food battle") */
.ck-vs { inset: 0; z-index: 70; pointer-events: none; opacity: 0; overflow: hidden; --them: #2f9fa8; }
.ck-vs.on { opacity: 1; pointer-events: auto; }
.ck-vs-l, .ck-vs-r { position: absolute; top: 0; bottom: 0; width: 66%; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.ck-vs-l { left: 0; background: repeating-linear-gradient(115deg, #ff8a3d 0 18px, #ff9a55 18px 36px); clip-path: polygon(0 0, 100% 0, 52% 100%, 0 100%); align-items: flex-start; padding-left: 5%; }
.ck-vs-r { right: 0; background: repeating-linear-gradient(115deg, var(--them) 0 18px, color-mix(in srgb, var(--them) 80%, white) 18px 36px); clip-path: polygon(50% 0, 100% 0, 100% 100%, 0 100%); align-items: flex-end; padding-right: 5%; }
.ck-vs-l img, .ck-vs-r img { width: min(38vw, 220px); height: min(38vw, 220px); object-fit: contain; filter: drop-shadow(0 6px 0 rgba(42,29,20,.35)); }
.ck-vs-l b, .ck-vs-r b { font-size: clamp(28px, 8vw, 54px); font-weight: 700; color: #fffdf7; -webkit-text-stroke: 2px #4a3a30; paint-order: stroke fill; letter-spacing: .04em; }
.ck-vs-l { padding-bottom: 22%; } .ck-vs-r { padding-top: 26%; }
.ck-vs { background: #4a3a30; }
.ck-vs.on .ck-vs-l { animation: ckVsL .38s cubic-bezier(.2,.9,.3,1.1) both; }
.ck-vs.on .ck-vs-r { animation: ckVsR .38s cubic-bezier(.2,.9,.3,1.1) both; }
@keyframes ckVsL { from { transform: translateX(-100%); } }
@keyframes ckVsR { from { transform: translateX(100%); } }
.ck-vs-mid { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: clamp(64px, 20vw, 140px); font-weight: 700; font-style: italic; color: #ffc53d; -webkit-text-stroke: 4px #4a3a30; paint-order: stroke fill; text-shadow: 0 6px 0 #4a3a30; }
.ck-vs.on .ck-vs-mid { animation: ckVsSlam .5s .32s cubic-bezier(.2,.9,.3,1.4) both; }
@keyframes ckVsSlam { 0% { transform: translate(-50%, -50%) scale(3) rotate(-12deg); opacity: 0; } 60% { opacity: 1; } 75% { transform: translate(-48%, -52%) scale(.95) rotate(2deg); } 100% { transform: translate(-50%, -50%) scale(1); } }
.ck-vs-title { position: absolute; left: 50%; top: calc(14px + env(safe-area-inset-top)); transform: translateX(-50%); text-align: center; background: #4a3a30; color: #ffc53d; border-radius: 14px; padding: 6px 18px 8px; font-size: clamp(22px, 6vw, 34px); font-weight: 700; letter-spacing: .06em; white-space: nowrap; }
.ck-vs-title small { display: block; font-size: 12px; color: #fffdf7; letter-spacing: .12em; text-transform: uppercase; }
.ck-vs.on .ck-vs-title { animation: ckIn .3s .7s both; }
.ck-vs-judge { position: absolute; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: #fffdf7; border: 3px solid #4a3a30; border-radius: 16px; padding: 4px 14px 6px; text-align: center; }
.ck-vs-judge small { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: #a08a78; }
.ck-vs-judge > div { display: flex; gap: 10px; justify-content: center; }
.ck-vs-judge span { display: flex; flex-direction: column; align-items: center; } .ck-vs-judge img { width: 48px; height: 48px; object-fit: contain; } .ck-vs-judge b { font-size: 13px; }
.ck-vs.on .ck-vs-judge { animation: ckIn .3s 1s both; }
@media (prefers-reduced-motion: reduce) { .ck-vs.on * { animation: none !important; } }

/* the two plates' name labels, under each plate on the reveal */
.ck-plabel { left: 0; top: 0; z-index: 49; background: var(--card, #fffdf7); border: 2.5px solid var(--ink, #4a3a30); border-radius: 13px; padding: 3px 11px 5px; text-align: center; max-width: 46vw; opacity: 0; transition: opacity .2s; pointer-events: none; }
.ck-plabel.on { opacity: 1; }
.ck-plabel small { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.ck-plabel b { font-size: 15px; font-weight: 600; line-height: 1.15; display: block; }
.ck-plabel.you small { color: #ff8a3d; } .ck-plabel.them small { color: var(--them, #2f9fa8); }
.ck-plabel.you { border-color: #ff8a3d; } .ck-plabel.them { border-color: var(--them, #2f9fa8); }
.ck-plabel.won { background: #fff3c8; box-shadow: 0 0 0 4px rgba(255,197,61,.6); }
.ck-plabel.won::before { content: '+ point'; position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 700; color: #4a3a30; background: #ffc53d; border-radius: 999px; padding: 1px 8px; white-space: nowrap; }

/* reactions: your stars and your rival's, side by side */
.ck-rboth { display: flex; gap: 12px; align-items: flex-end; margin-top: 2px; }
.ck-ryou small, .ck-rthem small { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.ck-ryou small { color: #ff8a3d; } .ck-rthem small { color: #a08a78; }
.ck-rthem .ck-stars i { font-size: 13px; }
.ck-rx { grid-template-columns: 42px 1fr; }
.ck-react.panel .ck-rx { grid-template-columns: 30px 1fr; }
.ck-react.panel .ck-rboth { display: inline-flex; margin-left: 6px; }

/* the verdict: both faces, a crown on the winner */
.ck-vnums > div { position: relative; display: flex; flex-direction: column; align-items: center; }
.ck-vnums img { width: 76px; height: 76px; object-fit: contain; }
.ck-vnums .crown::before { content: '👑'; position: absolute; top: -18px; font-size: 26px; animation: ckPop .5s .2s both cubic-bezier(.2,.9,.3,1.6); }
.ck-vhead { letter-spacing: .03em; }

