/* FLUFFYBANG: a toy-box versus poster, not a corporate landing page.
 * Sources: VPS library 20261005-v8 / character-scrub, master-w4-3d-cinematic;
 * original game rigs rendered by tools/render-home.mjs; fonts from the built
 * ACTIVATED design-system package. No reference figure or third-party film ships.
 * Palette: ink #101218, paper #f6f3ea, Fluffy #9be15d, Reverse #ff2d3d,
 * trophy #ffd23f, secondary #b9b4a8. Display Bebas, reading Avenir.
 * Layout: utility bar / full-bleed versus stage / play dock / quiet legal line.
 * [utility..................................options]
 * [             F L U F F Y B A N G               ]
 * [    original team F     /     original team R   ]
 * [     team names        VS        team names    ]
 * [     lobby action      |   train / join / duel  ]
 * Rejected: six equal feature cards. The actual two teams are the focal point.
 */
@font-face{font-family:BangDisplay;src:url('../../assets/fonts/BebasNeuePro-Bold.woff2') format('woff2');font-weight:700;font-display:swap}
@font-face{font-family:BangText;src:url('../../assets/fonts/AvenirLTPro-Book.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:BangText;src:url('../../assets/fonts/AvenirLTPro-Heavy.woff2') format('woff2');font-weight:700 900;font-display:swap}

#menu{--home-ink:#101218;display:none;padding:0;background:var(--home-ink);align-items:stretch;justify-content:flex-start;overflow-y:auto;overflow-x:hidden;color:#f6f3ea;font-family:BangText,var(--font);isolation:isolate}
#menu.show{display:block}
.home-shell{width:100%;max-width:2000px;min-height:100%;margin:auto;display:flex;flex-direction:column}
.home-nav{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px clamp(20px,4vw,72px);min-height:64px}
.home-brand{display:block;width:176px;flex:none}.home-brand img{display:block;width:100%;height:auto}
.loading-wordmark{display:block;width:min(680px,90vw);height:auto}
.home-tools{display:flex;gap:8px}
.home-tools button{appearance:none;background:none;border:0;color:#dededb;font-size:13px;font-weight:700;padding:9px 12px;min-height:40px;cursor:pointer}
.home-tools button:hover{color:#9be15d}
.home-tools .fs-btn{display:inline-flex;align-items:center;gap:6px}
.fs-btn svg{width:17px;height:17px;flex:none;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.home-tools .fs-btn[hidden]{display:none}
#menu button:focus-visible,#menu a:focus-visible{outline:3px solid #ffd23f;outline-offset:4px}
.home-arena{position:relative;isolation:isolate;min-height:500px;height:clamp(500px,65svh,760px);flex:1 0 auto;background:#9be15d;color:#101218;overflow:hidden}
.home-arena::before{content:'';position:absolute;inset:0;background:#ff2d3d;clip-path:polygon(56% 0,100% 0,100% 100%,44% 100%);z-index:-2}
.home-arena::after{content:'';position:absolute;inset:0;pointer-events:none;z-index:-1;background:repeating-linear-gradient(116deg,transparent 0 56px,#1012180a 57px 59px,transparent 60px 112px);mask-image:linear-gradient(transparent,#000)}
.home-title{position:absolute;z-index:4;top:10px;left:50%;width:min(86%,900px);transform:translateX(-50%);margin:0;pointer-events:none}
.home-title img{display:block;width:100%;height:auto}
.home-intro{position:absolute;z-index:4;left:50%;top:clamp(115px,15.8vw,185px);transform:translateX(-50%) rotate(-3deg);margin:0;padding:8px 20px;background:#f6f3ea;color:#101218;font-size:clamp(12px,1.2vw,17px);font-weight:800;white-space:nowrap;box-shadow:5px 5px 0 #101218}
.home-versus{position:absolute;z-index:5;left:50%;top:max(57%,calc(clamp(102px,15vw,234px) + 125px));transform:translate(-50%,-50%) rotate(-8deg);font:700 clamp(40px,5vw,72px)/1 BangDisplay,sans-serif;background:#ffd23f;color:#101218;clip-path:polygon(6% 7%,100% 0,94% 91%,0 100%);padding:15px 22px}
.home-team{position:absolute;top:0;bottom:0;width:50%;margin:0;pointer-events:none}
.home-team.f{left:0}.home-team.r{right:0}
.home-team img{position:absolute;bottom:82px;left:50%;transform:translateX(-50%);height:64%;width:110%;object-fit:contain;object-position:center bottom;filter:drop-shadow(4px 12px 6px #10121840);z-index:2}
.home-team.f img{height:60%}
.home-team figcaption{position:absolute;bottom:0;left:0;right:0;z-index:3;padding:13px 20px 16px;background:#101218;color:#f6f3ea;text-align:center}
.home-team h2{font:700 clamp(24px,2.6vw,40px)/1 BangDisplay,sans-serif;margin:0 0 5px;letter-spacing:.015em;text-transform:uppercase}
.home-team.f h2{color:#9be15d}.home-team.r h2{color:#ff6975}
.home-team p{font-size:12px;margin:0;color:#dededb}
.home-team-tabs{display:none}
.home-play{display:grid;grid-template-columns:minmax(180px,1fr) minmax(240px,1.3fr) minmax(240px,1fr);gap:clamp(20px,3vw,50px);align-items:center;padding:22px clamp(20px,4vw,72px) 18px}
.home-pitch strong{display:block;font:700 clamp(25px,2.5vw,36px)/1.05 BangDisplay,sans-serif;margin-bottom:7px;text-transform:uppercase}
.home-pitch p{margin:0;color:#b9b4a8;font-size:13px;line-height:1.5;max-width:30ch}
.home-launch{display:flex;flex-direction:column;gap:8px;text-align:center}
#menu .home-main{position:relative;display:block;width:100%;min-height:66px;border:0;border-radius:3px;background:#f6f3ea;color:#101218;font:700 31px/1 BangDisplay,sans-serif;padding:16px 24px;box-shadow:5px 5px 0 #9be15d;text-align:center;transition:transform .16s,box-shadow .16s;cursor:pointer;text-transform:uppercase}
#menu .home-main:hover{transform:translate(-2px,-2px);box-shadow:7px 7px 0 #9be15d}
#menu .home-main:active{transform:translate(3px,3px);box-shadow:2px 2px 0 #9be15d}
.home-launch small{font-size:12px;color:#b9b4a8}
.home-modes{display:grid;grid-template-columns:1fr 1fr;gap:7px 15px}
.home-modes button{border:0;background:transparent;color:#f6f3ea;cursor:pointer;padding:9px 0;min-height:40px;text-align:left;font-weight:700;font-size:13px;text-decoration:underline;text-decoration-color:#ffffff38;text-underline-offset:6px;transition:color .15s}
.home-modes button:first-child{grid-column:1/-1;font-size:17px}
.home-modes button:hover{color:#9be15d;text-decoration-color:currentColor}
.home-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px clamp(20px,4vw,72px) 18px;color:#b9b4a8;font-size:11px;border-top:1px solid #ffffff15}
.home-footer p{margin:0}.home-footer .game-legal{margin:0;display:flex;gap:15px;flex-wrap:wrap;font-size:11px}.home-footer a{color:#b9b4a8;text-decoration:none}.home-footer a:hover{color:#fff;text-decoration:underline}
#menu.show .home-team img{animation:home-team-enter .65s cubic-bezier(.16,1,.3,1) both}
#menu.show .home-team.r img{animation-delay:.08s}
#menu.show .home-title img{animation:home-title-enter .55s cubic-bezier(.16,1,.3,1) both}
@keyframes home-title-enter{from{opacity:0;transform:translateY(-18px) scale(.94) rotate(-2deg)}to{opacity:1;transform:translateY(0) scale(1) rotate(0)}}
@keyframes home-team-enter{from{opacity:0;translate:0 30px}to{opacity:1;translate:0 0}}

/* Keep the existing character selector's camera space and responsive layout. */
#select .panel{outline:0;border-color:#ffffff28;box-shadow:0 20px 70px #0008}
#select .team h3{font-family:BangDisplay,var(--font);font-size:22px;letter-spacing:.02em}
#select .card{border-radius:7px;border-width:1px;box-shadow:inset 0 3px 0 #ffffff0b}
#select .card.sel{box-shadow:inset 0 3px 0 currentColor}
#select .team-f .card.sel{color:#9be15d}#select .team-r .card.sel{color:#ff6975}
#select .card b{color:#f6f3ea}

@media(min-width:1800px){.home-team img{max-width:820px}.home-arena{max-height:760px}}
@media(max-width:900px){.home-play{grid-template-columns:1fr 1.1fr;gap:20px}.home-pitch{display:none}.home-intro{top:18.8vw}.home-team img{width:120%}.home-footer{align-items:flex-start}.home-footer p{max-width:26ch}}
@media(max-width:600px){
  .home-nav{padding:10px 18px;min-height:58px;flex-wrap:wrap;gap:4px 12px}.home-brand{width:135px}.home-tools{gap:0;flex-wrap:wrap}.home-tools button{font-size:12px;padding:8px}.home-tools .fs-btn{min-width:44px;justify-content:center}.home-tools .fs-btn .fs-label{display:none}
  .home-arena{height:clamp(270px,calc(100svh - 340px),440px);min-height:270px;flex:none}.home-title{top:12px;width:min(97%,440px)}.home-intro{top:clamp(89px,20vw,111px);font-size:12px;padding:7px 13px;box-shadow:3px 3px 0 #101218}
  .home-arena::before{transition:clip-path .3s;clip-path:polygon(100% 0,100% 0,100% 100%,88% 100%)}
  #menu[data-home-team=R] .home-arena::before{clip-path:polygon(12% 0,100% 0,100% 100%,0 100%)}
  .home-team{width:100%;top:106px}.home-team img,.home-team.f img{height:calc(100% - 72px);bottom:72px;width:100%;max-width:460px}
  .home-team.r{display:none}#menu[data-home-team=R] .home-team.f{display:none}#menu[data-home-team=R] .home-team.r{display:block}
  .home-team figcaption{padding:12px 10px 14px}.home-team h2{font-size:29px}.home-team p{font-size:11px}
  .home-versus{display:none}.home-team-tabs{display:flex;justify-content:center;gap:6px;padding:14px 18px 0;order:0}
  .home-team-tabs button{flex:1;max-width:220px;min-height:42px;border:1px solid #ffffff38;border-radius:3px;background:none;color:#b9b4a8;font-size:12px;font-weight:700;cursor:pointer;padding:8px}
  .home-team-tabs button[aria-pressed=true]{border-color:#9be15d;color:#9be15d;background:#9be15d10}.home-team-tabs button[data-home-team=R][aria-pressed=true]{color:#ff6975;border-color:#ff6975;background:#ff2d3d10}
  .home-play{display:flex;flex-direction:column;gap:13px;padding:18px 22px 15px}.home-launch{width:100%;gap:10px}#menu .home-main{min-height:60px;font-size:28px}.home-modes{width:100%;grid-template-columns:1.25fr 1fr 1fr;gap:8px}.home-modes button,.home-modes button:first-child{grid-column:auto;text-align:center;font-size:12px;line-height:1.4;padding:6px 0}
  .home-footer{padding:15px 20px;flex-direction:column;gap:10px;text-align:center;align-items:center}.home-footer p{max-width:none}.home-footer .game-legal{justify-content:center;gap:12px}
}
@media(max-height:650px) and (max-width:600px){
  .home-title{top:10px}.home-intro{display:none}.home-team{top:60px}
  .home-team img,.home-team.f img{height:calc(100% - 58px);bottom:58px}
  .home-team figcaption{padding:9px 8px}.home-team h2{font-size:24px}.home-team p{font-size:10px}
}
@media(max-height:520px) and (min-width:601px){
  .home-shell{display:grid;grid-template-columns:1.3fr 1fr;grid-template-rows:52px 1fr auto;min-height:100svh}
  .home-nav{grid-column:1/-1;min-height:52px;padding:6px 24px}
  .home-arena{height:calc(100svh - 52px);min-height:300px;grid-column:1;grid-row:2}
  .home-title{top:8px;width:96%}.home-intro{top:10vw;font-size:10px;padding:5px 10px;box-shadow:2px 2px 0 #101218}
  .home-team img,.home-team.f img{height:calc(100% - 10vw - 63px);bottom:60px;width:120%}
  .home-team figcaption{padding:12px 4px}.home-team h2{font-size:20px}.home-team p{font-size:9px}
  .home-versus{font-size:30px;padding:10px;top:58%}
  .home-play{grid-column:2;grid-row:2;display:flex;flex-direction:column;justify-content:center;align-items:stretch;gap:16px;padding:20px 28px}
  .home-pitch{display:block}.home-pitch strong{font-size:26px}.home-pitch p{font-size:12px;max-width:34ch}
  #menu .home-main{font-size:26px;min-height:54px;padding:13px}.home-launch small{font-size:10px}
  .home-modes{gap:6px 12px}.home-modes button,.home-modes button:first-child{font-size:12px;min-height:32px;padding:7px 0}
  .home-footer{grid-column:1/-1;padding:12px 24px}
}
@media(prefers-reduced-motion:reduce){#menu *,#menu *::before,#menu *::after{animation:none!important;transition:none!important}}
