/* Mohito – ønskesiden. Mørk grønn bunn, mynte og lime. Ingen eksterne skrifter (streng CSP). */
:root {
  --bg: #0E1A14;
  --bg2: #13241B;
  --card: #182E22;
  --line: #2A4636;
  --text: #EAF7EF;
  --muted: #9DBBA9;
  --mint: #A8F0C6;
  --lime: #C6F432;
  --ink: #0E1A14;
  --error: #FFB4A8;
  --field: #0F1E16;
  --radius: 22px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.45;
  color: var(--text);
  background:
    radial-gradient(120% 60% at 85% -10%, rgba(198, 244, 50, 0.16), transparent 60%),
    radial-gradient(90% 50% at -10% 10%, rgba(168, 240, 198, 0.12), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
[hidden] { display: none !important; }
.wrap { max-width: 520px; margin: 0 auto; padding: max(28px, env(safe-area-inset-top)) 16px max(28px, env(safe-area-inset-bottom)); }

/* Toppen */
.top { text-align: center; margin-bottom: 22px; }
.logo { width: 72px; height: 72px; margin: 0 auto 10px; }
.logo svg { width: 100%; height: 100%; overflow: visible; }
.logo .glass { fill: rgba(234, 247, 239, 0.08); stroke: var(--text); stroke-width: 2; stroke-linejoin: round; }
.logo .drink { fill: var(--mint); opacity: 0.85; }
.logo .lime { fill: var(--lime); stroke: #8DB51C; stroke-width: 1.5; }
.logo .lime-in { stroke: #EEFFB8; stroke-width: 1; stroke-linecap: round; }
.logo .straw { stroke: #F08A4B; stroke-width: 3; stroke-linecap: round; }
.logo .bubble { fill: #FFFFFF; opacity: 0.8; animation: bubble 3.2s ease-in infinite; }
.logo .b2 { animation-delay: 1.1s; }
.logo .b3 { animation-delay: 2.2s; }
@keyframes bubble { 0% { transform: translateY(6px); opacity: 0; } 30% { opacity: 0.8; } 100% { transform: translateY(-12px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .logo .bubble { animation: none; } }
.kicker { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lime); overflow-wrap: anywhere; }
h1 { margin: 4px 0 0; font-size: clamp(32px, 9vw, 44px); line-height: 1.05; letter-spacing: -0.02em; }
h2 { margin: 0 0 8px; font-size: 22px; line-height: 1.2; }

/* Kortene */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35); }
.card p { margin: 0 0 10px; }
.card p:last-child { margin-bottom: 0; }
.muted { color: var(--muted); }
.note { background: rgba(198, 244, 50, 0.1); border: 1px solid rgba(198, 244, 50, 0.3); color: #E9FBB0; border-radius: 14px; padding: 10px 14px; margin-bottom: 16px !important; overflow-wrap: anywhere; }

/* Skjemaet */
form { display: grid; gap: 14px; position: relative; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 15px; font-weight: 600; }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
input {
  width: 100%;
  font: inherit;
  font-size: 18px; /* 16 px eller mer, ellers zoomer iPhone inn */
  color: var(--text);
  background: var(--field);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input::placeholder { color: #6E8C7B; }
input:focus { border-color: var(--mint); box-shadow: 0 0 0 4px rgba(168, 240, 198, 0.18); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Forslag under låtfeltet */
.suggest { list-style: none; margin: -8px 0 0; padding: 6px; background: var(--bg2); border: 1.5px solid var(--mint); border-radius: 14px; display: grid; gap: 2px; }
.suggest li { display: grid; gap: 1px; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.suggest li b { font-weight: 600; overflow-wrap: anywhere; }
.suggest li span { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.suggest li:hover, .suggest li[aria-selected="true"] { background: rgba(168, 240, 198, 0.12); }

.error { margin: 0 !important; color: var(--error); font-weight: 600; }
.send {
  font: inherit;
  font-size: 19px;
  font-weight: 700;
  min-height: 56px;
  border: 0;
  border-radius: 16px;
  background: var(--lime);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(198, 244, 50, 0.25);
  transition: transform 0.1s, filter 0.15s;
}
.send:hover { filter: brightness(1.05); }
.send:active { transform: scale(0.98); }
.send:disabled { opacity: 0.6; cursor: default; }
.send:focus-visible, .suggest li:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }
.send.ghost { background: transparent; color: var(--text); border: 1.5px solid var(--line); box-shadow: none; width: 100%; margin-top: 8px; }

/* Sendt */
.done { text-align: center; }
.check { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; background: var(--lime); color: var(--ink); font-size: 34px; font-weight: 800; display: grid; place-items: center; animation: pop 0.4s cubic-bezier(0.2, 1.4, 0.4, 1); }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .check { animation: none; } }
.done-song { font-size: 19px; font-weight: 600; overflow-wrap: anywhere; }

/* Dine ønsker */
.mine { margin-top: 26px; }
.mine h2 { font-size: 16px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.mine ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mine li { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line); }
.mine-song { min-width: 0; overflow-wrap: anywhere; }
.pill { flex-shrink: 0; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(168, 240, 198, 0.12); color: var(--mint); }
.pill.played { background: var(--lime); color: var(--ink); }

.foot { margin-top: 30px; text-align: center; font-size: 13px; color: #6E8C7B; }
.foot p { margin: 0; }
