/* RC Helper look: based on the game's colors. Emoji and CSS shapes only, no game art. */
:root {
  --sky: #35c0e9; --sky-dark: #1d8fb3; --sun: #ffd21f; --sun-light: #ffe981; --sun-dark: #c99a00;
  --grass: #376c17; --leaf: #6cbf3a; --cream: #fffaf0; --wood: #8b5a2b; --wood-light: #b07a45;
  --berry: #df7474; --ink: #3b2a1a; --muted: #7a6a58;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: Fredoka, "Segoe UI Rounded", "Arial Rounded MT Bold", system-ui, sans-serif;
  color: var(--ink);
  background: linear-gradient(#bfeefc, #eafaff 60%, #d8f3c8) fixed;
  min-height: 100vh;
}
.app { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--cream); position: relative; overflow-x: hidden; box-shadow: 0 0 30px rgba(0,0,0,.12); }

/* Header: sky with a wave edge and a drifting cloud */
.top { background: var(--sky); color: #fff; padding: 14px 16px 28px; position: relative; text-align: center; overflow: hidden; }
.top::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 16px;
  background: radial-gradient(circle at 12px -4px, transparent 13px, var(--cream) 14px) repeat-x; background-size: 24px 16px;
}
.logo { font-weight: 700; font-size: 22px; text-shadow: 0 2px 0 var(--sky-dark); }
.top-sub { font-size: 13px; }
.cloud { position: absolute; top: 8px; font-size: 20px; opacity: .9; animation: drift 14s linear infinite; }
@keyframes drift { from { left: -30px; } to { left: 105%; } }
.gear { position: absolute; right: 10px; top: 10px; background: rgba(255,255,255,.25); border: none; border-radius: 12px; font-size: 20px; padding: 4px 8px; cursor: pointer; }

/* Screens slide left and right */
.screens { position: relative; }
.screen { padding: 8px 14px 30px; transition: transform .45s cubic-bezier(.3,1.2,.5,1), opacity .3s; }
.screen.hidden { display: none; }
.screen.enter-right { transform: translateX(110%); opacity: 0; }
.screen.enter-left { transform: translateX(-110%); opacity: 0; }

.dots { display: flex; justify-content: center; gap: 6px; margin: 4px 0 10px; }
.dots span { width: 10px; height: 10px; border-radius: 50%; background: #d9cbb6; transition: all .3s; }
.dots span.on { background: var(--sun); width: 26px; border-radius: 6px; }

/* Cards pop in */
.card {
  background: #fff; border: 3px solid var(--wood-light); border-radius: 16px; padding: 10px 12px; margin-bottom: 12px;
  box-shadow: 0 4px 0 var(--wood-light); animation: pop .5s cubic-bezier(.2,1.4,.4,1) both;
}
.card:nth-child(2) { animation-delay: .08s; } .card:nth-child(3) { animation-delay: .16s; } .card:nth-child(4) { animation-delay: .24s; }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.96); } }
.sign { display: inline-block; background: var(--wood); color: #fff; font-weight: 600; font-size: 13px; padding: 2px 10px; border-radius: 8px; margin-bottom: 6px; box-shadow: 0 2px 0 #5d3a17; }

.clock { font-size: 40px; font-weight: 700; color: var(--berry); text-align: center; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-3px); } }
.small { font-size: 12px; color: var(--muted); }
.center { text-align: center; }

/* Buttons press down */
.btn {
  display: block; width: 100%; border: none; font: inherit; font-weight: 700; font-size: 16px; color: var(--ink);
  background: var(--sun); border-radius: 14px; padding: 10px; margin-top: 8px; box-shadow: 0 4px 0 var(--sun-dark);
  cursor: pointer; transition: transform .08s, box-shadow .08s;
}
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--sun-dark); }
.btn.green { background: var(--leaf); color: #fff; box-shadow: 0 4px 0 var(--grass); }
.btn.ghost { background: #fff; border: 2px solid var(--sky); box-shadow: 0 3px 0 var(--sky); font-size: 14px; padding: 7px; }
.btn.danger { background: #fff; border: 2px solid var(--berry); box-shadow: 0 3px 0 var(--berry); color: var(--berry); font-size: 14px; padding: 7px; }

.line { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; padding: 4px 0; }
.exp { color: var(--grass); font-weight: 700; white-space: nowrap; }
.badge { display: inline-block; font-size: 11px; background: var(--sun-light); border-radius: 8px; padding: 0 6px; margin-left: 4px; }
.banner { background: var(--sun-light); border: 2px solid var(--sun); border-radius: 12px; padding: 6px 10px; margin-bottom: 10px; font-size: 14px; text-align: center; }

/* Forms */
label.field { display: block; margin: 6px 0; font-size: 14px; }
label.field input, select, input.search, textarea {
  font: inherit; font-size: 15px; width: 100%; padding: 6px 8px; border: 2px solid #e2d3bd; border-radius: 10px; background: #fff; color: var(--ink);
}
.error { color: #b33; font-size: 12px; min-height: 0; }
.error:empty { display: none; }
.counter { display: flex; align-items: center; gap: 6px; }
.counter button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--wood-light); background: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.counter b { min-width: 22px; text-align: center; }
.list { max-height: 320px; overflow-y: auto; }
.course-title { font-weight: 700; margin-top: 8px; color: var(--wood); }
.dish-row select { width: auto; padding: 2px 4px; }

/* To-do checks */
.check { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; padding: 8px 6px; border-radius: 10px; cursor: pointer; transition: background .2s; }
.check:hover { background: #fff6dd; }
.check.done { text-decoration: line-through; color: #999; }

/* Effects */
.fx { position: fixed; pointer-events: none; z-index: 10; }
.coin { font-size: 22px; animation: fly 1s ease-out forwards; }
@keyframes fly { to { transform: translate(var(--dx), -150px) rotate(360deg); opacity: 0; } }
.star { font-size: 18px; animation: burst .8s ease-out forwards; }
@keyframes burst { to { transform: translate(var(--dx), var(--dy)) scale(1.4); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
