/* NekoBox portal: a compact shell around the existing account and game APIs. */
body.nekobox-platform {
  --nekobox-bg: #10141b;
  --nekobox-panel: #1b222c;
  --nekobox-line: #394655;
  --nekobox-pink: #ff8088;
  --nekobox-cream: #fff0dc;
  background:
    radial-gradient(ellipse at 78% 12%, rgba(72, 105, 139, .2), transparent 36rem),
    radial-gradient(ellipse at 12% 68%, rgba(255, 128, 136, .1), transparent 32rem),
    var(--nekobox-bg);
}

body.nekobox-platform .home-ribbon,
body.nekobox-platform #homeMessage,
body.nekobox-platform #nekoSensei,
body.nekobox-platform .furigana-toggle,
body.nekobox-platform .legacy-learning-content,
body.nekobox-platform #guestAccountButton,
body.nekobox-platform #profileScreen .membership-compare,
body.nekobox-platform #profileScreen .compare-access-button,
body.nekobox-platform .app-rail-links [data-rail-action="review"],
body.nekobox-platform .app-rail-links [data-rail-action="events"],
body.nekobox-platform .app-rail-links [data-rail-action="news"],
body.nekobox-platform .app-rail-links [data-rail-action="statistics"],
body.nekobox-platform .app-rail-links [data-rail-action="rewards"],
body.nekobox-platform .app-rail-links [data-rail-action="settings"] {
  display: none !important;
}

body.nekobox-platform .brand-mark {
  overflow: hidden;
  border-radius: 13px;
}

body.nekobox-platform .brand-mark img {
  object-fit: cover;
}

.contact-top-button {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(205, 217, 230, .34);
  border-radius: 50%;
  color: #f4f0e9;
  background: linear-gradient(145deg, #354457, #202a37);
  box-shadow: 0 7px 17px rgba(0, 0, 0, .22);
  font: 800 1.15rem/1 "DM Sans", sans-serif;
  cursor: pointer;
  transition: border-color .15s ease, transform .15s ease, background .15s ease;
}

.contact-top-button:hover {
  transform: translateY(-1px);
  border-color: var(--nekobox-pink);
  background: linear-gradient(145deg, #51404b, #29313d);
}

.contact-top-button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.nekobox-home {
  width: min(100%, 1450px);
  margin: 0 auto;
  padding: clamp(20px, 4vw, 58px) clamp(14px, 3vw, 42px) 48px;
  color: #f3f4f6;
}

.nekobox-home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, .6fr);
  align-items: center;
  gap: 32px;
  min-height: 360px;
  overflow: hidden;
  padding: clamp(26px, 5vw, 68px);
  border: 1px solid rgba(164, 188, 211, .24);
  border-radius: 30px;
  background: linear-gradient(118deg, rgba(29, 38, 50, .97), rgba(20, 29, 39, .78));
  box-shadow: 0 26px 80px rgba(0, 0, 0, .24);
}

.nekobox-home-hero::after {
  position: absolute;
  right: -115px;
  bottom: -230px;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(255, 128, 136, .2);
  border-radius: 50%;
  box-shadow: 0 0 0 36px rgba(255, 128, 136, .035), 0 0 0 78px rgba(255, 128, 136, .025);
  content: "";
  pointer-events: none;
}

.nekobox-home-copy,
.nekobox-home-mark {
  position: relative;
  z-index: 1;
}

.nekobox-home-copy > .eyebrow,
.nekobox-home-card small {
  color: var(--nekobox-pink);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .15em;
}

.nekobox-home-copy h1 {
  margin: 14px 0 16px;
  color: #fff8ed;
  font-size: clamp(2.8rem, 6.2vw, 5.8rem);
  line-height: .98;
  letter-spacing: -.065em;
}

.nekobox-home-copy h1 em {
  color: var(--nekobox-pink);
  font-style: normal;
}

.nekobox-home-copy .intro {
  max-width: 620px;
  color: #c2cbd4;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.65;
}

.nekobox-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 27px;
}

.nekobox-home-actions .primary-button,
.nekobox-home-actions .secondary-button {
  min-height: 52px;
  padding: 13px 20px;
  border-radius: 14px;
  font-weight: 800;
}

.nekobox-home-mark {
  display: grid;
  justify-items: center;
  gap: 11px;
  color: #dfe5eb;
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .23em;
}

.nekobox-home-mark img {
  width: clamp(130px, 18vw, 210px);
  height: clamp(130px, 18vw, 210px);
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 34px;
  object-fit: cover;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .34), 0 0 45px rgba(255, 128, 136, .14);
}

.nekobox-home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.app-rail-links .member-directory-button {
  position: relative;
  display: grid;
  flex: none;
  width: 52px;
  min-height: 52px;
  height: 52px;
  margin: auto;
  padding: 0;
  border-color: transparent;
  border-radius: 15px;
  background: transparent;
  font-size: 1.38rem;
}

.app-rail-links .member-directory-button .member-directory-icon {
  display: block;
  min-width: 0;
  height: auto;
  padding: 0;
  color: inherit;
  background: transparent;
  font-size: 1.3rem;
  line-height: 1;
}

.app-rail-links .member-directory-button #memberDirectoryCount:not([hidden]) {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border: 2px solid #171b22;
  color: #201518;
  background: var(--nekobox-pink);
  font-size: .62rem;
  font-weight: 900;
}

.nekobox-home-slider {
  margin-top: 28px;
}

.nekobox-home-slider-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 13px;
}

.nekobox-home-slider-heading .eyebrow {
  margin: 0 0 5px;
  color: var(--nekobox-pink);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .14em;
}

.nekobox-home-slider-heading h2 {
  margin: 0;
  color: #fff4e8;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.nekobox-home-slider-controls {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #c3ccd6;
  font-size: .82rem;
  font-variant-numeric: tabular-nums;
}

.nekobox-home-slider-controls button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--nekobox-line);
  border-radius: 12px;
  color: #fff3e4;
  background: rgba(25, 32, 42, .92);
  font-size: 1.2rem;
}

.nekobox-home-slider-controls button:hover {
  border-color: var(--nekobox-pink);
}

.nekobox-home-slide {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
  min-height: 300px;
  overflow: hidden;
  border: 1px solid rgba(164, 188, 211, .24);
  border-radius: 24px;
  background: linear-gradient(120deg, #1d2632, #171c25 68%, #25202a);
  box-shadow: 0 20px 54px rgba(0, 0, 0, .18);
}

.nekobox-home-slide-art {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  background: radial-gradient(ellipse at 60% 45%, rgba(255, 128, 136, .19), transparent 55%), #10151d;
}

.nekobox-home-slide-art::after {
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(0deg, rgba(9, 12, 18, .58), transparent);
  content: "";
  pointer-events: none;
}

.nekobox-home-slide-art img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}

.nekobox-home-slide-status {
  position: absolute;
  z-index: 1;
  top: 17px;
  left: 17px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(14, 18, 25, .82);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.nekobox-home-slide-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(23px, 4vw, 42px);
}

.nekobox-home-slide-copy .category {
  color: var(--nekobox-pink);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nekobox-home-slide-copy h3 {
  margin: 10px 0;
  color: #fff5e9;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  line-height: 1.05;
}

.nekobox-home-slide-copy p {
  max-width: 48ch;
  margin: 0;
  color: #c3ccd6;
  line-height: 1.6;
}

.nekobox-home-slide-cta {
  min-height: 43px;
  margin-top: 22px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 128, 136, .5);
  border-radius: 12px;
  color: #fff3e8;
  background: rgba(255, 128, 136, .14);
  font-weight: 800;
}

.nekobox-home-slide-cta:hover:not(:disabled) {
  background: rgba(255, 128, 136, .25);
}

.nekobox-home-slide-cta:disabled {
  color: #c2c7ce;
  border-color: rgba(148, 169, 190, .25);
  background: rgba(148, 169, 190, .09);
  cursor: default;
}

.nekobox-home-slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  min-height: 28px;
  margin-top: 12px;
}

.nekobox-home-slider-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #596474;
  cursor: pointer;
}

.nekobox-home-slider-dots button[aria-current="true"] {
  width: 25px;
  border-radius: 99px;
  background: var(--nekobox-pink);
}

.nekobox-home-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  min-height: 142px;
  padding: 22px;
  border: 1px solid var(--nekobox-line);
  border-radius: 21px;
  color: #edf0f2;
  background: linear-gradient(145deg, rgba(30, 38, 49, .95), rgba(22, 29, 39, .94));
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}

.nekobox-home-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 128, 136, .7);
  background: linear-gradient(145deg, rgba(43, 49, 61, .98), rgba(27, 35, 46, .98));
}

.nekobox-home-card-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(255, 128, 136, .34);
  border-radius: 16px;
  background: rgba(255, 128, 136, .1);
  font-size: 1.5rem;
}

.nekobox-home-card > span:nth-child(2) {
  display: grid;
  gap: 5px;
}

.nekobox-home-card small {
  font-size: .63rem;
}

.nekobox-home-card strong {
  font-size: 1.08rem;
}

.nekobox-home-card em {
  color: #aeb8c3;
  font-size: .84rem;
  font-style: normal;
  line-height: 1.45;
}

.nekobox-home-card > b {
  color: var(--nekobox-pink);
  font-size: 1.2rem;
}

.nekobox-home-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding: 0 4px;
  color: #aeb8c3;
  font-size: .88rem;
}

.nekobox-home-footer strong {
  color: #fff0dc;
}

body.nekobox-platform #profileScreen .profile-hero .eyebrow {
  color: var(--nekobox-pink);
}

body.nekobox-platform #profileScreen .profile-card-guest {
  display: none !important;
}

body.nekobox-platform #gamesScreen .games-heading h1 em {
  color: var(--nekobox-pink);
}

body.nekobox-platform #gamesHubPanel .game-card,
body.nekobox-platform #gamesHubPanel .game-card-word,
body.nekobox-platform #gamesHubPanel .game-card-blackjack,
body.nekobox-platform #gamesHubPanel .game-card-slots,
body.nekobox-platform #wordGamePanel,
body.nekobox-platform #wordMultiplayerPanel,
body.nekobox-platform #blackjackPanel,
body.nekobox-platform #catSlotsPanel {
  display: none !important;
}

body.nekobox-platform .games-list-heading,
body.nekobox-platform #gamesHubPanel {
  display: none !important;
}

.nekobox-game-launch-info {
  display: flex;
  align-items: center;
  gap: 17px;
  width: min(100%, 900px);
  margin: 0 auto;
  padding: 24px 28px;
  border: 1px solid rgba(255, 128, 136, .34);
  border-radius: 20px;
  color: #f1f3f5;
  background: linear-gradient(120deg, rgba(45, 37, 48, .96), rgba(28, 36, 47, .96));
}

.nekobox-game-launch-info > span {
  display: grid;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 15px;
  background: rgba(255, 128, 136, .13);
  font-size: 1.55rem;
}

.nekobox-game-launch-info strong {
  font-size: 1.08rem;
}

.nekobox-game-launch-info p {
  margin: 6px 0 0;
  color: #b9c1ca;
  line-height: 1.55;
}

.nekobox-storefront {
  width: min(100%, 1450px);
  margin: clamp(28px, 5vw, 64px) auto 36px;
  color: #f0f2f4;
}

.nekobox-storefront-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 19px;
}

.nekobox-storefront-heading .eyebrow {
  margin: 0 0 8px;
  color: var(--nekobox-pink);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .16em;
}

.nekobox-storefront-heading h2 {
  margin: 0;
  color: #fff2df;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -.045em;
}

.nekobox-storefront-heading p:last-child {
  max-width: 65ch;
  margin: 9px 0 0;
  color: #aeb8c3;
  line-height: 1.55;
}

.nekobox-catalog-count {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid var(--nekobox-line);
  border-radius: 999px;
  color: #c3ccd5;
  background: rgba(26, 34, 44, .8);
  font-size: .8rem;
}

.nekobox-catalog-status {
  margin: 14px 0;
  color: #b9c3cd;
  font-size: .9rem;
}

.nekobox-game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.nekobox-game-store-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(148, 169, 190, .22);
  border-radius: 19px;
  background: linear-gradient(150deg, rgba(31, 40, 52, .98), rgba(20, 27, 37, .98));
  box-shadow: 0 15px 35px rgba(0, 0, 0, .2);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.nekobox-game-store-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 128, 136, .65);
  box-shadow: 0 20px 45px rgba(0, 0, 0, .28);
}

.nekobox-game-store-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.nekobox-game-store-art {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #151b26;
}

.nekobox-game-store-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .28s ease;
}

.nekobox-game-store-card:hover .nekobox-game-store-art img {
  transform: scale(1.035);
}

.nekobox-game-store-platform {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 7px;
  color: #fff;
  background: rgba(13, 18, 25, .82);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.nekobox-game-store-copy {
  display: grid;
  gap: 8px;
  padding: 17px 18px 19px;
}

.nekobox-game-store-copy .category {
  color: var(--nekobox-pink);
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.nekobox-game-store-copy strong {
  color: #fff2df;
  font-size: 1.2rem;
}

.nekobox-game-store-copy .description {
  display: -webkit-box;
  overflow: hidden;
  color: #b6c0ca;
  font-size: .9rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.nekobox-game-store-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
  color: #8f9aa7;
  font-size: .75rem;
}

.nekobox-game-details {
  margin-top: 10px;
}

.nekobox-game-details > .back-link {
  margin-bottom: 22px;
}

.nekobox-game-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  overflow: hidden;
  border: 1px solid var(--nekobox-line);
  border-radius: 24px;
  background: linear-gradient(140deg, rgba(34, 42, 54, .98), rgba(19, 26, 36, .98));
}

.nekobox-game-detail-cover {
  min-height: 330px;
  background: #171d28;
}

.nekobox-game-detail-cover img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
}

.nekobox-game-detail-copy {
  align-self: center;
  padding: clamp(24px, 4vw, 46px);
}

.nekobox-game-detail-copy .eyebrow {
  color: var(--nekobox-pink);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.nekobox-game-detail-copy h2 {
  margin: 10px 0 12px;
  color: #fff2df;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: -.05em;
}

.nekobox-game-detail-copy p {
  color: #bcc6d0;
  line-height: 1.65;
}

.nekobox-game-detail-copy .primary-button {
  display: inline-flex;
  margin-top: 12px;
  text-decoration: none;
}

.nekobox-game-gallery {
  margin-top: 30px;
}

.nekobox-game-gallery h3 {
  margin: 0 0 13px;
  color: #fff2df;
  font-size: 1.25rem;
}

.nekobox-game-gallery-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(148, 169, 190, .25);
  border-radius: 18px;
  background: #151b25;
}

.nekobox-game-gallery-main img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #080b12;
}

.nekobox-game-gallery-caption {
  align-self: center;
  padding: 20px;
  color: #aeb8c3;
  font-size: .88rem;
  line-height: 1.55;
}

.nekobox-game-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
  margin-top: 12px;
}

.nekobox-game-gallery-thumbs button {
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 11px;
  background: #151b25;
  cursor: pointer;
}

.nekobox-game-gallery-thumbs button[aria-pressed="true"] {
  border-color: var(--nekobox-pink);
}

.nekobox-game-gallery-thumbs img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.nekobox-catalog-empty {
  padding: 24px;
  border: 1px dashed rgba(148, 169, 190, .3);
  border-radius: 16px;
  color: #b4bfca;
}

body.nekobox-platform #nekoSensei {
  display: none !important;
}

@media (max-width: 900px) {
  .nekobox-home-hero { min-height: 310px; }
  .nekobox-home-grid { grid-template-columns: 1fr; }
  .nekobox-home-card { min-height: 112px; }
  .nekobox-home-slide { grid-template-columns: minmax(0, 1fr) minmax(230px, .82fr); }
}

@media (max-width: 620px) {
  .nekobox-home { padding: 15px 12px 28px; }
  .nekobox-home-hero { grid-template-columns: 1fr; gap: 20px; padding: 27px 22px; border-radius: 22px; }
  .nekobox-home-copy h1 { font-size: clamp(2.65rem, 13vw, 4.2rem); }
  .nekobox-home-mark { display: none; }
  .nekobox-home-slide { grid-template-columns: 1fr; }
  .nekobox-home-slide-art, .nekobox-home-slide-art img { min-height: 210px; max-height: 240px; }
  .nekobox-home-slide-copy { padding: 22px; }
  .nekobox-home-slider-controls { gap: 6px; }
  .nekobox-home-slider-controls button { width: 34px; height: 34px; }
  .nekobox-home-actions { display: grid; }
  .nekobox-home-actions button { width: 100%; }
  .nekobox-home-card { grid-template-columns: 46px minmax(0, 1fr) auto; gap: 12px; padding: 17px 15px; border-radius: 17px; }
  .nekobox-home-card-icon { width: 44px; height: 44px; border-radius: 13px; font-size: 1.25rem; }
  .nekobox-game-launch-info { align-items: flex-start; padding: 18px 16px; border-radius: 16px; }
  .contact-top-button { flex-basis: 38px; width: 38px; height: 38px; }
  .nekobox-game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nekobox-game-detail-hero { grid-template-columns: 1fr; }
  .nekobox-game-detail-cover,.nekobox-game-detail-cover img { min-height: 0; }
  .nekobox-game-gallery-main { grid-template-columns: 1fr; }
  .nekobox-game-gallery-caption { padding: 14px; }
}

@media (max-width: 480px) {
  .nekobox-game-grid { grid-template-columns: 1fr; }
  .nekobox-storefront-heading { align-items: flex-start; }
  .nekobox-catalog-count { font-size: .7rem; }
  .nekobox-game-gallery-thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .nekobox-home-card { transition: none; }
  .nekobox-home-card:hover { transform: none; }
}
