/* Wet Lettuce Games — "liquid glass" look, shared by the launcher, the store, the policy pages and the admin page.
   (The server serves this same file at /media/glass.css, so there's one place to change the look.)

   Building blocks:
     .aurora            the soft, slowly moving color background that the glass sits on
     .glass             a frosted see-through panel with a glossy top edge     (.glass.thin: lighter, .glass.thick: more solid)
     .btn               a pill button      .btn.primary (green glass)   .btn.ghost   .btn.danger   .btn.lg / .btn.sm
     .field             a glass text box
     .gicon             a glass app-style icon tile (put an <svg> glyph inside; tint with --tint)
     .chip              a small glass label
     .check             a glass checkbox row                                                                                    */

:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI Variable Display", "Segoe UI", Inter, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --bg: #050a07;
  --text: #f3f8f1;
  --dim: rgba(235, 245, 232, .62);
  --faint: rgba(235, 245, 232, .38);
  /* one green, in two steps: --green for text and accents, --green-deep for filled things (buttons, tiles, bars) */
  --green: #43b54a;
  --green-deep: #2f9a40;
  --mint: #6ef0c8;
  --sky: #6cc7ff;
  --red: #ff6961;
  --amber: #ffcf6a;
  --glass: rgba(255, 255, 255, .075);
  --glass-hi: rgba(255, 255, 255, .13);
  --edge: rgba(255, 255, 255, .16);
  --edge-hi: rgba(255, 255, 255, .55);
  --r-xl: 30px; --r-lg: 24px; --r-md: 16px; --r-sm: 12px;
  --blur: blur(28px) saturate(1.3);
  --shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 24px 60px -12px rgba(0, 0, 0, .55), 0 8px 18px -8px rgba(0, 0, 0, .4);
  --ease: cubic-bezier(.2, .8, .2, 1);
  /* how light catches the edge of Apple-style glass: bright top-left, softer bottom-right, a faint glow inside the rim */
  --spec: inset 0 1px 14px -5px rgba(255, 255, 255, .38), inset 0 -12px 22px -14px rgba(255, 255, 255, .14), inset 0 0 32px rgba(255, 255, 255, .035);
}

/* ------------------------------------------------------------------ the background (give <html>, not <body>, the page color, or it covers this) */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; background:
  linear-gradient(180deg, #0b1d12, #081610), #0a1a10; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .2; mix-blend-mode: screen; animation: drift 26s var(--ease) infinite alternate; }
.aurora i:nth-child(1) { width: 70vmax; height: 70vmax; left: -10vmax; top: -30vmax; background: radial-gradient(circle, #2f9a40, transparent 65%); }
.aurora i:nth-child(2) { width: 70vmax; height: 70vmax; right: -20vmax; top: 10vmax; background: radial-gradient(circle, #2f9a40, transparent 65%); animation-duration: 32s; animation-delay: -8s; }
.aurora i:nth-child(3) { width: 70vmax; height: 70vmax; left: 10vmax; bottom: -40vmax; background: radial-gradient(circle, #2f9a40, transparent 65%); animation-duration: 38s; animation-delay: -16s; opacity: .2; }
.aurora i:nth-child(4) { width: 30vmax; height: 30vmax; right: 8vmax; bottom: -10vmax; background: radial-gradient(circle, #3a8cff, transparent 65%); animation-duration: 30s; animation-delay: -4s; opacity: .12; }
.aurora::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 3px 3px; mix-blend-mode: overlay; }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(6vmax, 4vmax, 0) scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .aurora i { animation: none; } }

/* ------------------------------------------------------------------ glass panels (Apple-style: clear, not frosted)
   Clear glass that only lightly blurs what's behind it. Light catches the rim: a thin bright edge at the top-left and
   bottom-right (--spec), and the inside of the edge glows a little, so the glass reads as thick and curved. */
@property --shine { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.glass {
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01));
  -webkit-backdrop-filter: blur(9px) saturate(1.3) brightness(1.04); backdrop-filter: blur(9px) saturate(1.3) brightness(1.04);
  border-radius: var(--r-lg); box-shadow: var(--spec), 0 24px 50px -18px rgba(0, 0, 0, .55), 0 6px 14px -6px rgba(0, 0, 0, .3);
}
/* the edge: no white line, just a faint shimmer of color that slowly travels round the glass */
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 1;
  background: conic-gradient(from var(--shine), rgba(255, 255, 255, .22), rgba(150, 255, 200, .12) 12%, transparent 25%, transparent 45%,
    rgba(160, 200, 255, .14) 55%, rgba(255, 170, 230, .1) 62%, transparent 75%, rgba(255, 255, 255, .16));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: shine 14s linear infinite;
}
/* a soft beam of light that drifts across now and then */
.glass::after {
  content: ""; position: absolute; top: -50%; bottom: -50%; left: -60%; width: 40%; pointer-events: none; z-index: 0;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .055) 45%, rgba(220, 255, 230, .08) 50%, rgba(255, 255, 255, .055) 55%, transparent);
  z-index: -1; transform: rotate(8deg); animation: beam 11s ease-in-out infinite;
}
@keyframes shine { to { --shine: 360deg; } }
@keyframes beam { 0%, 55% { left: -60%; } 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .glass::before, .glass::after { animation: none; } }
.glass.thin { background: rgba(255, 255, 255, .03); }
.glass.thick { /* sheets and bars with text on them: a little more frost so words stay easy to read */
  background: linear-gradient(180deg, rgba(40, 52, 44, .5), rgba(18, 24, 20, .55));
  -webkit-backdrop-filter: blur(26px) saturate(1.3); backdrop-filter: blur(26px) saturate(1.3);
}
.glass.pill { border-radius: 999px; }

/* ------------------------------------------------------------------ buttons (clear glass pills; primary is green-tinted glass) */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 14.5px/1 var(--font); letter-spacing: -.1px; color: var(--text); cursor: pointer; text-decoration: none; white-space: nowrap;
  padding: 11px 18px; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  -webkit-backdrop-filter: blur(10px) saturate(1.3) brightness(1.1); backdrop-filter: blur(10px) saturate(1.3) brightness(1.1);
  box-shadow: var(--spec), 0 6px 16px -8px rgba(0, 0, 0, .55);
  transition: transform .3s var(--ease), background .2s, box-shadow .3s var(--ease);
}
.btn:hover { background: rgba(255, 255, 255, .12); transform: translateY(-1px); }
.btn:active { transform: scale(.96); }
.btn:disabled { cursor: default; opacity: .55; transform: none; }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn.primary {
  color: #fff; font-weight: 700; text-shadow: 0 1px 2px rgba(0, 40, 10, .35);
  background: linear-gradient(180deg, rgba(54, 164, 70, .9), rgba(47, 154, 64, .9));
  box-shadow: var(--spec), inset 0 0 18px rgba(190, 255, 170, .18), 0 10px 26px -10px rgba(47, 154, 64, .55), 0 2px 6px rgba(0, 0, 0, .3);
}
.btn.primary:hover { background: linear-gradient(180deg, rgba(104, 216, 80, .85), rgba(40, 152, 62, .88)); }
.btn.ghost { background: rgba(255, 255, 255, .05); }
.btn.danger { color: #ffb3ad; background: rgba(255, 105, 97, .14); }
.btn.lg { font-size: 17px; padding: 15px 30px; }
.btn.sm { font-size: 13px; padding: 7px 13px; }
.btn.wide { width: 100%; }

/* ------------------------------------------------------------------ text boxes */
.field {
  width: 100%; font: 500 15px var(--font); color: var(--text); padding: 13px 16px; border: 0; border-radius: var(--r-sm); outline: none;
  background: rgba(0, 0, 0, .28); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .09), 0 1px 0 rgba(255, 255, 255, .06);
  transition: box-shadow .2s, background .2s; user-select: text;
}
.field::placeholder { color: var(--faint); }
.field:focus { background: rgba(0, 0, 0, .34); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(67, 181, 74, .55), 0 0 0 4px rgba(67, 181, 74, .14); }
.field.key { font: 600 17px var(--mono); letter-spacing: 1.5px; text-align: center; text-transform: uppercase; }

/* ------------------------------------------------------------------ glass icon tiles (like app icons, made of clear tinted glass)
   Layers: a see-through tinted body that blurs what's behind it, a light pool glowing up from the bottom,
   a curved lens shine on top, a rainbow-edged rim (::before), and a glowing symbol. */
.gicon {
  --tint: #2f9a40; --s: 52px;
  position: relative; isolation: isolate; flex: none; width: var(--s); height: var(--s); border-radius: calc(var(--s) * .3);
  display: grid; place-items: center; color: #fff; overflow: hidden;
  background:
    radial-gradient(90% 60% at 50% 115%, color-mix(in srgb, var(--tint) 95%, #fff 5%) 0%, transparent 70%),
    radial-gradient(70% 50% at 18% 8%, rgba(255, 255, 255, .5), transparent 60%),
    linear-gradient(160deg, color-mix(in srgb, var(--tint) 55%, transparent), color-mix(in srgb, var(--tint) 22%, rgba(0, 0, 0, .35)));
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  box-shadow:
    inset 0 2px 8px -2px rgba(255, 255, 255, .55),
    inset 0 0 0 calc(var(--s) * .06) rgba(255, 255, 255, .06),
    inset 0 calc(var(--s) * -.12) calc(var(--s) * .25) color-mix(in srgb, var(--tint) 70%, #fff 10%),
    inset 0 0 calc(var(--s) * .22) color-mix(in srgb, var(--tint) 45%, transparent),
    0 calc(var(--s) * .18) calc(var(--s) * .45) calc(var(--s) * -.14) color-mix(in srgb, var(--tint) 80%, transparent),
    0 2px 6px rgba(0, 0, 0, .35);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.gicon::before { /* the rim: light bends around the edge, with a hint of rainbow like real glass */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2; opacity: .55;
  background: conic-gradient(from 200deg, rgba(255, 255, 255, .95), rgba(160, 220, 255, .55), rgba(255, 255, 255, .1) 25%,
    color-mix(in srgb, var(--tint) 70%, #fff) 45%, rgba(255, 180, 240, .5) 55%, rgba(255, 255, 255, .15) 70%, rgba(255, 255, 255, .95));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.gicon::after { /* the curved lens shine across the top */
  content: ""; position: absolute; left: -10%; right: -10%; top: -38%; height: 78%; border-radius: 0 0 50% 50% / 0 0 38% 38%; pointer-events: none; z-index: 1;
  background: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .08) 75%, rgba(255, 255, 255, 0));
}
.gicon svg { width: 52%; height: 52%; position: relative; z-index: 3; color: #fff;
  filter: drop-shadow(0 0 calc(var(--s) * .05) rgba(255, 255, 255, .7)) drop-shadow(0 0 calc(var(--s) * .14) color-mix(in srgb, var(--tint) 80%, #fff)) drop-shadow(0 1px 1px rgba(0, 0, 0, .3)); }
.gicon img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
:is(.tile, .step, .facts div, .row):hover .gicon, .gicon:hover { transform: translateY(-2px) scale(1.04); }
.gicon.sm { --s: 34px; } .gicon.lg { --s: 76px; } .gicon.xl { --s: 104px; }
.t-green { --tint: #2f9a40; } .t-mint { --tint: #19c2a0; } .t-sky { --tint: #2f9bff; } .t-violet { --tint: #8a5cff; } .t-amber { --tint: #ffa51f; }
.t-pink { --tint: #ff4f8b; } .t-red { --tint: #ff453a; } .t-gray { --tint: #6b7a72; } .t-indigo { --tint: #5a62ff; }

/* ------------------------------------------------------------------ small things */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font: 600 12px/1.2 var(--font); color: var(--text);
  background: rgba(255, 255, 255, .06); box-shadow: var(--spec); -webkit-backdrop-filter: blur(10px) saturate(1.3); backdrop-filter: blur(10px) saturate(1.3); }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.eyebrow { font: 700 11.5px/1.2 var(--font); letter-spacing: 1.8px; text-transform: uppercase; color: var(--green); }
.check { display: flex; gap: 11px; align-items: flex-start; text-align: left; font-size: 13px; line-height: 1.45; color: var(--dim); cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin: 0; border-radius: 7px; cursor: pointer;
  background: rgba(0, 0, 0, .3); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), inset 0 1px 2px rgba(0, 0, 0, .4); transition: background .2s; }
.check input:checked { background: linear-gradient(180deg, #7fdc62, #2a9e3f) center / cover;
  box-shadow: var(--spec), 0 0 0 3px rgba(67, 181, 74, .18);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 6.8' fill='none' stroke='%23062010' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"), linear-gradient(180deg, #7fdc62, #2a9e3f); }
.check a { color: var(--text); }
.divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .14), transparent); border: 0; margin: 16px 0; }
.err { color: #ffa29b; min-height: 20px; margin-top: 10px; font-size: 13.5px; }
.rise { animation: rise .6s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
::-webkit-scrollbar { width: 10px; } ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::selection { background: rgba(67, 181, 74, .35); }
