@font-face {
  font-family: "December Village Sans";
  src: url("assets/december-village-sans.woff2?v=clay-33") format("woff2");
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard Variable";
  src: url("assets/pretendard-variable-1.3.9.woff2") format("woff2");
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --nav-height: 72px;
  --light: #fff6e6;
  --quiet: #e5e2ef;
  --gold: #ffe1a2;
  --trim: #d9ac71;
  --dark: #0a1220;
  --sans: "December Village Sans", "Pretendard Variable", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans CJK KR", system-ui, sans-serif;
  font-family: var(--sans);
  color: var(--light);
  background: #090f1b;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-block: env(safe-area-inset-top) env(safe-area-inset-bottom); overscroll-behavior-x: none; }
body { margin: 0; min-width: 0; }
button, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, select:focus-visible { outline: 2px solid #ffdd91; outline-offset: 3px; }
:root[data-touch-input] body :is(button, a, select, summary, canvas, [tabindex]):focus { outline: none; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.symbol-library { width: 0; height: 0; position: absolute; pointer-events: none; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; z-index: 8; left: 12px; top: 10px; padding: 12px; background: #172338; color: var(--gold); transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.app {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100dvh;
  margin-inline: auto;
  -webkit-user-select: none;
  user-select: none;
}
.preview-toggle, .preview-date select {
  min-height: 44px;
  border: 1px solid #dbc0a474;
  border-radius: 14px;
  color: var(--light);
  background: linear-gradient(155deg,#303a51f2,#141d33ed 94%);
  box-shadow: inset 0 1px #fff0d333, 0 3px 8px #070b18bd;
}
.preview-toggle { white-space: nowrap; padding: 4px 8px; font-size: .75rem; font-weight: 790; }
.preview-toggle[aria-pressed=true] { color: #ffe5b5; background: #4b263b; }
.preview-controls { grid-column: 2; min-width: 0; }
.preview-date { position: relative; display: block; }
.preview-date select { width: auto; appearance: none; padding: 0 17px 0 7px; font-size: .75rem; font-weight: 780; cursor: pointer; }
.preview-date option { background: #1c263c; }
.preview-date .icon { position: absolute; right: 4px; top: 15px; width: 11px; height: 11px; color: var(--gold); pointer-events: none; }
.preview-toggle:active { scale: .955; }
@media (max-width: 335px) {
  .preview-toggle { padding-inline: 5px; }
  .preview-date select { padding-inline: 5px 15px; }
}


.app[data-scene=calendar] .preview-controls {
  grid-column: 2;
  justify-self: end;
  border-inline-end: 0;
  border-radius: 999px 0 0 999px;
}

.app[data-scene=calendar] .preview-date select {
  min-height: 44px;
  padding-inline: 12px 24px;
  border: 0;
  border-radius: 999px 0 0 999px;
  background: transparent;
  box-shadow: none;
  font-weight: 650;
}

.app[data-scene=calendar] .preview-date .icon {
  top: 50%;
  right: 8px;
  translate: 0 -50%;
}

.app[data-scene=calendar] .preview-toggle {
  grid-column: 3;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
}

.app[data-scene=calendar] #preview-toggle-label { display: none; }

.app[data-scene=calendar] .preview-toggle .preview-toggle-icon {
  grid-area: 1 / 1;
  display: block;
  width: 19px;
  height: 19px;
}

.app[data-scene=calendar] .preview-toggle[aria-pressed=true] {
  color: var(--benefit-blue);
}

.app[data-scene=calendar] .preview-toggle[aria-pressed=true] .preview-toggle-icon { visibility: hidden; }

.app[data-scene=calendar] .preview-toggle[aria-pressed=true]::before,
.app[data-scene=calendar] .preview-toggle[aria-pressed=true]::after {
  content: "";
  grid-area: 1 / 1;
  width: 14px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  rotate: 45deg;
}

.app[data-scene=calendar] .preview-toggle[aria-pressed=true]::after { rotate: -45deg; }


.app-main {
  display: grid;
  align-content: start;
  min-height: calc(100dvh - 63px - env(safe-area-inset-top));
  padding: clamp(9px, 2.9dvh, 27px) max(13px, env(safe-area-inset-right)) calc(var(--nav-height) + env(safe-area-inset-bottom) + 12px) max(13px, env(safe-area-inset-left));
}
.app-main:focus { outline: none; }
[data-screen] { min-width: 0; }
[data-screen]:not([hidden]) { animation: scene-in .26s cubic-bezier(.2,.74,.26,1) both; }
@keyframes scene-in { from { opacity: 0; transform: translateY(5px) scale(.99); } to { opacity: 1; transform: none; } }
.app-status { position: fixed; z-index: 6; bottom: calc(var(--nav-height) + env(safe-area-inset-bottom) + 12px); left: 50%; translate: -50% 0; margin: 0; width: max-content; max-width: min(calc(100% - 32px), 356px); padding: 9px 14px; border: 1px solid #d2a96b90; border-radius: 12px; color: #ffebc5; background: #241b14f2; font-size: .875rem; line-height: 1.4; text-align: center; word-break: keep-all; pointer-events: none; box-shadow: 0 5px 15px #10100ac0; }

.calendar-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
}
