/*
 * Exact CuteDressUp/Kizi-style presentation for MyArcadeTheme.
 * Visual layout only: no CuteDressUp branding, tracking, ads or remote CDN.
 */
:root {
  --cute-bg: #24002f;
  --cute-bg-dark: #1b0025;
  --cute-header: #30003f;
  --cute-rail: #2c003c;
  --cute-purple: #4f086e;
  --cute-purple-light: #7f28a4;
  --cute-blue: #00b8f0;
  --cute-link: #7440ff;
  --cute-white: #fff;
  --cute-gap: 12px;
  --cute-rail-width: 59px;
  --cute-header-height: 60px;
  --cute-radius: 10px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.cute-kizi-theme {
  margin: 0;
  color: #111;
  background: var(--cute-bg);
  font-family: "Nunito", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}
body.cute-kizi-theme a { text-decoration: none; }
body.cute-kizi-theme img { max-width: 100%; }
body.cute-kizi-theme .all,
body.cute-kizi-theme .bdcn,
body.cute-kizi-theme .cont {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Fixed header */
.cute-topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--cute-header-height);
  background: var(--cute-header);
  border-bottom: 2px solid rgba(126, 33, 154, .22);
}
.cute-logo {
  position: absolute;
  left: 8px;
  top: 6px;
  z-index: 1002;
  width: 89px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 3px;
  overflow: hidden;
  border-radius: 9px;
  background: #fff;
}
.cute-logo img {
  display: block;
  max-width: 82px;
  max-height: 43px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.cute-search {
  position: absolute;
  left: 50%;
  top: 11px;
  width: min(573px, 52vw);
  height: 37px;
  display: flex;
  overflow: hidden;
  border-radius: 22px;
  background: #f7e9ff;
  transform: translateX(-50%);
}
.cute-search input {
  min-width: 0;
  flex: 1;
  padding: 0 15px;
  border: 0;
  outline: 0;
  color: #4a3152;
  background: #f7e9ff;
  font-size: 14px;
  font-weight: 700;
}
.cute-search input::placeholder { color: #cfafe0; }
.cute-search button {
  width: 67px;
  border: 0;
  color: #fff;
  background: var(--cute-blue);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.cute-mobile-menu { display: none; }

/* Fixed icon rail */
.cute-icon-rail {
  position: fixed;
  top: var(--cute-header-height);
  bottom: 0;
  left: 0;
  z-index: 990;
  width: var(--cute-rail-width);
  padding: 12px 0 20px;
  overflow-x: visible;
  overflow-y: auto;
  background: var(--cute-rail);
  border-right: 2px solid rgba(112, 29, 137, .24);
  scrollbar-width: thin;
}
.cute-icon-rail a {
  position: relative;
  width: 100%;
  height: 40px;
  display: grid;
  place-items: center;
  color: #d986ff;
  font-size: 22px;
  transition: background .16s, color .16s;
}
.cute-icon-rail a:hover,
.cute-icon-rail a:focus,
.cute-icon-rail a.cute-rail-home {
  color: #d389ff;
  background: rgba(115, 26, 146, .42);
}
.cute-icon-rail a::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: transparent;
}
.cute-icon-rail a:hover::before,
.cute-icon-rail a.cute-rail-home::before { background: #09bced; }
.cute-icon-rail a:nth-child(3n+2) { color: #ffb029; }
.cute-icon-rail a:nth-child(3n+3) { color: #ff83b7; }
.cute-icon-rail a:nth-child(3n+4) { color: #a9d8ff; }
.cute-icon-rail a span {
  position: absolute;
  left: 54px;
  top: 5px;
  z-index: 1004;
  min-width: 135px;
  display: none;
  padding: 6px 10px;
  border-radius: 5px;
  color: #fff;
  background: #11131d;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
.cute-icon-rail a:hover span { display: block; }

.cute-page-shell {
  min-height: 70vh;
  margin-left: var(--cute-rail-width);
  padding-top: var(--cute-header-height);
}

/* Home game sections */
.cute-home,
.cute-listing,
.cute-game-page {
  padding: 15px 8px 24px 17px;
}
.cute-game-section {
  position: relative;
  margin: 4px 0 13px;
}
.cute-section-title {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 70px;
}
.cute-section-title h2 {
  margin: 0;
  color: #fff;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.15;
}
.cute-section-title > a {
  color: #a78aff;
  font-size: 14px;
  font-weight: 700;
}
.cute-section-arrows {
  position: absolute;
  top: 2px;
  right: 7px;
  display: flex;
  gap: 10px;
}
.cute-section-arrows button {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #160020;
  background: #520b71;
  font-size: 19px;
  font-weight: 900;
  cursor: pointer;
}
.cute-section-arrows button:hover { color: #fff; background: #762099; }

.cute-games-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100vw - var(--cute-rail-width) - 94px) / 7);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: var(--cute-gap);
  height: calc((((100vw - var(--cute-rail-width) - 94px) / 7) * .56) * 2 + var(--cute-gap));
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.cute-games-track::-webkit-scrollbar { display: none; }
.cute-game-section--compact .cute-games-track {
  grid-template-rows: minmax(0, 1fr);
  height: calc(((100vw - var(--cute-rail-width) - 94px) / 7) * .56);
}
.cute-card {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--cute-radius);
  background: #16001f;
}
.cute-card > a {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
}
.cute-card img {
  width: 100%;
  height: 100% !important;
  display: block;
  object-fit: cover;
  transition: transform .24s ease, filter .24s ease;
}
.cute-card__hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  gap: 7px;
  padding: 10px;
  color: #fff;
  background: linear-gradient(transparent 45%, rgba(18,0,26,.86));
  opacity: 0;
  transition: opacity .22s;
}
.cute-card__hover i {
  width: 29px; height: 29px;
  display: grid;
  place-items: center;
  flex: 0 0 29px;
  border-radius: 50%;
  color: #fff;
  background: #7e2ca6;
}
.cute-card__hover strong {
  overflow: hidden;
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cute-card:hover img { transform: scale(1.035); filter: brightness(.8); }
.cute-card:hover .cute-card__hover { opacity: 1; }
.cute-game-section--featured .cute-card--hero {
  grid-column: span 2;
  grid-row: span 2;
}

/* Category matrix */
.cute-category-cloud {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 9px;
  margin: 11px 0;
}
.cute-category-cloud > a {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  overflow: hidden;
  border: 1px solid #782493;
  border-radius: 9px;
  color: #fff;
  background: #540b6c;
}
.cute-category-cloud img,
.cute-category-letter {
  width: 52px;
  height: 52px !important;
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  object-fit: cover;
  color: #fff;
  background: #8a2baa;
  font-size: 22px;
  font-weight: 900;
}
.cute-category-cloud strong { font-size: 14px; line-height: 1.22; }
.cute-category-cloud > a:hover { background: #71188d; }
.cute-all-tags > span {
  width: 47px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}
.cute-all-tags i { height: 18px; border-radius: 5px; background: #fff; }

/* White content panels */
.cute-white-content,
body.cute-kizi-theme .post-sngl,
body.cute-kizi-theme .blk-cn,
body.cute-kizi-theme .comments-area {
  margin: 18px 0;
  padding: 15px;
  border: 0;
  border-radius: 20px;
  color: #111;
  background: #fff;
  box-shadow: none;
}
.cute-home-description { padding: 0; }
.cute-home-description #front_page_text,
.cute-home-description .blk-cn {
  margin: 0;
  padding: 14px;
  border-radius: 20px;
}
body.cute-kizi-theme .titl,
body.cute-kizi-theme .blk-cn > .titl {
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  color: #4940c8;
  background: transparent;
  font-size: 21px;
  font-weight: 800;
}
body.cute-kizi-theme .txcn,
body.cute-kizi-theme .entry-content {
  padding: 0;
  color: #111;
  font-size: 18px;
  line-height: 1.45;
}
body.cute-kizi-theme .txcn a,
body.cute-kizi-theme .entry-content a,
.cute-white-content a { color: #423ed3; }
body.cute-kizi-theme .txcn h2,
body.cute-kizi-theme .entry-content h2,
body.cute-kizi-theme .txcn h3,
body.cute-kizi-theme .entry-content h3 { color: #4d45ca; }

/* Archive */
.cute-listing-title {
  min-height: 42px;
  display: flex;
  align-items: center;
}
.cute-listing-title h1 {
  margin: 0;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
}
.cute-archive-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}
.cute-archive-grid .cute-card { aspect-ratio: 16 / 9; }
.cute-taxonomy-copy { margin-top: 22px; }
body.cute-kizi-theme .navigation,
body.cute-kizi-theme .pagenavi {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin: 22px 0;
}
body.cute-kizi-theme .navigation a,
body.cute-kizi-theme .navigation span,
body.cute-kizi-theme .pagenavi a,
body.cute-kizi-theme .pagenavi span {
  min-width: 38px;
  padding: 8px 11px;
  border-radius: 7px;
  color: #fff;
  background: #570b70;
  text-align: center;
}
body.cute-kizi-theme .navigation .current,
body.cute-kizi-theme .pagenavi .current { background: #04bbed; }
.cute-error { text-align: center; }
.cute-error > strong { display: block; color: #4d45ca; font-size: 96px; line-height: 1; }

/* Game page */
.cute-game-page { padding-right: 12px; }
.cute-game-columns {
  display: grid;
  grid-template-columns: 200px minmax(520px, 1120px) 300px;
  gap: 12px;
  align-items: start;
  justify-content: center;
}
.cute-game-side {
  min-width: 0;
  padding: 10px;
  background: #151b2b;
}
.cute-mini-list { display: grid; gap: 8px; }
.cute-mini-list a {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}
.cute-mini-list img {
  width: 48px;
  height: 48px !important;
  flex: 0 0 48px;
  border-radius: 9px;
  object-fit: cover;
}
.cute-mini-list strong {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cute-game-side--right .cute-mini-list {
  grid-template-columns: 1fr 1fr;
}
.cute-game-side--right .cute-mini-list a { display: grid; grid-template-columns: 48px minmax(0,1fr); }
.cute-game-frame {
  position: relative;
  min-height: 430px;
  padding: 0;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  background: #303030;
}
.cute-game-frame #myarcade_game {
  width: 100%;
  height: 100%;
  min-height: 430px;
  margin: 0;
  background: #303030;
}
.cute-game-frame iframe,
.cute-game-frame object,
.cute-game-frame embed {
  width: 100% !important;
  max-width: 100%;
  display: block;
  margin: 0 auto;
  border: 0;
}
.cute-game-titlebar {
  min-height: 47px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 8px 12px;
  border-radius: 0 0 10px 10px;
  color: #090909;
  background: #fff;
}
.cute-game-titlebar h1 { margin: 0; font-size: 19px; font-weight: 800; }
.cute-game-titlebar > div { display: flex; align-items: center; gap: 20px; }
.cute-game-titlebar strong { font-size: 15px; }
.cute-game-titlebar .fa-arrows-alt { color: #671887; font-size: 28px; }
body.cute-kizi-theme .game-ctrl {
  margin: 8px auto;
  border: 0;
  background: transparent;
}
body.cute-kizi-theme .game_opts {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}
body.cute-kizi-theme .game_opts li { margin: 0; }
body.cute-kizi-theme .game_opts a {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: #6d26d8;
}
.cute-ad-slot {
  margin: 8px auto;
  overflow: hidden;
  text-align: center;
}
.cute-discover {
  width: fit-content;
  max-width: calc(100% - 520px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin: 18px auto;
  padding: 10px;
  background: #340744;
}
.cute-discover span,
.cute-discover a {
  padding: 4px 10px;
  border-radius: 9px;
  color: #1762e8;
  background: #fff;
  font-size: 15px;
  line-height: 1.3;
}
.cute-discover span { color: #555; }
.cute-game-related .cute-game-section { margin-top: 5px; }
.cute-game-content { padding: 14px; }
.cute-game-content > .blk-cn {
  margin: 0 0 16px !important;
  padding: 0 !important;
  border-radius: 0 !important;
}
.cute-game-content .cntcls,
.cute-game-content .main-cn { width: 100%; }
.cute-game-content .yarpp-related { margin: 0; }
body.cute-kizi-theme .post-game-play { background: transparent; }

/* Existing page/blog templates */
body.cute-kizi-theme .cont {
  padding: 18px 12px 24px 17px;
}
body.cute-kizi-theme .cntcls { gap: 16px; }
body.cute-kizi-theme .post-sngl { padding: 16px; }
body.cute-kizi-theme .post-sngl header h1,
body.cute-kizi-theme .post-sngl header h2 { color: #4d45ca; }
body.cute-kizi-theme .sidebar .widget {
  margin-bottom: 14px;
  padding: 13px;
  border-radius: 12px;
  background: #fff;
}

/* Footer */
.cute-footer {
  margin: 20px 11px 0 calc(var(--cute-rail-width) + 17px);
  color: #111;
}
.cute-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  min-height: 310px;
  padding: 15px;
  border-radius: 13px;
  background: #fff;
}
.cute-footer-grid section { padding: 0; }
.cute-footer-grid h3 {
  margin: 0 0 8px;
  color: #4841c3;
  font-size: 17px;
  font-weight: 800;
}
.cute-footer-grid ul { margin: 0; padding: 0 0 0 21px; list-style: none; }
.cute-footer-grid li { position: relative; margin: 5px 0; font-size: 17px; font-weight: 700; line-height: 1.25; }
.cute-footer-grid li::before {
  content: "♙";
  position: absolute;
  left: -18px;
  top: 1px;
  color: #f0db35;
  font-size: 10px;
}
.cute-footer-grid a { color: #111; }
.cute-footer-grid a:hover { color: #4841c3; }
.cute-social {
  padding: 20px 0 11px;
  color: #fff;
  text-align: center;
}
.cute-social > strong { display: block; margin-bottom: 7px; }
.cute-social > div { display: flex; justify-content: center; gap: 8px; }
.cute-social > div a {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #3168ad;
  font-size: 23px;
}
.cute-social .fa-twitter { background: #37ace0; }
.cute-social .fa-youtube-play { background: #ed1d2b; }
.cute-social p { margin: 10px 0 0; font-size: 12px; color: #bbaec0; }

/* RTL */
.rtl .cute-page-shell { margin-left: 0; margin-right: var(--cute-rail-width); }
.rtl .cute-icon-rail { left: auto; right: 0; border-right: 0; border-left: 2px solid rgba(112,29,137,.24); }
.rtl .cute-footer { margin-left: 11px; margin-right: calc(var(--cute-rail-width) + 17px); }
.rtl .cute-icon-rail a span { left: auto; right: 54px; }

/* Responsive */
@media (max-width: 1450px) {
  .cute-game-columns { grid-template-columns: 170px minmax(480px,1fr) 250px; }
  .cute-mini-list img { width: 43px; height: 43px !important; flex-basis: 43px; }
  .cute-game-side--right .cute-mini-list a { grid-template-columns: 43px minmax(0,1fr); }
  .cute-archive-grid { grid-template-columns: repeat(6,minmax(0,1fr)); }
}
@media (max-width: 1120px) {
  .cute-game-columns { grid-template-columns: 150px minmax(450px,1fr); }
  .cute-game-side--right { display: none; }
  .cute-discover { max-width: calc(100% - 170px); }
  .cute-games-track { grid-auto-columns: calc((100vw - var(--cute-rail-width) - 70px) / 5); height: calc((((100vw - var(--cute-rail-width) - 70px) / 5) * .56) * 2 + var(--cute-gap)); }
  .cute-game-section--compact .cute-games-track { height: calc(((100vw - var(--cute-rail-width) - 70px) / 5) * .56); }
  .cute-archive-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
}
@media (max-width: 780px) {
  :root { --cute-rail-width: 0px; --cute-header-height: 57px; }
  body.cute-rail-open { overflow: hidden; }
  .cute-topbar { height: 57px; }
  .cute-logo { left: 7px; top: 6px; width: 68px; height: 45px; }
  .cute-logo img { max-width: 62px; max-height: 39px; }
  .cute-search { left: 82px; right: 49px; width: auto; transform: none; }
  .cute-search button { width: 55px; }
  .cute-mobile-menu {
    position: absolute;
    top: 11px; right: 8px;
    width: 36px; height: 36px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 7px;
    color: #fff;
    background: #590b72;
    font-size: 18px;
  }
  .cute-icon-rail {
    width: 58px;
    transform: translateX(-105%);
    transition: transform .22s;
  }
  .cute-icon-rail.is-open { transform: translateX(0); }
  .cute-page-shell { margin-left: 0; }
  .cute-footer { margin-left: 10px; }
  .cute-home, .cute-listing, .cute-game-page { padding: 11px 7px; }
  .cute-section-title h2 { font-size: 19px; }
  .cute-section-arrows { display: none; }
  .cute-games-track {
    grid-auto-columns: 43vw;
    height: calc((43vw * .56) * 2 + 9px);
    gap: 9px;
  }
  .cute-game-section--compact .cute-games-track { height: calc(43vw * .56); }
  .cute-category-cloud { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cute-archive-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .cute-game-columns { display: block; }
  .cute-game-side { display: none; }
  .cute-game-frame, .cute-game-frame #myarcade_game { min-height: 260px; }
  .cute-discover { max-width: 100%; }
  .cute-game-titlebar { align-items: flex-start; flex-direction: column; }
  .cute-game-titlebar > div { width: 100%; justify-content: space-between; }
  .cute-footer-grid { grid-template-columns: 1fr 1fr; min-height: 0; }
  body.cute-kizi-theme .txcn,
  body.cute-kizi-theme .entry-content { font-size: 16px; }
}
@media (max-width: 450px) {
  .cute-search button { width: 43px; font-size: 0; }
  .cute-search button::after { content: "⌕"; font-size: 19px; }
  .cute-games-track { grid-auto-columns: 63vw; height: calc((63vw * .56) * 2 + 8px); gap: 8px; }
  .cute-game-section--compact .cute-games-track { height: calc(63vw * .56); }
  .cute-category-cloud { grid-template-columns: 1fr 1fr; gap: 7px; }
  .cute-category-cloud > a { min-height: 58px; padding: 5px; }
  .cute-category-cloud img, .cute-category-letter { width: 45px; height: 45px !important; flex-basis: 45px; }
  .cute-footer-grid { grid-template-columns: 1fr; }
}
