.catalog-page { background: radial-gradient(ellipse at 75% 0%, #24204538, transparent 48%), var(--bg); }
.page-width { width: min(1440px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 50; background: var(--cyan); color: var(--bg); padding: 12px 18px; border-radius: 8px; }
.skip-link:focus { top: 8px; }
.main-header { border-bottom: 1px solid var(--line); background: #0d1120; }
.header-top { display: flex; align-items: center; gap: 38px; min-height: 102px; }
.logo { display: flex; flex-direction: column; align-items: flex-start; flex-shrink: 0; width: 244px; }
.logo img { width: 244px; height: 74px; object-fit: contain; margin: -8px 0 -5px -8px; }
.brand-tagline { color: var(--muted); font-size: 10px; letter-spacing: 1.7px; margin: -7px 0 13px 1px; }
.search-wrapper { display: flex; align-items: center; gap: 12px; flex: 1; background: #171c30; border: 1px solid #2b324b; border-radius: 12px; padding: 7px 8px 7px 17px; min-width: 150px; max-width: 600px; margin-left: auto; color: #8593b3; }
.search-wrapper:focus-within { border-color: var(--violet); box-shadow: 0 0 0 3px #a794ff12; }
.search-wrapper input { background: transparent; border: 0; outline: 0; color: var(--text); width: 100%; min-width: 0; padding: 7px 0; font-size: 13px; }
.search-wrapper input::placeholder { color: #9aa6c1; opacity: 1; }
.search-wrapper input:focus-visible { outline: none; }
.search-wrapper button { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; background: #252c46; color: #cbd4ed; border: 0; border-radius: 7px; }
.search-wrapper button:hover { background: #374061; color: white; }
.random-btn { display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid #b6a5ff55; border-radius: 11px; padding: 14px 18px; background: linear-gradient(115deg, #6449c9, #4e409d); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; box-shadow: 0 4px 16px #6d48d51a; }
.random-btn:hover { background: linear-gradient(115deg, #7657e2, #5e4ab5); border-color: #b6a5ff; }
.header-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.quick-nav { display: flex; gap: 30px; }
.cat-btn { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 2px; position: relative; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font-size: 12px; white-space: nowrap; }
.cat-btn .icon { width: 18px; height: 18px; }
.cat-btn:hover { color: var(--text); }
.cat-btn.active { border-bottom-color: var(--violet); color: var(--text); }
.cat-btn.active .icon { color: var(--violet); }
.rocket-icon { object-fit: contain; }
#fav-count { border: 1px solid #3a3f5e; background: #22283e; border-radius: 5px; min-width: 19px; padding: 1px 4px; font-size: 10px; color: #c5c0e9; text-align: center; }
.header-note { display: flex; align-items: center; gap: 7px; color: #9aa8bb; font-size: 10px; white-space: nowrap; }
.status-dot { height: 5px; width: 5px; background: #5fd5bb; border-radius: 50%; }
main.page-width { flex: 1; padding-top: 32px; }
.welcome { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-bottom: 38px; }
.welcome-copy { padding: 9px 0; }
.welcome .eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 17px; font-size: 9px; }
.welcome .eyebrow span { width: 20px; height: 1px; background: var(--cyan); }
.welcome h1 { margin: 0; font-size: clamp(32px, 3.4vw, 50px); line-height: 1.13; letter-spacing: -1.6px; font-weight: 750; }
.welcome h1 span { color: #acb3ff; background: var(--gradient); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.welcome-copy>p:not(.eyebrow) { max-width: 270px; font-size: 12px; color: var(--muted); line-height: 1.8; margin: 15px 0 17px; }
.explore-link { display: inline-flex; align-items: center; gap: 14px; color: #d9d5fb; font-size: 12px; font-weight: 600; }
.explore-link .icon { width: 15px; height: 15px; color: var(--violet); }
.explore-link:hover { color: var(--cyan); }
.featured-game { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; height: 238px; border: 1px solid #394568; border-radius: 20px; background: linear-gradient(115deg, #111c2b, #132822 70%, #1b3c35); transition: border-color .18s; }
.featured-game:hover { border-color: var(--cyan); }
.featured-game>img { position: absolute; inset: 0 0 0 auto; width: 67%; height: 100%; object-fit: cover; opacity: .85; z-index: -2; }
.featured-game::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #121b2c 12%, #121b2ce6 35%, #121b2c00 95%); z-index: -1; }
.featured-info { padding: 30px; }
.featured-label { display: inline-flex; align-items: center; gap: 5px; color: #8edec6; font-size: 9px; font-weight: 700; letter-spacing: 1.5px; }
.featured-label .icon { width: 13px; height: 13px; }
.featured-info h2 { margin: 14px 0 7px; font-size: 30px; letter-spacing: -.8px; }
.featured-info p { color: #b4c2cc; font-size: 11px; margin: 0 0 21px; }
.featured-play { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; background: #e7fbf3; color: #152d2a; border-radius: 8px; padding: 10px 14px; }
.featured-play .icon { width: 13px; height: 13px; fill: currentColor; }
.featured-orbit { position: absolute; border: 1px solid #86dfd322; border-radius: 50%; width: 210px; height: 210px; top: -130px; left: 20px; pointer-events: none; }
.catalog-section { scroll-margin-top: 20px; }
.catalog-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.catalog-title { display: flex; align-items: center; gap: 10px; }
.catalog-title>.icon { color: var(--violet); width: 18px; height: 18px; }
.catalog-title h2 { font-size: 18px; margin: 0; font-weight: 650; letter-spacing: -.3px; }
#grid-counter { font-size: 10px; border: 1px solid #2f354b; border-radius: 6px; padding: 4px 7px; color: #aab4d0; white-space: nowrap; }
.catalog-hint { font-size: 10px; color: #8693ae; }
.category-nav { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; padding: 0 2px 7px; margin: 0 -2px 15px; }
.category-chip { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid #272f46; background: #12182a; color: #aeb9d2; border-radius: 8px; padding: 9px 15px; font-size: 11px; white-space: nowrap; flex-shrink: 0; }
.category-chip .icon { width: 15px; height: 15px; }
.category-nav { scrollbar-color: #51486d transparent; }
.category-nav::-webkit-scrollbar { height: 3px; }
.category-nav::-webkit-scrollbar-thumb { background: #51486d; border-radius: 3px; }
.category-chip:hover { color: #fff; border-color: #5b547d; }
.category-chip.active { background: #292341; border-color: #6f5fa4; color: #ddd2ff; }
.games-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 18px; align-content: start; }
.game-card { min-width: 0; position: relative; overflow: hidden; border: 1px solid #242d43; background: #12182a; border-radius: 13px; transition: transform .18s, border-color .18s, box-shadow .18s; }
.game-card:hover, .game-card:focus-within { transform: translateY(-4px); border-color: #746699; box-shadow: 0 8px 24px #00000030; }
.game-thumb-link { display: block; position: relative; aspect-ratio: 1.15; overflow: hidden; background: #1a2034; }
.game-cover { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .22s; }
.game-card:hover .game-cover { transform: scale(1.045); }
.play-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: #080d244d; opacity: 0; transition: opacity .18s; }
.play-overlay>span { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #c8c0ff; background: #564197ed; color: white; border-radius: 50%; }
.play-overlay .icon { width: 17px; height: 17px; fill: currentColor; margin-left: 2px; }
.game-card:hover .play-overlay, .game-card:focus-within .play-overlay { opacity: 1; }
.game-details { padding: 12px 11px 11px; }
.game-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 650; line-height: 1.5; }
.game-name:hover { color: var(--cyan); }
.game-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 5px; font-size: 9px; color: #a2aec7; }
.game-meta .icon { width: 11px; height: 11px; color: #6a7c9c; }
.btn-favorite { position: absolute; right: 7px; top: 7px; z-index: 2; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; background: #0e132dd9; border: 1px solid #c0c8ef40; border-radius: 8px; color: #fff; opacity: 0; transition: opacity .15s; }
.btn-favorite .icon { width: 15px; height: 15px; }
.btn-favorite:hover { border-color: var(--violet); }
.game-card:hover .btn-favorite, .game-card:focus-within .btn-favorite, .btn-favorite.active { opacity: 1; }
.btn-favorite.active { color: #e0c184; }.btn-favorite.active .icon { fill: currentColor; }
.new-badge { position: absolute; bottom: 7px; left: 7px; padding: 4px 6px; font-size: 7px; letter-spacing: .7px; line-height: 1; font-weight: 750; border: 1px solid #a0e7d133; border-radius: 4px; background: #142e29ed; color: #9aead5; }
.new-badge.recreation-badge { color: #dbd3ff; border-color: #baa6fd33; background: #29213eee; }
.new-badge.popular-badge { color: #ffd3ad; border-color: #ffbd7d44; background: #422a22ed; }
.empty-state { grid-column: 1 / -1; padding: 55px 20px; text-align: center; border: 1px dashed #4b4569; border-radius: 14px; background: #121629; }
.empty-state h2 { font-size: 21px; }.empty-state p { color: var(--muted); font-size: 13px; }
.empty-state button { margin-top: 12px; background: #7560bf; border: 0; border-radius: 8px; color: white; padding: 11px 18px; font-size: 12px; }
.catalog-bottom { display: flex; align-items: center; justify-content: space-between; gap: 15px; color: #8b99b4; font-size: 10px; padding: 25px 0; margin-top: 12px; }
.catalog-bottom>span:first-child { display: flex; align-items: center; gap: 8px; }
.catalog-bottom .icon { width: 17px; height: 17px; color: #a89acb; }
.catalog-bottom i { font-style: normal; padding: 0 6px; color: #454e6b; }
.site-footer { display: flex; align-items: center; gap: 32px; border-top: 1px solid var(--line); padding-block: 22px; margin-top: 5px; }
.footer-brand { margin-right: auto; }.footer-logo { display: block; padding: 0; border: 0; background: none; }
.footer-logo img { display: block; width: 168px; height: 51px; object-fit: contain; margin-left: -5px; }
.footer-brand p { color: #8694b1; font-size: 10px; letter-spacing: .6px; margin: -3px 0 0; }
.footer-links { display: flex; flex-direction: column; gap: 9px; font-size: 10px; color: #929fba; }
.footer-links a { color: #c1c9df; }.footer-links a:hover { color: var(--cyan); }
.footer-links .icon { width: 12px; height: 12px; margin-left: 4px; }
.copyright { font-size: 9px; color: #7f8ba6; white-space: nowrap; }
@media (min-width: 1550px) { .games-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
@media (max-width: 1150px) {
  .page-width { width: calc(100% - 56px); }.header-top { gap: 24px; }
  .logo { width: 210px; }.logo img { width: 210px; height: 69px; }
  .games-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
  .welcome { gap: 25px; }.featured-info { padding: 25px; }
}
@media (max-width: 850px) {
  .page-width { width: calc(100% - 40px); }.header-top { gap: 16px; flex-wrap: wrap; padding: 11px 0 15px; min-height: auto; }
  .logo { width: 210px; }.logo img { height: 65px; }
  .search-wrapper { order: 3; flex-basis: 100%; max-width: none; }.random-btn { margin-left: auto; padding: 11px 14px; }
  .header-note { display: none; }.header-bottom { justify-content: flex-start; }.quick-nav { gap: 28px; }
  .welcome { gap: 22px; margin-bottom: 28px; }.welcome h1 { font-size: 35px; }.welcome .eyebrow { font-size: 8px; letter-spacing: 1.1px; }
  .featured-game { height: 225px; }.featured-info { padding: 20px; }.featured-info h2 { font-size: 27px; }
  .games-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .page-width { width: calc(100% - 32px); }
  .logo { width: 184px; }.logo img { width: 184px; height: 61px; }.brand-tagline { font-size: 9px; margin-top: -8px; margin-bottom: 4px; letter-spacing: 1px; }
  .header-top { gap: 10px; }.random-btn { padding: 10px; border-radius: 10px; font-size: 10px; gap: 6px; }.random-btn .icon { width: 16px; height: 16px; }
  .search-wrapper { padding-left: 12px; border-radius: 10px; }.search-wrapper input { font-size: 12px; }
  .quick-nav { gap: 0; justify-content: space-between; width: 100%; }.cat-btn { gap: 5px; font-size: 10px; min-height: 50px; }.cat-btn .icon { width: 16px; height: 16px; }.rocket-icon { width: 21px; height: 21px; }#fav-count { font-size: 9px; min-width: 16px; padding: 1px 3px; }
  main.page-width { padding-top: 24px; }.welcome { grid-template-columns: 1fr; gap: 22px; margin-bottom: 30px; }.welcome-copy { padding: 0; }
  .welcome h1 { font-size: 38px; letter-spacing: -1.3px; max-width: 330px; }.welcome h1 br { display: none; }
  .welcome .eyebrow { margin-bottom: 13px; font-size: 8px; }.welcome-copy>p:not(.eyebrow) { font-size: 12px; margin: 12px 0; }.welcome-copy>p:not(.eyebrow) br { display: none; }
  .explore-link { font-size: 11px; }.featured-game { height: 168px; border-radius: 14px; }.featured-info { padding: 20px; }.featured-info h2 { font-size: 25px; margin: 9px 0 5px; }.featured-info p { margin-bottom: 13px; font-size: 10px; }.featured-label { font-size: 8px; }.featured-play { padding: 8px 11px; font-size: 10px; }
  .catalog-bar { margin-bottom: 16px; }.catalog-title { gap: 8px; }.catalog-title h2 { font-size: 17px; }.catalog-hint { display: none; }#grid-counter { font-size: 9px; }
  .category-nav { gap: 7px; margin-bottom: 13px; }.category-chip { padding: 8px 11px; font-size: 10px; }
  .games-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }.game-card { border-radius: 10px; }.game-details { padding: 9px 8px; }.game-name { font-size: 10px; }.game-meta { font-size: 8px; }.new-badge { font-size: 6px; padding: 4px; left: 5px; bottom: 5px; }
  .btn-favorite { opacity: 1; width: 26px; height: 26px; right: 5px; top: 5px; }.btn-favorite .icon { width: 14px; height: 14px; }
  .catalog-bottom { flex-direction: column; align-items: flex-start; gap: 10px; font-size: 9px; padding: 22px 0; }
  .site-footer { flex-wrap: wrap; column-gap: 16px; row-gap: 18px; padding-block: 17px; }.footer-brand { margin: 0 auto 0 0; }.footer-logo img { width: 139px; height: 44px; }.footer-links { font-size: 9px; max-width: 49%; }.copyright { border-top: 1px solid #20283a; width: 100%; padding-top: 14px; font-size: 8px; }
}
@media (max-width: 360px) { .logo { width: 157px; }.logo img { width: 157px; }.random-btn { font-size: 9px; padding: 9px 8px; }.games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.cat-btn { font-size: 9px; gap: 4px; }.welcome h1 { font-size: 34px; } }
@media (hover: none) { .btn-favorite { opacity: 1; } }

/* === CURSOR ESTILO FRIV VIP === */
@media (pointer: fine) {
  *, *::before, *::after {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M4 3 L4 25 L10 19 L15 29 L19 27 L14 17 L22 17 Z' fill='%23000000' opacity='0.35' transform='translate(1,1)'/%3E%3Cpath d='M4 3 L4 25 L10 19 L15 29 L19 27 L14 17 L22 17 Z' fill='%23FFDD00' stroke='%23000000' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'/%3E%3Cpath d='M6 6 L6 21 L10 17 L14 25 L16 24 L12 16 L18 16 Z' fill='%23FFF066'/%3E%3Ccircle cx='6' cy='6' r='1' fill='%23FFFFFF'/%3E%3C/svg%3E") 4 3, default !important;
  }
  a, button, [role="button"], input, select, textarea, label, .game-thumb-link, .category-chip, .cat-btn, .random-btn {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M10 2 C9 2 8 3 8 5 L8 14 L7 14 C5.5 14 4 15.5 4 17 C4 20 7 24 11 27 C14 29 20 29 22 26 C24 23 24 18 24 15 C24 13.5 22.5 12.5 21 13 C20.5 11.5 19 10.5 17.5 11 C17 9.5 15.5 8.5 14 9 L14 5 C14 3.5 13 2 12 2 Z' fill='%23000000' opacity='0.35' transform='translate(1,1)'/%3E%3Cpath d='M10 2 C9 2 8 3 8 5 L8 14 L7 14 C5.5 14 4 15.5 4 17 C4 20 7 24 11 27 C14 29 20 29 22 26 C24 23 24 18 24 15 C24 13.5 22.5 12.5 21 13 C20.5 11.5 19 10.5 17.5 11 C17 9.5 15.5 8.5 14 9 L14 5 C14 3.5 13 2 12 2 Z' fill='%23FFDD00' stroke='%23000000' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M10 4 L10 14 L12 14 L12 4 Z' fill='%23FFF066'/%3E%3C/svg%3E") 10 2, pointer !important;
  }
}

.ps2-entry{text-decoration:none;display:inline-flex;align-items:center;border-color:#77639e;color:#dbc8ff}


/* === MELHORIAS DE INTERFACE MODERNA === */



/* Secao Continuar Jogando */
.recent-played-section {
  margin-bottom: 26px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #13192e, #17203a);
  border: 1px solid #283452;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.recent-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.recent-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.recent-title-group .icon {
  color: var(--cyan);
  width: 18px;
  height: 18px;
}
.recent-title-group h2 {
  font-size: 15px;
  margin: 0;
  font-weight: 700;
  color: #f1f4fc;
  letter-spacing: -.3px;
}
.btn-clear-recent {
  background: transparent;
  border: 0;
  color: #7282a1;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color .15s, background .15s;
}
.btn-clear-recent:hover {
  color: #ff8888;
  background: #2c1a24;
}
.recent-list {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: #3f4c73 transparent;
}
.recent-list::-webkit-scrollbar {
  height: 4px;
}
.recent-list::-webkit-scrollbar-thumb {
  background: #3f4c73;
  border-radius: 4px;
}
.recent-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  background: #1c243e;
  border: 1px solid #2d3b5e;
  border-radius: 11px;
  text-decoration: none;
  color: #f1f4fc;
  flex-shrink: 0;
  transition: transform .18s, border-color .18s, background .18s, box-shadow .18s;
}
.recent-card:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
  background: #253154;
  box-shadow: 0 4px 14px rgba(101, 223, 244, 0.2);
}
.recent-card img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  background: #101426;
}
.recent-info strong {
  display: block;
  font-size: 12px;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.recent-info span {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--cyan);
  margin-top: 2px;
}
.recent-info span .icon {
  width: 10px;
  height: 10px;
}

/* Grade Dinamica Poki & CrazyGames */
.games-grid {
  grid-auto-flow: dense;
}
.game-card.featured-card {
  grid-column: span 2;
  border-color: #4f3f78;
  background: linear-gradient(135deg, #13172e, #1a1e3b);
  box-shadow: 0 4px 22px rgba(100, 73, 201, 0.2);
}
.game-card.featured-card:hover {
  border-color: var(--cyan);
  box-shadow: 0 12px 32px rgba(0,0,0,0.5), 0 0 20px rgba(101, 223, 244, 0.25);
}
.game-card.featured-card .game-thumb-link {
  aspect-ratio: 2.2;
}
.game-card.featured-card .game-name {
  font-size: 13px;
  font-weight: 700;
}
.new-badge.featured-badge {
  color: #ffe066;
  border-color: #ffd23366;
  background: #42300ded;
  letter-spacing: .9px;
}



/* Ajustes responsivos */
@media (max-width: 850px) {
  .game-card.featured-card { grid-column: span 2; }
}
@media (max-width: 560px) {
  .game-card.featured-card { grid-column: span 2; }
  .recent-played-section { padding: 12px 14px; }
}
@media (max-width: 360px) {
  .game-card.featured-card { grid-column: span 1; }
}
