html, body { margin: 0; height: 100%; background: #241247; overscroll-behavior: none; }
main { height: 100dvh; display: flex; align-items: center; justify-content: center; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); box-sizing: border-box; }
canvas { display: block; aspect-ratio: 13 / 16; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; outline: none; touch-action: none; user-select: none; -webkit-user-select: none; }
main { position: relative; }
#home { position: absolute; top: max(10px, env(safe-area-inset-top)); left: 12px; color: #d3c3ee; font: 700 12px ui-rounded, "SF Pro Rounded", Nunito, "Trebuchet MS", system-ui, sans-serif; text-decoration: none; padding: 8px; }
#home:hover, #home:focus-visible { color: #fff6e0; }
#board { position: absolute; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(92vw, 360px); color: #fff6e0; font: 600 13px ui-rounded, "SF Pro Rounded", Nunito, "Trebuchet MS", system-ui, sans-serif; text-align: center; }
#board[hidden], #score-form[hidden], #home[hidden] { display: none; }
#score-form { display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
#score-form label { width: 100%; color: #d3c3ee; }
#initials { width: 4.5em; padding: 9px; font: inherit; font-size: 16px; text-align: center; text-transform: uppercase; color: #fff6e0; background: #3a1f63; border: 1px solid #4be0d0; border-radius: 999px; }
#score-form button { padding: 10px 14px; font: inherit; color: #241247; background: #ffc13d; border: 0; border-radius: 999px; cursor: pointer; }
#score-form button:disabled { opacity: .55; cursor: default; }
#board-status { min-height: 1.2em; margin: 4px 0; color: #4be0d0; }
#leaders { list-style: none; margin: 0; padding: 0; }
#leaders li { display: flex; justify-content: space-between; padding: 2px 16px; }
#leaders strong { color: #ffc13d; }
#players { margin: 4px 0 0; color: #d3c3ee; font-size: 11px; }
