/* Luckiest Guy (Astigmatic, Apache License 2.0, assets/fonts/LuckiestGuy-LICENSE.txt): the menu title */
@font-face{font-family:"Luckiest Guy";src:local("Luckiest Guy"),url("../assets/fonts/LuckiestGuy-Regular.ttf") format("truetype");font-display:swap}
:root{
  color-scheme:dark;
  --bg:#141a26; --panel:#1f2838; --panel2:#283349; --line:#3a4864;
  --text:#e8edf6; --muted:#97a3ba; --accent:#f2c14e; --accent2:#5fb3f9;
  --good:#5bd17a; --bad:#ef5b5b; --radius:10px;
  --font:"Segoe UI",system-ui,-apple-system,Roboto,sans-serif;
}
*{box-sizing:border-box}
html,body{margin:0;height:100%;background:var(--bg);color:var(--text);font-family:var(--font);font-size:14px}
#app{min-height:100%}
button{font:inherit;color:var(--text);background:var(--panel2);border:1px solid var(--line);border-radius:8px;padding:6px 12px;cursor:pointer}
button:hover:not(:disabled){border-color:var(--accent)}
button:disabled{opacity:.45;cursor:default}
button.primary{background:var(--accent);color:#1b1b1b;border-color:var(--accent);font-weight:600}
input,select{font:inherit;color:var(--text);background:var(--panel);border:1px solid var(--line);border-radius:6px;padding:4px 6px}
.screen{padding:16px;max-width:1280px;margin:0 auto}
/* ---- main menu: the title is the one loud element; the board grid and the party stay quiet ---- */
.menu{position:relative;display:flex;flex-direction:column;align-items:center;gap:18px;min-height:100vh;max-width:none;padding:9vh 16px 28px;overflow:hidden;
  background:radial-gradient(60% 45% at 50% 22%,#2b4a8a55,transparent 70%),radial-gradient(50% 40% at 50% 100%,#ffcb0514,transparent 70%),var(--bg)}
.menu>*{position:relative;z-index:1}
.menu-board{position:absolute!important;z-index:0!important;left:-50%;right:-50%;bottom:0;height:62vh;pointer-events:none;
  transform:perspective(420px) rotateX(58deg);transform-origin:50% 100%;
  -webkit-mask-image:linear-gradient(to top,#000 10%,transparent 90%);mask-image:linear-gradient(to top,#000 10%,transparent 90%)}
/* the board is a flat-top hex grid (same geometry as the stadium), drawn by menuHexBoard() in app.js */
.menu-board svg{width:100%;height:100%;display:block}
.logo{margin:0 0 6px;display:flex;flex-direction:column;align-items:center;line-height:.86;font-weight:400;user-select:none}
.logo-main{font-family:"Luckiest Guy","Arial Black",Impact,sans-serif;font-size:clamp(58px,12vw,118px);color:#ffcb05;letter-spacing:.03em;transform:rotate(-3deg);
  /* blue outline all round, then the dark-blue extrusion and a soft cast shadow */
  text-shadow:
    .045em 0 0 #2a5fb0,-.045em 0 0 #2a5fb0,0 .045em 0 #2a5fb0,0 -.045em 0 #2a5fb0,
    .032em .032em 0 #2a5fb0,-.032em .032em 0 #2a5fb0,.032em -.032em 0 #2a5fb0,-.032em -.032em 0 #2a5fb0,
    0 .09em 0 #1c3f80,.02em .11em 0 #15306a,.03em .13em 0 #102552,
    0 .2em .25em #0009;
  animation:logo-drop .7s cubic-bezier(.2,1.4,.4,1) both}
.logo-sub{font-family:"Luckiest Guy","Arial Black",Impact,sans-serif;font-size:clamp(22px,4.2vw,40px);letter-spacing:.32em;padding:.28em .45em .14em .77em;margin-top:.1em;
  color:#fff;background:#e3350d;border:3px solid #fff;border-radius:6px;transform:rotate(-3deg);box-shadow:0 5px 0 #8f1f08,0 8px 18px #0008;text-shadow:0 2px 0 #8f1f08;
  animation:logo-drop .7s .12s cubic-bezier(.2,1.4,.4,1) both}
@keyframes logo-drop{from{opacity:0;transform:translateY(-40px) rotate(-3deg) scale(.92)}to{opacity:1;transform:rotate(-3deg)}}
.menu-party{display:flex;gap:6px;margin:6px 0 4px}
.menu-mon{width:50px;height:50px;border-radius:50%;overflow:hidden;background:#283349;border:3px solid #e8edf6;box-shadow:0 3px 0 #0c111b}
.menu-mon img{width:100%;height:100%;object-fit:cover;image-rendering:pixelated;display:block}
.menu-actions{display:flex;flex-direction:column;gap:12px;width:min(300px,100%);margin-top:4px}
.menu-actions button{width:100%;padding:13px 16px;font-size:17px;font-weight:700;border-radius:14px;border:2px solid var(--line);background:var(--panel);box-shadow:0 4px 0 #0c111b;transition:transform .08s,box-shadow .08s,border-color .12s}
.menu-actions button:hover:not(:disabled){border-color:#ffcb05;transform:translateY(-1px);box-shadow:0 5px 0 #0c111b}
.menu-actions button:active:not(:disabled){transform:translateY(3px);box-shadow:0 1px 0 #0c111b}
.menu-actions button:focus-visible,.menu-snd button:focus-visible{outline:3px solid var(--accent2);outline-offset:3px}
.menu-actions button.primary{background:#ffcb05;border-color:#ffcb05;color:#1b2a55;box-shadow:0 4px 0 #a88400}
.menu-actions button.primary:hover:not(:disabled){border-color:#fff;box-shadow:0 5px 0 #a88400}
.menu-actions button.primary:active:not(:disabled){box-shadow:0 1px 0 #a88400}
.menu-online-note{color:var(--muted);margin:-6px 0 0;font-size:12px;text-align:center}
.menu-online-note:empty{display:none}
.menu-snd{display:flex;gap:8px;align-items:center;justify-content:center;margin-top:6px}
.menu-snd button{padding:4px 10px;font-size:12px;min-width:110px}
.menu-snd input{width:110px}
.menu-legal{color:var(--muted);margin:auto 0 0;padding-top:24px;font-size:12px;max-width:62ch;text-align:center;line-height:1.5}
@media (prefers-reduced-motion:reduce){.logo-main,.logo-sub{animation:none}}
.type{display:inline-block;padding:1px 7px;border-radius:4px;font-size:12px;font-weight:700;color:#fff;text-shadow:0 1px 1px #0006;text-transform:uppercase}
.type-Normal{background:#9fa19f}.type-Fire{background:#d92323}.type-Water{background:#1f6bd8}.type-Electric{background:#fac000}
.type-Grass{background:#3fa129}.type-Ice{background:#3dcef3}.type-Fighting{background:#ff8000}.type-Poison{background:#9141cb}
.type-Ground{background:#915121}.type-Flying{background:#81b9ef}.type-Psychic{background:#ef4179}.type-Bug{background:#91a119}
.type-Rock{background:#afa981}.type-Ghost{background:#704170}.type-Dragon{background:#5060e1}.type-Dark{background:#624d4e}
.type-Steel{background:#60a1b8}.type-Fairy{background:#ef70ef}
#pt-toast{position:fixed;left:50%;bottom:calc(20px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);max-width:calc(100% - 32px);background:var(--panel2);color:var(--text);border:1px solid var(--accent);border-radius:8px;padding:10px 14px;z-index:1000;box-shadow:0 6px 20px #0008}
/* WCAG 4.5:1: dark text on the light type colours (white on the dark ones); mirrors PT.ui.typeText() in src/ui/shapes.js */
.type.type-Normal,.tbchip.type-Normal,.type.type-Electric,.tbchip.type-Electric,.type.type-Grass,.tbchip.type-Grass,.type.type-Ice,.tbchip.type-Ice,.type.type-Fighting,.tbchip.type-Fighting,.type.type-Flying,.tbchip.type-Flying,.type.type-Psychic,.tbchip.type-Psychic,.type.type-Bug,.tbchip.type-Bug,.type.type-Rock,.tbchip.type-Rock,.type.type-Steel,.tbchip.type-Steel,.type.type-Fairy,.tbchip.type-Fairy{color:#1b1b1b;text-shadow:none}
.shp{cursor:help;border-bottom:1px dotted currentColor}
