/* style.duel.css (generated) — duel-only overrides (body.mode-duel …) */
/* ===== DUEL MODE: global mood shift ===== */
/* =========================
   DUEL — EXTREME WAR HUD
   ========================= */
body.mode-duel{
  --duel-red: rgba(255, 70, 82, .95);
  --duel-red2: rgba(255, 30, 55, .55);
  --duel-glow: rgba(255, 110, 120, .28);
  --duel-shadow: rgba(0,0,0,.55);

  background:
    radial-gradient(1200px 650px at 50% 0%, rgba(255, 40, 60, .18), transparent 60%),
    radial-gradient(900px 650px at 15% 45%, rgba(255, 70, 82, .10), transparent 66%),
    #02030a;
}
/* HUD: darker, sharper, more aggressive */
body.mode-duel .hud{
  border-color: rgba(255,70,82,.25);
  box-shadow:
    0 22px 50px rgba(0,0,0,.65),
    0 0 0 1px rgba(255,70,82,.10) inset;
}
/* HARD vignette + ember tint */
body.mode-duel .hud::before{
  content:"";
  position:absolute; inset:0;
  pointer-events:none;
  border-radius: inherit;
  background:
    radial-gradient(120% 130% at 50% 30%, rgba(255,70,82,.10), transparent 55%),
    radial-gradient(120% 120% at 50% 50%, transparent 45%, rgba(0,0,0,.58) 90%);
  mix-blend-mode: screen;
  opacity: .9;
}
/* Mode chip: “danger” highlight */
body.mode-duel #modeChip{
  background: rgba(255,70,82,.22);
  border-color: rgba(255,70,82,.45);
  box-shadow:
    0 0 0 2px rgba(255,70,82,.12) inset,
    0 10px 20px rgba(0,0,0,.35);
}
/* =========================
   DUEL — CENTER LOGO BLEND
   ========================= */

/* Make sure the logo wrapper can host a glow layer */
body.mode-duel #brandTitle{
  position: relative;
  isolation: isolate;           /* keeps blends contained */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Ember plate behind the logo (kills “sticker” look) */
body.mode-duel #brandTitle::before{
  content:"";
  position:absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 140%;
  border-radius: 999px;
  z-index: -1;

  background:
    radial-gradient(closest-side, rgba(255,70,82,.26), transparent 70%),
    radial-gradient(closest-side, rgba(255,140,80,.14), transparent 72%);

  filter: blur(10px);
  opacity: .95;
}

/* The image itself: glow + blend + less harsh outline */
body.mode-duel .brand-title-img{
  filter:
    drop-shadow(0 0 16px rgba(255,70,82,.30))
    drop-shadow(0 12px 26px rgba(0,0,0,.35));
  mix-blend-mode: screen;      /* makes dark edges less obvious */
  opacity: .98;
}

/* If screen is too strong on any device, swap to this:
body.mode-duel .brand-title-img{ mix-blend-mode: lighten; }
*/


body.mode-duel{
  background:
    radial-gradient(circle at 50% -20%,
      rgba(140,0,30,.35),
      rgba(10,10,18,.92) 60%),
    #0b0b14;
}body.mode-duel .hud,
body.mode-duel .topBanner{
  border-bottom: 2px solid rgba(255,82,82,.55);
  box-shadow: 0 12px 28px rgba(255,0,40,.25);
}/* Show only in Duel */
body.mode-duel .duelBadge{
  display:block;
}body.mode-duel .big.ball{
  box-shadow:
    0 0 0 2px rgba(255,82,82,.25),
    0 0 38px rgba(255,82,82,.35),
    inset 0 2px 0 rgba(255,255,255,.12);
}body.mode-duel .chip{
  border-color: rgba(255,82,82,.28);
}body.mode-duel .cell.daubed{
  background:
    radial-gradient(circle at 35% 35%, rgba(255,255,255,.16), rgba(255,255,255,0) 55%),
    rgba(255,82,82,.16);
  border-color: rgba(255,82,82,.50);
  box-shadow:
    0 0 0 2px rgba(255,255,255,.08) inset,
    0 0 22px rgba(255,82,82,.40);
}body.mode-duel .cell.daubed::before{
  background: rgba(255,82,82,.35);
}/* ================================
   DUEL: slightly sharper red presence
   ================================ */
body.mode-duel .claimIcon{
  filter:
    drop-shadow(0 18px 36px rgba(0,0,0,.60))
    drop-shadow(0 0 22px rgba(255,80,92,.22));
}body.mode-duel .claimBtn:hover .claimIcon{
  filter:
    drop-shadow(0 22px 44px rgba(0,0,0,.68))
    drop-shadow(0 0 26px rgba(255,80,92,.28));
}/* ===== Game state styling via body classes ===== */
/* ===== Duel mode visual identity ===== */
body.mode-duel{
  --accent: rgba(255,82,82,.85);
}body.mode-duel .chip{
  border-color: rgba(255,82,82,.25);
}body.mode-duel #modeChip{
  position: relative;
}body.mode-duel .row,
body.mode-duel .hud,
body.mode-duel .panel{
  position: relative;
}/* thin red scanline separator under key bars/rows */
body.mode-duel .hud::after{
  content:"";
  position:absolute;
  left: 10px;
  right: 10px;
  bottom: -6px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,82,82,.35), transparent);
  opacity: .85;
}/* Vignette */
body.mode-duel::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 700px at 50% 20%, transparent 45%, rgba(0,0,0,.60) 100%),
    linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.55));
  opacity: .65;
  z-index: 0;
}/* Grain (very subtle) */
body.mode-duel::after{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.015), rgba(255,255,255,.015) 1px, transparent 1px, transparent 3px);
  opacity: .25;
  mix-blend-mode: overlay;
  z-index: 0;
}/* Keep app above overlays */
body.mode-duel .app,
body.mode-duel .wrap,
body.mode-duel main,
body.mode-duel .hud{
  position: relative;
  z-index: 1;
}body.mode-duel .btn,
body.mode-duel button{
  transition: transform .08s ease, box-shadow .14s ease, border-color .14s ease, background .14s ease;
}body.mode-duel .btn:hover,
body.mode-duel button:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0,0,0,.65);
}body.mode-duel .btn:active,
body.mode-duel button:active{
  transform: translateY(0px) scale(.99);
}body.mode-duel #nextBall,
body.mode-duel .big.ball{
  position: relative;
  box-shadow:
    0 22px 44px rgba(0,0,0,.72),
    0 0 0 1px rgba(255,255,255,.10),
    0 0 0 2px rgba(255,82,82,.20),
    0 0 26px rgba(255,82,82,.22);
}/* inner ring */
body.mode-duel #nextBall::before{
  content:"";
  position:absolute;
  inset: 10%;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset;
  opacity: .9;
}body.mode-duel #modeChip{
  background: rgba(255,82,82,.18);
  border-color: rgba(255,82,82,.35);
}body.mode-duel .spotlight-ring{
  border-color: rgba(255,82,82,.25);
}body.mode-duel .spotlight-glow{
  background: radial-gradient(circle at 50% 50%,
    rgba(255,82,82,.14),
    rgba(0,0,0,0) 70%);
}body.mode-duel{
  color: rgba(255,255,255,.92);
}/* Panels: slightly darker, tighter */
body.mode-duel .panel{
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 20px 46px rgba(0,0,0,.70);
}/* Headings feel more “HUD” */
body.mode-duel .hud,
body.mode-duel .panel .title,
body.mode-duel h1, body.mode-duel h2, body.mode-duel h3{
  letter-spacing: .3px;
  text-transform: none; /* keep clean */
}/* Manual dab affordance */
body.mode-duel .cell{
  cursor: pointer;
}body.mode-duel .cell:hover{
  box-shadow:
    0 0 0 2px rgba(255,255,255,.12) inset,
    0 0 18px rgba(255,82,82,.35);
}/* Classic mode: no click affordance */
body:not(.mode-duel) .cell{
  cursor: default;
}/* ===== Reduce reveal ball footprint (no clashes) ===== */

/* Duel: never show last-ball assist */
body.mode-duel .cell.last{
  outline: none;
  box-shadow: none;
  transform: none;
  animation: none;
}
/* =========================================================
   DUEL — body.mode-duel
   ========================================================= */
/* Slightly sharper edges for “combat UI” */
body.mode-duel .panel,
body.mode-duel .card,
body.mode-duel .hud,
body.mode-duel .btn,
body.mode-duel input,
body.mode-duel select{
  border-radius: 12px;
}/* Subtle vignette over the whole UI */
body.mode-duel::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 800px at 50% 30%, transparent 45%, rgba(0,0,0,.55) 100%),
    linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.55));
  mix-blend-mode: multiply;
  opacity: .65;
  z-index: 0;
}/* Ensure content stays above vignette */
body.mode-duel .app,
body.mode-duel .wrap,
body.mode-duel main,
body.mode-duel .hud{
  position: relative;
  z-index: 1;
}/* Ball halo: tighter + red accent only */
body.mode-duel #nextBall,
body.mode-duel .big.ball{
  box-shadow:
    0 18px 35px rgba(0,0,0,.60),
    0 0 0 1px rgba(255,255,255,.10),
    0 0 0 2px rgba(255,80,92,.22),
    0 0 22px rgba(255,80,92,.22);
  filter: saturate(1.10) contrast(1.08);
}/* Red accents only where needed */
body.mode-duel .modeChip,
body.mode-duel .chip.mode{
  border: 1px solid rgba(255,80,92,.35);
  box-shadow: 0 0 0 2px rgba(255,80,92,.10) inset;
}/* Thin red separators for combat UI */
body.mode-duel hr,
body.mode-duel .sep,
body.mode-duel .divider{
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,80,92,.35), transparent);
  opacity: .9;
}/* Winners panel: more “serious”, less friendly glow */
body.mode-duel .panel.winners{
  background: linear-gradient(180deg, rgba(255,80,92,.06), rgba(255,255,255,.045));
  border: 1px solid rgba(255,255,255,.11);
  box-shadow: 0 18px 40px rgba(0,0,0,.65);
}/* Optional: “Duel badge” WITHOUT HTML changes (pseudo-element)
   - Works if you have a header brand element to attach to.
   - Swap .brand or .hud-left to whatever exists in your UI.
*/


/* Watermark: emphasize the Gundam/figure */
body.mode-duel .hud-watermark{
  background-image: url("assets/bingo-crypt-duel-figure.png");
  background-repeat:no-repeat;
  background-position: 50% 56%;
  background-size: 120% auto;
  opacity: .32;
  filter:
    saturate(1.25)
    contrast(1.18)
    drop-shadow(0 22px 40px rgba(0,0,0,.70));
}
.mode-duel #duelBadge{ display:none !important; }/* =========================
   DUEL THEME (OVERRIDES)
   ========================= */
body.mode-duel{
  --accent-main: rgba(255, 82, 82, 0.95);
  --accent-soft: rgba(255, 82, 82, 0.25);
  --accent-bg:   rgba(90, 0, 0, 0.35);
}
/* Chips/pills: red steel feel */
body.mode-duel .chip,
body.mode-duel .meta-pill{
  border-color: rgba(255,70,82,.32);
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow:
    0 16px 28px rgba(0,0,0,.45),
    inset 0 0 0 1px rgba(255,255,255,.06),
    inset 0 0 0 2px rgba(255,70,82,.10);
}
/* Mode chip emphasis */
body.mode-duel #modeChip{
  color: #fff;
  font-weight: 900;
}
/* Center logo: blend + glow (works best once we have transparent words) */
body.mode-duel .brand-title-img{
  filter:
    drop-shadow(0 0 18px rgba(255,70,82,.24))
    drop-shadow(0 12px 28px rgba(0,0,0,.34));
  opacity: .98;
}
/* Kill hero watermark (HUD only) */
body.mode-duel #hero .hero-watermark{ display:none !important; }

/* =========================
   V22: DUEL GRAVEYARD ARENA
   ========================= */
body.mode-duel{
  --duel-red:#ec4752;
  --duel-green:#82c944;
  --duel-stone:#a7aa9f;
  --accent:var(--duel-red);
  background:
    radial-gradient(circle at 13% 35%,rgba(236,71,82,.16),transparent 34%),
    radial-gradient(circle at 87% 35%,rgba(130,201,68,.15),transparent 34%),
    linear-gradient(160deg,#070a0d,#09151a 52%,#070b09) fixed;
}

body.mode-duel .playWorkspaceWindow{
  border-color:rgba(172,113,82,.48);
  background:
    linear-gradient(90deg,rgba(75,12,18,.12),transparent 35% 65%,rgba(52,91,18,.12)),
    #07141c;
}

body.mode-duel .playWorkspaceHeader{
  border-bottom-color:rgba(236,71,82,.28);
  background:linear-gradient(90deg,rgba(72,13,18,.50),rgba(10,21,27,.94) 45% 55%,rgba(42,73,17,.46));
}

body.mode-duel .playWorkspaceHeader span{color:#d76268}
body.mode-duel .playWorkspaceHeader strong{font-size:14px;letter-spacing:.08em;text-transform:uppercase}

body.mode-duel .playWorkspace .hud{
  min-height:118px;
  border-color:rgba(176,104,71,.62) !important;
  background:
    linear-gradient(90deg,rgba(18,4,7,.42),rgba(3,9,11,.10) 38% 62%,rgba(9,20,4,.40)),
    url("assets/bingo-crypt-duel-banner.png") center / cover no-repeat !important;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.05),
    inset 0 -26px 40px rgba(0,0,0,.25),
    0 16px 34px rgba(0,0,0,.52);
}

body.mode-duel .playWorkspace .hud::before{
  background:linear-gradient(90deg,rgba(88,10,18,.16),transparent 38% 62%,rgba(53,105,18,.15));
  mix-blend-mode:normal;
}

body.mode-duel .playWorkspace .meta-pills .meta-pill{
  border-color:rgba(236,71,82,.38);
  background:rgba(12,6,9,.82);
  box-shadow:inset 3px 0 0 rgba(236,71,82,.48);
}
body.mode-duel .playWorkspace .chip-row .chip{
  border-color:rgba(130,201,68,.38);
  background:rgba(7,13,6,.82);
  box-shadow:inset -3px 0 0 rgba(130,201,68,.48);
}
body.mode-duel .playWorkspace .hud .meta-k{color:#ff737b}
body.mode-duel .playWorkspace .hud .chip-k{color:#a5e46a}

body.mode-duel .playSurface.gameplayDashboard{
  background:
    linear-gradient(90deg,rgba(91,14,21,.07),transparent 31% 69%,rgba(59,101,22,.07));
}

body.mode-duel .gameMainStage .hero.hero-mini{
  border-color:rgba(166,116,83,.40);
  background:
    linear-gradient(100deg,rgba(105,15,22,.22),rgba(11,27,38,.98) 44% 56%,rgba(60,103,22,.20));
}
body.mode-duel .gameMainStage .heroStatus{
  border-color:rgba(196,154,95,.36);
  color:#f1e4c7;
  background:linear-gradient(180deg,rgba(99,74,43,.82),rgba(45,35,26,.92));
}

body.mode-duel .duelStakePanel{
  border-color:rgba(174,126,79,.52);
  background:
    linear-gradient(100deg,rgba(109,15,23,.24),rgba(13,22,25,.98) 46% 54%,rgba(64,110,23,.22));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 14px 28px rgba(0,0,0,.28);
}
body.mode-duel .duelStakeHead span{color:#ef6a71}
body.mode-duel .duelStakeHead em{color:#a9d681}
body.mode-duel .duelStakeActions button{border-color:rgba(171,126,78,.38)}
body.mode-duel #duelStakeProposeBtn{background:rgba(236,71,82,.22);border-color:rgba(236,71,82,.48)}
body.mode-duel #duelStakeConfirmBtn{background:rgba(130,201,68,.22);border-color:rgba(130,201,68,.48)}

body.mode-duel .gameMainStage .cardPanel:not(.hasCard){
  border-color:rgba(175,106,73,.45);
  background:
    linear-gradient(180deg,rgba(3,8,10,.18),rgba(3,8,10,.68)),
    url("assets/bingo-crypt-duel-banner.png") center / cover no-repeat;
}
body.mode-duel .gameMainStage .cardPanel:not(.hasCard)::after{
  content:"Join the Duel to reveal your battle card";
  color:#efe4cf;
}
body.mode-duel .cardPanel.hasCard{
  border-color:rgba(173,111,73,.48);
  background:linear-gradient(90deg,rgba(92,14,20,.15),rgba(6,15,19,.97) 48% 52%,rgba(57,99,20,.14));
}
body.mode-duel .cardPanel.hasCard::after{
  opacity:.22 !important;
  background:url("assets/bingo-crypt-duel-banner.png") center / cover no-repeat !important;
  filter:saturate(.85) contrast(1.15) brightness(.58) !important;
}
body.mode-duel .cardPanel.hasCard .colHeader:nth-child(-n+2){border-color:rgba(236,71,82,.46);box-shadow:0 0 12px rgba(236,71,82,.18)}
body.mode-duel .cardPanel.hasCard .colHeader:nth-child(n+4){border-color:rgba(130,201,68,.46);box-shadow:0 0 12px rgba(130,201,68,.18)}
body.mode-duel .cardPanel.hasCard .cell.daubed{
  border-color:rgba(211,155,74,.56);
  background:radial-gradient(circle at 50% 50%,rgba(211,155,74,.28),transparent 52%),rgba(25,22,16,.78);
  box-shadow:inset 0 0 0 1px rgba(211,155,74,.18),0 0 18px rgba(211,155,74,.20);
}

body.mode-duel .gameMainStage .drawnPanel{
  border-color:rgba(173,111,73,.46);
  background:
    radial-gradient(circle at 25% 34%,rgba(236,71,82,.13),transparent 34%),
    radial-gradient(circle at 75% 34%,rgba(130,201,68,.12),transparent 34%),
    linear-gradient(155deg,rgba(15,24,29,.98),rgba(5,12,15,.98));
}
body.mode-duel .gameMainStage .drawnProgress #heroProgressFill{
  background:linear-gradient(90deg,var(--duel-red),#d2a64f 50%,var(--duel-green));
}
body.mode-duel .gameMainStage .drawnLatest::before{content:"DUEL CALL";color:#d9b56b}

body.mode-duel .gamePromoRail .promoPanel{
  border-color:rgba(236,71,82,.24);
  background:linear-gradient(145deg,rgba(236,71,82,.07),rgba(9,22,28,.96) 55%);
}
body.mode-duel .gamePromoRail .promoPanel:nth-child(even){
  border-color:rgba(130,201,68,.24);
  background:linear-gradient(215deg,rgba(130,201,68,.07),rgba(9,22,28,.96) 55%);
}
body.mode-duel .gameInsightStack .heroMiniPanel{
  border-color:rgba(130,201,68,.25);
  background:linear-gradient(215deg,rgba(130,201,68,.07),rgba(9,22,28,.97) 52%);
}
body.mode-duel .gameInsightStack .winner-item::before{border-color:#d4a84e}
body.mode-duel .gameInsightStack .feed-item{border-left-color:var(--duel-green)}

@media(max-width:620px){
  body.mode-duel .playWorkspace .hud{min-height:150px;background-position:center}
}
