:root {
  --bg: #08060b;
  --panel: rgba(23, 15, 30, 0.88);
  --line: rgba(231, 196, 122, 0.18);
  --gold: #e7c47a;
  --pink: #f06bb5;
  --violet: #9b6cff;
  --text: #fffaf0;
  --muted: rgba(255, 255, 255, 0.62);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 12%, rgba(155, 108, 255, 0.15), transparent 32%),
    radial-gradient(circle at 86% 22%, rgba(240, 107, 181, 0.10), transparent 34%),
    var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.topbar, main, footer { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--gold); border-radius: 12px; color: var(--gold); font-family: Georgia, serif; font-size: 22px; }
.brand strong, .brand small { display: block; }
.brand strong { font: 700 13px/1.2 Georgia, serif; letter-spacing: .18em; }
.brand small { margin-top: 4px; color: var(--muted); font-size: 8px; letter-spacing: .15em; }

.sync-state { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.sync-state i { width: 8px; height: 8px; border-radius: 50%; background: #ffb457; box-shadow: 0 0 12px currentColor; }
.sync-state.ready i { background: #69e2a1; }

main { padding-block: 56px 80px; }
.hero { display: grid; grid-template-columns: 1fr 1.15fr; gap: 50px; align-items: end; min-height: 330px; }
.eyebrow { margin: 0 0 12px; color: var(--gold); font-size: 10px; font-weight: 800; letter-spacing: .18em; }
h1, h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 600; }
h1 { font-size: clamp(52px, 8vw, 104px); line-height: .88; letter-spacing: -.055em; }
h2 { font-size: clamp(27px, 3vw, 40px); }
.intro { max-width: 560px; color: var(--muted); line-height: 1.7; }

.master-clock { padding: 34px; border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(135deg, rgba(231,196,122,.10), rgba(155,108,255,.08)); box-shadow: 0 28px 70px rgba(0,0,0,.3); }
.master-clock time { display: block; font-size: clamp(50px, 7.6vw, 96px); font-weight: 250; line-height: 1; letter-spacing: -.055em; white-space: nowrap; }
.master-clock p { margin: 14px 0 5px; font-size: clamp(16px, 2vw, 23px); font-weight: 650; }
.master-clock span { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }

.panel { margin-top: 28px; padding: 28px; border: 1px solid rgba(255,255,255,.08); border-radius: 24px; background: var(--panel); box-shadow: 0 24px 65px rgba(0,0,0,.24); backdrop-filter: blur(18px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.clock-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 24px; }
.world-clock { padding: 18px; border: 1px solid rgba(255,255,255,.07); border-radius: 16px; background: rgba(255,255,255,.035); }
.world-clock strong, .world-clock span { display: block; }
.world-clock strong { margin-bottom: 13px; font-size: 12px; }
.world-clock time { font-size: 26px; font-weight: 300; }
.world-clock span { margin-top: 6px; color: var(--muted); font-size: 10px; }

.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
form { display: grid; gap: 13px; margin-top: 22px; }
label { display: grid; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 650; }
input, select, button { min-height: 46px; border-radius: 12px; font: inherit; }
input, select { width: 100%; padding: 0 13px; color: var(--text); border: 1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.045); }
button { padding: 0 18px; color: #150e19; border: 0; background: linear-gradient(110deg, var(--gold), #f5a88a); font-weight: 800; cursor: pointer; }
button:hover { filter: brightness(1.08); }
.muted, .legal-note { color: var(--muted); line-height: 1.6; }
.legal-note { margin-top: 18px; font-size: 10px; }
.event-list, .stamp-result { display: grid; gap: 10px; margin-top: 18px; }
.event-card, .receipt-card { padding: 15px; border: 1px solid rgba(155,108,255,.2); border-radius: 14px; background: rgba(155,108,255,.07); }
.event-card strong, .event-card span { display: block; }
.event-card span, .receipt-card { margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.event-card button, .receipt-card button { min-height: 34px; margin-top: 10px; padding-inline: 12px; font-size: 11px; }

footer { display: flex; justify-content: space-between; gap: 20px; padding-block: 26px; color: rgba(255,255,255,.42); border-top: 1px solid rgba(255,255,255,.06); font-size: 10px; letter-spacing: .08em; }

@media (max-width: 900px) {
  .hero, .split-grid { grid-template-columns: 1fr; }
  .clock-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .topbar, main, footer { width: min(100% - 24px, 1180px); }
  main { padding-top: 34px; }
  .hero { min-height: 0; gap: 28px; }
  .master-clock, .panel { padding: 20px; border-radius: 20px; }
  .master-clock time { font-size: 43px; }
  .clock-grid { grid-template-columns: 1fr; }
  .section-heading, footer { align-items: stretch; flex-direction: column; }
}
