/* FruitCrane level mode (prototype 2026-12-01): screens, goals, power-ups, obstacles. The crane itself is css/crane.css. */
body { background: #FFB3D1; background-image: repeating-conic-gradient(from 0deg at 50% 22%, #FFC2DB 0deg 9deg, #FF9CC4 9deg 18deg); }
.screen[hidden] { display: none !important; }
.act.small { padding: 4px 10px; font-size: .95rem; box-shadow: 3px 3px 0 var(--ink); background: #fff; }
.act.big { font-size: 1.6rem; padding: 12px 46px; }
.link { background: none; border: 0; font: 700 .85rem 'Space Grotesk', sans-serif; color: var(--ink); text-decoration: underline; cursor: pointer; opacity: .7; }

/* title */
.title { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px 16px; text-align: center; }
.title .logo { width: min(92vw, 520px); height: auto; filter: drop-shadow(0 6px 0 #13212b22); animation: float 3s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
.tagline { margin: 0; font-weight: 700; font-size: 1.1rem; background: #fffc; border: 3px solid var(--ink); border-radius: 999px; padding: 6px 16px; }
.proto { margin: 8px 0 0; font-weight: 700; font-size: .8rem; opacity: .65; letter-spacing: 1px; }

/* bars */
.bar { width: 100%; max-width: 480px; margin: 0 auto; display: flex; align-items: center; gap: 6px; justify-content: space-between; flex-wrap: wrap; }
.logo-sm { height: 46px; width: auto; }
.pill-drops { background: #fff; }
.pill-drops.low { background: #FF5A6E; color: #fff; animation: pulse .8s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.08); } }

/* level map */
.map { max-width: 480px; margin: 0 auto; padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.levels { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.lvl { aspect-ratio: 1; border: 4px solid var(--ink); border-radius: 22px; background: #fff; box-shadow: 4px 4px 0 var(--ink); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0; color: var(--ink); }
.lvl:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.lvl.current { background: var(--yellow); animation: pulse 1.4s ease-in-out infinite; }
.lvl.locked { background: #ffffff88; cursor: default; box-shadow: 2px 2px 0 #13212b55; border-color: #13212b66; }
.lvl-n { font-family: var(--display); font-size: 2rem; line-height: 1; }
.lvl-stars i, .big-stars i { font-style: normal; color: #13212b30; }
.lvl-stars i { font-size: .95rem; -webkit-text-stroke: 1px var(--ink); }
.lvl-stars i.on, .big-stars i.on { color: var(--yellow); }

/* goals */
.goals { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.goal { display: inline-flex; align-items: center; gap: 4px; background: #fff; border: 3px solid var(--ink); border-radius: 999px; padding: 2px 12px 2px 4px; box-shadow: 3px 3px 0 var(--ink); }
.goal img { width: 34px; height: 34px; object-fit: contain; }
.goal b { font-family: var(--display); font-weight: 400; font-size: 1.25rem; letter-spacing: 1px; }
.goal.ok { background: #B9F5C9; }
.goal.bump { animation: bump .45s ease; }
.fc-ov-goal { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.fc-ov-kicker { font-family: var(--display); letter-spacing: 3px; font-size: 1.1rem; background: var(--ink); color: #fff; border-radius: 999px; padding: 0 14px; }
.ov-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.big-stars { font-size: 3.6rem; line-height: 1; letter-spacing: 4px; }
.big-stars i { -webkit-text-stroke: 2px var(--ink); display: inline-block; }
.big-stars i.on { animation: starpop .5s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes starpop { from { transform: scale(0) rotate(-40deg); } }
.fc-controls { justify-content: center; }

/* power-ups, obstacles, twins, ice */
.fruit .item { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; font-size: clamp(1.4rem, 7.5vw, 2.4rem); line-height: 1;
  filter: drop-shadow(0 2px 0 #0004); }
.fruit.power::before { content: ''; position: absolute; inset: -12%; border-radius: 50%; background: radial-gradient(#fff9 30%, #fff0 70%); animation: glow 1.2s ease-in-out infinite; z-index: -1; }
@keyframes glow { 50% { transform: scale(1.18); opacity: .55; } }
.fruit.bomb .item { animation: tick 1s ease-in-out infinite; }
@keyframes tick { 50% { transform: rotate(-8deg) scale(1.05); } }
.fruit.junk .item { filter: grayscale(.2) drop-shadow(0 2px 0 #0004); }
.fruit.twin::before { content: ''; position: absolute; inset: -10%; border-radius: 50%; z-index: -1;
  background: conic-gradient(#ff5a6e, #ffd600, #5ee07a, #4cc3ff, #b07cff, #ff5a6e); opacity: .75; animation: spin 3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.fruit .x2 { position: absolute; right: -16%; bottom: -10%; font: 400 .9rem var(--display); background: var(--ink); color: var(--yellow); border-radius: 8px; padding: 0 4px; letter-spacing: .5px; }
.fruit.iced::after { content: ''; position: absolute; inset: -8%; border-radius: 22%; border: 2px solid #ffffffcc;
  background: linear-gradient(135deg, #e6f8ffdd, #9fdcffb0 55%, #e6f8ffcc); box-shadow: inset 0 0 0 2px #7cc8f0, 0 0 8px #bfe9ff; }
.fruit.cracked::after { content: ''; position: absolute; inset: -8%; border-radius: 22%; background: #e6f8ff88; animation: shatter .5s ease forwards; }
@keyframes shatter { to { transform: scale(1.6); opacity: 0; } }
.fruit.smash { animation: shatter .35s ease forwards; }
.fruit.pull { animation: shatter .45s ease forwards; }
.fruit.pulled img { filter: drop-shadow(0 0 8px #ff5ad3) drop-shadow(0 0 3px #fff) drop-shadow(0 2px 0 #0004); }
.boom { position: absolute; width: 34%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; z-index: 8; pointer-events: none;
  background: radial-gradient(#fff 0 18%, #ffd600 30%, #ff7a1a 52%, #ff3d3d00 70%); animation: boom .6s ease-out forwards; }
@keyframes boom { from { transform: translate(-50%, -50%) scale(.2); opacity: 1; } to { transform: translate(-50%, -50%) scale(1.4); opacity: 0; } }
.fc-board.shake { animation: shake .35s ease; }
@keyframes shake { 20% { transform: translate(-6px, 2px); } 40% { transform: translate(5px, -3px); } 60% { transform: translate(-4px, 1px); } 80% { transform: translate(2px, 0); } }
.popup.big { font-size: 2.4rem; color: var(--yellow); }
/* game bar: one line on small phones */
#game > .bar { flex-wrap: nowrap; gap: 5px; }
#game > .bar .pill { font-size: .85rem; padding: 2px 9px; white-space: nowrap; }
#game > .bar .act.small { padding: 3px 8px; flex: none; }
@media (max-width: 370px) { #game > .bar .pill { font-size: .78rem; padding: 2px 7px; letter-spacing: 1px; } }
