* { box-sizing: border-box; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
:root { font-family: ui-rounded, "Trebuchet MS", system-ui, sans-serif; color: #44565b; background: #fff8e9; }
html, body { height: 100%; overflow: hidden; overscroll-behavior: none; touch-action: none; }
body { margin: 0; height: 100dvh; background: radial-gradient(circle at 10% 0%, #fff0ce, transparent 42%), #fff8e9; }
.shell { display: flex; flex-direction: column; height: 100dvh; max-width: 850px; margin: auto; padding: 14px clamp(14px, 3vw, 28px); overflow: hidden; }
.back { flex: none; align-self: flex-start; margin-bottom: 10px; color: #70a796; font-size: 14px; font-weight: 900; text-decoration: none; }
.back:hover { text-decoration: underline; }
header { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.eyebrow { margin: 0 0 4px; color: #c98b53; font-size: 11px; font-weight: 900; letter-spacing: .14em; }
h1 { margin: 0; color: #e47770; font-size: clamp(31px, 5vw, 49px); letter-spacing: -.045em; line-height: 1.1; }
h1 span { font-size: .76em; }
.subtitle { margin: 5px 0 0; color: #69807d; font-size: clamp(14px, 2vw, 17px); font-weight: 700; }
.score { flex: none; padding: 9px 15px; border: 3px solid #f5deb6; border-radius: 19px; background: white; box-shadow: 0 4px 0 #ead9bd; text-align: center; }
.score span { display: block; color: #ae8d74; font-size: 10px; font-weight: 900; letter-spacing: .07em; white-space: nowrap; }
.score strong { color: #e47770; font-size: 27px; }
.playfield { flex: 1 1 auto; min-height: 0; overflow: hidden; border: 5px solid white; border-radius: 28px; background: #dff2ef; box-shadow: 0 7px 0 #e9d8b4; }
canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
canvas:active { cursor: grabbing; }
.bottom { display: flex; flex: none; align-items: center; justify-content: center; gap: 14px; min-height: 70px; text-align: center; }
.bottom p { margin: 0; color: #758781; font-size: clamp(16px, 2.7vw, 20px); font-weight: 900; }
button { border: 3px solid white; border-radius: 18px; padding: 10px 17px; background: #78c4a9; box-shadow: 0 5px 0 #57a48a; color: white; font: inherit; font-size: 18px; font-weight: 900; cursor: pointer; }
button:active { transform: translateY(4px); box-shadow: 0 1px 0 #57a48a; }
button[hidden] { display: none; }
:focus-visible { outline: 4px solid #ecae66; outline-offset: 4px; }
@media (max-width: 600px) {
  .shell { padding-top: 11px; }
  header { align-items: flex-start; flex-wrap: wrap; margin-bottom: 10px; }
  .score { width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 5px; }
  .score strong { font-size: 23px; }
  .playfield { border-radius: 22px; }
  .bottom { flex-direction: column; gap: 6px; min-height: 60px; padding: 9px 0; }
}
@media (max-height: 610px) {
  .shell { padding-top: 8px; padding-bottom: 8px; }
  .back { margin-bottom: 5px; }
  header { margin-bottom: 7px; }
  h1 { font-size: 28px; }
  .subtitle { margin-top: 3px; font-size: 12px; }
  .score { padding: 3px; }
  .bottom { min-height: 48px; padding: 4px 0; }
  .bottom p { font-size: 14px; }
}
