/* THE DAY IT ARRIVES — see gift-day.js. Inherits the world's own type and ink; --gd-accent is the world's colour. */
.gd { box-sizing: border-box; width: 100%; min-width: 0; max-width: 100%; --gd-accent: currentColor; --gd-on: #fff; --gd-line: color-mix(in srgb, currentColor 20%, transparent); --gd-faint: color-mix(in srgb, currentColor 34%, transparent); margin: .6rem 0 .4rem; font: inherit; color: inherit; text-align: left; }
.gd-kept { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; overflow: hidden !important; clip-path: inset(50%) !important; }
.gd button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.gd button:focus-visible { outline: 2px solid var(--gd-accent); outline-offset: 3px; }

.gd-strip { position: relative; width: 100%; contain: inline-size; display: flex; gap: .5rem; overflow-x: auto; scroll-snap-type: x proximity; padding: .25rem .1rem .6rem; scrollbar-width: none; --gd-l: transparent; --gd-r: transparent; -webkit-mask-image: linear-gradient(90deg, var(--gd-l), #000 1.2rem, #000 calc(100% - 2.4rem), var(--gd-r)); mask-image: linear-gradient(90deg, var(--gd-l), #000 1.2rem, #000 calc(100% - 2.4rem), var(--gd-r)); }
.gd-strip.is-start { --gd-l: #000; }
.gd-strip.is-end { --gd-r: #000; }
.gd-strip::-webkit-scrollbar { display: none; }
.gd-card { flex: 0 0 auto; scroll-snap-align: start; width: 4.6rem; min-height: 5.5rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; padding: .55rem .2rem; border: 1px solid var(--gd-line); border-radius: 1rem; background: var(--gd-ground, transparent); transition: transform .25s ease, background-color .25s ease, border-color .25s ease, color .25s ease; }
.gd-card:hover { border-color: var(--gd-accent); transform: translateY(-2px); }
.gd-card-top { font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; opacity: .72; white-space: nowrap; }
.gd-card-num { font-size: 1.65rem; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.gd-card-month { font-size: .72rem; letter-spacing: .06em; opacity: .72; }
.gd-card.is-chosen { background: var(--gd-accent); border-color: var(--gd-accent); color: var(--gd-on); transform: translateY(-3px); box-shadow: 0 10px 22px -12px var(--gd-accent); }
.gd-card.is-chosen .gd-card-top, .gd-card.is-chosen .gd-card-month { opacity: 1; }
.gd-card.is-far { order: 0; }

.gd-more { border-style: dashed; gap: .45rem; }
.gd-more-word { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; line-height: 1.25; text-align: center; }
.gd-more-mark { width: 1.1rem; height: 1.1rem; border: 1.5px solid currentColor; border-radius: .25rem; position: relative; opacity: .8; }
.gd-more-mark::before { content: ""; position: absolute; left: -1.5px; right: -1.5px; top: .22rem; border-top: 1.5px solid currentColor; }
.gd-more.is-open { border-style: solid; border-color: var(--gd-accent); }

.gd-further { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s ease; }
.gd.is-open .gd-further { grid-template-rows: 1fr; }
.gd-further-in { overflow: hidden; min-height: 0; max-width: 22rem; }
.gd.is-open .gd-further-in { padding: .4rem .1rem .2rem; }

.gd-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .4rem; }
.gd-name { margin: 0; font-size: 1.05rem; letter-spacing: .02em; }
.gd-step { width: 2.4rem; height: 2.4rem; border: 1px solid var(--gd-line); border-radius: 50%; background: none; font-size: 1.3rem !important; line-height: 1; padding: 0; }
.gd-step:disabled { opacity: .25; cursor: default; }
.gd-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .2rem; }
.gd-w { text-align: center; font-size: .66rem; letter-spacing: .1em; opacity: .6; padding: .2rem 0 .35rem; }
.gd-day { aspect-ratio: 1; border: 0; border-radius: 50%; background: none; padding: 0; font-size: .95rem !important; font-variant-numeric: tabular-nums; transition: background-color .2s ease, color .2s ease; }
.gd-day:hover:not(:disabled) { background: color-mix(in srgb, var(--gd-accent) 14%, transparent); }
.gd-day:disabled { color: var(--gd-faint); cursor: default; }
.gd-day.is-chosen { background: var(--gd-accent); color: var(--gd-on); }

@media (prefers-reduced-motion: reduce) { .gd-card, .gd-further, .gd-day { transition: none; } .gd-card:hover, .gd-card.is-chosen { transform: none; } }

/* Today, or a day of their own — two presses, for a world whose choice was a plain list. */
.gd-when { display: flex; gap: .5rem; flex-wrap: wrap; margin: .5rem 0 .2rem; padding: 0; border: 0; }
.gd-when label { flex: 1 1 9rem; display: flex !important; flex-direction: column; gap: .15rem; padding: .8rem 1rem; border: 1px solid var(--gd-line, color-mix(in srgb, currentColor 20%, transparent)); border-radius: 1rem; cursor: pointer; text-transform: none !important; letter-spacing: normal !important; transition: border-color .25s ease, background-color .25s ease; }
.gd-when label:hover { border-color: var(--gd-accent, currentColor); }
.gd-when input { position: absolute; opacity: 0; pointer-events: none; }
.gd-when strong { font-weight: 500; font-size: 1rem; }
.gd-when small { font-size: .82rem; opacity: .72; }
.gd-when label:has(input:checked) { border-color: var(--gd-accent, currentColor); background: color-mix(in srgb, var(--gd-accent, currentColor) 8%, transparent); box-shadow: inset 0 0 0 1px var(--gd-accent, currentColor); }
.gd-when label:has(input:focus-visible) { outline: 2px solid var(--gd-accent, currentColor); outline-offset: 3px; }
