@font-face {
  font-family: "Christmas Script";
  src: url("greeting-script.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #080b18;
  --ink: #f9f5ee;
  --gold: #f5d59a;
  --muted: #c1bdcc;
  --border: #e0c6a234;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

* { box-sizing: border-box; }
body { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid #ffdf9f; outline-offset: 4px; }

.page {
  isolation: isolate;
  overflow: clip;
  min-height: 100svh;
  position: relative;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 55% 57%, #1d274b 0%, #131830 31%, transparent 66%),
    radial-gradient(ellipse at 77% 102%, #251730 0%, transparent 51%),
    var(--bg);
}

.page::before {
  position: absolute;
  content: "";
  z-index: -3;
  pointer-events: none;
  inset: 0;
  opacity: .78;
  background:
    radial-gradient(ellipse 39% 11% at 60% 63%, #78a3df37, #595db316 68%, transparent 100%),
    radial-gradient(ellipse 34% 8% at 56% 65%, #c398d028, transparent 100%);
  transform: rotate(-26deg) scale(1.35);
}

#sky, #tree { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#sky { z-index: -2; }
#tree { z-index: -1; }
.topbar, main { width: min(1460px, calc(100% - 104px)); margin-inline: auto; }
.topbar {
  height: 68px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.sound {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: #131728a1;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--gold);
}
.sound:hover { border-color: #f6d7978a; background: #252236; }
.sound-icon { font: 22px/1 "Segoe UI Symbol", Georgia, serif; transform: translateY(-1px); }
.sound[aria-pressed="true"] { box-shadow: 0 0 21px #f3cb7d20, inset 0 0 12px #f3cb7d11; }
.sound[aria-pressed="false"] { color: #b5a9b9; }
.sound[aria-pressed="false"]::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transform: rotate(-47deg);
  box-shadow: 0 -2px #131728;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-block: 3px 12px;
}

.greeting { z-index: 1; text-align: center; }
.greeting-art {
  position: relative;
  display: inline-grid;
  justify-items: center;
  isolation: isolate;
  padding: 12px 19px 9px;
}
.greeting-art::before {
  position: absolute;
  inset: -45% -30%;
  content: "";
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 56% 67%, #f4b46d0b, transparent 48%),
    radial-gradient(ellipse at 40% 35%, #94bfff0a, transparent 56%);
}
h1 {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "Christmas Script", "Segoe Script", cursive;
  font-size: clamp(31px, 6.5vw, 49px);
  font-weight: 400;
  line-height: 1.03;
  white-space: nowrap;
}
h1 span { display: block; }
.title-name {
  font-size: .73em;
  color: #e6f2ff43;
  -webkit-text-stroke: .22px #dfecff9c;
  text-shadow: 0 0 11px #adc9ff30;
}
.title-holiday {
  margin-top: .07em;
  padding: .06em .085em .10em;
  background: linear-gradient(147deg, #fff2cc6f 8%, #ffd99849 40%, #e9ad753b 71%, #ffe5a174 97%);
  color: transparent;
  background-clip: text;
  -webkit-text-stroke: .28px #ffe2a6a2;
  filter: drop-shadow(0 0 5px #f1a75430);
}
#title-glitter { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }

.stage {
  width: min(100%, 830px);
  height: clamp(335px, calc(100svh - 190px), 870px);
  flex: none;
  position: relative;
  isolation: isolate;
}
#orbit { position: absolute; inset: 0; cursor: grab; touch-action: none; border-radius: 18px; }
#orbit[data-dragging] { cursor: grabbing; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 950px) {
  .topbar, main { width: calc(100% - 64px); }
}

@media (max-width: 680px) {
  .page { background: radial-gradient(ellipse at 50% 56%, #202747, #131830 30%, #080b18 70%); }
  .topbar, main { width: calc(100% - 36px); }
  .topbar { height: 54px; }
  .sound { width: 40px; height: 40px; }
  main { padding-block: 6px 13px; }
  h1 { font-size: clamp(31px, 10.5vw, 44px); }
  .stage { width: calc(100% + 31px); height: clamp(310px, calc(100svh - 170px), 730px); }
}

@media (orientation: landscape) and (min-width: 560px) {
  main {
    display: grid;
    grid-template-columns: minmax(150px, .70fr) minmax(0, 1.30fr);
    align-items: center;
    column-gap: clamp(0px, 2vw, 30px);
  }
  .greeting { padding-inline-start: clamp(0px, 1vw, 18px); }
  h1 { font-size: clamp(25px, 3.65vw, 59px); }
  .stage { width: 100%; height: clamp(248px, calc(100svh - 86px), 880px); }
}
