/* Casino LP (DE). One column, phone first. The memorable thing is the bonus ticket on each card
   (punched sides, dashed tear line); everything around it stays quiet. */

:root {
  --night: #101632;
  --night-2: #1a2350;
  --paper: #eef1f7;
  --card: #ffffff;
  --ink: #161c36;
  --muted: #5c6684;
  --line: #dce1ec;
  --gold: #ffc83d;
  --gold-deep: #c98a00;
  --ticket: #fff5d6;
  --ticket-edge: #f1c75a;
  --go: #30e14a;
  --go-2: #1fb84f;
  --joker: #6c5ce7;
  --radius: 14px;
  --measure: 860px;
  font-size: 16px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
  display: flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 20px;
  border-radius: 12px; border: 0;
  font: inherit; font-size: 17px; font-weight: 800; letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
}
.btn--go {
  color: #fff;
  background: linear-gradient(180deg, var(--go), var(--go-2));
  text-shadow: 0 1px 1px rgba(0, 0, 0, .22);
  box-shadow: 0 8px 18px rgba(31, 184, 79, .28), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn--go:hover { filter: brightness(1.05); }
.btn--joker { color: #fff; background: linear-gradient(180deg, #8070ff, var(--joker)); box-shadow: 0 8px 18px rgba(108, 92, 231, .3); }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: 15px; border-radius: 10px; }

/* Top bar */
.bar { background: var(--night); color: #fff; }
.bar__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 52px; }
.mark { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; font-size: 18px; text-decoration: none; letter-spacing: -.01em; }
.mark__star { color: var(--gold); }
.bar__offer {
  font-size: 14px; font-weight: 700; text-decoration: none;
  color: var(--night); background: var(--gold);
  padding: 6px 12px; border-radius: 999px; white-space: nowrap;
}

/* Intro: two lines, then the list starts on the first screen */
.intro { background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%); color: #fff; padding: 20px 0 46px; }
.intro h1 { margin: 0; font-size: 24px; line-height: 1.2; letter-spacing: -.015em; font-weight: 800; max-width: 22em; }
.intro__sub { margin: 8px 0 0; font-size: 14px; color: #b8c0de; }

/* The list */
.list { margin-top: -32px; padding-bottom: 28px; }
.offers { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }

.offer {
  position: relative;
  display: grid;
  grid-template-columns: 124px 1fr;
  grid-template-areas:
    "logo head"
    "ticket ticket"
    "terms terms"
    "btn btn"
    "fine fine";
  column-gap: 12px;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.offer--lead { border: 2px solid var(--gold); box-shadow: 0 16px 34px rgba(16, 22, 50, .16); padding-top: 18px; }

.offer__rank {
  position: absolute; top: -9px; left: -6px; z-index: 1;
  display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--night); color: #fff;
  font-size: 14px; font-weight: 800;
  box-shadow: 0 0 0 3px var(--paper);
}
.offer--lead .offer__rank { background: var(--gold); color: var(--night); }
.offer__rank--star { background: var(--joker); color: #fff; }
.offer__tag {
  position: absolute; top: -10px; right: 14px;
  padding: 2px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 800;
  background: var(--gold); color: var(--night);
}
.offer__tag--hot { background: #ff6b4a; color: #fff; }
.offer__tag--new { background: #0e9f8e; color: #fff; }

.offer__logo { grid-area: logo; align-self: center; border-radius: 10px; overflow: hidden; background: var(--night); }
.offer__logo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.offer__logo--art img { aspect-ratio: 16 / 7; }
.offer__head { grid-area: head; align-self: center; min-width: 0; }
.offer__name { margin: 0; font-size: 20px; line-height: 1.15; font-weight: 800; letter-spacing: -.01em; }
.offer--joker .offer__name { font-size: 17px; }
.score { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.score__stars { color: var(--gold-deep); letter-spacing: 1px; font-size: 13px; }

/* The ticket: the offer itself, punched on both sides, a dashed tear line above the small print */
.ticket {
  --notch: 10px;
  grid-area: ticket;
  display: grid; gap: 2px;
  margin-top: 12px;
  padding: 12px 22px 11px;
  color: var(--ink); text-decoration: none;
  background: var(--ticket);
  border: 1.5px solid var(--ticket-edge);
  border-radius: 10px;
  -webkit-mask:
    radial-gradient(circle var(--notch) at 0 50%, #0000 97%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle var(--notch) at 100% 50%, #0000 97%, #000) right / 51% 100% no-repeat;
          mask:
    radial-gradient(circle var(--notch) at 0 50%, #0000 97%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle var(--notch) at 100% 50%, #0000 97%, #000) right / 51% 100% no-repeat;
}
.ticket__label { font-size: 13px; font-weight: 700; color: var(--gold-deep); }
.ticket__value { font-size: 22px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ticket__plus { display: inline-block; }
.ticket__more { margin-top: 7px; padding-top: 7px; border-top: 1.5px dashed var(--ticket-edge); font-size: 13px; color: var(--muted); }
.offer--lead .ticket { padding-top: 14px; padding-bottom: 13px; }
.offer--lead .ticket__value { font-size: 27px; }
.ticket--joker { background: #f1efff; border-color: #c9c1ff; }
.ticket--joker .ticket__label { color: var(--joker); }
.ticket--joker .ticket__value { font-size: 19px; }
.ticket--joker .ticket__more { border-top-color: #c9c1ff; }

/* One sweep of light across the Nr. 1 ticket after load: the only motion that isn't a response */
.offer--lead .ticket { position: relative; overflow: hidden; }
.offer--lead .ticket::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .85) 50%, transparent 65%);
  transform: translateX(-110%);
  animation: sweep 1.1s .5s ease-out 1 forwards;
  pointer-events: none;
}
@keyframes sweep { to { transform: translateX(110%); } }

/* Key terms as one bar */
.terms { grid-area: terms; display: grid; grid-template-columns: repeat(3, 1fr); margin: 10px 0 0; border: 1px solid var(--line); border-radius: 10px; }
.terms div { padding: 7px 8px; min-width: 0; }
.terms div + div { border-left: 1px solid var(--line); }
.terms dt { font-size: 12px; color: var(--muted); }
.terms dd { margin: 1px 0 0; font-size: 13px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }

.offer > .btn { grid-area: btn; margin-top: 12px; }
.offer__fine { grid-area: fine; display: block; margin-top: 6px; text-align: center; font-size: 12px; color: var(--muted); }

/* Side by side */
.title { margin: 0 0 12px; font-size: 21px; line-height: 1.25; letter-spacing: -.01em; }
.versus { padding: 18px 0 8px; }
.versus__scroll { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.versus table { width: 100%; border-collapse: collapse; font-size: 14px; }
.versus th, .versus td { padding: 10px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.versus thead th { font-size: 12px; font-weight: 700; color: var(--muted); background: #f7f8fb; }
.versus tbody tr:last-child > * { border-bottom: 0; }
.versus tbody th { font-weight: 800; white-space: nowrap; }
.versus td:last-child { width: 1%; }
@media (max-width: 479px) { .versus th:nth-child(3), .versus td:nth-child(3) { display: none; } }
.versus__note { margin: 8px 2px 0; font-size: 12px; color: var(--muted); }

/* FAQ */
.faq { padding: 22px 0 30px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; }
.faq summary { list-style: none; cursor: pointer; padding: 13px 44px 13px 14px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 600; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 14px 14px; color: #39415e; font-size: 15px; }

/* Footer */
.foot { background: var(--night); color: #b8c0de; padding: 24px 0 96px; font-size: 14px; }
.foot p { margin: 0 0 8px; }
.foot a { color: #fff; }
.foot__limit { color: #fff; font-weight: 800; }
.foot__note { margin-top: 12px; font-size: 12px; color: #8f98bb; max-width: 60em; }

/* Bottom bar */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
  background: var(--card);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 26px rgba(16, 22, 50, .14);
  transform: translateY(0); transition: transform .25s ease;
}
.dock[hidden] { display: flex; transform: translateY(120%); visibility: hidden; }
.dock__logo { width: 64px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 7px; background: var(--night); flex: none; }
.dock__deal { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; line-height: 1.25; }
.dock__deal strong { display: block; font-size: 13px; color: var(--muted); }
.dock__go { flex: none; min-height: 46px; font-size: 16px; }

/* Exit popup (desktop: pointer leaving through the top) */
.leave { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 16px; background: rgba(10, 14, 34, .62); }
.leave[hidden] { display: none; }
.leave__card { position: relative; width: 100%; max-width: 400px; padding: 22px 20px 16px; text-align: center; background: var(--card); border-radius: 16px; border: 2px solid var(--gold); }
.leave__logo { width: 150px; margin: 0 auto 12px; border-radius: 10px; aspect-ratio: 16 / 9; object-fit: cover; }
.leave h2 { margin: 0 0 6px; font-size: 21px; }
.leave p { margin: 0 0 16px; color: #39415e; }
.leave__x { position: absolute; top: 6px; right: 8px; width: 40px; height: 40px; border: 0; background: none; font-size: 26px; color: var(--muted); cursor: pointer; }
.leave__no { margin-top: 10px; border: 0; background: none; font: inherit; font-size: 14px; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 6px; }

/* Wider screens: each offer becomes one row; logo left, ticket centre, button right */
@media (min-width: 760px) {
  .intro { padding: 30px 0 58px; }
  .intro h1 { font-size: 34px; }
  .intro__sub { font-size: 15px; }
  .list { margin-top: -38px; }
  .offers { gap: 16px; }
  .offer {
    grid-template-columns: 176px 1fr 200px;
    grid-template-areas:
      "logo head head"
      "logo ticket btn"
      "logo terms fine";
    column-gap: 20px;
    padding: 18px 20px;
  }
  .offer--lead { padding: 22px 20px; }
  .offer__logo { align-self: start; }
  .offer > .btn { margin-top: 12px; align-self: center; }
  .offer__fine { align-self: start; margin-top: 12px; }
  .ticket__value { font-size: 24px; }
  .offer--lead .ticket__value { font-size: 30px; }
  .dock { left: 50%; right: auto; width: min(560px, calc(100% - 32px)); bottom: 14px; transform: translateX(-50%); border: 1px solid var(--line); border-radius: 14px; padding: 9px 12px; }
  .dock[hidden] { transform: translate(-50%, 140%); }
  .foot { padding-bottom: 100px; }
}

@media (prefers-reduced-motion: reduce) {
  .offer--lead .ticket::after { animation: none; display: none; }
  .dock { transition: none; }
}

/* 404 and the /go/ stub (shown only where no link is stored, e.g. previews) */
.stub__in { min-height: 100vh; display: grid; align-content: center; justify-items: center; gap: 10px; text-align: center; padding-top: 24px; padding-bottom: 24px; }
.stub h1 { margin: 0; font-size: 24px; }
.stub p { margin: 0 0 6px; color: var(--muted); }
