/* =========================================================
   Roby Casino — "Sticker & Ticket" theme
   Nero puro, rosa shocking, verde menta. Bordi netti,
   ombre piene sfalsate, badge-adesivo inclinati.
   ========================================================= */

:root {
  --black: #000;
  --panel: #121012;
  --panel-2: #1c181b;
  --line: #2e282c;
  --text: #f4ecf1;
  --text-soft: #c9bcc4;
  --pink: #ff3d9a;
  --pink-soft: #ffb0d5;
  --pink-deep: #c2186f;
  --green: #22d47b;
  --green-soft: #9ff3c6;
  --green-deep: #0c6e3e;

  --font-head: "Unbounded", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --header-h: 64px;
  --hard-pink: 5px 5px 0 var(--pink);
  --hard-green: 5px 5px 0 var(--green);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--black);
  background-image: radial-gradient(rgba(255, 61, 154, .09) 1px, transparent 1px);
  background-size: 22px 22px;
  overflow-x: clip;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }
svg { display: block; }

a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-soft); }

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  font-weight: 700;
  color: var(--black);
  background: var(--green);
  text-decoration: none;
}
.skip-link:focus { top: 10px; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 820px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  border-bottom: 3px solid var(--pink);
}
.site-header.is-scrolled { box-shadow: 0 6px 0 rgba(34, 212, 123, .9); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}

.logo img { width: auto; height: 38px; }

.btn-bonus {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--black);
  background: var(--green);
  border: 2px solid var(--black);
  box-shadow: 4px 4px 0 var(--pink);
  text-decoration: none;
  white-space: nowrap;
  transition: transform .1s ease, box-shadow .1s ease;
}
.btn-bonus:hover { color: var(--black); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--pink); }
.btn-bonus:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--pink); }
.btn-bonus svg { width: 18px; height: 18px; flex: 0 0 18px; }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 20px; }

.hero h1 {
  margin: 0 0 16px;
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 1rem + 3.2vw, 3.3rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--text);
  text-wrap: balance;
}

.hero-intro {
  max-width: 720px;
  margin: 0 0 18px;
  font-size: 1.08rem;
  color: var(--text-soft);
}

.author-box {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  padding: 8px 16px 8px 8px;
  background: var(--panel);
  border: 2px solid var(--line);
}
.author-box img {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  object-fit: cover;
  border: 2px solid var(--pink);
  border-radius: 50%;
  background: var(--panel-2);
}
.author-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 10px;
  font-size: 14px;
  line-height: 1.35;
}
.author-name { font-weight: 700; }
.badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 8px 1px 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--black);
  background: var(--green);
}
.badge-verified svg { width: 12px; height: 12px; }
.author-date { width: 100%; font-size: 13px; color: var(--text-soft); }

/* ---------- Summary ("listing") ---------- */
.summary { padding: 14px 0 10px; }

.summary-title {
  margin: 0 0 22px;
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 1rem + 1.2vw, 1.9rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.01em;
  scroll-margin-top: calc(var(--header-h) + 20px);
}

/* the ticket card */
.brand-card {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(210px, 1.1fr) minmax(0, 1.3fr) minmax(0, 1fr) 200px;
  grid-template-areas: "rank brand bonus features cta";
  align-items: center;
  gap: 20px;
  margin: 0 0 26px;
  padding: 22px 22px;
  background: var(--panel);
  border: 3px solid var(--pink);
  box-shadow: 8px 8px 0 var(--green);
}

/* perforated ticket edge */
.brand-card::before {
  content: "";
  position: absolute;
  top: -3px;
  bottom: -3px;
  right: 236px;
  width: 0;
  border-left: 3px dashed var(--pink);
}

.brand-card .sticker {
  position: absolute;
  top: -16px;
  right: 18px;
  padding: 4px 12px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 800;
  color: var(--black);
  background: var(--green);
  border: 2px solid var(--black);
  transform: rotate(4deg);
}

.rank {
  grid-area: rank;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  color: var(--black);
  background: var(--pink);
  border-radius: 50%;
  transform: rotate(-8deg);
}

.brand { grid-area: brand; display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-logo {
  display: grid;
  place-items: center;
  flex: 0 0 104px;
  width: 104px;
  height: 60px;
  padding: 6px 8px;
  background: var(--black);
  border: 2px solid var(--line);
  overflow: hidden;
}
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-name {
  display: block;
  margin: 0 0 6px;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.15;
}
.rating { display: flex; align-items: center; gap: 6px; font-size: 13px; line-height: 1; color: var(--text-soft); }

.stars {
  position: relative;
  display: inline-block;
  font-family: Arial, sans-serif;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 1px;
  color: #4a3f45;
  white-space: nowrap;
}
.stars::before { content: "★★★★★"; }
.stars::after {
  content: "★★★★★";
  position: absolute;
  top: 0;
  left: 0;
  width: var(--w, 100%);
  overflow: hidden;
  color: var(--green);
}
.r5 { --w: 100%; }
.r45 { --w: 90%; }
.r4 { --w: 80%; }

.bonus-block { grid-area: bonus; }
.bonus-label {
  display: inline-block;
  margin-bottom: 4px;
  padding: 1px 8px;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  color: var(--black);
  background: var(--pink);
}
.bonus-text {
  margin: 0;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}
.bonus-terms { margin: 5px 0 0; font-size: 13px; line-height: 1.35; color: var(--text-soft); }

.features {
  grid-area: features;
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14.5px;
  line-height: 1.3;
}
.features li { display: flex; align-items: center; gap: 8px; }
.features svg { width: 18px; height: 18px; flex: 0 0 18px; }

.cta { grid-area: cta; display: grid; gap: 8px; text-align: center; }

.btn-play,
.btn-ghost,
.btn-alt {
  display: block;
  padding: 13px 14px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid var(--black);
  transition: transform .1s ease, box-shadow .1s ease;
}
.btn-play {
  color: var(--black);
  background: var(--pink);
  box-shadow: 4px 4px 0 var(--green);
}
.btn-play:hover { color: var(--black); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--green); }
.btn-play:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--green); }

.cta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn-ghost {
  padding: 9px 8px;
  font-size: 13px;
  color: var(--text);
  background: transparent;
  border-color: var(--line);
}
.btn-ghost:hover { color: var(--green); border-color: var(--green); }

.cta-note { font-size: 11.5px; line-height: 1.3; color: var(--text-soft); }

/* ---------- Alternatives ---------- */
.alternatives {
  margin: 34px 0 10px;
  padding: 22px;
  background: var(--panel);
  border: 2px solid var(--green);
  box-shadow: var(--hard-pink);
}
.alt-title {
  margin: 0 0 4px;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--green);
}
.alt-intro { margin: 0 0 16px; font-size: 14.5px; color: var(--text-soft); }

.alt-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.alt-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  background: var(--black);
  border: 2px solid var(--line);
}
.alt-head { display: flex; align-items: center; gap: 10px; }
.alt-logo {
  display: grid;
  place-items: center;
  flex: 0 0 72px;
  width: 72px;
  height: 42px;
  padding: 4px 6px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  overflow: hidden;
}
.alt-logo img { width: 100%; height: 100%; object-fit: contain; }
.alt-name { display: block; font-family: var(--font-head); font-size: 14px; font-weight: 600; line-height: 1.2; }
.alt-bonus { margin: 0; font-size: 14px; font-weight: 700; line-height: 1.35; }
.alt-terms { margin: 0; font-size: 12.5px; line-height: 1.35; color: var(--text-soft); }
.btn-alt {
  margin-top: auto;
  padding: 10px 10px;
  font-size: 13px;
  text-align: center;
  color: var(--black);
  background: var(--green);
  box-shadow: 3px 3px 0 var(--pink);
}
.btn-alt:hover { color: var(--black); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--pink); }

/* ---------- Article content ---------- */
.content { padding: 4px 0 20px; }

.content h2 {
  margin: 2.2em 0 .7em;
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 1rem + 1.1vw, 1.8rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--text);
  scroll-margin-top: calc(var(--header-h) + 20px);
}

/* pink bar that sits left of every H2 */
.content h2::before {
  content: "";
  display: block;
  width: 56px;
  height: 8px;
  margin-bottom: 14px;
  background: var(--pink);
  box-shadow: 18px 0 0 var(--green);
}

.content h3 {
  margin: 1.6em 0 .45em;
  font-family: var(--font-head);
  font-size: clamp(1.02rem, .95rem + .4vw, 1.2rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--pink-soft);
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.content p { margin: 0 0 1em; }

.content ul {
  margin: 0 0 1.2em;
  padding: 0;
  list-style: none;
}
.content ul > li { position: relative; margin: 0 0 .45em; padding-left: 1.5em; }
.content ul > li::before {
  content: "";
  position: absolute;
  left: .15em;
  top: .6em;
  width: .5em;
  height: .5em;
  background: var(--green);
}

.content ol {
  margin: 0 0 1.3em;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.content ol > li {
  position: relative;
  min-height: 1.9em;
  margin: 0 0 .6em;
  padding-left: 2.6em;
  counter-increment: step;
}
.content ol > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: .05em;
  display: grid;
  place-items: center;
  width: 1.85em;
  height: 1.85em;
  font-family: var(--font-head);
  font-size: .8em;
  font-weight: 800;
  line-height: 1;
  color: var(--black);
  background: var(--pink);
  border-radius: 50%;
}

/* ---------- Tables ---------- */
.table-wrap {
  width: 100%;
  max-width: 100%;
  margin: 1.2em 0 1.6em;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  background: var(--panel);
  border: 2px solid var(--pink);
  box-shadow: var(--hard-green);
  scrollbar-width: thin;
  scrollbar-color: var(--pink) var(--panel-2);
}
.table-wrap::-webkit-scrollbar { height: 8px; }
.table-wrap::-webkit-scrollbar-track { background: var(--panel-2); }
.table-wrap::-webkit-scrollbar-thumb { background: var(--pink); }

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 15px;
  line-height: 1.45;
}
.table-wrap td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.table-wrap td + td { border-left: 1px solid var(--line); }
.table-wrap td p { margin: 0; }

.table-wrap tr:first-child td {
  vertical-align: middle;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  background: var(--pink);
  border-bottom: 0;
  border-left-color: rgba(0, 0, 0, .2);
}
.table-wrap tr:nth-child(odd):not(:first-child) td { background: var(--panel-2); }
.table-wrap tr:last-child td { border-bottom: 0; }

.spec tr:not(:first-child) td:first-child { width: 42%; font-weight: 700; color: var(--green-soft); }
.cols-4 table { min-width: 720px; }
.cols-4 tr:not(:first-child) td:first-child { min-width: 130px; font-weight: 700; color: var(--green-soft); }

/* ---------- FAQ ---------- */
.faq-item {
  margin: 0 0 12px;
  padding: 16px 20px 4px;
  background: var(--panel);
  border: 2px solid var(--line);
  border-left: 6px solid var(--green);
}
.content .faq-item h3 { margin: 0 0 .4em; }

/* ---------- Author bio ---------- */
.author-bio {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin: 44px 0 10px;
  padding: 22px;
  background: var(--panel);
  border: 2px solid var(--pink);
  box-shadow: var(--hard-green);
}
.author-bio img {
  width: 84px;
  height: 84px;
  flex: 0 0 84px;
  object-fit: cover;
  border: 3px solid var(--green);
  border-radius: 50%;
  background: var(--panel-2);
}
.author-bio-name { margin: 0 0 2px; font-family: var(--font-head); font-size: 1.1rem; font-weight: 800; }
.author-bio-role { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--pink); }
.author-bio-text { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--text-soft); }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 60px;
  padding: 44px 0 24px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-soft);
  background: var(--panel);
  border-top: 3px solid var(--pink);
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.1fr; gap: 32px; }
.footer-title { margin: 0 0 12px; font-family: var(--font-head); font-size: 15px; font-weight: 600; color: var(--green); }
.footer-logo img { width: auto; height: 36px; margin-bottom: 12px; }
.footer-about { margin: 0; }
.footer-links { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: var(--text); text-decoration: none; }
.footer-links a:hover { color: var(--pink); text-decoration: underline; }

.rg-box {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  background: var(--black);
  border: 2px solid var(--line);
}
.rg-box p { margin: 0; font-size: 13.5px; }
.age-badge {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 800;
  color: var(--black);
  background: var(--pink);
  border-radius: 50%;
}

.footer-bottom {
  margin-top: 30px;
  padding-top: 16px;
  font-size: 13px;
  text-align: center;
  border-top: 1px solid var(--line);
}
.footer-bottom p { margin: 0 0 4px; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  color: var(--black);
  background: var(--green);
  border: 2px solid var(--black);
  box-shadow: 3px 3px 0 var(--pink);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top svg { width: 20px; height: 20px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .brand-card {
    grid-template-columns: 54px minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "rank brand cta"
      "rank bonus features";
    align-items: start;
  }
  .brand-card::before { display: none; }
  .alt-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 680px) {
  body { font-size: 16px; line-height: 1.65; }
  .container { padding: 0 14px; }

  .hero { padding: 20px 0 10px; }
  .hero h1 { margin-bottom: 10px; }
  .hero-intro { font-size: 15px; line-height: 1.55; margin-bottom: 12px; }
  .author-box { padding: 6px 12px 6px 6px; gap: 10px; }
  .author-box img { width: 38px; height: 38px; flex-basis: 38px; }
  .author-meta { font-size: 13px; }
  .author-date { font-size: 12px; }

  .summary { padding: 12px 0 6px; }
  .summary-title { margin-bottom: 18px; }

  .brand-card {
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-areas:
      "rank brand"
      "bonus bonus"
      "features features"
      "cta cta";
    gap: 12px;
    padding: 18px 14px 14px;
    box-shadow: 5px 5px 0 var(--green);
  }
  .brand-card .sticker { top: -14px; right: 12px; font-size: 11px; }
  .rank { width: 42px; height: 42px; font-size: 17px; align-self: center; }
  .brand-logo { flex-basis: 88px; width: 88px; height: 50px; }
  .brand-name { font-size: 16px; }
  .bonus-text { font-size: 15px; }
  .features { grid-template-columns: 1fr 1fr; gap: 6px 10px; font-size: 13.5px; }
  .features li:first-child { grid-column: 1 / -1; }
  .btn-play { padding: 12px; }

  .alternatives { padding: 16px 14px; }
  .alt-list { grid-template-columns: 1fr; }

  .table-wrap { margin: 1em 0 1.4em; box-shadow: 4px 4px 0 var(--green); }
  .table-wrap table { font-size: 14px; }
  .table-wrap td { padding: 9px 11px; }
  .table-wrap tr:first-child td { font-size: 12px; }

  .faq-item { padding: 14px 14px 4px; }
  .author-bio { flex-direction: column; align-items: center; text-align: center; padding: 18px; }
}

@media (max-width: 480px) {
  :root { --header-h: 58px; }
  .logo img { height: 32px; }
  .btn-bonus { padding: 8px 11px; font-size: 12px; gap: 6px; box-shadow: 3px 3px 0 var(--pink); }
  .btn-bonus svg { width: 16px; height: 16px; flex-basis: 16px; }
}

@media (max-width: 360px) {
  .btn-bonus span { display: none; }
  .btn-bonus { padding: 9px; }
  .features { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { transition: none !important; animation: none !important; }
}
