/* Birthday sample: kids' space party. Deep indigo sky, sunny yellow, bubblegum pink, rounded type. */
:root {
  --sky: #1a1450; --sky-2: #3b2a8c; --sun: #ffd166; --pink: #ff6fae; --mint: #5ef0c8;
  --card: rgba(255, 255, 255, .08); --line: rgba(255, 255, 255, .18); --text: #fff; --muted: #d8d2ff;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden; color: var(--text);
  font: 700 17px/1.5 var(--jt-font);
  background: radial-gradient(600px 400px at 85% 10%, rgba(255, 111, 174, .28), transparent 60%), linear-gradient(180deg, var(--sky-2), var(--sky) 55%, #0f0b33);
  background-color: var(--sky);
}
main { position: relative; max-width: 620px; margin: 0 auto; padding: 0 16px; }
h1, h2 { margin: 0; font-weight: 900; line-height: 1.05; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 10px; }

.sky { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.sky i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px #fff; animation: twinkle 3s ease-in-out infinite; }
.sky i:nth-child(3n) { width: 3px; height: 3px; animation-delay: 1s; }
.sky i:nth-child(4n) { background: var(--sun); box-shadow: 0 0 8px var(--sun); animation-delay: 2s; }
@keyframes twinkle { 50% { opacity: .25; transform: scale(.6); } }

.hero { text-align: center; padding: 30px 0 10px; position: relative; z-index: 1; }
.planet {
  position: relative; width: 150px; height: 150px; margin: 4px auto 14px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe7a3, var(--sun) 45%, #f0a63a);
  box-shadow: 0 0 60px rgba(255, 209, 102, .45); animation: bob 4s ease-in-out infinite;
}
.planet .ring { position: absolute; left: -34px; right: -34px; top: 60px; height: 34px; border-radius: 50%; border: 6px solid var(--pink); transform: rotate(-16deg); }
.planet .num { position: absolute; inset: 0; display: grid; place-items: center; font-size: 92px; font-weight: 900; color: #fff; text-shadow: 0 5px 0 var(--pink); }
@keyframes bob { 50% { transform: translateY(-8px) rotate(3deg); } }
.kicker { color: var(--mint); font-weight: 900; letter-spacing: .04em; }
.hero h1 { font-size: clamp(38px, 11vw, 60px); margin: 8px 0 10px; }
.hero h1 span { display: block; font-size: 1.35em; color: var(--sun); text-shadow: 0 5px 0 var(--pink), 0 0 30px rgba(255, 209, 102, .5); letter-spacing: .04em; }
.sub { color: var(--muted); max-width: 26em; margin: 0 auto; }
.when { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 22px 0 0; }
.when div { background: var(--card); border: 2px dashed var(--line); border-radius: 18px; padding: 12px 8px; display: grid; }
.when div:last-child { grid-column: 1 / -1; }
.when b { font-size: 18px; color: var(--sun); }
.when span { font-size: 14px; color: var(--muted); }
.actions { display: grid; gap: 10px; margin-top: 18px; }
.btn { min-height: 56px; border-radius: 20px; font: 900 18px var(--jt-font); cursor: pointer; border: 0; transition: transform .12s ease; }
.btn:active { transform: scale(.97); }
.btn-main { background: var(--pink); color: #fff; box-shadow: 0 6px 0 #c2407e; }
.btn-main:hover { filter: brightness(1.06); }
.btn-alt { background: var(--sun); color: #3b2a8c; box-shadow: 0 6px 0 #c99a2e; }

.panel { position: relative; z-index: 1; margin-top: 22px; padding: 20px 16px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.panel h2 { font-size: 26px; margin-bottom: 12px; color: var(--mint); }
.plan { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.plan li { display: grid; grid-template-columns: 46px 34px 1fr; align-items: center; gap: 6px; padding: 8px 10px; background: rgba(0, 0, 0, .18); border-radius: 14px; font-weight: 600; color: var(--muted); }
.plan .t { font-weight: 900; color: var(--sun); }
.plan .ico { font-size: 24px; }
.plan b { color: #fff; display: block; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile {
  display: grid; justify-items: center; gap: 4px; padding: 16px 6px; min-height: 100px; cursor: pointer;
  background: rgba(255, 255, 255, .1); color: #fff; border: 2px solid var(--line); border-radius: 18px;
  font: 900 15px var(--jt-font); transition: transform .12s ease, border-color .12s ease;
}
.tile span { font-size: 30px; }
.tile:hover { border-color: var(--sun); transform: translateY(-2px) rotate(-1deg); }
.note p { color: var(--muted); font-weight: 600; }
.note b { color: var(--sun); }
.from { position: relative; z-index: 1; text-align: center; margin-top: 30px; font-size: 20px; font-weight: 900; color: var(--sun); }
.from span { color: #fff; font-size: 16px; }
.jt-foot { position: relative; z-index: 1; }

@media (min-width: 720px) {
  .when { grid-template-columns: 1fr 1fr 1fr; }
  .when div:last-child { grid-column: auto; }
  .actions { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: repeat(3, 1fr); }
}
