/* 2nd JOINTS 2027 – one-screen ticket page, colours from the logo */
:root {
  --orange-600: #E85A22;
  --orange-400: #F28A2E;
  --orange-50: #FFF1E7;
  --grey-900: #2F2B27;
  --grey-800: #3E3934;
  --grey-700: #5C5650;   /* logo grey */
  --grey-500: #857E77;
  --grey-200: #E7E0D9;
  --cream: #FBF7F3;
  --white: #FFFFFF;
  --grad: linear-gradient(120deg, var(--orange-600) 0%, var(--orange-400) 100%);
  --radius: 16px;
  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; font-family: var(--sans); font-size: 16px; line-height: 1.5; color: var(--grey-800); background: var(--cream); -webkit-font-smoothing: antialiased; }
body.dialog-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-600); }
h1, h2, h3 { margin: 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border: 0; border-radius: 999px; font: 700 14.5px/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.btn:focus-visible { outline: 3px solid rgba(232, 90, 34, .35); outline-offset: 2px; }
.btn-primary { color: var(--white); background: var(--grad); box-shadow: 0 8px 18px -10px rgba(232, 90, 34, .85); }
.btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 12px 22px -10px rgba(232, 90, 34, .95); }
.btn-primary:disabled { opacity: .6; cursor: progress; }
.btn-ghost { color: var(--grey-700); background: var(--white); box-shadow: inset 0 0 0 1.5px var(--grey-200); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--grey-500); }
.btn-muted { color: var(--grey-500); background: var(--grey-200); cursor: not-allowed; }
.btn-block { width: 100%; }

/* ---------- top bar ---------- */
.topbar { position: relative; z-index: 2; flex: none; background: var(--white); border-bottom: 1px solid var(--grey-200); }
.topbar-inner { display: flex; align-items: center; gap: 16px; width: min(1200px, 100% - 32px); height: 68px; margin-inline: auto; }
.topbar-logo { height: 42px; width: auto; }
.topbar-text { display: flex; flex-direction: column; padding-left: 16px; border-left: 1px solid var(--grey-200); line-height: 1.3; }
.topbar-text strong { font-size: 14px; color: var(--grey-800); }
.topbar-text span { font-size: 13px; font-weight: 600; color: var(--orange-600); }

/* ---------- stage (everything on one screen) ---------- */
/* content is centred, but grows from the top when taller than the screen (never clipped) */
.stage { position: relative; flex: 1 0 auto; display: flex; flex-direction: column; overflow: hidden; padding: 40px 0 48px; }
.stage-bg { position: absolute; inset: 0; pointer-events: none; }
.ribbon { position: absolute; border-radius: 999px; transform: rotate(-38deg); }
.ribbon--orange { right: -6%; top: -30%; width: 22%; height: 150%; background: var(--grad); opacity: .14; }
.ribbon--grey { right: 14%; top: -20%; width: 14%; height: 130%; background: var(--grey-700); opacity: .07; }
.stage-bg::after { content: ""; position: absolute; left: -12%; bottom: -40%; width: 40%; height: 90%; border-radius: 50%; background: radial-gradient(closest-side, rgba(242, 138, 46, .16), transparent); }

.stage-inner { position: relative; z-index: 1; width: min(1200px, 100% - 32px); margin: auto; text-align: center; }
.badge { display: inline-block; margin: 0 0 18px; padding: 8px 18px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--white); background: var(--grad); }
.stage h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6.4vw, 76px); line-height: 1.02; color: var(--grey-700); letter-spacing: -.01em; }
.tagline { margin: 10px 0 0; font-size: clamp(15px, 1.8vw, 19px); font-weight: 600; color: var(--grey-500); }

/* countdown */
.countdown { margin-top: 30px; }
.countdown[hidden] { display: none; }
.countdown-label { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-600); }
.countdown-boxes { display: inline-flex; align-items: center; gap: 10px; }
.countdown-boxes i { font-style: normal; font-size: 26px; font-weight: 700; color: var(--orange-400); }
.cd-box { display: flex; flex-direction: column; align-items: center; min-width: 82px; padding: 12px 10px 10px; background: var(--white); border: 1px solid var(--grey-200); border-radius: 14px; box-shadow: 0 10px 24px -18px rgba(62, 57, 52, .6); }
.cd-box b { font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; color: var(--grey-800); }
.cd-box span { margin-top: 6px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--grey-500); }

.choose-title { margin-top: 40px; font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3vw, 34px); color: var(--grey-700); }
.choose-sub { margin: 6px 0 26px; font-size: 14.5px; color: var(--grey-500); }

/* ticket cards */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(5, minmax(0, 1fr)); text-align: left; }
.card { position: relative; display: flex; flex-direction: column; padding: 18px 18px 18px; background: var(--white); border: 1px solid var(--grey-200); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(62, 57, 52, .05), 0 14px 30px -20px rgba(62, 57, 52, .45); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(62, 57, 52, .05), 0 20px 36px -20px rgba(62, 57, 52, .55); }
.card-tags { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; margin-bottom: 14px; }
.tag { padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.tag--group { color: var(--white); background: var(--grey-700); }
.tag--note { color: var(--orange-600); background: var(--orange-50); }
.tag--off { color: var(--grey-500); background: var(--grey-200); }
.card-title { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.1; color: var(--grey-700); }
.card-audience { margin: 6px 0 0; font-size: 14px; font-weight: 600; color: var(--grey-800); }
.card-desc { margin: 8px 0 0; font-size: 13px; color: var(--grey-500); white-space: pre-line; }
.card-price { margin: auto 0 14px; padding-top: 16px; font-size: 20px; font-weight: 800; letter-spacing: -.01em; color: var(--grey-800); }
.card.is-off .card-price { color: var(--grey-500); }
.api-note { margin: 18px 0 0; font-size: 13.5px; color: var(--grey-500); }

/* ---------- footer (one line) ---------- */
.footer { flex: none; padding: 16px; padding-bottom: max(16px, env(safe-area-inset-bottom)); text-align: center; font-size: 12.5px; color: rgba(255, 255, 255, .7); background: var(--grey-900); }
.footer p { margin: 0; }
.footer .powered { margin-top: 4px; }
.footer a { color: var(--orange-400); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ---------- registration window (full screen, desktop and mobile) ---------- */
dialog { border: 0; padding: 0; color: var(--grey-800); }
dialog::backdrop { background: rgba(62, 57, 52, .6); backdrop-filter: blur(3px); }
.reg-dialog { position: fixed; inset: 0; margin: 0; width: 100vw; max-width: 100vw; height: 100vh; height: 100dvh; max-height: 100dvh; border-radius: 0; overflow: hidden; display: none; flex-direction: column; background: var(--white); }
.reg-dialog[open] { display: flex; }
.reg-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 20px; padding-top: max(10px, env(safe-area-inset-top)); color: var(--white); background: var(--grad); flex: none; }
.reg-dialog-head p { margin: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reg-close { flex: none; width: 38px; height: 38px; border: 0; border-radius: 50%; font-size: 24px; line-height: 1; color: inherit; background: rgba(255, 255, 255, .2); cursor: pointer; }
.reg-close:hover { background: rgba(255, 255, 255, .32); }
.reg-dialog-body { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.reg-dialog-body iframe { flex: 1; width: 100%; border: 0; background: var(--white); }
.reg-newtab { flex: none; padding: 10px; padding-bottom: max(10px, env(safe-area-inset-bottom)); font-size: 13.5px; text-align: center; background: var(--cream); border-top: 1px solid var(--grey-200); }
.reg-confirm { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(62, 57, 52, .6); }
.reg-confirm[hidden] { display: none; }
.reg-confirm-box { width: 100%; max-width: 440px; padding: 26px 24px 22px; background: var(--white); border-radius: var(--radius); box-shadow: 0 24px 56px -20px rgba(62, 57, 52, .6); }
.reg-confirm-box p { margin: 0 0 18px; line-height: 1.55; color: var(--grey-500); }
.reg-confirm-box .reg-confirm-title { margin-bottom: 8px; font-family: var(--serif); font-size: 24px; line-height: 1.2; color: var(--grey-700); }
.reg-confirm-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.reg-confirm-actions .btn { flex: 1 1 auto; }

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ribbon--orange { width: 40%; right: -24%; }
  .ribbon--grey { display: none; }
}

@media (max-width: 520px) {
  .topbar-inner { height: 60px; gap: 12px; }
  .topbar-logo { height: 34px; }
  .topbar-text { padding-left: 12px; }
  .topbar-text strong { font-size: 13px; }
  .topbar-text span { font-size: 12px; }
  .stage { padding: 32px 0 40px; }
  .badge { font-size: 11.5px; padding: 7px 14px; }
  .countdown-boxes { gap: 6px; }
  .countdown-boxes i { font-size: 20px; }
  .cd-box { min-width: 64px; padding: 10px 6px 8px; }
  .cd-box b { font-size: 26px; }
  .cd-box span { font-size: 10px; }
  .cards { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .card { transition: none; }
}
