#site {
  --cta-gold-fill: linear-gradient(165deg, #ffdc80, #e4af48 76%, #e9ba5a);
  --cta-polish: linear-gradient(109deg, transparent 40%, #97600028 43%, #fff1bf 48%, #fff9df 50%, #ffeaa4 53%, transparent 59%);
  --cta-gold-ink: #221a0e;
  --cta-gold-edge: #ffe49b;
  --cta-gold-shadow: inset 0 1px 0 #fff1bb, inset 0 -2px 0 #94611e, 0 3px 9px #21160640;
  --cta-secondary-ink: #f2dfb1;
  --cta-secondary-fill: #172330;
  --cta-secondary-edge: #a89468;
  --surface-fill: linear-gradient(145deg, #172330f5, #101924f5);
  --surface-line: #71664f;
}
html[data-theme=light] #site {
  --cta-secondary-ink: #573e13;
  --cta-secondary-fill: #fffdf7;
  --cta-secondary-edge: #99793f;
  --surface-fill: linear-gradient(145deg, #fff, #faf8f1);
  --surface-line: #c9bea8;
}

@media screen {
  #site :is(.site-header .header-inner > .header-cta.button, .portal-home .compact-card .button.compact-cta,
    .portal-directory .compact-card .button.compact-cta, .button:not(.outline), .portal-hero-link,
    .desktop-nav .mobile-casino-navigation, .hero-photo-link, .rmethod .rmethod-start) {
    min-height: 3rem;
    max-width: 100%;
    padding: .65rem 1.2rem;
    border: 1px solid var(--cta-gold-edge);
    border-radius: 999px;
    color: var(--cta-gold-ink);
    background: var(--cta-polish) 100% 0 / 270% 100% no-repeat,
                var(--cta-gold-fill) center / 100% 100% no-repeat #e8b94e;
    box-shadow: var(--cta-gold-shadow);
    font-family: var(--sans);
    font-weight: 800;
    font-size: clamp(1rem, .96rem + .3vw, 1.1875rem);
    line-height: 1.25;
    letter-spacing: -.012em;
    text-align: center;
    text-decoration: none;
    white-space: normal;
    text-wrap: balance;
  }

  #site :is(.portal-home .compact-card, .portal-directory .compact-card, .article-body .article-casino-card)
    .button:is(.compact-cta, .article-casino-cta) {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3.5rem;
    padding: .65rem .875rem;
    font-size: clamp(1.25rem, 1.15rem + .45vw, 1.5rem);
    line-height: 1.18;
  }
  #site :is(.header-inner .header-cta.button, .desktop-nav .mobile-casino-navigation) {
    min-height: 44px;
    padding: .5rem .95rem;
  }

  #site :is(.article-resource-actions > .button.outline.guide-casino-button, .button.outline,
    .back-to-top, .portal-filter-buttons > button, .portal-home-filters a, .directory-jump,
    .carousel-controls button, .directory-quick-jump > summary,
    .rmethod .rmethod-directory-link, .rmethod .rmethod-stop, .rmethod .rmethod-step) {
    border: 1px solid var(--cta-secondary-edge);
    border-radius: 999px;
    background: var(--cta-secondary-fill);
    color: var(--cta-secondary-ink);
    box-shadow: none;
    min-height: 44px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
  }

  #site .portal-filter-buttons > button[aria-pressed=true],
  #site .carousel-controls button[aria-pressed=true] {
    color: var(--cta-gold-ink);
    background: var(--cta-gold-fill);
    border-color: var(--cta-gold-edge);
  }

  #site :is(.guide-card, .featured-story, .editorial-guides .article-row, .portal-resource,
    .software-card, .article-aside, .guide-feature) {
    border: 1px solid var(--surface-line);
    border-radius: .8rem;
    background: var(--surface-fill);
  }
  #site :is(a.guide-card, a.featured-story, .editorial-guides a.article-row, a.portal-resource):is(:hover,:focus-visible) {
    border-color: var(--cta-secondary-edge);
  }
  #site :is(.button, .back-to-top, .directory-jump, .portal-hero-link, .hero-photo-link,
    .portal-filter-buttons > button, .carousel-controls button):focus-visible {
    outline: 3px solid var(--cta-secondary-ink);
    outline-offset: 3px;
  }
}

@media screen and (hover:hover) {
  #site :is(.button, .portal-hero-link, .hero-photo-link):not(:disabled):hover {
    filter: brightness(1.055);
  }
}

@keyframes button-reflection {
  from { background-position: 100% 0, center; }
  to { background-position: 0% 0, center; }
}
@keyframes welcome-reflection {
  0% { background-position: 100% 0, center; }
  43%, 100% { background-position: 0% 0, center; }
}

#site .motion-control:not([hidden]) {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .7rem;
  font: 650 .95rem/1.4 var(--sans);
}
#site .motion-control select {
  max-width: 100%;
  min-height: 44px;
  padding: .45rem .7rem;
  border: 1px solid var(--cta-secondary-edge);
  border-radius: .65rem;
  background: var(--cta-secondary-fill);
  color: var(--cta-secondary-ink);
  font: inherit;
}
#site .footer-back-to-top { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; }
#site #animazioni { scroll-margin-top: 5rem; }
#site .rsim-motion-setting:has(.motion-control:not([hidden])) { margin: .5rem 0 .85rem; }

/* Editorial guide links share a silver edge on the wheel photo and on plain panels. */
#site a.guide-entry {
  --guide-surface: #10151d;
  --guide-edge: linear-gradient(115deg, #8b9bac, #f8fcff 22%, #c3d6e8 42%, #fff 57%, #8b9bac 80%, #e1edf8);
  --guide-glint: #dcefff33;
}
#site :is(.portal-hero-actions, .hero-caption, .header-updates-panel, .not-found .actions) a.guide-entry:any-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: linear-gradient(var(--guide-surface), var(--guide-surface)) padding-box, var(--guide-edge) border-box;
  box-shadow: 0 0 0 1px #596779, 0 1px 7px var(--guide-glint), inset 0 1px 0 #ffffff1c;
  color: #f5f6f7;
  font-weight: 700;
  text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
  #site a.guide-entry:hover { --guide-surface: #1b2430; --guide-glint: #dcefff85; }
}
#site a.guide-entry:active { --guide-surface: #283340; --guide-glint: #dcefff85; }
#site a.guide-entry:focus-visible { outline: 3px solid #dabd80; outline-offset: 3px; }
html[data-theme=light] #site a.guide-entry:focus-visible { outline-color: #765622; }

/* A fine silver rim separates the gold labels from the dark surface. */
#site .compact-card--recommended .compact-rank,
#site .site-header .header-inner .casino-list-link,
#site .home-directory-actions .casino-list-link {
  --cta-gold-edge: #c3cbd4;
  border-color: #c3cbd4;
  box-shadow: inset 0 0 0 1px #403526, 0 0 0 1px #232b35;
}

/* Keep the main routes and service links in view; secondary links use native disclosure. */
#site .site-footer { border-top: 1px solid var(--line); }
.footer-content { padding-block: 1rem; color: var(--text); }
.footer-lead, .footer-sections, .footer-service, .footer-extra, .footer-preferences {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 1rem;
}
.footer-lead { justify-content: space-between; gap: .25rem 1.5rem; }
.footer-lead .brand-logo { width: 40px; height: 40px; }
.footer-sections, .footer-service, .footer-extra, .footer-more { font-size: .9375rem; line-height: 1.35; }
.footer-content :is(.footer-sections, .footer-service, .footer-extra) > a,
.footer-more > summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: .25rem;
}
.footer-content :is(.footer-sections, .footer-service, .footer-extra) > a:hover,
.footer-more > summary:hover { text-decoration: underline; text-underline-offset: .2em; }
.footer-sections { color: var(--text); font-weight: 650; }
.footer-tools {
  --return-width: 6.85rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--return-width);
  align-items: start;
  margin-top: .4rem;
  padding-block: .25rem;
  border-block: 1px solid var(--line);
}
.footer-more { grid-column: 1 / -1; grid-row: 1; min-width: 0; }
#site .footer-tools .footer-top {
  grid-area: 1 / 2;
  z-index: 1;
  align-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .4rem .6rem;
  --cta-secondary-ink: #2b200f;
  --cta-secondary-fill: linear-gradient(150deg, #ffe9a4, #e7c174 68%, #d7ab5b);
  --cta-secondary-edge: #92703c;
  font: 750 .9375rem/1.25 var(--sans);
  text-align: center;
}
#site .footer-tools .footer-top:is(:hover, :active) {
  --cta-secondary-fill: linear-gradient(150deg, #fff0bc, #f7d58b 68%, #e2b86a);
  color: #291c08;
}
#site .footer-tools .footer-top:focus-visible,
#site .footer-more > summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.footer-more > summary { width: fit-content; max-width: calc(100% - var(--return-width) - .65rem); min-width: 0; gap: .7rem; color: var(--gold); font-weight: 650; cursor: pointer; list-style: none; }
.footer-more > summary::-webkit-details-marker { display: none; }
.footer-more > summary::after { flex-shrink: 0; content: ""; width: .45em; height: .45em; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.footer-more[open] > summary::after { transform: rotate(225deg); }
.footer-more-content { padding-block: 0 .65rem; }
.footer-extra { gap: 0 1.25rem; }
.footer-preferences { gap: .6rem 2rem; margin-block: .3rem; }
.footer-preferences .visit-counter { grid-template-columns: auto auto; column-gap: .5rem; }
.footer-preferences .visit-counter-total { font-size: 1.125rem; }
.footer-service { color: var(--muted); }
.footer-service .footer-responsible { gap: .4rem; }
.footer-responsible .age-mark { width: auto; height: auto; min-width: 0; padding: .18rem .34rem; font-size: .75rem; line-height: 1.2; }
.footer-copyright, .footer-motto { color: var(--muted); font-size: .8125rem; line-height: 1.45; }
.footer-motto { margin: .65rem 0 0; }
.footer-copyright { display: block; }

@media (max-width: 680px) {
  .footer-content { padding-block: .65rem; }
  .footer-lead { align-items: flex-start; flex-direction: column; }
  .footer-lead .brand-logo { width: 34px; height: 34px; }
  .footer-sections, .footer-service { gap: 0 .85rem; }
  .footer-sections, .footer-service { font-size: .875rem; }
  .footer-tools { --return-width: 6rem; margin-top: 0; }
  .footer-extra { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)); gap: 0 .6rem; }
}

/* The compact header has one set of section links in either menu state. */
.desktop-nav .nav-section .section-icon { display: none; }
@media (max-width: 1240px) {
  .site-header[data-menu-open="true"] .mobile-primary-links { display: none; }
  #site .desktop-nav[data-open="true"] {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .35rem .5rem;
    padding: .6rem 0 .2rem;
    background: transparent;
  }
  #site .desktop-nav[data-open="true"] > .nav-section {
    grid-column: span 3;
    display: flex;
    gap: .55rem;
    min-height: 44px;
    padding: .48rem .72rem;
    border: 1px solid var(--line);
    border-radius: .95rem;
    background: var(--panel);
    color: var(--text);
    font: 650 1rem/1.25 var(--sans);
  }
  #site .desktop-nav[data-open="true"] .section-icon {
    display: block; width: 1.12rem; height: 1.12rem; margin: 0; color: var(--gold);
  }
  #site .desktop-nav[data-open="true"] > .nav-section[aria-current] {
    border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); font-weight: 750;
  }
  #site .desktop-nav[data-open="true"] > a[aria-current]::after { display: none; }
  #site .desktop-nav[data-open="true"] > .mobile-casino-navigation { margin: .05rem 0 0; }
  #site .desktop-nav[data-open="true"] > .nav-section[href="/casino-online/"] { grid-column: 1 / -1; justify-content: center; }
  #site .desktop-nav[data-open="true"] > .nav-extra {
    grid-column: span 2; justify-content: center; min-width: 0; min-height: 44px; padding: .35rem .1rem;
    border-radius: 999px; color: var(--muted); font: 550 .9375rem/1.25 var(--sans);
  }
  #site .desktop-nav[data-open="true"] > .nav-extra[aria-current] { color: var(--text); text-decoration: underline; text-underline-offset: .23em; }
  #site .desktop-nav[data-open="true"] > a:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
  .site-header[data-menu-open="true"] .mobile-channel-link { min-height: 44px; }
}
