@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(./assets/font-0.ttf) format('truetype');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(./assets/font-1.ttf) format('truetype');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(./assets/font-2.ttf) format('truetype');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(./assets/font-3.ttf) format('truetype');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(./assets/font-4.ttf) format('truetype');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(./assets/font-5.ttf) format('truetype');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(./assets/font-6.ttf) format('truetype');
}

:root{--paper:#f5eddb;--ink:#39271f;--pink:#df776d;--brown:#533a2b}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:'DM Sans',sans-serif}body:before{content:'';position:fixed;inset:0;pointer-events:none;opacity:.2;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.22' filter='url(%23n)'/%3E%3C/svg%3E")}main{max-width:1360px;margin:auto;padding:32px 48px 18px}header{display:flex;align-items:center;justify-content:space-between;margin-bottom:26px}.tiny{font-size:10px;font-weight:800;letter-spacing:2.5px}h1{font-family:'Barlow Condensed','Arial Narrow',Impact,sans-serif;font-weight:900;letter-spacing:-2px;font-size:78px;line-height:.95;margin:9px 0 10px;display:flex;align-items:center;gap:12px}h1 span{color:var(--pink)}h1 .snout{margin-left:5px;transform:rotate(-13deg);background:var(--pink);width:65px;height:43px;border:4px solid var(--ink);border-radius:50%;display:flex;align-items:center;justify-content:center;gap:10px}h1 .snout b{width:8px;height:16px;border-radius:50%;background:var(--ink)}header p{font-size:13px;margin:0;color:#80644f}.header-right{display:flex;align-items:flex-end;flex-direction:column;gap:20px}.pill{padding:9px 14px;border:1px solid #bda98e;border-radius:30px;font-size:10px;letter-spacing:1.5px;font-weight:700}.help{background:transparent;border:0;border-bottom:1px solid #9f8971;padding:0 0 3px;font-size:10px;font-weight:700;letter-spacing:1px}button{font-family:inherit;color:inherit;cursor:pointer;touch-action:manipulation}button:focus-visible{outline:3px solid #e5786c;outline-offset:4px}.game-shell{border:5px solid var(--ink);border-radius:18px;overflow:hidden;background:var(--ink);box-shadow:0 10px 0 #d8c8ae}.hud{min-height:52px;padding:8px 20px;display:flex;align-items:center;justify-content:space-between;color:#f5e8cd;font-size:10px;font-weight:700;letter-spacing:.8px}.hud>div:first-child{display:flex;align-items:center;gap:9px}.status-dot{height:7px;width:7px;border-radius:50%;background:#d5c48b}.stats{display:flex;gap:24px;align-items:center}.stats span{display:flex;align-items:center;gap:8px}.stats b{font:800 27px 'Barlow Condensed',sans-serif}.stats small{font-size:8px;max-width:60px;line-height:1.4}.stats button{font-size:9px;letter-spacing:1px;border:1px solid #8a6b53;background:none;color:#f5e8cd;padding:8px;border-radius:5px}.arena{position:relative;background:#94704d;aspect-ratio:16/9;overflow:hidden}canvas{width:100%;height:100%;display:block;touch-action:none}.veil{position:absolute;inset:0;background:#35251928;display:flex;align-items:center;justify-content:center;backdrop-filter:blur(2px)}.veil[hidden]{display:none}.start-card{width:420px;max-width:86%;text-align:center;background:#faf1df;border:3px solid var(--ink);padding:28px 34px;border-radius:12px;box-shadow:7px 8px 0 #37251e55;transform:rotate(-1deg)}.card-label{font-size:9px;letter-spacing:2px;font-weight:800;color:#94735a}h2{font:900 46px/.95 'Barlow Condensed',Impact,sans-serif;text-transform:uppercase;letter-spacing:-.8px;margin:14px 0}.start-card p{font-size:12px;line-height:1.65;color:#765b48;margin:0 0 20px}.primary{width:100%;background:var(--pink);border:2px solid var(--ink);border-radius:7px;padding:15px 12px;font-weight:900;letter-spacing:1.2px;box-shadow:0 4px 0 var(--ink);font-size:13px}.primary:hover{background:#ec9683;transform:translateY(-1px)}.primary:disabled{opacity:.6;cursor:wait}.start-card>small{font-size:8px;display:block;margin-top:17px;color:#91755c}.control-deck{background:#f6ebd5;display:flex;align-items:center;justify-content:space-between;gap:25px;padding:16px 20px}.movement{display:flex;align-items:center;gap:12px;font-size:11px}.movement small{display:block;font-size:8px;color:#9b7d64;margin-top:4px}.keys{text-align:center}.keys>kbd{margin:auto auto 3px}kbd{display:inline-flex;align-items:center;justify-content:center;background:#fffaeb;border:1px solid #c4ae90;border-bottom-width:3px;width:22px;height:22px;font:700 10px sans-serif;border-radius:4px;margin:1px}.attacks{display:flex;gap:10px;flex:1;justify-content:flex-end}.attack{position:relative;display:flex;align-items:center;gap:12px;background:#f7e0cf;border:1px solid #c5a58a;border-bottom:4px solid #b18a6a;border-radius:8px;padding:12px 14px;text-align:left;min-width:165px;overflow:hidden}.attack.root{background:#efd5bc}.attack.scootch{background:#e5dfb8}.attack:hover{filter:brightness(1.04)}.attack:active{transform:translateY(2px);border-bottom-width:2px}.attack .key{font-size:15px;border:1px solid #b99779;background:#fff6df88;border-radius:4px;width:27px;height:29px;display:grid;place-items:center}.attack strong{font:800 19px/1 'Barlow Condensed',sans-serif;letter-spacing:.5px}.attack small{display:block;font-size:8px;margin-top:4px;white-space:nowrap;color:#86664c}.cool{position:absolute;bottom:0;left:0;height:3px;background:#774b37;width:0}.attack.charging{filter:saturate(.5);opacity:.7}.under{display:flex;justify-content:space-between;margin-top:24px;font-size:11px;color:#82674e}.under>b,.under b{color:#4e3525}footer{margin-top:28px;font-size:8px;text-align:center;letter-spacing:2px;color:#ac947b}#toast{position:absolute;top:12px;left:50%;transform:translateX(-50%);background:#39271fdd;color:#fff3d6;border-radius:20px;padding:9px 18px;font-size:11px;pointer-events:none;opacity:0;transition:opacity .2s;white-space:nowrap}#toast.show{opacity:1}#debug{position:absolute;bottom:0;left:0;background:#000b;color:white;font-size:10px;margin:0}#joystick{display:none;width:90px;height:90px;border:2px solid #a58a6a;border-radius:50%;background:#bca08044;position:relative;touch-action:none}#stick{width:40px;height:40px;background:#b38969;border:2px solid #614833;border-radius:50%;position:absolute;left:23px;top:23px;pointer-events:none}
@media(max-width:1000px){main{padding:24px}.attack{min-width:0;padding:10px;gap:8px}.attack small{font-size:7px}.control-deck{gap:10px}.movement{gap:5px}.keys{display:none}h1{font-size:66px}.start-card{padding:20px 28px}h2{font-size:38px}}
@media(pointer:coarse){#joystick{display:block}.movement>.keys,.movement>div:not(#joystick){display:none}.attack .key{display:none}.attack{min-height:66px}.control-deck{padding:12px}.movement{flex-shrink:0}.attack small{white-space:normal;line-height:1.3}.attack strong{font-size:17px}}
@media(max-width:600px){main{padding:20px 10px}header{padding:0 5px;margin-bottom:18px}.tiny{font-size:7px;letter-spacing:1.5px}h1{font-size:52px;gap:6px;letter-spacing:-1px}h1 .snout{width:39px;height:28px;border-width:3px;gap:6px}h1 .snout b{width:5px;height:10px}header p{font-size:9px}.header-right .pill{display:none}.header-right{gap:0}.help{font-size:8px}.game-shell{border-width:3px;border-radius:12px}.hud{padding:9px 10px;font-size:7px;min-height:48px}.stats{gap:10px}.stats b{font-size:22px}.stats small{font-size:6px;max-width:36px}.stats button{font-size:7px;padding:6px}.arena{aspect-ratio:1/1}.start-card{padding:20px 18px;max-width:84%;width:330px}h2{font-size:36px}.start-card p{font-size:10px;margin-bottom:13px}.primary{font-size:11px;padding:12px}.start-card>small{font-size:7px;margin-top:12px}.control-deck{gap:8px;padding:12px 8px}.attacks{gap:5px}.attack{flex:1;padding:9px 7px;min-width:0;gap:0}.attack strong{font-size:15px}.attack small{font-size:7px}.attack .key{display:none}#joystick{width:70px;height:70px}#stick{left:13px;top:13px}.under{font-size:9px;margin-top:20px}footer{font-size:7px;margin-top:24px}.movement{max-width:70px}.movement small{font-size:7px}.movement b{font-size:9px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}.start-card{transform:none}}
