:root {
  color-scheme: dark;
  --bg: #020712;
  --ink: #f3f8ff;
  --muted: #92a3b9;
  --blue: #54bafc;
  --line: rgba(154, 211, 255, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-width: 300px;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, system-ui, sans-serif;
  overflow-x: hidden;
}
.portal-bar { position: sticky; top: 0; z-index: 10; width: min(1240px, calc(100% - 40px)); margin: 0 auto; height: 64px; display: flex; align-items: center; gap: 30px; border-bottom: 1px solid var(--line); background: rgba(2,7,18,.82); backdrop-filter: blur(16px); }
.portal-logo { color: var(--ink); font: 700 12px/1 Inter, sans-serif; letter-spacing: .14em; text-decoration: none; }
.portal-logo span { display: inline-grid; place-items: center; width: 29px; height: 29px; margin-right: 9px; border: 1px solid #5abfff; border-radius: 9px; color: #8ed8ff; font-size: 9px; }
.portal-links { display: flex; gap: 22px; margin-right: auto; }
.portal-links a { color: #899bad; font-size: 12px; text-decoration: none; }
.portal-links a.active, .portal-links a:hover { color: white; }
.language-switcher { display: flex; gap: 7px; align-items: center; color: #617489; font-size: 10px; letter-spacing: .1em; }
.language-switcher a { color: #899bad; text-decoration: none; }
.language-switcher a.active, .language-switcher a:hover { color: #e9f7ff; }
.login-button { border: 1px solid rgba(127,201,255,.55); border-radius: 999px; padding: 10px 16px; color: #e9f7ff; background: rgba(34,110,170,.28); font: 600 11px Inter, sans-serif; cursor: pointer; }
.login-button:hover { background: rgba(56,151,218,.48); }
.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 8px;
  background: #8ed8ff;
  color: #02101b;
  font: 700 12px Inter, sans-serif;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }
a { color: inherit; }
.mobile-brand { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 16% 45%, rgba(9, 83, 152, .2), transparent 30%),
    radial-gradient(circle at 86% 74%, rgba(24, 64, 127, .16), transparent 28%),
    linear-gradient(180deg, #030a17, #01040a 76%);
}
.stars { position: fixed; inset: 0; z-index: -2; opacity: .45; pointer-events: none; }
.stars::before, .stars::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(137, 206, 255, .85) 0 1px, transparent 1.2px);
  background-size: 95px 95px;
}
.stars::after { background-size: 153px 153px; background-position: 37px 51px; opacity: .45; }

.hero {
  position: relative;
  min-height: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url('./splash.png') center / cover no-repeat;
  transform: scale(1.035);
  animation: reveal 1.7s cubic-bezier(.2,.7,.2,1) both, breathe 16s 1.7s ease-in-out infinite alternate;
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 5, 14, .34), transparent 32%, transparent 68%, rgba(0, 5, 14, .34)),
    linear-gradient(180deg, rgba(1, 5, 12, .04) 0%, rgba(1, 5, 12, .04) 38%, #020712 58%, #020712 100%);
}
.hero-copy { width: min(92%, 1160px); padding: clamp(68px, 10vh, 112px) 20px 24px; text-align: center; animation: rise .9s .55s ease both; }
.eyebrow, .kicker { text-transform: uppercase; letter-spacing: .27em; font-size: 10px; font-weight: 700; color: #99cfee; }
.eyebrow { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 0 12px; }
.eyebrow span { width: 40px; height: 1px; background: linear-gradient(90deg, transparent, #66c3ff); }
.eyebrow span:last-child { transform: rotate(180deg); }
.intro { margin: 0; font-family: Cinzel, Georgia, serif; font-size: clamp(16px, 2vw, 23px); letter-spacing: .08em; text-shadow: 0 2px 18px #000; }
.discover { display: inline-flex; align-items: center; gap: 9px; margin-top: 24px; color: #bedff4; font-size: 11px; text-transform: uppercase; letter-spacing: .18em; text-decoration: none; }
.discover span { animation: bob 1.8s ease-in-out infinite; }

.games {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(24px, 3vw, 42px) 0 clamp(28px, 4vw, 48px);
}
.catalog-hero {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) 0 8px;
}
.catalog-hero .portal-h1 { text-shadow: none; }
.catalog-intro {
  margin-top: 14px;
  max-width: 42rem;
  color: #aab7c6;
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  letter-spacing: 0;
  line-height: 1.7;
  text-shadow: none;
}
.site-ad {
  width: min(360px, calc(100% - 40px));
  margin: 28px auto;
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(154, 211, 255, .08);
  border-radius: 12px;
  background: rgba(3, 10, 22, .32);
  overflow: hidden;
}
.site-ad-label {
  margin-bottom: 6px;
  color: #617489;
  font-size: 8px;
  letter-spacing: .2em;
  text-align: center;
  text-transform: uppercase;
}
.site-ad-slot { max-width: 100%; overflow: hidden; }
.site-ad--leader { margin: 20px auto 8px; padding: 8px 10px; }
.site-ad--box { margin: 12px auto 48px; }
.game-detail .site-ad--leader { margin: 36px auto 8px; }
.game-detail .site-ad--box { margin: 28px auto 0; }
.ad-placement {
  width: min(970px, calc(100% - 40px));
  min-height: 112px;
  margin: 42px auto 0;
  padding: 22px 14px 14px;
  border: 1px solid rgba(154, 211, 255, .1);
  border-radius: 14px;
  background: rgba(3, 10, 22, .58);
  overflow: hidden;
}
.ad-placement[hidden] { display: none; }
.ad-label { display: block; margin-bottom: 8px; color: #617489; font-size: 8px; letter-spacing: .2em; text-align: center; text-transform: uppercase; }
.ad-placement-bottom { margin-top: 0; margin-bottom: 76px; }
.game-copy { margin-top: 36px; }
.game-features { margin: 0; padding-left: 18px; color: #aab7c6; font-size: 14px; line-height: 1.7; }
.game-features li { margin: 8px 0; }
.game-faq { margin-top: 8px; }
.game-faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.game-faq summary { cursor: pointer; color: #e9f7ff; font-weight: 600; }
.game-faq details p { margin: 10px 0 0; }
.seo-content a { color: #9ed7fa; text-decoration: underline; text-underline-offset: 3px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 32px; }
.section-heading > div { min-width: 0; }
.kicker { margin: 0 0 12px; }
.section-heading h2 { margin: 0; max-width: 680px; font: 600 clamp(28px, 3.5vw, 47px)/1.07 Cinzel, Georgia, serif; letter-spacing: -.025em; }
.section-heading h2 span { display: block; }
.section-count { margin: 0 0 6px; color: var(--muted); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.section-count strong { color: var(--ink); font: 500 25px Cinzel, serif; margin-right: 8px; }
.game-tools { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; }
.game-search { flex: 1; display: flex; align-items: center; gap: 9px; min-width: 180px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(7,18,34,.8); color: #8da4ba; }
.game-search span { font-size: 20px; line-height: 1; }
.game-search input { width: 100%; border: 0; outline: 0; color: white; background: transparent; font: 12px Inter, sans-serif; }
.category-filters { display: flex; gap: 7px; flex-wrap: wrap; }
.category-filter { border: 1px solid var(--line); border-radius: 999px; padding: 9px 12px; color: #91a6ba; background: transparent; font: 600 10px Inter, sans-serif; cursor: pointer; }
.category-filter.active, .category-filter:hover { border-color: #68c8ff; color: #03101d; background: #8ed8ff; }
.game-card[hidden] { display: none; }

.game-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 345px), 1fr)); gap: 14px; }
.game-card {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 218px;
  display: grid;
  grid-template-columns: 122px minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: white;
  text-decoration: none;
  isolation: isolate;
  background: linear-gradient(135deg, rgba(13, 27, 48, .9), rgba(4, 10, 21, .94));
  box-shadow: 0 16px 44px rgba(0,0,0,.24);
  opacity: 1;
  transform: none;
  transition: border-color .35s ease, transform .45s cubic-bezier(.2,.75,.2,1), box-shadow .4s ease;
}
.game-card.visible { opacity: 1; transform: none; }
.card-art {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  z-index: -1;
  background-position: center;
  background-size: cover;
  transition: transform .65s cubic-bezier(.2,.65,.2,1), filter .5s;
}
.burraco .card-art { background-image: url('./assets/burraco-table-bg.png'); }
.puzzle .card-art { background-image: url('./assets/puzzle-mania.webp'); }
.vortexa .card-art { background-image: url('./assets/vortexa-keyart.jpg'); }
.seawar .card-art { background-image: url('./assets/sea-war.webp'); }
.blastcage .card-art { background-image: url('./assets/blastcage-arena.jpg'); }
.card-overlay {
  position: absolute;
  inset: 0 auto 0 0;
  width: 122px;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 55%, rgba(5,12,25,.72) 100%), linear-gradient(180deg, transparent 45%, rgba(1,5,12,.55));
}
.card-number { position: absolute; top: 15px; left: 15px; z-index: 1; font: 600 9px Cinzel, serif; letter-spacing: .18em; color: rgba(255,255,255,.78); text-shadow: 0 1px 8px #000; }
.click-count { position: absolute; top: 12px; right: 12px; z-index: 2; display: grid; place-items: center; min-width: 27px; height: 27px; padding: 0 6px; border: 1px solid rgba(255,255,255,.8); border-radius: 999px; color: #071321; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.35); font: 700 10px/1 Inter, sans-serif; letter-spacing: 0; }
.favorite-toggle { position: absolute; right: 47px; top: 14px; z-index: 3; color: rgba(255,255,255,.55); font-size: 18px; line-height: 1; cursor: pointer; text-shadow: 0 2px 7px #000; }
.favorite-toggle.selected, .favorite-toggle:hover { color: #ffd76a; }
.card-content { grid-column: 2; width: 100%; min-width: 0; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; padding: 24px 22px 19px; }
.genre { max-width: 100%; color: #a7dbfa; font-size: 9px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.card-content strong { margin-top: 9px; font: 600 clamp(21px, 2vw, 28px)/1 Cinzel, Georgia, serif; text-transform: uppercase; letter-spacing: -.03em; }
.card-content strong em { color: #c8eafd; font-style: normal; }
.description { width: 100%; max-width: 100%; margin-top: 12px; color: #aab7c6; font-size: 11px; line-height: 1.48; overflow-wrap: anywhere; }
.play { width: 100%; min-width: 0; display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 13px; border-top: 1px solid rgba(255,255,255,.11); color: #edf7ff; font-size: 8px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.play i { display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid rgba(140,211,255,.38); border-radius: 50%; color: #8dd5ff; font: normal 15px/1 Inter; transition: background .3s, color .3s, transform .3s; }
.game-card:hover, .game-card:focus-visible { transform: translateY(-5px); border-color: rgba(122,201,250,.52); box-shadow: 0 22px 58px rgba(0,0,0,.42), 0 0 24px rgba(38,133,205,.1); outline: none; }
.game-card:hover .card-art, .game-card:focus-visible .card-art { transform: scale(1.07); filter: saturate(1.1) brightness(1.06); }
.game-card:hover .play i, .game-card:focus-visible .play i { color: #02101b; background: #8dd5ff; transform: rotate(45deg); }

.about {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 clamp(64px, 8vw, 100px);
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(36px, 7vw, 100px);
  align-items: start;
}
.about h2 { max-width: 560px; margin: 0; font: 600 clamp(27px, 3vw, 43px)/1.12 Cinzel, Georgia, serif; letter-spacing: -.025em; }
.about-copy { max-width: 640px; color: #aab7c6; font-size: 14px; line-height: 1.8; }
.about-copy p { margin: 0; }
.about-copy p + p { margin-top: 18px; }
.portal-h1 { margin: 0; font: 600 clamp(30px, 4vw, 52px)/1.08 Cinzel, Georgia, serif; letter-spacing: -.025em; text-shadow: 0 2px 18px #000; }
.seo-page, .seo-content { width: min(980px, calc(100% - 40px)); margin: 0 auto; }
.seo-page { padding: clamp(54px, 8vw, 100px) 0; }
.seo-page h1 { margin: 0 0 22px; font: 600 clamp(32px, 5vw, 56px)/1.1 Cinzel, Georgia, serif; }
.seo-page h2, .seo-content h2 { margin: 42px 0 13px; font: 600 clamp(24px, 3vw, 34px)/1.2 Cinzel, Georgia, serif; }
.seo-lead, .seo-content p { color: #aab7c6; font-size: 14px; line-height: 1.8; }
.game-detail-image { display: block; width: min(100%, 760px); height: clamp(180px, 24vw, 290px); margin: 22px 0 16px; border: 1px solid var(--line); border-radius: 18px; object-fit: cover; object-position: center; }
.game-detail .discover { margin-top: 16px; padding: 14px 22px; border: 1px solid rgba(127,201,255,.55); border-radius: 999px; background: rgba(34,110,170,.28); font-size: 12px; }
.game-detail .discover:hover { background: rgba(56,151,218,.48); }
.breadcrumbs { margin-bottom: 24px; color: #8ba2b7; font-size: 11px; }
.breadcrumbs a { color: #9ed7fa; text-decoration: none; }
.breadcrumbs span { margin: 0 7px; }
.related-games { margin-top: 18px; }
.seo-content { padding: 0 0 clamp(64px, 8vw, 100px); }

footer { width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: 30px 0 44px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 20px; color: #687a8d; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.footer-mark { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #19466a; border-radius: 50%; color: #9ed7fa; font: 600 10px Cinzel, serif; }
footer p { margin: 0; }
footer nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
footer a, footer button { color: #8ba2b7; text-decoration: none; }
footer button { padding: 0; border: 0; background: none; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
footer button[hidden] { display: none; }
footer a:hover, footer button:hover { color: white; }

.legal-page { min-height: 100vh; padding: 80px 20px; }
.legal-wrap { width: min(780px, 100%); margin: 0 auto; }
.legal-back { display: inline-flex; margin-bottom: 44px; color: #9ed7fa; font-size: 11px; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; }
.legal-wrap h1 { margin: 0 0 18px; font: 600 clamp(34px, 6vw, 58px)/1.05 Cinzel, Georgia, serif; }
.legal-updated { margin: 0 0 44px; color: #71849a; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.legal-content { color: #b4c0ce; font-size: 14px; line-height: 1.75; }
.legal-content h2 { margin: 38px 0 10px; color: var(--ink); font: 600 21px/1.3 Cinzel, Georgia, serif; }
.legal-content p, .legal-content ul { margin-top: 0; }
.legal-content a { color: #87cef8; }

@keyframes reveal { from { opacity: 0; transform: scale(1.1); filter: blur(6px); } to { opacity: 1; transform: scale(1.035); filter: blur(0); } }
@keyframes breathe { to { transform: scale(1.065); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bob { 50% { transform: translateY(5px); } }

@media (max-width: 900px) {
  .hero { min-height: 0; }
  .hero-image { background-size: auto 100%; }
  .game-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
}
@media (max-width: 620px) {
  .portal-bar { width: calc(100% - 28px); height: 56px; gap: 14px; }
  .portal-logo { font-size: 9px; }
  .portal-links { display: none; }
  .language-switcher { margin-left: auto; }
  .login-button { margin-left: auto; padding: 8px 11px; font-size: 9px; }
  .hero { min-height: 0; }
  .hero-image { background-size: auto 100%; background-position: center 8%; background-color: #061225; }
  .hero-shade { background: linear-gradient(180deg, transparent 0%, transparent 36%, #020712 58%, #020712 100%); }
  .hero-copy { padding: 32px 10px 18px; }
  .mobile-brand {
    position: static;
    width: auto;
    height: auto;
    margin: 0 0 9px;
    overflow: visible;
    clip: auto;
    white-space: normal;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ecf8ff;
    font: 600 clamp(32px, 9.5vw, 41px)/.9 Cinzel, Georgia, serif;
    letter-spacing: -.055em;
    text-transform: uppercase;
    text-shadow: 0 0 22px rgba(61, 172, 255, .65), 0 3px 10px #000;
  }
  .mobile-brand small {
    margin-top: 9px;
    font: 600 10px/1 Inter, sans-serif;
    letter-spacing: .58em;
    text-indent: .58em;
  }
  .mobile-brand span { max-width: 100%; }
  .eyebrow { font-size: 8px; letter-spacing: .2em; }
  .intro { width: 100%; font-size: 11px; overflow-wrap: break-word; }
  .discover { margin-top: 14px; font-size: 9px; }
  .games { width: auto; margin-inline: 16px; padding: 22px 0 48px; }
  .catalog-hero, .site-ad { width: auto; margin-inline: 16px; }
  .site-ad--box { margin-bottom: 40px; }
  .ad-placement { width: calc(100% - 32px); margin-top: 28px; padding-inline: 8px; }
  .ad-placement-bottom { margin-top: 0; margin-bottom: 58px; }
  .section-heading { align-items: flex-start; }
  .section-heading { margin-bottom: 23px; }
  .section-heading h2 { max-width: 100%; font-size: clamp(26px, 7.5vw, 32px); overflow-wrap: break-word; }
  .section-count { display: none; }
  .game-tools { display: block; }
  .category-filters { margin-top: 10px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; }
  .category-filter { white-space: nowrap; }
  .game-grid { gap: 11px; }
  .game-card { min-height: 184px; grid-template-columns: 104px minmax(0, 1fr); border-radius: 15px; }
  .card-overlay { width: 104px; }
  .card-content { padding: 20px 17px 15px; }
  .card-content strong { font-size: clamp(19px, 5.6vw, 24px); }
  .description { margin-top: 9px; font-size: 10px; line-height: 1.4; white-space: normal; }
  .play { padding-top: 10px; }
  .play i { width: 26px; height: 26px; }
  .about { width: auto; margin-inline: 16px; grid-template-columns: 1fr; gap: 24px; }
  .about-copy { font-size: 13px; line-height: 1.7; }
  .seo-page, .seo-content { width: auto; margin-inline: 16px; }
  .seo-page { padding-top: 44px; }
  .seo-lead, .seo-content p { font-size: 13px; line-height: 1.7; }
  footer { width: calc(100% - 28px); align-items: flex-start; padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
  footer nav { flex-direction: column; align-items: flex-end; gap: 10px; }
  footer nav a:first-child { display: none; }
  .legal-page { padding-top: 44px; }
}
@media (max-width: 350px) {
  .game-card { grid-template-columns: 88px minmax(0, 1fr); }
  .card-overlay { width: 88px; }
  .card-content { padding-inline: 14px; }
  .description { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .game-card { opacity: 1; transform: none; }
}
 #site-modal{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;background:#020712cc;backdrop-filter:blur(8px);padding:20px}.site-modal-card{position:relative;width:min(92vw,420px);padding:32px 26px;text-align:center;background:#07162d;border:1px solid #2b75a8;border-radius:18px;box-shadow:0 20px 80px #000b;color:#eef7ff}.site-modal-card h2{margin:0 0 12px;color:#70d7ff}.site-modal-card p{color:#aec2d9;line-height:1.5}.site-modal-ok{margin-top:14px;padding:11px 24px;border:0;border-radius:9px;background:#ff9d00;color:#241000;font-weight:800}.site-modal-close{position:absolute;right:12px;top:8px;background:none;border:0;color:#9fc0dc;font-size:25px}
.site-modal-card input{display:block;width:100%;margin:10px 0;padding:12px;border-radius:9px;border:1px solid #285276;background:#041126;color:#fff}.auth-switch{display:block;margin:14px auto 0;background:none;border:0;color:#70d7ff}.auth-form-error{min-height:20px;color:#ff7887!important}
.admin-games label{display:flex;justify-content:space-between;align-items:center;padding:12px;border-bottom:1px solid #1f3e5d;text-align:left}.admin-games input{width:22px;height:22px;margin:0}
.game-disabled{opacity:.55;filter:grayscale(.45)}.game-disabled:after{content:'IN ARRIVO';display:block;color:#ffbd4a;font-size:.7rem;font-weight:800;letter-spacing:.12em}
