/* Site-wide event artwork stays local; registration opens the organiser's site. */
.datafest-invitation { color: #fff; background: #101b25; border-bottom: 1px solid #304149; }
.datafest-invitation[hidden] { display: none; }
.datafest-invitation-inner { width: var(--shell); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 10px; }
.datafest-invitation p { margin: 0; font-size: .9rem; }
.datafest-invitation strong { color: #5bdee1; margin-right: 12px; }
.datafest-invitation p span { color: #d1dce1; }
.datafest-invitation-action { display: inline-flex; align-items: center; justify-content: center; gap: 12px; flex-shrink: 0; min-height: 44px; padding: 8px 16px; border: 1px solid #6e566a; border-radius: 6px; color: #ffc1ed; font-size: .9rem; font-weight: 650; }
.datafest-invitation-inner:hover .datafest-invitation-action { background: #302331; border-color: #ff66cb; }
.datafest-invitation :focus-visible, .datafest-dialog :focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
body.datafest-open { overflow: hidden; }
.datafest-dialog { width: min(960px, calc(100% - 64px)); max-width: none; max-height: none; margin: auto; padding: 0; overflow: visible; border: 0; background: transparent; color: #fff; }
.datafest-dialog:not([open]) { display: none; }
.datafest-dialog::backdrop { background: rgba(3, 12, 21, .84); backdrop-filter: blur(8px); }
.datafest-card { max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); overflow-y: auto; overscroll-behavior: contain; border: 1px solid #58626b; border-radius: 18px; background: #090d14; box-shadow: 0 3px 0 #354351, 0 7px 0 #172735, 0 36px 100px #000b, -12px 0 60px #5bdee11a, 12px 0 60px #ff66cb1a; transform: perspective(1400px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); transition: transform 180ms ease-out; scrollbar-color: #637484 #101b25; }
.datafest-dialog[open] { animation: datafest-arrive 550ms cubic-bezier(.2, .8, .2, 1) both; }
.datafest-header { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; border-top: 3px solid #5bdee1; border-bottom: 1px solid #323842; background: #101722; }
.datafest-header > div { min-width: 0; }
.datafest-header h2 { margin: 0; font-size: clamp(1.25rem, 3vw, 1.7rem); font-weight: 650; letter-spacing: -.025em; line-height: 1.2; }
.datafest-close { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 1px solid #65727e; border-radius: 50%; color: #fff; background: #1c2936; font-size: 1.8rem; line-height: 1; }
.datafest-close:hover { background: #354351; }
.datafest-artwork { display: block; background: #000; }
.datafest-artwork img { display: block; width: 100%; height: auto; object-fit: contain; }
.datafest-details { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .85fr); align-items: center; gap: 24px; padding: 22px 28px 26px; border-top: 1px solid #33313a; background: radial-gradient(ellipse at bottom right, #282035, #101722 75%); }
.datafest-date { margin: 0 0 6px; color: #b5c8d5; font-size: .85rem; }
#datafest-offer { margin: 0; font-size: 1rem; line-height: 1.65; }
.datafest-code { color: #ff97df; letter-spacing: .06em; white-space: nowrap; }
.datafest-actions { display: grid; gap: 10px; text-align: center; }
.datafest-register { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 50px; padding: 12px 18px; border-radius: 8px; background: #5bdee1; color: #081c25; font-weight: 750; line-height: 1.4; box-shadow: 0 4px 0 #257e8a; transition: background 150ms ease; }
.datafest-register:hover { background: #90f0f1; }
.datafest-actions > span { font-size: .75rem; line-height: 1.5; color: #b5c8d5; }
@keyframes datafest-arrive {
  from { opacity: 0; transform: perspective(1400px) translateY(20px) rotateX(5deg) scale(.97); }
  to { opacity: 1; transform: perspective(1400px) translateY(0) rotateX(0) scale(1); }
}
@media (max-width: 840px) {
  .datafest-invitation-inner { flex-wrap: wrap; gap: 6px 20px; }
  .datafest-invitation p span { display: block; }
}
@media (max-width: 620px) {
  .datafest-invitation-inner { padding-block: 12px; }
  .datafest-invitation-action { padding-inline: 12px; }
  .datafest-invitation p { font-size: .84rem; }
  .datafest-dialog { width: calc(100% - 32px); }
  .datafest-card { max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); border-radius: 12px; }
  .datafest-header { padding: 14px 16px; gap: 10px; }
  .datafest-details { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 20px 18px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .datafest-dialog[open] { animation: none; }
  .datafest-card { transform: none; transition: none; }
}
