:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --soft: #f5f5f7;
  --blue: #0071e3;
  --blue-dark: #0059b3;
  --orange: #b64400;
  --white: #fff;
  --radius: 28px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.modal-open { overflow: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { text-decoration: none; color: inherit; }
.hidden { display: none !important; }
.page-width { width: min(100% - 40px, 680px); margin-inline: auto; }
.anchor-section { scroll-margin-top: 64px; }

.boot { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: #fff; transition: opacity .3s ease; }
.boot span { width: 28px; height: 28px; border: 2px solid #ddd; border-top-color: var(--ink); border-radius: 50%; animation: spin .75s linear infinite; }
.boot.done { opacity: 0; pointer-events: none; }

.login-view { position: relative; width: 100%; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 32px 20px; overflow: hidden; background: #f5f5f7; isolation: isolate; }
.login-orb { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .9; z-index: -1; }
.login-orb-one { width: 54vw; height: 54vw; max-width: 620px; max-height: 620px; left: -18vw; top: -18vw; background: radial-gradient(circle at 60% 65%, rgba(0,113,227,.28), rgba(0,113,227,0) 69%); animation: float-orb 8s ease-in-out infinite; }
.login-orb-two { width: 45vw; height: 45vw; max-width: 540px; max-height: 540px; right: -13vw; bottom: -16vw; background: radial-gradient(circle at 35% 30%, rgba(182,68,0,.19), rgba(182,68,0,0) 67%); animation: float-orb 9s ease-in-out -3s infinite reverse; }
.login-card { width: min(100%, 456px); max-width: 456px; min-width: 0; margin-inline: auto; padding: 42px; border: 1px solid rgba(255,255,255,.76); border-radius: 36px; background: rgba(255,255,255,.82); box-shadow: 0 28px 90px rgba(0,0,0,.09); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); animation: card-in .7s cubic-bezier(.2,.8,.2,1) both; }
.eyebrow, .section-kicker { font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.login-card h1 { margin: 15px 0 12px; font-size: clamp(42px, 12vw, 64px); line-height: .98; letter-spacing: -.052em; }
.login-card > p { margin: 0; max-width: 330px; font-size: 16px; line-height: 1.5; color: var(--muted); letter-spacing: -.015em; }
.login-card form { margin-top: 34px; }
.login-card label { display: block; margin: 18px 0 8px; font-size: 13px; font-weight: 500; color: #424245; }
.login-card input { width: 100%; height: 54px; padding: 0 16px; border: 1px solid var(--line); border-radius: 14px; outline: none; background: rgba(255,255,255,.9); font-size: 17px; transition: border-color .18s ease, box-shadow .18s ease; }
.login-card input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,113,227,.12); }
.password-field { position: relative; }
.password-field input { padding-right: 54px; }
.eye-button { position: absolute; top: 7px; right: 7px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.eye-button:hover { background: var(--soft); color: var(--ink); }
.eye-button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.form-error { min-height: 20px; margin-top: 10px; font-size: 13px; color: #c5221f; }
.primary-button, .outline-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 22px; border-radius: 999px; font-size: 16px; letter-spacing: -.015em; cursor: pointer; transition: transform .18s ease, background .18s ease, color .18s ease, opacity .18s ease; }
.primary-button { border: 0; background: var(--blue); color: #fff; }
.primary-button:hover { background: var(--blue-dark); transform: translateY(-1px); }
.primary-button:disabled { cursor: wait; opacity: .6; transform: none; }
.outline-button { border: 1px solid rgba(0,0,0,.82); background: #fff; color: var(--ink); }
.outline-button:hover { background: var(--ink); color: #fff; transform: translateY(-1px); }
.login-submit { width: 100%; margin-top: 6px; justify-content: space-between; padding-inline: 20px 16px; }
.login-submit span { font-size: 25px; line-height: 1; }
.login-foot { margin-top: 28px; text-align: center; font-size: 12px; color: #86868b; }

.topbar { position: sticky; top: 0; z-index: 80; height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 max(16px, env(safe-area-inset-left)); border-bottom: 1px solid rgba(0,0,0,.12); background: rgba(255,255,255,.78); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
.brand { flex: none; font-size: 13px; font-weight: 600; letter-spacing: -.01em; }
.top-actions { display: flex; align-items: center; gap: 8px; min-width: 0; }
.date-chip { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; color: #474747; white-space: nowrap; }
.date-chip i, .time-line i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); animation: pulse 2.2s ease-in-out infinite; }
.ghost-button, .admin-button { flex: none; border: 0; border-radius: 999px; padding: 7px 12px; font-size: 12px; cursor: pointer; }
.ghost-button { background: #e8e8ed; color: #474747; }
.admin-button { background: var(--ink); color: #fff; }

.hero { padding-top: 58px; }
.section-kicker { margin-bottom: 14px; text-transform: none; letter-spacing: -.01em; font-size: 15px; font-weight: 400; }
.hello { margin: 0; font-size: clamp(50px, 13.5vw, 88px); line-height: 1.02; letter-spacing: -.055em; font-weight: 700; }
.hello .letter { display: inline-block; white-space: pre; opacity: 0; transform: translateY(.4em) rotate(2deg); filter: blur(6px); animation: letter-in .62s cubic-bezier(.2,.8,.2,1) forwards; }
.intro { margin: 23px 0 0; max-width: 640px; font-size: clamp(18px, 4.6vw, 20px); line-height: 1.5; letter-spacing: -.026em; text-wrap: pretty; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 27px; }
.video-shell { position: relative; width: 100%; margin-top: 38px; border-radius: 28px; overflow: hidden; background: var(--soft); box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.video-shell video { display: block; width: 100%; height: auto; max-height: none; aspect-ratio: auto; object-fit: contain; background: #ececef; }
.video-scrim { position: absolute; inset: auto 0 0; height: 100px; pointer-events: none; background: linear-gradient(transparent, rgba(0,0,0,.22)); }
.sound-button { position: absolute; right: 14px; bottom: 14px; z-index: 2; width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(0,0,0,.58); color: #fff; backdrop-filter: blur(10px); cursor: pointer; }
.sound-button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sound-button svg path:first-child { fill: currentColor; stroke: none; }
.video-note { position: absolute; right: 65px; bottom: 22px; z-index: 2; color: #fff; font-size: 12px; text-shadow: 0 1px 5px rgba(0,0,0,.5); transition: opacity .25s; }

.soft-section { background: var(--soft); }
.countdown-section { margin-top: 66px; padding: 66px 0; }
.section-title { margin: 0; font-size: 30px; line-height: 1.1; font-weight: 600; letter-spacing: -.025em; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 23px; }
.countdown > div { min-width: 0; padding: 21px 8px; border-radius: 28px; text-align: center; background: #fff; }
.countdown strong { display: block; font-size: clamp(28px, 8vw, 45px); line-height: 1; letter-spacing: -.045em; }
.countdown div:last-child strong { color: var(--blue); }
.countdown span { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }

.where { padding-block: 78px; }
.detail-block + .detail-block { margin-top: 48px; }
.detail-block > span { font-size: 15px; color: var(--muted); }
.detail-block h2 { margin: 7px 0 0; font-size: clamp(40px, 11vw, 72px); line-height: 1.04; letter-spacing: -.052em; }
.time-line { display: flex; align-items: center; gap: 8px; margin-top: 15px; color: var(--orange); font-size: 14px; font-weight: 500; }
.time-line i { width: 5px; height: 5px; background: var(--orange); }
.detail-block .primary-button { margin-top: 22px; }

.program-section { padding-block: 78px; }
.section-copy { max-width: 560px; margin: 12px 0 0; color: var(--muted); font-size: 17px; line-height: 1.5; letter-spacing: -.026em; text-wrap: pretty; }
.games { display: flex; flex-direction: column; gap: 14px; margin-top: 29px; }
.game-card { width: 100%; padding: 22px 24px; border: 0; border-radius: 28px; background: #fff; text-align: left; color: var(--ink); cursor: pointer; opacity: 0; transform: translateY(25px); overflow: hidden; transition: opacity .7s ease, transform .7s ease, box-shadow .2s ease, padding .35s ease; }
.game-card.visible { opacity: 1; transform: none; }
.game-card:hover { box-shadow: 0 10px 34px rgba(0,0,0,.06); }
.game-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.game-num { display: block; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: .06em; }
.game-title { display: block; margin-top: 8px; font-size: clamp(27px, 6.5vw, 40px); font-weight: 600; line-height: 1.08; letter-spacing: -.035em; }
.game-icon { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #e8e8ed; font-size: 19px; transition: background .25s, color .25s, transform .25s; }
.game-card.open .game-icon { background: var(--ink); color: #fff; transform: none; }
.game-desc { display: block; max-height: 0; overflow: hidden; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.48; letter-spacing: -.026em; opacity: 0; visibility: hidden; transition: max-height .45s cubic-bezier(.2,.8,.2,1), margin .4s ease, opacity .3s ease, visibility 0s linear .45s; }
.game-card.open .game-desc { max-height: 420px; margin-top: 17px; opacity: 1; visibility: visible; transition-delay: 0s; }

.wishlist { padding-top: 78px; }
.availability { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: 17px; color: var(--muted); font-size: 14px; }
.availability b { color: var(--orange); font-weight: 600; }
.availability em { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; color: #16813a; font-style: normal; font-size: 11px; }
.availability em::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.special-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 28px; }
.handmade-card { overflow: hidden; border-radius: 28px; background: var(--soft); transition: transform .22s ease; }
.handmade-card.clickable { cursor: pointer; }
.handmade-card.clickable:hover { transform: translateY(-2px); }
.handmade-card:not(.clickable) { cursor: default; }
.handmade-card img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.handmade-card > div { padding: 24px 24px 27px; }
.handmade-card small { color: var(--orange); font-size: 12px; font-weight: 500; }
.handmade-card h3 { margin: 7px 0 0; font-size: 28px; letter-spacing: -.025em; }
.handmade-card p { margin: 10px 0 0; color: var(--muted); font-size: 17px; line-height: 1.48; }
.handmade-card strong { display: block; margin-top: 14px; font-size: 17px; font-weight: 400; }
.gift-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.gift-card { min-width: 0; overflow: hidden; border-radius: 28px; background: var(--soft); display: flex; flex-direction: column; opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease, box-shadow .22s ease; }
.gift-card.visible { opacity: 1; transform: none; }
.gift-card:hover { box-shadow: 0 11px 35px rgba(0,0,0,.07); }
.gift-image-wrap { position: relative; cursor: pointer; }
.gift-image-wrap img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: opacity .3s, transform .35s ease; }
.gift-card:hover .gift-image-wrap img { transform: scale(1.018); }
.gift-card.taken .gift-image-wrap img { opacity: .44; }
.gift-badge { position: absolute; top: 10px; right: 10px; padding: 5px 10px; border-radius: 999px; background: rgba(0,0,0,.72); color: #fff; font-size: 11px; font-weight: 500; backdrop-filter: blur(8px); }
.gift-card-body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 14px 14px 16px; }
.gift-name { border: 0; padding: 0; background: transparent; text-align: left; color: var(--ink); font-size: 14px; font-weight: 500; line-height: 1.3; letter-spacing: -.015em; cursor: pointer; }
.gift-price { color: var(--muted); font-size: 14px; }
.book-button { width: 100%; margin-top: auto; padding: 10px 11px; border: 0; border-radius: 999px; background: var(--blue); color: #fff; font-size: 13px; cursor: pointer; transition: background .22s, color .22s, transform .18s; }
.book-button:hover { transform: translateY(-1px); }
.book-button.mine { background: #dff5e5; color: #18672d; }
.book-button.taken { background: #e8e8ed; color: var(--muted); cursor: default; }

.rules-section { margin-top: 78px; padding-block: 78px; }
.big-statement { margin: 0; font-size: clamp(40px, 10vw, 59px); line-height: 1.06; letter-spacing: -.05em; }
.rules-card { margin-top: 30px; padding: 28px; border-radius: 28px; background: #fff; }
.rules-card > span { display: block; margin-bottom: 20px; color: var(--muted); font-size: 15px; }
.rules-card p { margin: 16px 0; font-size: 19px; font-weight: 500; letter-spacing: -.02em; line-height: 1.45; }
.rules-card .rule-main { text-decoration-line: line-through; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-decoration-skip-ink: none; }
.rules-card p.rule-ready { margin-top: 25px; font-weight: 400; color: var(--muted); }
.rules-card small { color: var(--muted); font-size: inherit; font-weight: 400; }
footer { padding: 56px 0 max(56px, env(safe-area-inset-bottom)); background: var(--ink); color: #fff; }
footer .page-width { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
footer span { color: #a1a1a6; font-size: 13px; }
footer strong { font-size: clamp(28px, 7vw, 45px); letter-spacing: -.04em; }

.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(0,0,0,.56); backdrop-filter: blur(8px); cursor: default; animation: fade-in .2s ease both; }
.gift-modal-card, .admin-card { position: relative; z-index: 1; width: min(100%, 430px); max-height: min(88vh, 860px); overflow: auto; border-radius: 28px; background: #fff; box-shadow: 0 30px 90px rgba(0,0,0,.28); animation: sheet-in .35s cubic-bezier(.2,.8,.2,1) both; }
.modal-close { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(232,232,237,.92); color: var(--ink); font-size: 23px; line-height: 1; cursor: pointer; }
.gift-modal-card > .modal-close { position: absolute; top: 13px; right: 13px; z-index: 2; }
.gift-modal-card img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--soft); }
.gift-modal-body { padding: 22px 22px 25px; }
.gift-modal-body h2 { margin: 0; font-size: 25px; line-height: 1.2; letter-spacing: -.03em; }
.modal-price { margin-top: 9px; color: var(--orange); font-size: 20px; font-weight: 600; }
.gift-modal-body p { margin: 13px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.modal-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 20px; }
.modal-actions > * { flex: 1; min-width: 140px; font-size: 14px; }
.admin-card { width: min(100%, 620px); padding: 26px; }
.admin-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.admin-card h2 { margin: 6px 0 0; font-size: 37px; letter-spacing: -.04em; }
.admin-summary { display: flex; align-items: baseline; gap: 10px; margin-top: 28px; padding: 22px; border-radius: 22px; background: var(--soft); }
.admin-summary strong { font-size: 40px; letter-spacing: -.04em; }
.admin-summary span { color: var(--muted); font-size: 14px; }
.admin-list { display: flex; flex-direction: column; gap: 9px; margin-top: 16px; }
.admin-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 14px 16px; border: 1px solid #e6e6e8; border-radius: 17px; }
.admin-row strong { display: block; font-size: 14px; }
.admin-row span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.admin-row button { border: 0; border-radius: 999px; padding: 8px 11px; background: #ffe9e8; color: #a42520; font-size: 12px; cursor: pointer; }
.empty-state { padding: 22px; border-radius: 18px; background: var(--soft); color: var(--muted); text-align: center; font-size: 14px; }
.admin-card h3 { margin: 28px 0 10px; font-size: 17px; }
.admin-guests { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.guest-status { padding: 12px; border-radius: 14px; background: var(--soft); }
.guest-status strong { display: block; font-size: 13px; }
.guest-status span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.toast { position: fixed; z-index: 500; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); max-width: calc(100% - 32px); padding: 11px 17px; border-radius: 999px; background: rgba(29,29,31,.93); color: #fff; font-size: 13px; box-shadow: 0 10px 40px rgba(0,0,0,.24); opacity: 0; transform: translate(-50%, 20px); pointer-events: none; transition: opacity .25s, transform .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes letter-in { to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes card-in { from { opacity: 0; transform: translateY(18px) scale(.985); } }
@keyframes float-orb { 50% { transform: translate(3vw, 2vw) scale(1.06); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes sheet-in { from { opacity: 0; transform: translateY(32px) scale(.98); } }

@media (min-width: 720px) {
  .gift-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .special-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .handmade-card { display: grid; grid-template-columns: 44% 1fr; }
  .handmade-card img { height: 100%; aspect-ratio: auto; }
}

@media (max-width: 480px) {
  .login-view { padding-inline: 18px; }
  .login-card { width: 100%; max-width: 100%; min-width: 0; margin-inline: auto; padding: 32px 20px; border-radius: 30px; }
  .login-card h1 { max-width: 100%; font-size: clamp(38px, 10.8vw, 46px); overflow-wrap: anywhere; }
  .page-width { width: min(100% - 36px, 680px); }
  .date-chip { display: none; }
  .hero { padding-top: 48px; }
  .countdown { gap: 7px; }
  .countdown > div { padding: 18px 3px; border-radius: 20px; }
  .countdown span { font-size: 10px; }
  .gift-card, .handmade-card, .game-card, .rules-card, .video-shell { border-radius: 23px; }
  .game-card { padding: 19px 20px; }
  .game-title { margin-top: 5px; font-size: 27px; }
  .game-icon { width: 34px; height: 34px; }
  .gift-grid { gap: 10px; }
  .gift-card-body { padding: 12px; }
  .gift-name { font-size: 13px; }
  .book-button { padding-inline: 7px; font-size: 11.5px; }
  .admin-card { padding: 20px; }
  .admin-guests { grid-template-columns: 1fr; }
  footer .page-width { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal, .game-card, .gift-card { opacity: 1; transform: none; }
}
