/* V47R4A hotfix: the two original games were moved into #alienate-father-midway,
   but their visual rules remained scoped to #alienate-father-carnival. This file
   restores the intended styling without altering evidence content or game logic. */

/* Games are explicitly nested inside the carnival. */
body.amanda-record-page #alienate-father-midway .am-carnival-games{
  position:relative;
  z-index:2;
  display:block!important;
  margin:0!important;
  padding:26px 0 0!important;
  background:transparent!important;
  color:#fff!important;
  border-top:2px dashed rgba(255,209,102,.55);
}
body.amanda-record-page #alienate-father-midway .am-carnival-games-head{text-align:center;max-width:820px;margin:0 auto 22px}
body.amanda-record-page #alienate-father-midway .am-carnival-games-head h3{
  margin:0 0 7px!important;
  color:#fff7df!important;
  font-size:clamp(28px,4vw,44px)!important;
  line-height:1.05!important;
  text-shadow:0 4px 12px rgba(0,0,0,.6)!important;
}
body.amanda-record-page #alienate-father-midway .am-carnival-games-head p{color:#e9deee!important;font-size:15px!important}
body.amanda-record-page #alienate-father-midway .am-carnival-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:22px;
}
body.amanda-record-page #alienate-father-midway .am-carnival-card{
  position:relative;
  overflow:hidden;
  padding:24px 22px 22px;
  border:3px solid rgba(255,209,102,.7)!important;
  border-radius:22px;
  background:linear-gradient(180deg,#fffaf0 0%,#fff4e8 100%)!important;
  color:#221025!important;
  box-shadow:0 18px 38px rgba(0,0,0,.38),inset 0 0 0 3px rgba(139,23,56,.16);
}
body.amanda-record-page #alienate-father-midway .am-carnival-card::before{
  content:"";
  position:absolute;
  inset:0 0 auto;
  height:10px;
  background:repeating-linear-gradient(90deg,#c8102e 0 22px,#ffd166 22px 44px,#168aad 44px 66px,#72f1b8 66px 88px)!important;
}
body.amanda-record-page #alienate-father-midway .am-carnival-card h4{
  margin:9px 0 7px!important;
  color:#64102d!important;
  font-size:25px!important;
  line-height:1.15!important;
}
body.amanda-record-page #alienate-father-midway .am-carnival-kicker{
  display:inline-block;
  color:#0d3b66!important;
  font-size:12px!important;
  font-weight:900!important;
  letter-spacing:.1em!important;
  text-transform:uppercase!important;
}
body.amanda-record-page #alienate-father-midway .am-carnival-copy,
body.amanda-record-page #alienate-father-midway .am-carnival-footnote{
  color:#3c3340!important;
  line-height:1.6!important;
}
body.amanda-record-page #alienate-father-midway .am-carnival-footnote{margin-top:14px!important;font-size:13px!important}
body.amanda-record-page #alienate-father-midway .am-carnival-controls{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:16px 0}
body.amanda-record-page #alienate-father-midway .am-carnival-btn{
  appearance:none;
  border:0!important;
  border-radius:999px!important;
  padding:11px 17px!important;
  background:linear-gradient(180deg,#e31945,#a6082c)!important;
  color:#fff!important;
  font-size:14px!important;
  font-weight:900!important;
  line-height:1.2!important;
  cursor:pointer;
  box-shadow:0 7px 0 #65071e,0 10px 18px rgba(176,0,32,.25)!important;
  transition:transform .12s ease,filter .12s ease,box-shadow .12s ease;
}
body.amanda-record-page #alienate-father-midway .am-carnival-btn.secondary{background:linear-gradient(180deg,#14658a,#0b3e5b)!important;box-shadow:0 7px 0 #06263a,0 10px 18px rgba(13,59,102,.25)!important}
body.amanda-record-page #alienate-father-midway .am-carnival-btn:hover{filter:brightness(1.08);transform:translateY(-1px)}
body.amanda-record-page #alienate-father-midway .am-carnival-btn:active{transform:translateY(5px);box-shadow:0 2px 0 #65071e!important}
body.amanda-record-page #alienate-father-midway .am-carnival-btn:focus-visible{outline:4px solid #ffd166!important;outline-offset:3px!important}
body.amanda-record-page #alienate-father-midway .am-carnival-status{flex:1 1 180px;min-height:22px;color:#0d3b66!important;font-size:13px!important;font-weight:800!important}
body.amanda-record-page #alienate-father-midway .am-carnival-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:16px 0 18px}
body.amanda-record-page #alienate-father-midway .am-carnival-stat{padding:11px 8px;text-align:center;border:1px solid rgba(13,59,102,.13);border-radius:14px;background:#fff!important;box-shadow:inset 0 -3px rgba(13,59,102,.04)}
body.amanda-record-page #alienate-father-midway .am-carnival-stat strong{display:block;color:#111827!important;font-size:27px!important;line-height:1!important}
body.amanda-record-page #alienate-father-midway .am-carnival-stat span{display:block;margin-top:6px;color:#5b6470!important;font-size:10px!important;font-weight:800!important;text-transform:uppercase;letter-spacing:.08em}

/* Whack-a-Deflection */
body.amanda-record-page #alienate-father-midway .am-whack-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin:18px 0}
body.amanda-record-page #alienate-father-midway .am-whack-hole{
  position:relative;
  min-height:124px;
  overflow:hidden;
  border:2px dashed rgba(13,59,102,.28)!important;
  border-radius:18px;
  background:radial-gradient(circle at 50% 116%,#6f310e 0 30%,#2d1307 31% 45%,#ffd8b3 46% 100%)!important;
}
body.amanda-record-page #alienate-father-midway .am-whack-target{
  position:absolute;
  left:7px;right:7px;bottom:-122px;
  height:111px;
  border:0!important;
  border-radius:18px 18px 14px 14px!important;
  padding:10px 7px!important;
  background:linear-gradient(180deg,#ffe8ef,#ffc6d6)!important;
  color:#541127!important;
  font-weight:900!important;
  line-height:1.12!important;
  cursor:pointer;
  box-shadow:0 10px 20px rgba(176,0,32,.16)!important;
  transition:bottom .18s ease,transform .18s ease,background .18s ease!important;
}
body.amanda-record-page #alienate-father-midway .am-whack-target::before{content:"🤡";display:block;font-size:27px;margin-bottom:5px}
body.amanda-record-page #alienate-father-midway .am-whack-target.is-up{bottom:16px}
body.amanda-record-page #alienate-father-midway .am-whack-target.is-hit{background:linear-gradient(180deg,#d1fae5,#8af0c5)!important;transform:scale(.96)}
body.amanda-record-page #alienate-father-midway .am-whack-target span{display:block;color:inherit!important;font-size:13px!important}

/* Balloon game */
body.amanda-record-page #alienate-father-midway .am-balloon-arena{
  position:relative;
  height:330px;
  overflow:hidden;
  border:3px solid rgba(13,59,102,.22)!important;
  border-radius:20px;
  background:
    linear-gradient(180deg,#b7e9ff 0%,#e9f9ff 52%,#ffe9af 78%,#ffd7a8 100%)!important;
  box-shadow:inset 0 -22px 0 rgba(155,43,18,.15);
}
body.amanda-record-page #alienate-father-midway .am-balloon-arena::before{
  content:"POP THE EXCUSE BALLOONS";
  position:absolute;
  left:13px;top:10px;
  color:rgba(13,59,102,.17)!important;
  font-size:22px!important;
  font-weight:1000!important;
  letter-spacing:.11em;
}
body.amanda-record-page #alienate-father-midway .am-balloon{
  position:absolute;
  bottom:-112px;
  width:92px;
  min-height:112px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:14px 9px 25px!important;
  border:2px solid rgba(31,41,55,.18)!important;
  border-radius:50% 50% 45% 45%!important;
  color:#191025!important;
  font-size:12px!important;
  font-weight:900!important;
  line-height:1.08!important;
  text-align:center;
  cursor:pointer;
  user-select:none;
  box-shadow:0 15px 30px rgba(15,23,42,.2)!important;
  transition:bottom 6s linear,opacity .22s ease,transform .12s ease!important;
}
body.amanda-record-page #alienate-father-midway .am-balloon::after{content:"";position:absolute;left:50%;bottom:-27px;width:2px;height:29px;background:#334155!important;transform:translateX(-50%)}
body.amanda-record-page #alienate-father-midway .am-balloon.balloon-a{background:#fca5a5!important}
body.amanda-record-page #alienate-father-midway .am-balloon.balloon-b{background:#fde68a!important}
body.amanda-record-page #alienate-father-midway .am-balloon.balloon-c{background:#93c5fd!important}
body.amanda-record-page #alienate-father-midway .am-balloon.balloon-d{background:#86efac!important}
body.amanda-record-page #alienate-father-midway .am-balloon.balloon-e{background:#f9a8d4!important}
body.amanda-record-page #alienate-father-midway .am-balloon:hover{transform:scale(1.04)}
body.amanda-record-page #alienate-father-midway .am-balloon.is-popped{opacity:0;transform:scale(.55) rotate(14deg)}
body.amanda-record-page #alienate-father-midway .am-carnival-best{display:inline-flex;align-items:baseline;gap:7px;margin-top:12px;padding:7px 11px;border-radius:999px;background:#fff!important;border:1px solid rgba(13,59,102,.16)!important}
body.amanda-record-page #alienate-father-midway .am-carnival-best strong{color:#b00020!important;font-size:22px!important}
body.amanda-record-page #alienate-father-midway .am-carnival-best span{color:#4b5563!important;font-size:11px!important;font-weight:800!important;text-transform:uppercase;letter-spacing:.08em}


@media (max-width:991px){
  body.amanda-record-page #alienate-father-midway .am-carnival-grid{grid-template-columns:1fr}
}
@media (max-width:767px){
  body.amanda-record-page #alienate-father-midway .am-carnival-card{padding:22px 14px 18px}
  body.amanda-record-page #alienate-father-midway .am-carnival-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.amanda-record-page #alienate-father-midway .am-whack-grid{gap:8px}
  body.amanda-record-page #alienate-father-midway .am-whack-hole{min-height:108px}
  body.amanda-record-page #alienate-father-midway .am-whack-target{height:96px}
  body.amanda-record-page #alienate-father-midway .am-whack-target::before{font-size:21px}
  body.amanda-record-page #alienate-father-midway .am-balloon{width:80px;min-height:98px;font-size:10px!important}
  body.amanda-record-page #alienate-father-midway .am-balloon-arena{height:300px}
}
@media (max-width:430px){
  body.amanda-record-page #alienate-father-midway .am-whack-target span{font-size:11px!important}
}
