@font-face { font-family: 'Pacifico'; font-style: normal; font-weight: 400; font-display: swap; src: url(../vendor/fonts/pacifico-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Pacifico'; font-style: normal; font-weight: 400; font-display: swap; src: url(../vendor/fonts/pacifico-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root { --muted: rgba(255,255,255,.75); --glass: rgba(10, 22, 50, .62); --line: rgba(255,255,255,.18); --red: #d8432f; --gold: #f2c94c; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #0e1d3f; color: #fff; font: 16px/1.4 -apple-system, system-ui, sans-serif; overscroll-behavior: none; }
/* the 3D scene fills the screen, the controls float over it, the snow falls over everything (and lets taps through) */
.stage { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; user-select: none; -webkit-user-select: none; }
.snow { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 20; pointer-events: none; }
main { position: relative; z-index: 1; max-width: 520px; height: 100%; margin: 0 auto; pointer-events: none;
  padding: calc(env(safe-area-inset-top) + 12px) 14px calc(env(safe-area-inset-bottom) + 14px); display: flex; flex-direction: column; align-items: stretch; }
main > .card, main > .infobtn { pointer-events: auto; }
header { display: flex; justify-content: center; }
.brand { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; font-weight: 650; padding: 6px 14px 6px 10px; border-radius: 99px; background: var(--glass); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.greeting { margin: 1vh 0 0; text-align: center; font: 400 clamp(2rem, 9.5vw, 2.9rem)/1.25 Pacifico, cursive; color: var(--gold);
  text-shadow: 0 0 18px rgba(255, 200, 80, .45), 0 3px 0 rgba(120, 40, 10, .45); animation: glow 3.5s ease-in-out infinite alternate; }
@keyframes glow { to { text-shadow: 0 0 28px rgba(255, 210, 100, .75), 0 3px 0 rgba(120, 40, 10, .45); } }
.hint { margin: auto 0 10px; text-align: center; font-weight: 600; font-size: 1rem; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.7); min-height: 1.4em; }
.card { background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 18px; padding: 10px 14px 12px; display: flex; flex-direction: column; gap: 8px; }
.player { display: flex; gap: 14px; align-items: center; justify-content: space-between; }
.playbtn { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--red); color: #fff; display: grid; place-items: center; padding: 0; box-shadow: 0 0 0 3px rgba(242,201,76,.35); }
.playbtn.on { background: #fff; color: #0e1d3f; }
.playbtn svg { display: block; }
.prow { display: flex; align-items: center; gap: 8px; }
.step { width: 34px; height: 34px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.08); color: #fff; font: inherit; font-size: 1.1rem; line-height: 1; }
.bpm { min-width: 70px; text-align: center; font-size: .8rem; color: var(--muted); }
.bpm b { color: #fff; font-size: 1.05rem; }
.globals { display: flex; flex-direction: column; gap: 4px; padding-top: 8px; border-top: 1px solid var(--line); }
.globals label { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 10px; font-size: .88rem; color: var(--muted); }
.globals input { width: 100%; accent-color: var(--gold); }
.tapsound { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; text-align: center; cursor: pointer; background: rgba(6, 12, 30, .45); }
.tapsound > div { background: var(--red); color: #fff; border-radius: 22px; padding: 22px 28px 18px; box-shadow: 0 18px 40px -16px rgba(0,0,0,.6); animation: tapsound 1.6s ease-in-out infinite alternate; }
.tapsound p { margin: 8px 0 0; font-weight: 600; }
@keyframes tapsound { to { transform: scale(1.05); } }
.portrait-only { display: none; }
@media (orientation: landscape) and (max-height: 500px) and (pointer: coarse) {
  .portrait-only { display: grid; place-items: center; position: fixed; inset: 0; z-index: 40; background: #0e1d3f; color: #fff; }
}
/* small info button (top right) and the info card */
.infobtn { position: absolute; top: calc(env(safe-area-inset-top) + 12px); right: 14px; z-index: 2; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--glass); color: #fff; font: italic 700 1.05rem Georgia, 'Times New Roman', serif; padding: 0;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.info { position: fixed; inset: 0; z-index: 25; display: grid; place-items: center; padding: 20px; background: rgba(6, 12, 30, .55); }
.info[hidden] { display: none; }
.infocard { position: relative; width: min(360px, 100%); text-align: center; background: #13254d; border: 1px solid var(--line); border-radius: 22px;
  padding: 26px 22px 20px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.7); }
.infocard h2 { margin: 10px 0 6px; font-size: 1.3rem; }
.infocard p { margin: 0 0 12px; color: var(--muted); font-size: .95rem; }
.infocard .wish { font: 400 1.35rem/1.35 Pacifico, cursive; color: var(--gold); margin: 4px 0 16px; }
.infocard a { color: #fff; }
.rate { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0 4px; margin-bottom: 14px; }
.rate p { margin-bottom: 10px; color: #fff; }
.ratebtn[hidden] { display: none; }
.ratebtn { display: inline-block; margin-bottom: 10px; padding: 9px 16px; border-radius: 99px; background: var(--gold); color: #0e1d3f !important; font-weight: 700; text-decoration: none; }
.made { color: #fff !important; }
.heart { color: #ff4d5e; }
.links { font-size: .88rem !important; }
.infoclose { position: absolute; top: 10px; right: 12px; border: 0; background: none; color: var(--muted); font-size: 1.15rem; padding: 4px 6px; }
