/* Surprise rounds (party.js). Two skins in one file: .pp-* is a player's phone (px, the site's colour variables),
   .pt-* is the big screen (vh units, its own variables so it looks the same on the TV page and on the host page).
   TV rules stay WebView-safe: no color-mix(), no aspect-ratio, no inset. */

.p-dot { display: inline-block; width: .8em; height: .8em; border-radius: 50%; border: 2px solid #3b2b25; margin-inline-end: .35em; vertical-align: -.05em; flex: none; }
.p-who { display: inline-flex; align-items: center; margin-inline-end: .6em; font-weight: 800; white-space: nowrap; }
.p-plus { direction: ltr; unicode-bidi: isolate; position: absolute; z-index: 5; top: -6px; inset-inline-end: 26%; padding: 0 12px; border-radius: 99px; border: 2.5px solid #3b2b25; color: #3b2b25; font-family: "Baloo Bhaijaan 2", sans-serif; font-weight: 800; font-size: 1.2rem; box-shadow: 0 3px 0 #3b2b25; animation: p-plus 2.6s cubic-bezier(.2, 1.5, .4, 1) both; pointer-events: none; }
.tv-lane { position: relative; }
.tv-lane .p-plus { top: -1vh; padding: 0 1.8vh; border-width: .35vh; font-size: 3.4vh; box-shadow: 0 .5vh 0 #3b2b25; }
.lane { position: relative; }
@keyframes p-plus { 0% { transform: scale(0) rotate(-20deg); } 18% { transform: scale(1.5) rotate(8deg); } 30%, 85% { transform: scale(1) rotate(-4deg); opacity: 1; } 100% { transform: scale(.8) translateY(-14px); opacity: 0; } }
@keyframes p-pop { 0% { transform: scale(0); opacity: 0; } 70% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes p-rise { 0% { transform: translateY(18px); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes p-spin { to { transform: rotate(360deg); } }
@keyframes p-bounce { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-14%) rotate(6deg); } }
@keyframes p-wob { 0%, 100% { transform: rotate(-2.5deg) scale(1); } 50% { transform: rotate(2.5deg) scale(1.05); } }
@keyframes p-drop { 0% { transform: translateY(-160%) scale(1.2); opacity: 0; } 60% { transform: translateY(8%) scale(1); opacity: 1; } 80% { transform: translateY(-4%); } 100% { transform: none; opacity: 1; } }
@keyframes p-grow { from { width: 0; } to { width: var(--w, 0%); } }
@keyframes p-flip { 0% { transform: rotateX(90deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes p-slam { 0% { transform: scale(2.4) rotate(-10deg); opacity: 0; } 60% { transform: scale(.92) rotate(3deg); opacity: 1; } 100% { transform: scale(1) rotate(-2deg); opacity: 1; } }
@keyframes p-shake { 0%, 100% { transform: none; } 20% { transform: translateX(-6px) rotate(-1deg); } 40% { transform: translateX(6px) rotate(1deg); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }
@keyframes p-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(134, 207, 98, .0), 0 5px 0 #3b2b25; } 50% { box-shadow: 0 0 0 10px rgba(134, 207, 98, .45), 0 5px 0 #3b2b25; } }
@keyframes p-q { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-18%) rotate(8deg); } }

/* =============================== phone =============================== */
.pp { position: relative; display: grid; gap: 12px; overflow: hidden; }
.pp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pp-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 14px; border-radius: 99px; background: var(--sun, #ffd24a); color: var(--on-pastel, #3b2b25); border: 2.5px solid var(--line, #3b2b25); font-family: var(--display); font-weight: 800; font-size: 1.05rem; box-shadow: 0 3px 0 var(--line, #3b2b25); transform: rotate(-1.5deg); }
.pp-secs { min-width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 1.3rem; background: var(--surface, #fff); border: 3px solid var(--line, #3b2b25); }
.pp-secs.low { background: var(--bad-bg, #ffdede); color: var(--red-text, #c63f41); animation: p-wob .5s ease-in-out infinite; }
.pp-bar { height: 12px; border-radius: 99px; background: var(--soft-bg, #fff6df); border: 2px solid var(--line, #3b2b25); overflow: hidden; }
.pp-bar i { display: block; height: 100%; width: 100%; background: var(--leaf, #86cf62); transition: width .2s linear; }
.pp-bar.low i { background: var(--red, #f25c5c); }
.pp .qtext { margin: 2px 0 0; font-size: 1.3rem; }
.pp-h { margin: 4px 0 0; font-family: var(--display); font-size: 1.25rem; text-align: center; }
.pp-dim { margin: 0; text-align: center; color: var(--ink-2, #6f5a4e); font-weight: 700; font-size: .95rem; }
.pp-big { font-size: 64px; line-height: 1; animation: p-bounce 1.1s ease-in-out infinite; display: inline-block; }
.pp-wait { text-align: center; padding: 18px 0 10px; display: grid; gap: 8px; font-weight: 800; font-size: 1.1rem; }
.pp-wait p { margin: 0; }
.pp-count { text-align: center; color: var(--ink-2, #6f5a4e); font-weight: 800; font-size: .95rem; min-height: 1.2em; }
.pp-res { margin: 0; text-align: center; font-family: var(--display); font-weight: 800; font-size: 1.35rem; animation: p-pop .5s both; }
.pp-res.ok { color: var(--green-text, #4f9a35); } .pp-res.bad { color: var(--red-text, #c63f41); }

.pp-intro { position: relative; text-align: center; padding: 30px 8px 26px; display: grid; gap: 6px; justify-items: center; }
.pp-rays, .pt-rays { position: absolute; left: 50%; top: 50%; width: 1400px; height: 1400px; margin: -700px 0 0 -700px; border-radius: 50%; background: repeating-conic-gradient(rgba(255, 210, 74, .34) 0 12deg, rgba(255, 210, 74, 0) 12deg 24deg); animation: p-spin 22s linear infinite; pointer-events: none; }
.pp-ik, .pp-iicon, .pp-iname, .pp-irule { position: relative; }
.pp-ik { padding: 2px 14px; border-radius: 99px; background: var(--red, #f25c5c); color: #fff; border: 2.5px solid var(--line, #3b2b25); font-family: var(--display); font-weight: 800; animation: p-slam .5s both; }
.pp-iicon { font-size: 78px; line-height: 1.1; animation: p-bounce 1s ease-in-out infinite; }
.pp-iname { font-family: var(--display); font-weight: 800; font-size: 2rem; line-height: 1.2; animation: p-pop .5s .15s both; }
.pp-irule { font-weight: 800; color: var(--ink-2, #6f5a4e); max-width: 30ch; animation: p-rise .5s .3s both; }

.pp-words { display: grid; gap: 10px; }
.pp-word { text-align: center; font-weight: 800; padding: 6px 10px; border-radius: 14px; background: var(--note, #fff3b5); border: 2.5px solid var(--line, #3b2b25); }
.pp-word b { font-family: var(--display); font-size: 1.5rem; }
.pp-paper { position: relative; width: 100%; padding-top: 75%; background: #fff; border: 3px solid var(--line, #3b2b25); border-radius: 14px; box-shadow: var(--pop); overflow: hidden; }
.pp-paper.small { width: 78%; padding-top: 58.5%; margin: 0 auto; }
.pp-paper canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; touch-action: none; }
.pp-tools { display: grid; gap: 8px; }
.pp-colors, .pp-sizes { display: flex; gap: 7px; align-items: center; justify-content: center; flex-wrap: wrap; }
.pp-col { width: 36px; height: 36px; border-radius: 50%; border: 2.5px solid var(--line, #3b2b25); padding: 0; font-size: 16px; line-height: 1; cursor: pointer; }
.pp-col.on { box-shadow: 0 0 0 3px var(--card, #fffdf7), 0 0 0 6px var(--line, #3b2b25); transform: scale(1.08); }
.pp-size { width: 40px; height: 40px; border-radius: 12px; border: 2.5px solid var(--line, #3b2b25); background: var(--surface, #fff); display: grid; place-items: center; padding: 0; cursor: pointer; }
.pp-size i { display: block; border-radius: 50%; background: var(--ink, #3b2b25); }
.pp-size.on { background: var(--sun, #ffd24a); }
.pp-size.on i { background: #3b2b25; }
.pp-tool { min-height: 40px; padding: 0 12px; border-radius: 12px; border: 2.5px solid var(--line, #3b2b25); background: var(--surface, #fff); color: var(--ink, #3b2b25); font: inherit; font-weight: 800; cursor: pointer; }
.pp-mask, .pt-mask { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; direction: inherit; }
.pp-mask i { width: 26px; height: 34px; border-bottom: 3.5px solid var(--ink, #3b2b25); display: grid; place-items: center; font-style: normal; font-family: var(--display); font-weight: 800; font-size: 1.3rem; }
.pp-mask i.on { color: var(--red-text, #c63f41); animation: p-pop .4s both; }
.pp-mask i.sp, .pt-mask i.sp { border: 0; width: 12px; }
.pp-form { display: flex; gap: 8px; }
.pp-form input { flex: 1 1 auto; min-width: 0; min-height: 52px; padding: 0 14px; border-radius: 14px; border: 3px solid var(--line, #3b2b25); background: var(--surface, #fff); color: var(--ink, #3b2b25); font: inherit; font-size: 1.15rem; font-weight: 800; }
.pp-form input:focus { outline: 3px dashed var(--red, #f25c5c); outline-offset: 3px; }
.pp-fb { min-height: 1.4em; text-align: center; font-weight: 800; }
.pp-fb.warm { color: var(--green-text, #4f9a35); } .pp-fb.cold { color: var(--red-text, #c63f41); animation: p-shake .35s; }
.pp-guesses { display: grid; gap: 4px; }
.pp-g { font-size: .92rem; color: var(--ink-2, #6f5a4e); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-reveal { text-align: center; display: grid; gap: 4px; }
.pp-ans { font-weight: 800; font-size: 1.1rem; text-align: center; }
.pp-ans b { font-family: var(--display); font-size: 1.8rem; color: var(--green-text, #4f9a35); display: inline-block; animation: p-slam .5s both; }
.pp-ans.big b { font-size: 2.3rem; }

.pp-emoji { text-align: center; font-size: 54px; line-height: 1.25; letter-spacing: 4px; padding: 8px 4px; border-radius: 18px; background: var(--soft-bg, #fff6df); border: 2.5px dashed var(--line, #3b2b25); animation: p-wob 2.4s ease-in-out infinite; }
.pp-pic { width: 62%; margin: 0 auto; position: relative; padding-top: 62%; background: #fff; border: 3px solid var(--line, #3b2b25); border-radius: 18px; overflow: hidden; }
.pp-pic canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.pp .opt.pp-mine { box-shadow: 0 5px 0 var(--line, #3b2b25), 0 0 0 5px var(--surface, #fff), 0 0 0 7.5px var(--line, #3b2b25); }
.pp .opt.pp-off { opacity: .5; filter: grayscale(.6); }

.pp-numbox { display: flex; align-items: baseline; justify-content: center; gap: 10px; min-height: 70px; padding: 6px 12px; border-radius: 16px; background: var(--surface, #fff); border: 3px solid var(--line, #3b2b25); direction: ltr; }
.pp-numbox span { font-family: var(--display); font-weight: 800; font-size: 2.6rem; line-height: 1.2; }
.pp-numbox span.empty { color: var(--ink-3, #a08b7d); }
.pp-numbox small { font-weight: 800; color: var(--ink-2, #6f5a4e); }
.pp-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; direction: ltr; }
.pp-key { min-height: 56px; border-radius: 14px; border: 3px solid var(--line, #3b2b25); background: var(--surface, #fff); color: var(--ink, #3b2b25); font-family: var(--display); font-weight: 800; font-size: 1.6rem; box-shadow: 0 4px 0 var(--line, #3b2b25); cursor: pointer; }
.pp-key:active { transform: translateY(4px); box-shadow: none; }
.pp-key.go { background: var(--leaf, #86cf62); color: #3b2b25; } .pp-key.del { background: var(--warn-bg, #fff0c2); }
.pp-rank { display: grid; gap: 6px; }
.pp-rrow { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 12px; border: 2px solid var(--line, #3b2b25); background: var(--surface, #fff); animation: p-rise .4s both; }
.pp-rrow.top { background: var(--ok-bg, #e3f6d6); } .pp-rrow.me { outline: 3px dashed var(--red, #f25c5c); outline-offset: 2px; }
.pp-rrow b { margin-inline-start: auto; font-family: var(--display); font-size: 1.2rem; } .pp-rrow small { color: var(--ink-2, #6f5a4e); font-weight: 700; }

.pp-order, .pp-list { display: grid; gap: 9px; }
.pp-item, .pp-li { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 14px; border-radius: 16px; border: 3px solid var(--line, #3b2b25); background: var(--surface, #fff); color: var(--ink, #3b2b25); font: inherit; font-weight: 800; font-size: 1.08rem; text-align: start; box-shadow: 0 4px 0 var(--line, #3b2b25); cursor: pointer; }
.pp-item:active, .pp-li:active { transform: translateY(4px); box-shadow: none; }
.pp-item.on { background: var(--note-blue, #dff2ff); }
.pp-slot { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 2.5px dashed var(--line, #3b2b25); display: grid; place-items: center; font-family: var(--display); font-weight: 800; }
.pp-slot.on { border-style: solid; background: var(--sun, #ffd24a); color: #3b2b25; animation: p-pop .3s both; }
.pp-order.done .pp-item { animation: p-rise .45s both; cursor: default; }
.pp-item small { margin-inline-start: auto; color: var(--ink-2, #6f5a4e); font-weight: 800; direction: ltr; }
.pp-row { display: flex; gap: 10px; } .pp-row .btn { flex: 1 1 0; }
.pp-li { justify-content: space-between; }
.pp-li small { color: var(--ink-2, #6f5a4e); }
.pp-li.on { background: var(--sun, #ffd24a); color: #3b2b25; }
.pp-li:disabled { opacity: .55; box-shadow: none; cursor: default; } .pp-li.on:disabled { opacity: 1; }
.pp-cards { display: grid; gap: 8px; }
.pp-card { padding: 8px 12px; border-radius: 14px; border: 2.5px solid var(--line, #3b2b25); background: var(--surface, #fff); animation: p-flip .45s both; }
.pp-card.truth { background: var(--ok-bg, #e3f6d6); }
.pp-ct { font-family: var(--display); font-weight: 800; font-size: 1.15rem; }
.pp-cb { font-weight: 800; color: var(--ink-2, #6f5a4e); font-size: .9rem; } .pp-cw { font-size: .9rem; margin-top: 2px; }
.pp-votes { display: grid; gap: 8px; }
.pp-vrow, .pt-vrow { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.pp-vrow .nm { flex: 0 0 34%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-vrow .bar, .pt-vrow .bar { flex: 1 1 auto; height: 18px; border-radius: 99px; background: var(--soft-bg, #fff6df); border: 2px solid var(--line, #3b2b25); overflow: hidden; }
.pp-vrow .bar i, .pt-vrow .bar i { display: block; height: 100%; width: 0; animation: p-grow .9s cubic-bezier(.2, 1.2, .4, 1) forwards; }
.pp-gains { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pp-gains.none { color: var(--ink-2, #6f5a4e); font-weight: 800; }
.pp-gain { display: inline-flex; align-items: center; gap: 4px; padding: 3px 12px; border-radius: 99px; border: 2.5px solid var(--line, #3b2b25); background: var(--surface, #fff); font-weight: 800; animation: p-pop .5s both; }
.pp-gain em { direction: ltr; unicode-bidi: isolate; display: inline-block; font-style: normal; font-family: var(--display); font-size: 1.2rem; color: var(--green-text, #4f9a35); margin-inline-start: 4px; }

/* ============================== big screen ============================== */
.pt { --k: #3b2b25; --k2: #6f5a4e; --pb: #fffdf7; --sf: #ffffff; --soft: #fff6df; --okb: #e3f6d6; --badb: #ffdede; --ln: #3b2b25;
  position: relative; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 1.6vh; padding: 2.4vh 2.8vh; overflow: hidden; color: var(--k);
  background: var(--pb); border: .35vh solid var(--ln); border-radius: 3vh 3.8vh 2.8vh 4vh / 3.8vh 2.8vh 4vh 3vh; box-shadow: .5vh .6vh 0 rgba(59, 43, 37, .9); font-family: "Tajawal", "Baloo Bhaijaan 2", sans-serif; }
html[data-theme="dark"] .pt { --k: #f6ecd8; --k2: #d3c6ae; --pb: #22264a; --sf: #2c3159; --soft: #2b2f57; --okb: #22452f; --badb: #54262f; --ln: #07080f; box-shadow: .5vh .6vh 0 rgba(0, 0, 0, .6); }
.pt-board .tv-left { flex: 1.3 1 0; }
.pt-board.pt-wide .tv-left { flex: 2.1 1 0; }
.game-main > .pt { min-height: 66vh; }
.pt-head { display: flex; align-items: center; justify-content: space-between; gap: 2vh; flex: none; }
.pt-badge { display: inline-flex; align-items: center; gap: 1vh; padding: .3vh 2.4vh; border-radius: 99px; background: #ffd24a; color: #3b2b25; border: .35vh solid var(--ln); box-shadow: 0 .5vh 0 var(--ln); font-family: "Baloo Bhaijaan 2", sans-serif; font-weight: 800; font-size: 3.2vh; transform: rotate(-1.5deg); }
.pt-secs { width: 7.6vh; height: 7.6vh; border-radius: 50%; border: .45vh solid var(--ln); box-shadow: 0 .4vh 0 var(--ln); background: var(--sf); display: flex; align-items: center; justify-content: center; font-family: "Baloo Bhaijaan 2", sans-serif; font-size: 3.6vh; font-weight: 800; }
.pt-secs.low { background: var(--badb); color: #f25c5c; animation: p-wob .5s ease-in-out infinite; }
.pt-bar { flex: none; height: 1.8vh; border-radius: 99px; border: .3vh solid var(--ln); background: var(--soft); overflow: hidden; }
.pt-bar i { display: block; height: 100%; width: 100%; background: #86cf62; transition: width .2s linear; }
.pt-bar.low i { background: #f25c5c; }
.pt-q { flex: none; margin: 0; font-family: "Baloo Bhaijaan 2", sans-serif; font-size: 4.4vh; line-height: 1.3; font-weight: 700; animation: p-rise .45s both; }
.pt-title { font-family: "Baloo Bhaijaan 2", sans-serif; font-weight: 800; font-size: 4.2vh; line-height: 1.25; text-align: center; animation: p-pop .5s both; }
.pt-title.ok { color: #4f9a35; } .pt-title.bad { color: #f25c5c; }
html[data-theme="dark"] .pt-title.ok { color: #a7e08a; }
.pt-sub { font-size: 2.8vh; font-weight: 800; color: var(--k2); text-align: center; }
.pt-stage { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; }
.pt-center { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2vh; }
.pt-bigmon { position: relative; width: 24vh; height: 30vh; animation: p-bounce 1.2s ease-in-out infinite; }
.pt-bigmon .mon { width: 100%; height: 100%; display: block; } .pt-bigmon svg { width: 100%; height: 100%; }
.pt-pencil { position: absolute; bottom: 0; inset-inline-end: -4vh; font-size: 9vh; animation: p-q .7s ease-in-out infinite; }

.pt-intro { position: relative; flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2vh; text-align: center; }
.pt-rays { width: 260vh; height: 260vh; margin: -130vh 0 0 -130vh; }
.pt-ik, .pt-iicon, .pt-iname, .pt-irule { position: relative; }
.pt-ik { padding: .4vh 3vh; border-radius: 99px; background: #f25c5c; color: #fff; border: .35vh solid var(--ln); box-shadow: 0 .5vh 0 var(--ln); font-family: "Baloo Bhaijaan 2", sans-serif; font-weight: 800; font-size: 3.6vh; animation: p-slam .55s both; }
.pt-iicon { font-size: 22vh; line-height: 1.15; animation: p-bounce 1s ease-in-out infinite; }
.pt-iname { font-family: "Baloo Bhaijaan 2", sans-serif; font-weight: 800; font-size: 9vh; line-height: 1.15; animation: p-pop .55s .2s both;
  filter: drop-shadow(.4vh 0 0 var(--pb)) drop-shadow(-.4vh 0 0 var(--pb)) drop-shadow(0 .4vh 0 var(--pb)) drop-shadow(0 -.4vh 0 var(--pb)); }
.pt-irule { font-size: 3.2vh; font-weight: 800; max-width: 70vh; padding: 1vh 2.4vh; border-radius: 2.4vh; background: var(--sf); border: .3vh solid var(--ln); animation: p-rise .5s .45s both; }

.pt-draw { flex: 1 1 auto; min-height: 0; display: flex; gap: 2.4vh; align-items: stretch; }
.pt-col { flex: none; display: flex; flex-direction: column; gap: 1.6vh; align-items: center; justify-content: center; }
.pt-paper { position: relative; flex: none; width: 76vh; height: 57vh; background: #fff; border: .4vh solid var(--ln); border-radius: 2.4vh; box-shadow: .5vh .6vh 0 rgba(59, 43, 37, .9); overflow: hidden; align-self: center; }
.pt-paper canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.pt-artist { position: absolute; top: 1.2vh; inset-inline-start: 1.2vh; padding: .2vh 1.8vh; border-radius: 99px; background: var(--c, #ffd24a); color: #3b2b25; border: .3vh solid #3b2b25; font-weight: 800; font-size: 2.4vh; }
.pt-side { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2vh; justify-content: center; }
.pt-mask { gap: .8vh; }
.pt-mask i { width: 4.2vh; height: 5.6vh; border-bottom: .55vh solid var(--k); display: flex; align-items: center; justify-content: center; font-style: normal; font-family: "Baloo Bhaijaan 2", sans-serif; font-weight: 800; font-size: 4vh; }
.pt-mask i.on { color: #f25c5c; animation: p-pop .4s both; }
.pt-mask i.sp { width: 2vh; }
.pt-bubbles { display: flex; flex-direction: column; gap: 1.2vh; min-height: 30vh; justify-content: center; }
.pt-bub { position: relative; align-self: flex-start; max-width: 100%; padding: .6vh 2vh .8vh; border-radius: 2.4vh 2.4vh 2.4vh .6vh; background: var(--sf); border: .3vh solid var(--ln); border-inline-start: 1.2vh solid var(--c, #888); font-weight: 800; font-size: 2.9vh; line-height: 1.25; overflow: hidden; word-break: break-word; max-height: 11vh; }
.pt-bub small { display: block; font-size: 1.9vh; color: var(--k2); }
.pt-bub.new { animation: p-pop .35s both; }
.pt-draw.rev .pt-paper { width: 60vh; height: 45vh; }
.pt-word { text-align: center; }
.pt-word small { display: block; font-size: 2.6vh; font-weight: 800; color: var(--k2); }
.pt-word b { display: inline-block; font-family: "Baloo Bhaijaan 2", sans-serif; font-size: 9vh; line-height: 1.2; color: #4f9a35; animation: p-slam .6s both; }
html[data-theme="dark"] .pt-word b { color: #a7e08a; }

.pt-emoji { font-size: 15vh; line-height: 1.2; letter-spacing: 1.5vh; padding: 1vh 4vh; border-radius: 4vh; background: var(--soft); border: .4vh dashed var(--ln); animation: p-wob 2.4s ease-in-out infinite; white-space: nowrap; max-width: 100%; overflow: hidden; }
.t-emoji .pt-emoji { font-size: 12vh; }
.pt-pic { position: relative; width: 36vh; height: 36vh; background: #fff; border: .45vh solid var(--ln); border-radius: 3vh; box-shadow: .5vh .6vh 0 rgba(59, 43, 37, .9); overflow: hidden; }
.pt-pic canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.pt-opts { flex: none; display: flex; flex-wrap: wrap; gap: 1.6vh; }
.pt-opt { width: calc(50% - .8vh); min-height: 8.6vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 1vh 2vh; border-radius: 2.2vh 2.8vh 2vh 3vh / 2.8vh 2vh 3vh 2.2vh; border: .35vh solid var(--ln); box-shadow: 0 .6vh 0 var(--ln); color: #3b2b25; font-size: 3vh; font-weight: 800; animation: p-rise .4s both; }
.pt-opt.o1 { background: #ff8f8f; } .pt-opt.o2 { background: #84d0f5; animation-delay: .06s; } .pt-opt.o3 { background: #ffd75e; animation-delay: .12s; } .pt-opt.o4 { background: #a2dc7f; animation-delay: .18s; }
.pt-opt.gone { opacity: .28; transform: scale(.96); animation: none; }
.pt-opt.win { animation: p-glow 1s ease-in-out 3; transform: scale(1.03) rotate(-.6deg); box-shadow: 0 .6vh 0 var(--ln), 0 0 0 .7vh var(--pb), 0 0 0 1.1vh #4f9a35; }
.pt-track, .pt-results { flex: none; display: flex; flex-wrap: wrap; gap: 1vh; justify-content: center; min-height: 4.6vh; }
.pt-pl { padding: .2vh 1.8vh; border-radius: 99px; border: .3vh solid var(--ln); background: var(--sf); font-weight: 800; font-size: 2.4vh; opacity: .55; border-inline-start: 1.2vh solid var(--c, #888); transition: opacity .2s, transform .2s; }
.pt-pl.on { opacity: 1; background: var(--okb); transform: scale(1.06); }
.pt-results .pt-pl { opacity: 1; animation: p-pop .4s both; }
.pt-pl.ok { background: var(--okb); } .pt-pl.no { background: var(--badb); }
.pt-gains { flex: none; display: flex; flex-wrap: wrap; gap: 1.6vh; justify-content: center; align-items: center; min-height: 8vh; }
.pt-gains.none { font-size: 2.8vh; font-weight: 800; color: var(--k2); }
.pt-gain { display: inline-flex; align-items: center; gap: 1vh; padding: .4vh 2.4vh .4vh 1vh; border-radius: 99px; border: .35vh solid var(--ln); box-shadow: 0 .5vh 0 var(--ln); background: var(--sf); font-weight: 800; font-size: 2.8vh; animation: p-drop .7s both; }
.pt-gain .mon { width: 5vh; height: 6.4vh; display: inline-block; } .pt-gain .mon svg { width: 100%; height: 100%; }
.pt-gain em { direction: ltr; unicode-bidi: isolate; display: inline-block; font-style: normal; font-family: "Baloo Bhaijaan 2", sans-serif; font-size: 4.2vh; color: #4f9a35; }
html[data-theme="dark"] .pt-gain em { color: #a7e08a; }

.pt-qmark { display: flex; gap: 3vh; font-family: "Baloo Bhaijaan 2", sans-serif; font-weight: 800; font-size: 20vh; line-height: 1; color: #f25c5c; }
.pt-qmark span { display: inline-block; animation: p-q 1.1s ease-in-out infinite; } .pt-qmark span:nth-child(2) { animation-delay: .18s; color: #3d97c8; } .pt-qmark span:nth-child(3) { animation-delay: .36s; color: #f5b921; }
.pt-line { position: relative; flex: 1 1 auto; min-height: 44vh; margin: 0 1vh; direction: ltr; }
.pt-axis { position: absolute; left: 2%; right: 2%; top: 66%; height: 1vh; margin-top: -.5vh; border-radius: 99px; background: var(--k); opacity: .85; }
.pt-pin, .pt-truth { position: absolute; top: 66%; width: 0; display: flex; flex-direction: column; align-items: center; opacity: 0; animation: p-drop .6s both; }
.pt-pin b, .pt-truth b { white-space: nowrap; padding: 0 1.4vh; border-radius: 1.6vh; border: .3vh solid var(--ln); background: var(--c, #fff); color: #3b2b25; font-family: "Baloo Bhaijaan 2", sans-serif; font-size: 3vh; line-height: 1.5; }
.pt-pin span, .pt-truth span { white-space: nowrap; font-weight: 800; font-size: 2.1vh; line-height: 1.4; }
.pt-pin::after { content: ""; width: .5vh; background: var(--k); opacity: .7; }
.pt-pin.lv0 { margin-top: -10.6vh; } .pt-pin.lv0::after { height: 3vh; }
.pt-pin.lv1 { margin-top: -19.6vh; } .pt-pin.lv1::after { height: 12vh; }
.pt-pin.lv2 { margin-top: -28.6vh; } .pt-pin.lv2::after { height: 21vh; }
.pt-pin.best b { box-shadow: 0 0 0 .5vh var(--pb), 0 0 0 .9vh #4f9a35; }
.pt-truth { margin-top: .5vh; z-index: 3; }
.pt-truth::before { content: ""; width: .7vh; height: 2.4vh; background: #4f9a35; }
.pt-truth b { background: #4f9a35; color: #fff; font-size: 5.6vh; line-height: 1.3; padding: 0 2.4vh; border-width: .45vh; box-shadow: 0 .6vh 0 var(--ln); }
.pt-truth span { margin-top: 1vh; padding: 0 1.2vh; border-radius: 99px; background: var(--sf); border: .25vh solid var(--ln); }

.pt-order { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 1.6vh; justify-content: center; }
.pt-item { display: flex; align-items: center; gap: 2vh; min-height: 9vh; padding: 1vh 2.6vh; border-radius: 2.2vh 2.8vh 2vh 3vh / 2.8vh 2vh 3vh 2.2vh; border: .35vh solid var(--ln); box-shadow: 0 .6vh 0 var(--ln); color: #3b2b25; font-size: 3.4vh; font-weight: 800; animation: p-rise .45s both; }
.pt-item.o1 { background: #ff8f8f; } .pt-item.o2 { background: #84d0f5; } .pt-item.o3 { background: #ffd75e; } .pt-item.o4 { background: #a2dc7f; }
.pt-order.done .pt-item { animation-name: p-drop; animation-duration: .6s; }
.pt-item em { flex: none; width: 6vh; height: 6vh; border-radius: 50%; background: #fff; border: .3vh solid #3b2b25; display: flex; align-items: center; justify-content: center; font-style: normal; font-family: "Baloo Bhaijaan 2", sans-serif; font-size: 3.4vh; }
.pt-item small { margin-inline-start: auto; padding: 0 1.6vh; border-radius: 99px; background: #fff; border: .25vh solid #3b2b25; font-size: 2.6vh; direction: ltr; }

.pt-cards { flex: 1 1 auto; min-height: 0; display: flex; flex-wrap: wrap; gap: 1.6vh; align-content: center; justify-content: center; }
.pt-card { width: calc(50% - .8vh); min-height: 11vh; padding: 1.2vh 2vh; border-radius: 2.4vh; border: .35vh solid var(--ln); box-shadow: 0 .6vh 0 var(--ln); background: var(--sf); display: flex; flex-direction: column; justify-content: center; gap: .4vh; text-align: center; animation: p-flip .55s both; }
.pt-cards.pick .pt-card { animation-name: p-rise; }
.pt-cards.many { gap: 1.2vh; }
.pt-cards.many .pt-card { width: calc(33.33% - .8vh); min-height: 9.4vh; padding: .8vh 1.4vh; }
.pt-cards.many .pt-ct { font-size: 3vh; } .pt-cards.many .pt-cb, .pt-cards.many .pt-cw { font-size: 2vh; }
.pt-cards.many .pt-card.truth { width: 100%; min-height: 9.4vh; }
.pt-card.truth { background: #a2dc7f; color: #3b2b25; width: 100%; }
.pt-ct { font-family: "Baloo Bhaijaan 2", sans-serif; font-weight: 800; font-size: 3.6vh; line-height: 1.2; }
.pt-cb { font-weight: 800; font-size: 2.3vh; opacity: .8; }
.pt-cw { font-size: 2.3vh; } .pt-cw small { font-weight: 800; color: #f25c5c; } .pt-card.truth .pt-cw { font-size: 2.5vh; }
.pt-cands { flex: 1 1 auto; min-height: 0; display: flex; flex-wrap: wrap; gap: 2vh; align-items: center; justify-content: center; align-content: center; }
.pt-cand { display: flex; flex-direction: column; align-items: center; gap: .6vh; padding: 1.2vh 2.4vh; border-radius: 2.6vh; border: .35vh solid var(--ln); border-bottom: 1.2vh solid var(--c, #888); background: var(--sf); animation: p-pop .45s both; }
.pt-cand .mon { width: 9vh; height: 12vh; display: block; } .pt-cand .mon svg { width: 100%; height: 100%; }
.pt-cand b { font-size: 2.8vh; }
.pt-votes { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 1.4vh; justify-content: center; }
.pt-vrow { gap: 1.6vh; font-size: 3vh; }
.pt-vrow .mon { width: 5.4vh; height: 7vh; flex: none; } .pt-vrow .mon svg { width: 100%; height: 100%; }
.pt-vrow .nm { flex: 0 0 26%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-vrow .bar { height: 3.4vh; border-width: .3vh; background: var(--soft); border-color: var(--ln); }
.pt-vrow b { font-family: "Baloo Bhaijaan 2", sans-serif; font-size: 3.6vh; min-width: 4vh; text-align: center; }
.pt-vrow.top .nm { color: #f25c5c; } .pt-vrow.top { animation: p-wob 1.2s ease-in-out 1.6s 3; }

/* shared bits on the ordinary pages */
.pp .opt.pp-live { cursor: pointer; }
.pp .opt.pp-live:active { transform: translateY(5px); box-shadow: none; }
.opt.jr-hide { opacity: .2; filter: grayscale(1); pointer-events: none; text-decoration: line-through; }
.tv-set { display: flex; gap: 1.4vh; flex-wrap: wrap; justify-content: center; }
.tv-set .tv-btn { min-height: 5.6vh; font-size: 2.2vh; padding: 0 2.2vh; }

/* icons are emoji: ask for the colour font first, wherever the page's text font also has a plain glyph */
.pp-iicon, .pp-big, .pt-iicon, .pt-pencil, .pp-emoji, .pt-emoji { font-family: "Apple Color Emoji", "Noto Color Emoji", "Segoe UI Emoji", sans-serif; }
.pp-badge { font-family: "Baloo Bhaijaan 2", "Tajawal", "Apple Color Emoji", "Noto Color Emoji", "Segoe UI Emoji", sans-serif; }

/* an ordinary question on the TV: the card shudders when a team answers wrong */
.tv-qcard.p-oops { animation: p-shake .4s; }

/* TV lobby with the three switches (language, surprise rounds, match length): keep the whole panel below the header bar */
#tv-pair.withduel .pair-main { padding: 1.6vh 3vw; gap: .8vh; }
#tv-pair.withduel .dev-qr svg { width: 19vh; height: 19vh; }
#tv-pair.withduel #dev-code b { font-size: 9vh; }
#tv-pair.withduel .tv-btn { min-height: 6.6vh; }
.tv-set { gap: 1vh; }
.tv-set .tv-btn { min-height: 4.8vh; font-size: 2vh; padding: 0 1.6vh; }
