* { 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: #475963; background: #fff8eb; }
html, body { height: 100%; overflow: hidden; overscroll-behavior: none; touch-action: none; }
body { margin: 0; height: 100dvh; background: radial-gradient(circle at 10% 0%, #fff0d2, transparent 42%), #fff8eb; }
.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: #80a8ac; 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: #be8c70; font-size: 11px; font-weight: 900; letter-spacing: .14em; }
h1 { margin: 0; color: #d97d9e; font-size: clamp(29px, 4.6vw, 45px); letter-spacing: -.045em; line-height: 1.1; }
h1 span { font-size: .78em; }
.subtitle { margin: 5px 0 0; color: #6e8290; font-size: clamp(14px, 2vw, 17px); font-weight: 700; }
.scores { display: flex; flex: none; gap: 8px; }
.score { flex: none; min-width: 90px; padding: 9px 13px; border: 3px solid #eedbe8; border-radius: 19px; background: white; box-shadow: 0 4px 0 #e6d9dd; text-align: center; }
.score span { display: block; color: #a4889d; font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.score strong { color: #d97d9e; font-size: 27px; }
.mimi-score { border-color: #d4ebdf; }
.mimi-score strong { color: #62b394; }
.playfield { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; border: 5px solid white; border-radius: 28px; background: #def2f3; box-shadow: 0 7px 0 #e9d8bc; }
canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
canvas:active { cursor: grabbing; }
.picker { position: absolute; inset: 0; display: grid; place-items: center; padding: 12px; background: #658b9b80; }
.picker[hidden] { display: none; }
.picker-card { width: min(100%, 410px); padding: 12px; border: 4px solid white; border-radius: 27px; background: #fff9ed; box-shadow: 0 12px 27px #425d6850; text-align: center; }
.picker-card h2 { margin: 0 0 5px; color: #d97d9e; font-size: clamp(22px, 4vw, 29px); }
.picker-card p { margin: 0 0 8px; color: #70818b; font-size: 14px; font-weight: 800; }
.drink-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.drink-option { min-width: 0; min-height: 66px; padding: 4px 3px; border: 3px solid #e7dce7; border-radius: 18px; background: white; box-shadow: 0 4px 0 #e6d9dd; color: #56727d; font-size: 13px; line-height: 1.1; }
.drink-option:nth-child(2) { border-color: #f5d9ad; }
.drink-option:nth-child(3) { border-color: #cce6f4; }
.drink-option:nth-child(4) { border-color: #edcde1; }
.drink-option:nth-child(5) { border-color: #e8d6b7; }
.drink-option:nth-child(6) { border-color: #f1c9db; }
.drink-option:nth-child(7) { border-color: #e5d7a8; }
.drink-option:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 3px); }
.drink-option small { display: block; margin-top: 2px; color: #a46d9d; font-size: 9px; }
.drink-option span { display: block; margin-bottom: 3px; font-size: 28px; }
.drink-option:active { transform: translateY(3px); box-shadow: 0 1px 0 #e6d9dd; }
.bottom { display: flex; flex: none; align-items: center; justify-content: center; gap: 14px; min-height: 70px; text-align: center; }
.bottom p { margin: 0; color: #7d8991; font-size: clamp(16px, 2.7vw, 20px); font-weight: 900; }
button { border: 3px solid white; border-radius: 18px; padding: 10px 17px; background: #e994b0; box-shadow: 0 5px 0 #bd7191; color: white; font: inherit; font-size: 18px; font-weight: 900; cursor: pointer; }
button:active { transform: translateY(4px); box-shadow: 0 1px 0 #bd7191; }
button[hidden] { display: none; }
:focus-visible { outline: 4px solid #edb56f; outline-offset: 4px; }
@media (max-width: 600px) {
  .shell { padding-top: 11px; }
  header { align-items: flex-start; flex-wrap: wrap; margin-bottom: 10px; }
  .scores { width: 100%; }
  .score { display: flex; flex: 1; align-items: center; justify-content: center; gap: 8px; min-width: 0; padding: 5px; }
  .score strong { font-size: 23px; }
  .playfield { border-radius: 22px; }
  .bottom { flex-direction: column; gap: 6px; min-height: 60px; padding: 9px 0; }
}
@media (min-width: 360px) {
  .drink-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .drink-option:last-child:nth-child(odd) { grid-column: 2; width: 100%; }
}
@media (max-height: 610px) {
  .shell { padding-top: 8px; padding-bottom: 8px; }
  .back { margin-bottom: 5px; }
  header { margin-bottom: 7px; }
  h1 { font-size: 25px; }
  .subtitle { margin-top: 3px; font-size: 12px; }
  .score { padding: 3px; }
  .bottom { min-height: 48px; padding: 4px 0; }
  .bottom p { font-size: 14px; }
  .picker { padding: 6px; }
  .picker-card { padding: 8px; }
  .picker-card h2 { margin-bottom: 3px; font-size: 20px; line-height: 1.1; }
  .picker-card p { margin-bottom: 6px; font-size: 11px; }
  .drink-options { gap: 4px; }
  .drink-option { min-height: 48px; padding: 2px 3px; font-size: 11px; }
  .drink-option span { margin-bottom: 1px; font-size: 20px; line-height: 1; }
  .drink-option small { margin-top: 0; font-size: 9px; }
}
