:root {
  --dinoo-surface-gradient: linear-gradient(135deg, #1a1742 0%, #0f0c2c 100%);
}

html {
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  background-color: #1d1a49;
  overflow-x: hidden;
}

.main-header {
  background-color: #0f0c2c;
  background-image: var(--dinoo-surface-gradient);
  background-attachment: fixed;
  border-bottom: 1px solid #49466a;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  box-sizing: border-box;
}
.header-container {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 20px;
  box-sizing: border-box;
  width: 100%;
}
.header-logo {
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.header-logo-img {
  height: 42px;
  width: auto;
  max-width: min(180px, 42vw);
  object-fit: contain;
  display: block;
}
.header-logo-text {
  font-weight: 800;
  font-size: 1.4rem;
  background: linear-gradient(120deg, #ffffff, #a8c0ff);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  letter-spacing: -0.3px;
  display: inline-block;
}

.header-search-wrapper {
  flex: 0 1 auto;
  max-width: 500px;
  min-width: 350px;
  margin-left: auto;
}
.search-bar {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.25s ease;
}
.search-bar:focus-within {
  background: rgba(255, 255, 255, 0.2);
  border-color: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2);
}
.search-icon {
  padding-left: 16px;
  padding-right: 8px;
  display: flex;
  align-items: center;
  color: #b0b3d6;
}
.search-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 8px 12px 0;
  font-size: 1rem;
  color: white;
  outline: none;
  font-weight: 500;
}
.search-input::placeholder {
  color: #a8accc;
  font-weight: 400;
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .header-container {
    padding: 10px 20px;
    gap: 16px;
  }
  .header-logo-img {
    height: 40px;
  }
  .header-search-wrapper {
    max-width: 400px;
  }
  .search-input {
    padding: 9px 6px 9px 0;
    font-size: 0.9rem;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .header-container {
    padding: 5px 18px;
    gap: 14px;
  }
  .header-logo-img {
    height: 38px;
  }
  .header-logo-text {
    display: none;
  }
  .header-search-wrapper {
    max-width: 350px;
    flex: 1;
  }
  .search-input {
    padding: 8px 6px 8px 0;
    font-size: 0.85rem;
  }
}

@media (max-width: 767px) {
  .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 5px 12px;
    flex-wrap: nowrap;
  }
  .header-logo {
    flex-shrink: 0;
    max-width: 42%;
  }
  .header-logo-img {
    height: 34px;
    max-width: 100%;
  }
  .header-logo-text {
    display: none;
  }
  .header-search-wrapper {
    flex: 2;
    min-width: 140px;
    max-width: 280px;
    margin: 0;
  }
  .search-bar {
    width: 100%;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
  }
  .search-input {
    padding: 8px 4px 8px 0;
    font-size: 0.85rem;
  }
  .search-icon {
    padding-left: 12px;
    padding-right: 5px;
  }
  .search-icon svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 599px) {
  .header-search-wrapper {
    flex: 2;
    min-width: 130px;
    max-width: 240px;
  }
  .search-input {
    font-size: 0.8rem;
    padding: 7px 3px 7px 0;
  }
  .header-logo-img {
    height: 32px;
  }
}

@media (max-width: 450px) {
  .header-search-wrapper {
    min-width: 120px;
    max-width: 220px;
  }
  .header-logo-img {
    height: 30px;
  }
}

@media (max-width: 380px) {
  .header-search-wrapper {
    min-width: 110px;
    max-width: 190px;
  }
  .search-input::placeholder {
    font-size: 0.7rem;
  }
  .search-input {
    font-size: 0.7rem;
  }
}

@media (max-width: 340px) {
  .header-container {
    gap: 6px;
    padding: 6px 8px;
  }
  .header-search-wrapper {
    min-width: 100px;
    max-width: 170px;
  }
  .header-logo-img {
    height: 28px;
  }
  .search-button span {
    font-size: 0.65rem;
  }
}
@media (max-width: 319px) {
  .header-search-wrapper {
    min-width: 95px;
    flex: 2;
  }
}

@media (min-width: 1400px) {
  .header-search-wrapper {
    margin-right: max(0px, calc((min(100vw, 1600px) - 1400px) / 2));
  }
}

footer {
  margin-top: 40px;
  background: linear-gradient(to top, #0a0c12, #161338);
  border-top: 1px solid #49466a;
  width: 100%;
  box-sizing: border-box;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px 24px;
  box-sizing: border-box;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 40px;
  margin-bottom: 32px;
  align-items: start;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
}

.footer-col h2,
.footer-col-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
  color: #009cff;
  line-height: 1.3;
}

.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  width: 100%;
}

.footer-col a,
.footer-col-links a {
  font-size: 0.95rem;
  line-height: 1.4;
  text-decoration: none;
  color: #cbd5e1;
  transition: color 0.2s ease;
  display: inline-block;
  max-width: 100%;
  word-break: break-word;
}

.footer-col a:hover,
.footer-col-links a:hover {
  color: #009cff;
}

.copyright {
  text-align: center;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #9ca3af;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright a {
  color: #009cff;
  text-decoration: none;
  font-weight: 500;
}

.copyright a:hover {
  text-decoration: underline;
}

/* Desktop — default above: 4 columns, left-aligned */

/* Laptop */
@media (min-width: 992px) and (max-width: 1199px) {
  .footer-container {
    padding: 36px 20px 20px;
  }

  .footer-grid {
    gap: 28px 24px;
  }

  .footer-col h2,
  .footer-col-title {
    font-size: 1.05rem;
  }

  .footer-col a,
  .footer-col-links a {
    font-size: 0.9rem;
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991px) {
  footer {
    margin-top: 36px;
  }

  .footer-container {
    padding: 32px 20px 20px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 32px;
    margin-bottom: 28px;
    text-align: center;
  }

  .footer-col {
    align-items: center;
  }

  .footer-col-links {
    align-items: center;
  }

  .footer-col h2,
  .footer-col-title {
    font-size: 1.05rem;
  }

  .footer-col a,
  .footer-col-links a {
    font-size: 0.9rem;
  }

  .copyright {
    font-size: 0.8125rem;
    padding-top: 18px;
  }
}

/* Large mobile / small tablet */
@media (min-width: 481px) and (max-width: 767px) {
  footer {
    margin-top: 30px;
  }

  .footer-container {
    padding: 28px 16px 18px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 20px;
    margin-bottom: 24px;
  }

  .footer-col {
    align-items: center;
    text-align: center;
  }

  .footer-col-links {
    align-items: center;
  }

  .footer-col h2,
  .footer-col-title {
    font-size: 1rem;
  }

  .footer-col a,
  .footer-col-links a {
    font-size: 0.875rem;
    padding: 2px 0;
  }

  .copyright {
    font-size: 0.75rem;
    padding-top: 16px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  footer {
    margin-top: 28px;
  }

  .footer-container {
    padding: 24px 14px 16px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 14px;
    margin-bottom: 22px;
    text-align: center;
  }

  .footer-col {
    align-items: center;
    gap: 10px;
  }

  .footer-col-links {
    align-items: center;
    gap: 8px;
  }

  .footer-col h2,
  .footer-col-title {
    font-size: 1.1rem;
  }

  .footer-col a,
  .footer-col-links a {
    font-size: 0.9rem;
    padding: 2px 0;
  }

  .copyright {
    font-size: 0.7rem;
    padding-top: 14px;
  }
}

/* game container */
.game-container {
  display: grid;
  gap: 16px;
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

@media (min-width: 1920px) {
  .game-container {
    grid-template-columns: repeat(9, 1fr);
    gap: 18px;
    padding: 24px;
  }
}

@media (min-width: 1440px) and (max-width: 1919px) {
  .game-container {
    grid-template-columns: repeat(9, 1fr);
    gap: 18px;
    padding: 22px;
  }
}

@media (min-width: 1200px) and (max-width: 1439px) {
  .game-container {
    grid-template-columns: repeat(8, 1fr);
    gap: 16px;
    padding: 20px;
  }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .game-container {
    grid-template-columns: repeat(7, 1fr);
    gap: 15px;
    padding: 18px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .game-container {
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    padding: 16px;
  }
}

@media (min-width: 600px) and (max-width: 767px) {
  .game-container {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    padding: 14px;
  }
}

@media (min-width: 375px) and (max-width: 599px) {
  .game-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 12px;
  }
}

@media (min-width: 320px) and (max-width: 374px) {
  .game-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 10px;
  }
}

@media (max-width: 319px) {
  .game-container {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px;
  }
}

/* advertisement section */

.ads-wrapper {
  max-width: 1400px;
  margin: 4px auto;
  padding: 0px 16px;
  border: 1px solid #49466a;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  box-sizing: border-box;
  width: calc(100% - 40px);
  height: auto !important;
  min-height: auto !important;
  overflow: hidden !important;
  display: block;
}

.ads-wrapper .ads-sec {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: auto !important;
  min-height: auto !important;
  overflow: visible !important;
}

.ads-wrapper ins.adsbygoogle {
  display: block;
  width: 100%;
  max-width: 728px;
  height: auto !important;
  min-height: auto !important;
  margin: 0 auto;
}

@media (min-width: 1280px) {
  .ads-wrapper {
    margin: 4px auto;
    padding: 0px 20px;
    max-width: 1368px;
    width: calc(100% - 32px);
    border-radius: 16px;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .ads-wrapper {
    margin: 4px auto;
    padding: 0px 18px;
    max-width: 1368px;
    width: calc(100% - 32px);
    border-radius: 14px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .ads-wrapper {
    margin: 4px auto;
    padding: 0px 16px;
    width: calc(100% - 16px);
    border-radius: 12px;
  }
}

@media (min-width: 481px) and (max-width: 767px) {
  .ads-wrapper {
    margin: 2px auto;
    padding: 0px 14px;
    width: 100% !important;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  .ads-wrapper .ads-sec {
    overflow: visible !important;
    justify-content: center;
  }
  .ads-wrapper ins.adsbygoogle {
    width: 100%;
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .ads-wrapper {
    margin: 2px auto;
    padding: 0px 12px;
    width: 100% !important;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  .ads-wrapper .ads-sec {
    overflow: visible !important;
    justify-content: center;
  }
  .ads-wrapper ins.adsbygoogle {
    width: 100%;
    min-width: auto;
  }
}

.ad-label {
  color: #e0e0e0;
  padding: 0px;
  font-weight: 500;
  letter-spacing: 2px;
  display: inline-block;
  border-radius: 5px;
}

@media (min-width: 1024px) {
  .ad-label {
    font-size: 11px;
    padding: 0px;
    letter-spacing: 1.8px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .ad-label {
    font-size: 10px;
    letter-spacing: 1.8px;
  }
}

@media (max-width: 767px) {
  .ad-label {
    font-size: 10px;
    letter-spacing: 1.8px;
  }
}

@media (max-width: 480px) {
  .ad-label {
    font-size: 9px;
    letter-spacing: 2.5px;
  }
}

/* ========== CONTENT PAGES (about, contact, faq, legal) ========== */
.main-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #1d1a49;
  color: #e2e8f0;
}

.sticky-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(135deg, #1a1742 0%, #0f0c2c 100%);
  border-bottom: 1px solid #49466a;
}

.landing-header {
  max-width: 1600px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
}

.header-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.landing-header .header-logo,
.header-logo-link .header-logo {
  height: 40px;
  width: auto;
  max-width: min(180px, 42vw);
  object-fit: contain;
  display: block;
}

.main-content {
  flex: 1;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 20px 40px;
  box-sizing: border-box;
}

.card {
  background: #2d2a5e;
  border: 1px solid #49466a;
  border-radius: 12px;
  padding: 24px;
  box-sizing: border-box;
}

.landing-hero {
  margin-bottom: 20px;
  text-align: left;
}

.landing-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1.25;
  color: #fff;
  font-weight: 800;
}

.landing-hero .highlight {
  color: #009cff;
}

.landing-hero .subhead {
  margin: 0;
  color: #b0b3d6;
  font-size: 1.05rem;
  line-height: 1.5;
}

.finance-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.finance-section-title {
  margin: 0 0 14px;
  font-size: 1.25rem;
  color: #009cff;
  font-weight: 700;
}

.page-body {
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.65;
}

.page-body p {
  margin: 0 0 12px;
}

.page-body p:last-child {
  margin-bottom: 0;
}

.page-body a,
.email-link {
  color: #009cff;
  text-decoration: none;
  word-break: break-word;
}

.page-body a:hover,
.email-link:hover {
  text-decoration: underline;
}

.tip-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.tip-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(73, 70, 106, 0.8);
  border-radius: 8px;
  color: #cbd5e1;
  line-height: 1.5;
}

.tip-item strong {
  color: #fff;
}

.notice-box {
  padding: 14px 16px;
  background: rgba(0, 156, 255, 0.1);
  border: 1px solid rgba(0, 156, 255, 0.35);
  border-radius: 8px;
  color: #dbeafe;
  line-height: 1.6;
  margin: 0;
}

.policy-list,
.rights-list {
  margin: 8px 0 0;
  padding-left: 1.2rem;
  color: #cbd5e1;
  line-height: 1.7;
}

.policy-list li,
.rights-list li {
  margin-bottom: 6px;
}

.acknowledgement {
  font-weight: 600;
  color: #fff;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #49466a;
  background: rgba(15, 12, 44, 0.55);
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #009cff;
  box-shadow: 0 0 0 3px rgba(0, 156, 255, 0.2);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form button {
  align-self: flex-start;
  margin-top: 4px;
  padding: 12px 28px;
  border: none;
  border-radius: 30px;
  background: #009cff;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.15s ease;
}

.contact-form button:hover {
  background: #0080d4;
  transform: translateY(-1px);
}

.char-counter {
  font-size: 0.85rem;
  color: #9ca3af;
  text-align: right;
}

.char-counter.limit {
  color: #f87171;
}

.form-toast {
  display: none;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(74, 222, 128, 0.15);
  border: 1px solid rgba(74, 222, 128, 0.4);
  color: #bbf7d0;
  font-size: 0.95rem;
}

.form-toast.show {
  display: block;
}

.email-link {
  display: inline-block;
  margin: 8px 0 12px;
  font-weight: 600;
  font-size: 1.05rem;
}

.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.faq-question::after {
  content: "+";
  flex-shrink: 0;
  color: #009cff;
  font-size: 1.4rem;
  line-height: 1;
}

.faq-item.open .faq-question::after {
  content: "−";
}

.faq-answer {
  display: none;
  padding: 0 20px 18px;
  color: #cbd5e1;
  line-height: 1.65;
  font-size: 0.98rem;
}

.faq-item.open .faq-answer {
  display: block;
}

@media (max-width: 640px) {
  .landing-header {
    padding: 12px 16px;
  }
  .landing-header .header-logo,
  .header-logo-link .header-logo {
    height: 32px;
  }
  .main-content {
    padding: 20px 16px 32px;
  }
  .card {
    padding: 18px;
  }
  .contact-form button {
    width: 100%;
    text-align: center;
  }
}

/* ========== GAME CARDS (from index / play / gameByTag) ========== */
.featured-game {
  grid-column: span 2;
  grid-row: span 2;
  border: 2px solid #4ade80;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
  position: relative;
}

.featured-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background-color: #4ade80;
  color: #011a30;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 3;
}

.game-card {
  border-radius: 5px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
  aspect-ratio: 1 / 1;
  cursor: pointer;
}

.game-card.wide {
  grid-column: span 2;
}

.game-card.large {
  grid-column: span 2;
  grid-row: span 2;
}

.game-card:hover {
  transform: scale(1.02);
}

.game-card:not(.header-card) img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.game-card:not(.header-card) img.loaded {
  opacity: 1;
}

.shimmer-container {
  position: absolute;
  inset: 0;
  background: #173048;
  overflow: hidden;
}

.shimmer {
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 100%
  );
  animation: shimmer 1.5s infinite;
  position: absolute;
  top: 0;
  left: 0;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(200%);
  }
}

@keyframes dragEndPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

.drag-end {
  animation: dragEndPulse 0.3s ease-out;
}

.game-card a,
.game-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(to top, #251e81 0%, rgba(0, 0, 0, 0.253) 50%);
  opacity: 0;
  transition: opacity 0.3s;
  text-decoration: none;
  z-index: 2;
}

.game-card:hover a,
.game-card:hover .game-overlay {
  opacity: 1;
}

.game-info {
  padding: 8px;
  color: white;
  text-align: center;
}

.game-name {
  font-weight: bold;
  font-size: 12px;
  margin-bottom: 1px;
}

.play-now {
  color: #4ade80;
  font-size: 10px;
}

@media (max-width: 640px) {
  .game-name {
    font-size: 10px;
  }
  .play-now {
    font-size: 8px;
  }
  .game-info {
    padding: 6px;
  }
  .game-card.large {
    grid-column: span 2;
    grid-row: span 2;
  }
  .game-card.tall {
    grid-column: span 1;
    grid-row: span 2;
  }
  .game-card.wide {
    grid-column: span 2;
    grid-row: span 1;
  }
}

@media (max-width: 480px) {
  .game-name {
    font-size: 9px;
  }
  .game-info {
    padding: 4px;
  }
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: #ccc;
  font-size: 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  margin: 20px;
}

.tag-info-bar {
  max-width: 1400px;
  margin: 20px auto 0 auto;
  padding: 0 20px;
  text-align: center;
}

.tag-header-centered {
  text-align: center;
  margin-bottom: 10px;
  background: #2d2a5e;
  border-radius: 10px;
  padding: 12px;
  border: 1px solid #49466a;
}

.tag-name-centered {
  display: inline-block;
  color: #fff;
  font-weight: bold;
  font-size: 2rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.game-count-centered {
  display: block;
  color: #a8acb5;
  font-size: 0.9rem;
}

@media (min-width: 481px) and (max-width: 767px) {
  .tag-info-bar {
    margin: 10px auto 0 auto;
  }
  .tag-name-centered {
    font-size: 1.7rem;
  }
}

@media (max-width: 480px) {
  .tag-info-bar {
    margin: 10px auto 0 auto;
  }
  .tag-name-centered {
    font-size: 1.5rem;
  }
  .game-count-centered {
    font-size: 0.8rem;
  }
}

/* ========== PLAY PAGE ========== */
#gameDetails {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  color: white;
}

#gamePlayerSection,
#gameDescriptionSection {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  color: white;
}

#gamePlayerSection {
  margin-top: 10px;
}

#gameDescriptionSection {
  margin-top: 0;
}

#gameplayContainer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  z-index: 1000;
  display: none;
}

#gameFrame {
  width: 100%;
  height: 100%;
  border: none;
}

#closeButton {
  position: fixed;
  top: 15px;
  left: 15px;
  color: white;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: grab;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  user-select: none;
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

#gameplayContainer:fullscreen #closeButton,
#gameplayContainer:-webkit-full-screen #closeButton {
  position: fixed;
  z-index: 10001;
}

#closeButton:hover {
  transform: scale(1.08);
  background: rgba(0, 0, 0, 0.7);
}

#closeButton:active,
#closeButton.active-touch {
  cursor: grabbing;
  transform: scale(1.05);
}

@media (max-width: 640px) {
  #closeButton {
    top: 10px;
    left: 10px;
    width: 44px;
    height: 44px;
    font-size: 22px;
  }
  #closeButton::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
  }
}

#fullscreenExitOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1002;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

#fullscreenExitOverlay h2 {
  font-size: 24px;
  margin-bottom: 20px;
}

#returnToFullscreenBtn {
  background-color: #4ade80;
  color: #011a30;
  border: none;
  border-radius: 30px;
  padding: 12px 30px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 20px;
  box-shadow: 0 4px 15px rgba(74, 222, 128, 0.4);
}

#returnToFullscreenBtn:hover {
  background-color: #3acd70;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 222, 128, 0.5);
}

#returnToFullscreenBtn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 10px rgba(74, 222, 128, 0.4);
}

.hidden {
  display: none !important;
}

.desktop-game-row {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.desktop-game-area {
  flex: 1;
  min-width: 0;
  background-color: #2d2a5e;
  border-radius: 12px;
  overflow: hidden;
  pointer-events: auto;
  border: 1px solid #49466a;
}

@media (min-width: 1024px) {
  .desktop-game-area {
    display: block;
  }
}

@media (max-width: 1023px) {
  .desktop-game-row .desktop-game-area {
    width: 100%;
  }
}

.desktop-game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #2d2a5e;
  flex-wrap: wrap;
  gap: 12px;
  transition: all 0.2s ease;
}

@media (min-width: 1200px) {
  .desktop-game-header {
    padding: 16px 24px;
  }
  .desktop-game-title {
    font-size: 1.4rem;
    gap: 14px;
  }
  .desktop-fullscreen-btn {
    padding: 8px 24px;
    font-size: 0.9rem;
  }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .desktop-game-header {
    padding: 14px 20px;
  }
  .desktop-game-title {
    font-size: 1.25rem;
  }
  .desktop-fullscreen-btn {
    padding: 7px 20px;
    font-size: 0.85rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .desktop-game-header {
    padding: 12px 18px;
  }
  .desktop-game-title {
    font-size: 1.1rem;
    gap: 10px;
  }
  .desktop-fullscreen-btn {
    padding: 6px 16px;
    font-size: 0.8rem;
  }
}

@media (min-width: 600px) and (max-width: 767px) {
  .desktop-game-header {
    padding: 10px 14px;
  }
  .desktop-game-title {
    font-size: 1rem;
    gap: 8px;
  }
  .desktop-fullscreen-btn {
    padding: 5px 12px;
    font-size: 0.75rem;
    gap: 4px;
  }
}

@media (min-width: 375px) and (max-width: 599px) {
  .desktop-game-header {
    padding: 10px 12px;
  }
  .desktop-game-title {
    font-size: 0.85rem;
    gap: 6px;
    letter-spacing: 0.5px;
  }
  .desktop-fullscreen-btn {
    padding: 4px 10px;
    font-size: 0.7rem;
  }
}

@media (min-width: 320px) and (max-width: 374px) {
  .desktop-game-header {
    padding: 8px 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .desktop-game-title {
    font-size: 0.8rem;
    gap: 6px;
    justify-content: center;
    text-align: center;
  }
  .desktop-fullscreen-btn {
    padding: 6px 12px;
    font-size: 0.7rem;
    justify-content: center;
  }
}

@media (max-width: 319px) {
  .desktop-game-header {
    padding: 6px 8px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .desktop-game-title {
    font-size: 0.7rem;
    justify-content: center;
    text-align: center;
  }
  .desktop-fullscreen-btn {
    padding: 5px 8px;
    font-size: 0.65rem;
    justify-content: center;
  }
}

.desktop-game-title {
  font-weight: bold;
  color: white;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.desktop-fullscreen-btn {
  background: #2a2860;
  border: 1px solid white;
  color: white;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: 0.2s;
}

.desktop-fullscreen-btn:hover {
  background: #4ade80;
  color: #011a30;
}

.desktop-iframe-wrapper {
  position: relative;
  width: 100%;
  background: #000;
  pointer-events: auto;
  overflow: hidden;
}

.desktop-fullscreen-host {
  position: relative;
  width: 100%;
  background: #000;
}

.desktop-fullscreen-host:fullscreen,
.desktop-fullscreen-host:-webkit-full-screen {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.desktop-fullscreen-host:fullscreen .desktop-game-iframe,
.desktop-fullscreen-host:-webkit-full-screen .desktop-game-iframe {
  flex: 1;
  min-height: 0;
  width: 100%;
  height: 100%;
}

.desktop-fullscreen-close {
  display: none;
  position: absolute;
  top: 12px;
  left: 0px;
  z-index: 2147483647;
  padding: 0;
  border: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.desktop-fullscreen-close img {
  width: 50px;
  height: auto;
  display: block;
  pointer-events: none;
}

.desktop-fullscreen-host:fullscreen .desktop-fullscreen-close,
.desktop-fullscreen-host:-webkit-full-screen .desktop-fullscreen-close {
  display: flex;
}

.desktop-fullscreen-close:hover {
  transform: scale(1.08);
}

.desktop-game-iframe {
  width: 100%;
  height: 55vh;
  min-height: 550px;
  border: none;
  display: block;
  pointer-events: auto;
  background: #000;
}

.desktop-iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 1023px) {
  .desktop-game-iframe {
    height: 50vh;
    min-height: 450px;
  }
}

@media (max-width: 767px) {
  .desktop-game-iframe {
    height: 45vh;
    min-height: 400px;
  }
  .desktop-fullscreen-close {
    top: 20px;
  }
}

@media (max-width: 599px) {
  .desktop-game-iframe {
    height: 40vh;
    min-height: 350px;
  }
  .desktop-fullscreen-close {
    top: 20px;
  }
  .desktop-fullscreen-close img {
    width: 40px;
  }
}

.desktop-game-header--awaiting-loader {
  pointer-events: none;
  background-color: #2d2a5e;
}

.desktop-game-header--awaiting-loader .desktop-game-title,
.desktop-game-header--awaiting-loader .desktop-fullscreen-btn {
  visibility: hidden;
}

.game-loader {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-color: #2d2a5e;
  display: block;
  padding: clamp(12px, 3vw, 24px);
  box-sizing: border-box;
  overflow: hidden;
}

.game-loader-logo-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2.5vw, 18px);
  width: auto;
  max-width: min(320px, calc(100% - 32px));
  pointer-events: none;
}

.game-loader-logo {
  width: clamp(48px, 12vw, 72px);
  height: clamp(48px, 12vw, 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounce 1s ease-in-out infinite;
}

.game-loader-meta {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: min(280px, calc(100% - 24px));
  gap: clamp(10px, 2.5vw, 16px);
  padding-bottom: clamp(12px, 3vw, 22px);
  box-sizing: border-box;
}

.game-loader-title {
  margin: 0;
  color: #fff;
  font-weight: 600;
  text-align: center;
  line-height: 1.28;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
  padding: 0 8px;
  letter-spacing: 0.35px;
  font-size: 12px;
}

@media (min-width: 400px) {
  .game-loader-title {
    font-size: 13px;
    line-height: 1.3;
    padding: 0 10px;
    letter-spacing: 0.4px;
  }
}

@media (min-width: 480px) {
  .game-loader-title {
    font-size: 14px;
    letter-spacing: 0.45px;
  }
}

@media (min-width: 600px) {
  .game-loader-title {
    font-size: 15px;
    line-height: 1.32;
    letter-spacing: 0.5px;
  }
}

@media (min-width: 768px) {
  .game-loader-title {
    font-size: 16px;
    padding: 0 12px;
    letter-spacing: 0.6px;
  }
}

@media (min-width: 1024px) {
  .game-loader-title {
    font-size: 17px;
    letter-spacing: 0.75px;
  }
}

@media (min-width: 1280px) {
  .game-loader-title {
    font-size: 18px;
    line-height: 1.33;
    letter-spacing: 0.85px;
  }
}

@media (min-width: 1440px) {
  .game-loader-title {
    font-size: 19px;
    letter-spacing: 0.95px;
  }
}

@media (min-width: 1600px) {
  .game-loader-title {
    font-size: 20px;
    line-height: 1.35;
    letter-spacing: 1.1px;
  }
}

.game-loader-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.loader-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(74, 222, 128, 0.2);
  border-top: 4px solid #4ade80;
  border-right: 4px solid #4ade80;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loader-text {
  color: white;
  font-size: clamp(9px, 1.8vw, 11px);
  font-weight: 500;
  letter-spacing: 0.55px;
  text-align: center;
}

@media (min-width: 480px) {
  .loader-text {
    letter-spacing: 0.75px;
  }
}

@media (min-width: 768px) {
  .loader-text {
    letter-spacing: 1px;
  }
}

.loader-progress {
  width: 100%;
  max-width: 200px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 0;
}

.loader-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #4ade80, #22c55e);
  border-radius: 3px;
  animation: progress 5s ease-out forwards;
}

.loader-subtext {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  margin-top: 15px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes progress {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 767px) {
  .loader-spinner {
    width: 45px;
    height: 45px;
  }
  .loader-subtext {
    font-size: 10px;
  }
}

/* ========== GAMEPLAY PAGE ========== */
html.gameplay-page,
body.gameplay-page {
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: #1d1a49;
  overflow: hidden;
}

.gameplay-page iframe,
#gameContainer iframe {
  width: 100%;
  height: 100%;
  border: none;
  position: absolute;
  top: 0;
  left: 0;
}

#fullscreenOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(29, 26, 73, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  cursor: pointer;
}

#tapToContinue {
  color: white;
  font-size: 24px;
  text-align: center;
  padding: 20px 40px;
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.3);
}

.ancher-link {
  color: aliceblue;
}
