/* ---------- Bonk Duel (Family paper style around a MapleStory arena: Henesys hunting ground, Maple damage numbers) */
.bd { font-family: Ubuntu, system-ui, sans-serif; }
.bd-h { margin: 10px 0 14px; }
.bd .sk-panel h3 { margin: 0 0 8px; }
.bd-play { background: #c0612b; font-size: 26px; } .bd-play:hover { background: #a3511f; }
.bd-play:disabled { opacity: .45; cursor: default; }
.bd-about p { margin: 0 0 10px; line-height: 1.5; }
.bd-help { display: grid; gap: 6px; margin-bottom: 12px; }
.bdh { display: grid; grid-template-columns: 38px 1fr auto; column-gap: 8px; align-items: center; background: #fff; border: 1px solid var(--edge);
  border-radius: 10px; padding: 5px 8px; }
.bdh img { grid-row: span 2; width: 32px; height: 32px; object-fit: contain; image-rendering: pixelated; justify-self: center; }
.bdh i { font-style: normal; font-size: 12px; font-weight: 800; color: #2f6db5; }
.bdh small { grid-column: 2 / 4; color: var(--muted); font-size: 12px; line-height: 1.3; }
.bd-bots { display: flex; flex-direction: column; gap: 6px; }
.bd-bots > b { font-size: 14px; color: var(--muted); }
#bdBots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.bd-bot { display: flex; flex-direction: column; align-items: center; gap: 2px; background: #fff; border: 2px solid var(--edge); border-radius: 12px;
  padding: 6px 4px; font: inherit; color: var(--ink); cursor: pointer; touch-action: manipulation; }
.bd-bot:hover { border-color: var(--gold); transform: translateY(-2px); }
.bd-bot img { height: 52px; max-width: 90%; object-fit: contain; object-position: bottom; image-rendering: pixelated; }
.bd-bot b { font-size: 12px; text-align: center; line-height: 1.15; }
.bd-bot small { font-size: 11px; color: var(--muted); }
.bd-live { display: flex; align-items: center; gap: 8px; width: 100%; background: #fff; border: 1px solid var(--edge); border-radius: 10px; padding: 4px 8px;
  margin: 4px 0; font: inherit; color: var(--ink); cursor: pointer; text-align: left; }
.bd-live:hover { border-color: var(--gold); }
.bd-live img { width: 34px; height: 34px; object-fit: contain; image-rendering: pixelated; }
.bd-live img.r { transform: scaleX(-1); }
.bd-live span { flex: 1; font-size: 13px; } .bd-live i { color: var(--muted); }
.bd-live small { display: block; color: var(--muted); font-size: 11px; }
.bd-none { color: var(--muted); font-size: 14px; margin: 4px 0; }
.bd-fame { margin: 18px 0 0; }

/* the game */
.bd-game { display: flex; flex-direction: column; gap: 8px; max-width: 760px; margin: 0 auto; background: #e9dfc9; border-radius: 18px; padding: 8px;
  box-shadow: 6px 9px 0 rgba(60,45,30,.18); }
.bd-game[hidden] { display: none; }
.bd-top { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--edge); border-radius: 12px; padding: 6px 10px; }
.bd-phase { flex: 1; font-weight: 800; font-size: 16px; }
.bd-phase .sdt { color: #c0392b; } .bd-phase .clk { color: #2f6db5; }
.bd-stake { font-weight: 800; font-size: 14px; background: #fff3d6; border: 1px solid #e8cf7a; border-radius: 10px; padding: 3px 8px; white-space: nowrap; }
.bd-stake:empty { display: none; }
#bdClock, #btClock { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; border: 3px solid var(--ink); display: flex; align-items: center;
  justify-content: center; font-weight: 900; background: #fff; }
#bdClock:empty, #btClock:empty { visibility: hidden; }
#bdClock.hurry, #btClock.hurry { color: var(--red); border-color: var(--red); animation: pop .5s infinite alternate; }

.bd-arena { --z: 2; --gl: 96px; position: relative; height: 380px; overflow: hidden; border-radius: 14px; border: 3px solid #3b2f22;
  background: #6fb8ea url(media/duel/bg_henesys.webp?v=9) center bottom / cover no-repeat; }
.bd-arena.sd::after { content: ""; position: absolute; inset: 0; background: rgba(255, 90, 20, .2); pointer-events: none; z-index: 1; }
/* maps: the real background art (Map.wz back layers) + one platform from the same map */
.bd-arena.m-elnath { background-color: #b9bfe0; background-image: url(media/duel/bg_elnath.webp?v=9); }
.bd-arena.m-zakum  { background-color: #3a0a06; background-image: url(media/duel/bg_zakum.webp?v=9); }
.bd-arena.m-ludi   { background-color: #3651d0; background-image: url(media/duel/bg_ludi.webp?v=9); }
.bd-arena.m-sleepy { background-color: #1c1a12; background-image: url(media/duel/bg_sleepy.webp?v=9); }
.bd-plat { position: absolute; left: 50%; transform: translateX(-50%); z-index: 1; pointer-events: none; max-width: none; }
/* Zakum's altar: huge, standing on the platform tile and reaching the top of the arena; centred on its stone face
   (the face sits at 48.4% of the picture's width, not 50%) */
.bd-deco { display: none; position: absolute; left: 50%; transform: translateX(-45.5%); bottom: calc(var(--gl) - 4px);
  height: calc(100% - var(--gl) + 4px); width: auto; max-width: none; z-index: 1; pointer-events: none; }
.bd-arena.m-zakum .bd-deco { display: block; }
.bd-arena.m-zakum .bd-tag, .bd-arena.m-ludi .bd-tag, .bd-arena.m-sleepy .bd-tag { background: rgba(0,0,0,.6); }
.bd-arena .bd-mp b, .bd-arena .bd-buffs { color: #fff; text-shadow: 0 1px 2px #000; }
.bd-f { position: absolute; bottom: var(--gl); left: 27%; width: 0; height: 0; z-index: 2; }
.bd-f.bd-r { left: 73%; }
.bd-f[hidden] { display: none; }
.bd-body { position: absolute; bottom: 0; left: -45px; width: 90px; height: 100px; transform: scale(var(--z)); transform-origin: 50% 100%; }
.bd-f .bd-sp { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); max-width: 90px; max-height: 100px; image-rendering: pixelated;
  transition: opacity .6s, filter .6s; }
.bd-f.bd-r .bd-sp { transform: translateX(-50%) scaleX(-1); }      /* everyone's picture faces right: mirror the right one so they face each other */
.bd-f.bd-r.bd-mob .bd-sp { transform: translateX(-50%); }           /* monsters already face left */
.bd-f.bd-mob .bd-sp { max-height: 70px; }
.bd-f.bd-boss .bd-body { transform: scale(calc(var(--z) * .62)); } .bd-f.bd-boss .bd-sp { max-width: 190px; max-height: 175px; }
.bd-f.bd-lunge .bd-body { animation: bdlunge .45s ease-out; }
.bd-f.bd-l { --dir: 1; } .bd-f.bd-r { --dir: -1; }
@keyframes bdlunge { 40% { translate: calc(var(--dir) * 70px) -10px; rotate: calc(var(--dir) * 10deg); } }
.bd-f.bd-ouch .bd-sp { animation: bdouch .5s; }
@keyframes bdouch { 0%, 100% { translate: 0; filter: none; } 20% { translate: -5px 0; filter: brightness(2) saturate(0); } 40% { translate: 5px 0; filter: none; }
  60% { translate: -4px 0; filter: brightness(1.8) sepia(1) hue-rotate(-30deg); } 80% { translate: 3px 0; } }
.bd-f.bd-ko .bd-sp { opacity: .25; filter: grayscale(1); }
.bd-tomb { position: absolute; bottom: 0; left: -40px; width: 80px; image-rendering: pixelated; animation: bdtomb .9s cubic-bezier(.5, 0, .7, 1.4) both; z-index: 3; }
@keyframes bdtomb { from { transform: translateY(-420px); } 70% { transform: translateY(0); } 85% { transform: translateY(-14px); } to { transform: translateY(0); } }

.bd-tag { position: absolute; top: 6px; left: 0; transform: translateX(-50%); background: rgba(20, 20, 30, .72); color: #fff; font-size: 12px; font-weight: 700;
  padding: 1px 7px; border-radius: 4px; white-space: nowrap; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.bd-bars { position: absolute; bottom: calc(var(--z) * 82px + 10px); left: 0; transform: translateX(-50%); width: 104px; display: flex; flex-direction: column; gap: 3px; }
.bd-f.bd-boss .bd-bars { bottom: calc(var(--z) * 112px + 10px); }
.bd-hp { position: relative; height: 13px; background: #3a1d1d; border: 2px solid #20140f; border-radius: 4px; overflow: hidden; }
.bd-hp i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(#ff8a7a, #e0332b 55%, #a8201a); transition: width .5s; }
.bd-hp b { position: relative; display: block; text-align: center; color: #fff; font-size: 9px; line-height: 9px; text-shadow: 0 1px 0 #000; }
.bd-mp { display: flex; gap: 2px; align-items: center; }
.bd-mp i { flex: 1; height: 8px; background: #1d2a46; border: 1px solid #0f172b; border-radius: 2px; }
.bd-mp i.on { background: linear-gradient(#9fd2ff, #2f7fe0 60%, #1d55a8); }
.bd-mp b { font-size: 9px; color: #1d3c74; margin-left: 2px; white-space: nowrap; }
.bd-buffs { font-size: 10px; font-weight: 800; color: #6b2200; text-align: center; min-height: 0; }
.bd-hp.secret i { background: linear-gradient(#9a9aa8, #5c5c6c); }
.bd-think { position: absolute; bottom: calc(var(--z) * 82px + 48px); left: 0; transform: translateX(-50%); font-size: 22px; animation: float 1.6s ease-in-out infinite; }
.bd-f.bd-boss .bd-think { bottom: calc(var(--z) * 112px + 48px); }
.bd-think[hidden] { display: none; }

/* reveal cards, damage numbers, effects, speech bubbles */
.bd-card { position: absolute; bottom: calc(var(--z) * 82px + 44px); left: 0; transform: translateX(-50%); display: flex; align-items: center; gap: 4px;
  background: #fffaf0; border: 2px solid #3b2f22; border-radius: 10px; padding: 3px 8px 3px 4px; box-shadow: 2px 3px 0 rgba(0,0,0,.25);
  animation: bdcard 3s ease-out forwards; z-index: 5; white-space: nowrap; }
.bd-f.bd-boss .bd-card { bottom: calc(var(--z) * 112px + 44px); }
.bd-card img { width: 30px; height: 30px; object-fit: contain; image-rendering: pixelated; }
.bd-card span { font-size: 24px; } .bd-card b { font-size: 13px; }
@keyframes bdcard { 0% { transform: translateX(-50%) rotateY(90deg) scale(.6); } 12% { transform: translateX(-50%) rotateY(0) scale(1.15); }
  20%, 85% { transform: translateX(-50%) scale(1); opacity: 1; } 100% { transform: translateX(-50%) translateY(-10px); opacity: 0; } }
.bd-fx { position: absolute; left: 50%; top: 55%; background-repeat: no-repeat; pointer-events: none; image-rendering: pixelated; }
.bd-fx.bd-big { left: 0; top: 0; z-index: 4; }
.bd-fx.bd-feet { top: 100%; }
.bd-num { position: absolute; left: 0; bottom: calc(var(--z) * 60px); transform: translateX(-50%); display: flex; align-items: flex-end; z-index: 6;
  animation: bdnum 1.4s ease-out forwards; pointer-events: none; }
.bd-num i { display: inline-block; margin-right: -9px; image-rendering: pixelated; }
.bd-num .cri { position: absolute; left: 50%; bottom: 10px; transform: translateX(-60%); z-index: -1; }
.bd-num small { font: 900 14px Ubuntu, sans-serif; color: #2f7fe0; margin-left: 12px; -webkit-text-stroke: .5px #fff; }
.bd-num .w { font: 900 22px Ubuntu, sans-serif; color: #fff; -webkit-text-stroke: 1px #1d55a8; text-shadow: 2px 2px 0 #1d55a8; letter-spacing: 1px; }
.bd-num.bd-n-blue { bottom: calc(var(--z) * 40px); }
@keyframes bdnum { 0% { transform: translate(-50%, 10px) scale(.6); opacity: 0; } 12% { transform: translate(-50%, 0) scale(1.15); opacity: 1; }
  25% { transform: translate(-50%, 0) scale(1); } 75% { opacity: 1; } 100% { transform: translate(-50%, -46px); opacity: 0; } }
.bd-bubble { position: absolute; bottom: calc(var(--z) * 82px + 52px); left: 0; transform: translateX(-50%); background: #fff; color: #222; border: 1px solid #555;
  border-radius: 7px; padding: 4px 8px; font-size: 13px; font-weight: 700; white-space: nowrap; z-index: 7; animation: pop .2s;
  box-shadow: 1px 2px 0 rgba(0,0,0,.2); }
.bd-bubble::after { content: ""; position: absolute; left: 50%; bottom: -7px; margin-left: -6px; border: 6px solid transparent; border-top-color: #fff; border-bottom: 0; }
.bd-f.bd-l .bd-bubble { left: -20px; transform: none; } .bd-f.bd-l .bd-bubble::after { left: 26px; }
.bd-f.bd-r .bd-bubble { left: auto; right: -20px; transform: none; } .bd-f.bd-r .bd-bubble::after { left: auto; right: 20px; }
.bd-f.bd-boss .bd-bubble { bottom: calc(var(--z) * 112px + 52px); }

.bd-banner { position: absolute; left: 50%; top: 14px; transform: translateX(-50%) scale(.8); opacity: 0; pointer-events: none; z-index: 9; text-align: center;
  font: 900 24px Ubuntu, sans-serif; color: #ffe14a; -webkit-text-stroke: 1px #5a2a00; text-shadow: 3px 3px 0 #5a2a00; transition: .25s; width: 94%; }
.bd-banner.on { opacity: 1; transform: translateX(-50%) scale(1); }
.bd-banner.ask { pointer-events: auto; background: #fffaf0; color: var(--ink); -webkit-text-stroke: 0; text-shadow: none; font-size: 16px; font-weight: 700;
  border: 3px solid #3b2f22; border-radius: 14px; padding: 10px; box-shadow: 4px 6px 0 rgba(0,0,0,.25); }
.bd-ans { display: flex; gap: 8px; margin-top: 8px; } .bd-ans .sk-btn { flex: 1; font-size: 17px; padding: 8px; }

.bd-say { height: 58px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--card);
  border: 1px dashed var(--edge); border-radius: 12px; padding: 4px 10px; font-weight: 600; text-align: center; line-height: 1.3; }
.bd-say > span { display: block; max-height: 100%; }
.bd-say.free { height: auto; min-height: 58px; }
.bd-inv { display: flex; gap: 6px; width: 100%; margin-top: 6px; } .bd-inv input { flex: 1; min-width: 0; border: 2px solid var(--edge); border-radius: 10px; padding: 6px 8px; font: inherit; }
.bd-panel { display: flex; flex-direction: column; gap: 6px; }
.bd-panel[hidden] { display: none; }
.bd-moves { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.bd-move { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 12px; background: var(--card);
  border: 2px solid var(--edge); font: inherit; color: var(--ink); cursor: pointer; touch-action: manipulation; box-shadow: 2px 3px 0 rgba(60,45,30,.18); }
.bd-move .ic { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; background: linear-gradient(#3a4a6e, #222c45);
  border: 2px solid #8fa6d0; border-radius: 9px; box-shadow: inset 0 0 0 1px #10172a; }
.bd-move .ic img { width: 36px; height: 36px; object-fit: contain; image-rendering: pixelated; }
.bd-move b { font-size: 13px; line-height: 1.1; text-align: center; }
.bd-move i { font-style: normal; font-size: 11px; font-weight: 800; color: #2f6db5; }
.bd-move:not(:disabled):hover { transform: translateY(-2px); border-color: var(--gold); }
.bd-move:not(:disabled):active { transform: translateY(1px); }
.bd-move.sel { background: #ffe8a3; border-color: var(--red); }
.bd-move:disabled { opacity: .45; cursor: default; box-shadow: none; }
.bd-move.sel:disabled { opacity: 1; }
.bd-extra { display: flex; gap: 6px; align-items: center; min-height: 46px; }
.bd-double { flex: 0 0 auto; border: 0; border-radius: 12px; background: linear-gradient(#ffcf4a, #e08a12); color: #4a2600; font: 800 15px Ubuntu, sans-serif;
  padding: 8px 12px; cursor: pointer; box-shadow: 2px 3px 0 rgba(60,45,30,.25); }
.bd-double small { display: block; font-size: 11px; font-weight: 700; }
.bd-double[hidden] { display: none; } .bd-double:disabled { opacity: .5; }
.bd-taunts { display: flex; gap: 5px; overflow-x: auto; flex: 1; padding: 2px 0; scrollbar-width: none; }
.bd-taunts::-webkit-scrollbar { display: none; }
.bd-taunts button { flex: 0 0 auto; border: 1px solid #555; background: #fff; border-radius: 7px; padding: 6px 9px; font: 700 13px Ubuntu, sans-serif; cursor: pointer;
  color: #222; touch-action: manipulation; }
.bd-taunts button:active { transform: scale(.95); }
.bd-result { background: var(--card); border: 3px solid #3b2f22; border-radius: 14px; padding: 12px; text-align: center; box-shadow: 4px 6px 0 rgba(0,0,0,.18);
  animation: pop .3s; }
.bd-result[hidden] { display: none; }
.bd-result h3 { margin: 0 0 4px; font-size: 22px; } .bd-result p { margin: 0 0 6px; color: var(--muted); }
.bd-result .pts { font-weight: 800; color: #b07d00; margin-bottom: 8px; }
.bd-result .row { display: flex; gap: 8px; } .bd-result .row .sk-btn { flex: 1; font-size: 20px; }

/* phones: one screen, no nav */
@media (max-width: 900px) {
  body.bd-playing nav, body.bd-playing footer { display: none; }
  body.bd-playing main { padding: 0; }
  .bd.playing { padding: 4px; }
  .bd.playing .bd-h, .bd.playing .bd-fame { display: none; }
  .bd-game { min-height: calc(100dvh - 8px); padding: 4px; gap: 5px; border-radius: 12px; }
  .bd.playing .bd-arena { flex: 1 1 auto; height: auto; min-height: 300px; max-height: 480px; }
  .bd-top { padding: 4px 8px; } .bd-phase { font-size: 14px; } #bdClock, #btClock { width: 36px; height: 36px; flex-basis: 36px; font-size: 14px; }
}
@media (max-width: 560px) {
  .bd-arena { --z: 1.55; --gl: 74px; height: 300px; }
  .bd-f { left: 25%; } .bd-f.bd-r { left: 75%; }
  .bd-bars { width: 92px; }
  .bd-move { padding: 5px 1px; } .bd-move .ic { width: 40px; height: 40px; } .bd-move .ic img { width: 32px; height: 32px; }
  .bd-move b { font-size: 11px; } .bd-move i { font-size: 10px; }
  .bd-say { font-size: 13px; padding: 3px 8px; height: 50px; } .bd-say.free { min-height: 50px; }
  .bd-banner { font-size: 20px; }
}

/* class picker */
.bd-pick-h { font-weight: 800; font-size: 14px; color: var(--muted); }
.bd-classes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.bd-class { display: flex; flex-direction: column; align-items: center; gap: 2px; background: #fff; border: 2px solid var(--edge); border-radius: 12px;
  padding: 6px 3px; font: inherit; color: var(--ink); cursor: pointer; touch-action: manipulation; min-width: 0; }
.bd-class img { width: 32px; height: 32px; image-rendering: pixelated; }
.bd-class b { font-size: 12px; white-space: nowrap; }
.bd-class small { display: none; }
.bd-class.on { border-color: #c0612b; background: #fff1e6; box-shadow: 0 0 0 2px #c0612b; }
.bd-class.on small { display: block; }
.bd-classes:has(.on) { position: relative; }
.bd-class.on small { position: absolute; left: 0; right: 0; top: 100%; margin-top: 6px; background: #fff8ef; border: 1px solid #e3c3a8; border-radius: 10px;
  padding: 6px 8px; font-size: 12px; line-height: 1.35; color: var(--ink); text-align: left; z-index: 3; }
.bd-classes { margin-bottom: 64px; }
.bd-maps { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; font-size: 13px; }
.bd-maps span { background: #fff; border: 1px solid var(--edge); border-radius: 8px; padding: 4px 8px; }
.bd-maps b { margin-right: 4px; }
.bd-map { color: #2f6db5; font-weight: 700; }
/* 6th move: the class skill */
.bd-moves { grid-template-columns: repeat(6, 1fr); }
.bd-move.skill .ic { background: linear-gradient(#6a3d16, #3a1f08); border-color: #f0b84a; }
.bd-card.sk { border-color: #c0861a; background: #fff5d8; }
.bd-f.bd-tele .bd-sp { animation: bdtele 1.3s; }
@keyframes bdtele { 0% { opacity: 1; } 15%, 75% { opacity: 0; } 100% { opacity: 1; } }
/* critical tap ring */
.bd-ring { position: absolute; left: 0; bottom: calc(var(--z) * 40px); width: 0; height: 0; z-index: 8; pointer-events: none; }
.bd-ring i, .bd-ring b { position: absolute; left: -28px; top: -28px; width: 56px; height: 56px; border-radius: 50%; }
.bd-ring b { border: 3px dashed rgba(255, 225, 74, .95); box-shadow: 0 0 6px rgba(0,0,0,.4); }
.bd-ring i { border: 4px solid #ff4d3d; animation: bdring 1s linear forwards; box-shadow: 0 0 8px #ff4d3d; }
@keyframes bdring { from { transform: scale(2.4); opacity: .4; } 20% { opacity: 1; } to { transform: scale(.3); opacity: 1; } }
.bd-ring.hit b { border-color: #fff; background: rgba(255, 225, 74, .5); transform: scale(1.3); transition: .2s; }
.bd-ring.miss { opacity: .3; }
@media (max-width: 560px) {
  .bd-moves { grid-template-columns: repeat(3, 1fr); }
  .bd-classes { gap: 3px; } .bd-class b { font-size: 10px; } .bd-class img { width: 28px; height: 28px; }
  }

/* Zakum's arm: at the far edge of the arena on the target's side, slams in toward them at the reveal.
   (mirroring uses the separate `scale` property, so the animations below stay the same for both sides) */
.bd-arm { position: absolute; bottom: calc(var(--gl) - 10px); width: 280px; z-index: 1; pointer-events: none; image-rendering: pixelated;
  filter: drop-shadow(0 0 12px rgba(255, 70, 20, .95)) brightness(1.15); animation: bdarm 1.1s ease-in-out infinite alternate; }
.bd-arm.r { right: -20px; }
.bd-arm.l { left: -20px; scale: -1 1; }
@keyframes bdarm { from { transform: translateY(14px) rotate(-4deg); } to { transform: translateY(-10px) rotate(4deg); } }
.bd-arm.slam { animation: bdslam .45s .6s cubic-bezier(.6, 0, .9, .4) forwards; }
@keyframes bdslam { to { transform: translate(-90px, 60px) rotate(-30deg); } }
/* phones: same idea, at the side edge on the target's side; drawn in front so the narrow arena doesn't hide it */
@media (max-width: 560px) {
  .bd-arm { width: 165px; bottom: calc(var(--gl) + 30px); z-index: 3; }
  .bd-arm.r { right: -45px; } .bd-arm.l { left: -45px; }
}

.bd-music { padding: 6px 9px; font-size: 16px; }

/* Professor CrtlAltDel's quick sum */
.bd-quiz { position: fixed; inset: 0; z-index: 9000; background: rgba(30, 20, 10, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.bd-quiz[hidden] { display: none; }
.bd-quiz-card { background: var(--card); border: 3px solid #3b2f22; border-radius: 16px; padding: 16px; width: min(360px, 100%); box-shadow: 6px 9px 0 rgba(0,0,0,.25);
  display: flex; flex-direction: column; gap: 12px; animation: pop .25s; font-family: Ubuntu, system-ui, sans-serif; }
.bd-quiz-card.shake { animation: bdshake .4s; }
@keyframes bdshake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.bd-quiz-prof { display: flex; align-items: flex-end; gap: 10px; }
.bd-quiz-prof img { height: 86px; image-rendering: pixelated; }
.bd-quiz-say { flex: 1; background: #fff; border: 1px solid #555; border-radius: 10px; padding: 8px 10px; font-weight: 700; font-size: 14px; position: relative; }
.bd-quiz-say b { display: block; font-size: 30px; color: #c0612b; margin-top: 4px; }
.bd-quiz-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bd-quiz-keys button { font: 800 26px Ubuntu, sans-serif; padding: 12px 0; border-radius: 12px; border: 2px solid var(--edge); background: #fff; color: var(--ink);
  cursor: pointer; touch-action: manipulation; box-shadow: 2px 3px 0 rgba(60,45,30,.18); }
.bd-quiz-keys button:active { transform: translateY(2px); background: #fff3d6; }
.bd-quiz-x { align-self: center; }

/* ---------------------------------------------------------------- 2v2 */
.bt-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.bt-btns .sk-btn { font-size: 15px; padding-left: 6px; padding-right: 6px; }
.bt-find { background: #3f7fd0; }
.bt-arena { --z: 1.45; }
.bt-arena .bd-bars { width: 86px; }
.bt-arena .bd-tag { font-size: 11px; max-width: 110px; }
.bt-arena .bd-f.bt-t1 .bd-tag { box-shadow: inset 0 -3px 0 #4f9cff; }
.bt-arena .bd-f.bt-t2 .bd-tag { box-shadow: inset 0 -3px 0 #ff5a4f; }
.bt-arena .bd-f.bt-me .bd-tag { background: #2a5aa8; }
.bt-arena .bd-f.bt-can { cursor: pointer; }
.bt-arena .bd-f.bt-can .bd-body::before { content: ""; position: absolute; left: 10%; right: 10%; bottom: -6px; height: 14px; border-radius: 50%;
  background: radial-gradient(rgba(255, 220, 60, .9), rgba(255, 220, 60, 0) 70%); animation: pop .5s infinite alternate; }
.bt-arena .bd-f.bt-can .bd-sp { filter: drop-shadow(0 0 3px #ffd84a) drop-shadow(0 0 2px #ffd84a); }
.bt-arena .bd-f.bt-aim .bd-tag::after { content: " 🎯"; }
.bt-arena .bd-card b { font-size: 11px; white-space: nowrap; }
.bd-bubble.bt-sig { background: #e6f0ff; border-color: #2a5aa8; font-weight: 800; }
.bt-targets { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; background: #fff8e0; border: 2px solid var(--gold); border-radius: 10px; padding: 5px 8px; }
.bt-targets[hidden] { display: none; }
.bt-targets span { font-weight: 800; font-size: 13px; }
.bt-targets button { border: 2px solid #3b2f22; background: #fff; border-radius: 8px; padding: 6px 12px; font: 700 14px Ubuntu, sans-serif; cursor: pointer; touch-action: manipulation; }
.bt-targets button:hover { background: #ffe8a3; }
#btMoves { grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); }
#btMoves .bd-move b { overflow-wrap: anywhere; }
.bd-move.revive .ic { background: linear-gradient(#b8304a, #6a1426); border-color: #ff9fb0; }
.bt-lobby { background: var(--card); border: 2px solid var(--edge); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.bt-lobby[hidden] { display: none; }
.bt-teams { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.bt-team { display: flex; flex-direction: column; gap: 5px; }
.bt-team h4 { margin: 0; text-align: center; }
.bt-vs { font-weight: 900; font-size: 20px; color: var(--red); }
.bt-pl { display: flex; align-items: center; gap: 6px; background: #fff; border: 2px solid #4f9cff; border-radius: 10px; padding: 4px 6px; min-width: 0; }
.bt-team.t2 .bt-pl { border-color: #ff5a4f; }
.bt-pl img { width: 34px; height: 34px; object-fit: contain; image-rendering: pixelated; }
.bt-team.t2 .bt-pl img { transform: scaleX(-1); }
.bt-pl b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-pl small { margin-left: auto; font-size: 11px; color: var(--muted); white-space: nowrap; }
.bt-pl.empty { justify-content: center; color: var(--muted); border-style: dashed; height: 46px; }
.bt-host { display: flex; gap: 6px; } .bt-host .sk-btn { flex: 1; }
.bt-note { margin: 0; text-align: center; color: var(--muted); font-size: 13px; }
@media (max-width: 560px) {
  .bt-arena { --z: 1.05; }
  .bt-arena .bd-bars { width: 70px; }
  .bt-arena .bd-tag { font-size: 10px; max-width: 80px; padding: 1px 4px; }
  .bt-arena .bd-card b { font-size: 10px; }
  .bt-pl small { display: none; }
}

/* how to play: the "what beats what" circle */
.cy-h { margin: 4px 0 2px; font-size: 15px; } .cy-h small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.cy-ring { position: relative; width: 100%; max-width: 340px; aspect-ratio: 1; margin: 18px auto 14px; }
.cy-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cy-mv { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 2px; width: 96px; }
.cy-mv .ic { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: linear-gradient(#3a4a6e, #222c45);
  border: 3px solid #fff; box-shadow: 0 0 0 2px #2d2832, 3px 4px 0 rgba(0,0,0,.18); transform: rotate(var(--r)); }
.cy-mv .ic img { width: 38px; height: 38px; image-rendering: pixelated; }
.cy-mv b { white-space: nowrap; font-size: 13px; background: var(--c); color: #fff; padding: 1px 8px; border-radius: 6px; transform: rotate(calc(var(--r) * -1)); box-shadow: 2px 2px 0 rgba(0,0,0,.15); }
.cy-mv small { font-size: 11px; color: var(--muted); font-weight: 700; white-space: nowrap; }
.cy-lbl { position: absolute; transform: translate(-50%, -50%); font-size: 11.5px; font-weight: 700; background: #fff8e6; border: 1.5px dashed var(--gold); border-radius: 8px;
  padding: 2px 6px; white-space: nowrap; text-align: center; line-height: 1.25; }
.cy-mid { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; font-weight: 700; font-size: 12px; color: var(--muted); }
.cy-mid big { display: block; font-size: 28px; }
.cy-side { display: flex; gap: 10px; align-items: center; background: #eef6ff; border: 1px solid #c8daf0; border-radius: 12px; padding: 8px 10px; font-size: 13px; }
.cy-side img { width: 34px; height: 34px; image-rendering: pixelated; } .cy-side b { display: block; font-size: 14px; }
.cy-tip { font-size: 12.5px; color: var(--muted); margin: 8px 0 6px; text-align: center; }
.cy-sks { display: grid; gap: 5px; }
.cy-sk { display: grid; grid-template-columns: 32px 1fr; gap: 8px; align-items: center; background: #fff; border: 1px solid var(--edge); border-radius: 10px; padding: 5px 8px; font-size: 12.5px; }
.cy-sk img { width: 30px; height: 30px; image-rendering: pixelated; }
.cy-sk .ok { color: #2e7d32; font-weight: 700; } .cy-sk .no { color: var(--red); font-weight: 700; }
