/* public/css/core.css — Fantasy Pickleball placeholder styles (stage, menu, touch). Owner: core (gui lane restyles). */
html, body { margin: 0; height: 100%; overflow: hidden; background: #0d1015; color: #eef2f7; font-family: system-ui, "Sarabun", "Noto Sans Thai", sans-serif; touch-action: none; }
#pk-stage { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; overflow: hidden; }
#pk-canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; /* stage.js sets the shown size + counter-scale */ outline: none; display: block; }
#pk-ui { position: absolute; inset: 0; pointer-events: none; }
#pk-ui > * { pointer-events: auto; }
.pk-menu { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 30%, #2a3a55cc, #0d1015ee); }
.pk-panel { background: #161c26f0; border: 2px solid #ffffff22; border-radius: 28px; padding: 40px 56px; min-width: 620px; display: flex; flex-direction: column; gap: 18px; align-items: stretch; box-shadow: 0 20px 60px #0008; }
.pk-panel.pk-wide { min-width: 1400px; }
.pk-panel h1 { font-size: 72px; margin: 0 0 12px; text-align: center; color: #ffe066; }
.pk-panel h2 { font-size: 48px; margin: 0; }
.pk-panel button, .pk-panel input, .pk-panel select { font: inherit; font-size: 34px; padding: 16px 24px; border-radius: 16px; border: 2px solid #ffffff33; background: #263247; color: #fff; cursor: pointer; }
.pk-panel button.sel, .pk-card.sel { border-color: #ffe066; background: #3a4a66; }
.pk-panel button.pk-go { background: #2e8b57; flex: 1; }
.pk-panel .pk-small { font-size: 26px; padding: 10px; }
.pk-row { display: flex; gap: 14px; align-items: center; font-size: 32px; }
.pk-row input { width: 220px; text-align: center; letter-spacing: 6px; }
.pk-note { font-size: 24px; opacity: .75; margin: 6px 0 0; text-align: center; }
.pk-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pk-card { border: 3px solid #ffffff22; border-radius: 20px; padding: 24px; background: linear-gradient(160deg, var(--c), #1b2230); display: flex; flex-direction: column; gap: 12px; font-size: 34px; cursor: pointer; min-height: 200px; }
.pk-card i { font-size: 24px; opacity: .8; }
.pk-score { font-size: 96px; text-align: center; margin: 0; }
.pk-lessons { font-size: 28px; line-height: 1.5; max-height: 640px; overflow: auto; }
.pk-toast { position: absolute; left: 50%; top: 60px; transform: translateX(-50%); background: #000c; padding: 18px 30px; border-radius: 14px; font-size: 32px; }
.pk-banner { position: absolute; left: 50%; top: 150px; transform: translateX(-50%); background: #000d; color: #fbbf24; padding: 14px 28px; border-radius: 12px; font-size: 30px; pointer-events: none; z-index: 5; }
.pk-fatal { position: absolute; inset: 40px; background: #400; color: #fff; padding: 30px; font-size: 32px; }
/* touch controls: outside the scaled stage (stage.js KEEP_OUT prefix pkt-), physical px */
.pkt-root { position: fixed; inset: 0; pointer-events: none; z-index: 10; }
.pkt-stickzone { position: absolute; left: 0; bottom: 0; width: 45vw; height: 70vh; pointer-events: auto; touch-action: none; }
.pkt-stick { position: absolute; left: 40px; bottom: 40px; width: 112px; height: 112px; border-radius: 50%; background: #ffffff1a; border: 2px solid #ffffff55; opacity: .55; }
.pkt-stick.on { opacity: 1; bottom: auto; }
.pkt-knob { position: absolute; left: 32px; top: 32px; width: 48px; height: 48px; border-radius: 50%; background: #ffffffcc; }
.pkt-buttons { position: absolute; right: 18px; bottom: 18px; width: 230px; height: 230px; pointer-events: none; }
.pkt-btn { position: absolute; width: 84px; height: 84px; border-radius: 50%; border: 2px solid #fff8; color: #fff; font: 700 14px system-ui; pointer-events: auto; touch-action: none; opacity: .85; }
.pkt-btn.on { transform: scale(.92); opacity: 1; }
.pkt-drive { right: 0; bottom: 70px; background: #d9534fcc; width: 96px; height: 96px; }
.pkt-soft { right: 100px; bottom: 0; background: #5cb85ccc; }
.pkt-lob { right: 100px; bottom: 100px; background: #5bc0decc; }
.pkt-skill { right: 10px; bottom: 175px; width: 60px; height: 60px; background: #f0ad4ecc; }

/* mfix (TK phone, build 14): long-press on a shot button must not select the page / show the iOS callout / flash a tap highlight */
html, body, #pk-stage, #pk-canvas, #pk-ui, #pk-ui *, .pkt-root, .pkt-root *, #pk-rotate { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
#pk-canvas, .pkt-root, .pkt-root * { touch-action: none; }
input, textarea, [contenteditable="true"] { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }

/* studio splash (src/gui/splash-dom.js) — the Last Stream / Arrow Tag wipe, TK 18 Oct: same look in every Zilo game */
.pk-splash { position: fixed; inset: 0; z-index: 90; background: #000; cursor: pointer; }
.pk-splash-clip { position: absolute; inset: 0; display: grid; place-items: center; }
.pk-splash-img { width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.pk-splash-edge { position: absolute; top: 0; bottom: 0; width: 24px; background: linear-gradient(90deg, rgba(0, 0, 0, 0), #000); pointer-events: none; }
.pk-splash-edge[hidden] { display: none; }
