/* 4igr — four worlds, four games a night.
   A skin for the shared portal; only body.site-4igr is touched. */

body.site-4igr {
  --cream: #F4EFE3;
  --cream-2: #EBE4D4;
  --cream-3: #DED3BE;
  --paper: #FFFDF7;
  --ink: #14141F;
  --ink-2: #2B2B3B;
  --muted: #6D6A78;
  --muted-2: #9B97A5;
  --line: #D9D0BD;
  --line-2: #C8BCA3;

  --w-think: #2F7BFF;
  --w-words: #8FD94A;
  --w-arcade: #C92E78;
  --w-it: #17BFA3;
  --accent: #FF7A2F;
  --sun: #FFC83D;

  --coral: #C92E78;
  --coral-deep: #A82060;
  --coral-soft: #FCE3EA;
  --violet: #2F7BFF;
  --violet-deep: #1E5FD6;
  --mint: #17BFA3;
  --sky: #2F7BFF;
  --pink: #C92E78;

  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-2xl: 34px;
  --hard: 4px 4px 0 var(--ink);
  --hard-lg: 8px 8px 0 var(--ink);

  color: var(--ink);
  background:
    radial-gradient(900px 620px at 102% -8%, rgba(61, 107, 245, .09), transparent 60%),
    radial-gradient(760px 540px at -8% 18%, rgba(232, 48, 107, .07), transparent 60%),
    radial-gradient(700px 520px at 50% 104%, rgba(169, 214, 47, .07), transparent 60%),
    var(--cream);
}

body.site-4igr::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(20, 20, 31, .10) .7px, transparent .7px);
  background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .7), transparent 58%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .7), transparent 58%);
}

body.site-4igr ::selection { background: rgba(255, 200, 61, .55); color: var(--ink); }
body.site-4igr :focus-visible { outline: 3px solid var(--w-think); outline-offset: 3px; }
body.site-4igr .hero :focus-visible,
body.site-4igr .site-footer :focus-visible { outline-color: var(--sun); }

/* ---------- header ---------- */

body.site-4igr .site-header {
  background: rgba(20, 20, 31, .95);
  border-bottom: 1px solid rgba(255, 253, 247, .10);
  box-shadow: 0 10px 30px rgba(20, 20, 31, .20);
  color: var(--paper);
}

body.site-4igr .brand-name {
  color: var(--paper);
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -.06em;
}

body.site-4igr .brand-four { color: var(--accent); }

body.site-4igr .brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(255, 253, 247, .20), 0 8px 20px rgba(0, 0, 0, .35);
}

body.site-4igr .brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 13px;
}

body.site-4igr .brand:hover .brand-mark {
  transform: translateY(-1px) rotate(-3deg);
  box-shadow: 0 0 0 1px rgba(255, 253, 247, .24), 0 12px 24px rgba(0, 0, 0, .38);
}

body.site-4igr .nav a { color: rgba(255, 253, 247, .62); }
body.site-4igr .nav a:hover { color: var(--paper); background: rgba(255, 253, 247, .08); }
body.site-4igr .nav a.is-active {
  color: var(--ink);
  background: var(--sun);
  box-shadow: none;
}
body.site-4igr .mobile-nav a { color: rgba(255, 253, 247, .62); }
body.site-4igr .mobile-nav a:hover { color: var(--paper); }
body.site-4igr .mobile-nav a.is-active { color: var(--sun); }
body.site-4igr .mobile-nav { border-top-color: rgba(255, 253, 247, .10); }

body.site-4igr .search-field {
  border-color: rgba(255, 253, 247, .15);
  background: rgba(255, 253, 247, .07);
  box-shadow: none;
}
body.site-4igr .search-field:focus-within {
  border-color: var(--sun);
  box-shadow: 0 0 0 3px rgba(255, 200, 61, .16);
}
body.site-4igr .search-field input { color: var(--paper); }
body.site-4igr .search-field input::placeholder { color: rgba(255, 253, 247, .46); }
body.site-4igr .search-field kbd {
  background: rgba(255, 253, 247, .10);
  color: rgba(255, 253, 247, .56);
}
body.site-4igr .search-submit { color: rgba(255, 253, 247, .56); }
body.site-4igr .search-submit:hover { color: var(--ink); background: var(--sun); }
body.site-4igr .search-pop {
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: var(--hard-lg);
}
body.site-4igr .search-result:hover,
body.site-4igr .search-result:focus-visible { background: var(--cream); }
body.site-4igr .search-all { color: var(--w-think); }
body.site-4igr .search-all:hover { background: #E8EDFF; }
body.site-4igr .search-empty { color: var(--muted); }

body.site-4igr .random-btn {
  border: 2px solid var(--ink);
  background: var(--sun);
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(255, 253, 247, .16), 0 8px 20px rgba(255, 122, 47, .20);
}
body.site-4igr .random-btn:hover:not(:disabled) {
  background: #FFD766;
  box-shadow: 0 0 0 1px rgba(255, 253, 247, .22), 0 12px 26px rgba(255, 122, 47, .26);
}
body.site-4igr .random-btn .icon { color: var(--ink); }

/* ---------- hero ---------- */

body.site-4igr .hero { padding-top: 34px; }

body.site-4igr .hero-grid {
  grid-template-columns: minmax(0, 1.58fr) minmax(340px, .82fr);
  gap: 22px;
}

body.site-4igr .hero-card {
  min-height: 430px;
  padding: 38px 40px 34px;
  border: 2px solid var(--ink);
  border-radius: 28px;
  color: var(--paper);
  background:
    radial-gradient(560px 380px at 100% 0%, rgba(61, 107, 245, .34), transparent 62%),
    radial-gradient(460px 340px at 0% 110%, rgba(232, 48, 107, .22), transparent 62%),
    radial-gradient(380px 300px at 70% 110%, rgba(169, 214, 47, .10), transparent 62%),
    linear-gradient(145deg, #1B1C2B 0%, #101019 100%);
  box-shadow: 8px 8px 0 var(--ink), 0 30px 70px rgba(20, 20, 31, .22);
}

body.site-4igr .hero-card::before {
  border-color: rgba(255, 253, 247, .09);
  box-shadow: 0 0 0 42px rgba(255, 253, 247, .025), 0 0 0 96px rgba(255, 253, 247, .02);
}

body.site-4igr .hero-card::after {
  background: rgba(255, 122, 47, .14);
  filter: blur(2px);
}

body.site-4igr .hero-stripe {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 7px;
}
body.site-4igr .hero-stripe i:nth-child(1) { background: var(--w-think); }
body.site-4igr .hero-stripe i:nth-child(2) { background: var(--w-words); }
body.site-4igr .hero-stripe i:nth-child(3) { background: var(--w-arcade); }
body.site-4igr .hero-stripe i:nth-child(4) { background: var(--w-it); }

body.site-4igr .hero-bigfour {
  position: absolute;
  left: 33%;
  bottom: -92px;
  z-index: 0;
  color: transparent;
  font-family: var(--round);
  font-size: 330px;
  font-weight: 900;
  line-height: .7;
  letter-spacing: -.08em;
  -webkit-text-stroke: 1.5px rgba(255, 253, 247, .075);
  pointer-events: none;
  user-select: none;
}

body.site-4igr .hero-glow {
  background: rgba(255, 200, 61, .16);
}

body.site-4igr .hero-eyebrow {
  flex-wrap: wrap;
  row-gap: 4px;
  color: rgba(255, 253, 247, .62);
  letter-spacing: .16em;
}
body.site-4igr .hero-dot {
  background: var(--sun);
  box-shadow: 0 0 0 4px rgba(255, 200, 61, .16);
}

body.site-4igr .hero-title {
  margin: 16px 0 12px;
  font-size: clamp(40px, 3.8vw, 54px);
  color: var(--paper);
}

body.site-4igr .hero-text {
  color: rgba(255, 253, 247, .74);
  font-size: 15px;
}

body.site-4igr .hero-meta > span {
  border-color: rgba(255, 253, 247, .15);
  background: rgba(255, 253, 247, .08);
  color: rgba(255, 253, 247, .84);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .01em;
}
body.site-4igr .hero-meta .icon { color: rgba(255, 253, 247, .58); }
body.site-4igr .hero-meta .hero-brand-pill {
  border-color: var(--sun);
  background: var(--sun);
  color: var(--ink);
  font-weight: 800;
}
body.site-4igr .hero-meta .hero-brand-pill .icon { color: var(--ink); }

body.site-4igr .btn-coral {
  min-height: 48px;
  border: 2px solid var(--ink);
  background: var(--sun);
  color: var(--ink);
  box-shadow: 4px 4px 0 rgba(255, 253, 247, .26);
}
body.site-4igr .btn-coral:hover {
  background: #FFD766;
  box-shadow: 5px 5px 0 rgba(255, 253, 247, .32);
}
body.site-4igr .btn-glass {
  border: 2px solid rgba(255, 253, 247, .28);
  background: transparent;
  color: var(--paper);
}
body.site-4igr .btn-glass:hover { background: var(--paper); color: var(--ink); }
body.site-4igr .btn-glass .icon { color: var(--sun); }
body.site-4igr .btn-glass:hover .icon { color: var(--ink); }

body.site-4igr .hero-art-frame {
  padding: 7px;
  border: 2px solid var(--ink);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 10px 10px 0 rgba(0, 0, 0, .30);
  transform: rotate(2deg);
}
body.site-4igr .hero-card:hover .hero-art-frame { transform: rotate(0) translateY(-3px); }
body.site-4igr .hero-art-inner { border-radius: 14px; }
body.site-4igr .hero-pill {
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 var(--ink);
}
body.site-4igr .hero-pill .icon { color: var(--accent); }
body.site-4igr .hero-pill-top { right: -10px; top: 14px; }
body.site-4igr .hero-pill-bottom { left: -12px; bottom: 16px; }

/* the shared continue card is replaced by the nightly set */
body.site-4igr .continue-card { display: none !important; }

/* ---------- tonight ---------- */

body.site-4igr .tonight-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px;
  border: 2px solid var(--ink);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--ink);
}

body.site-4igr .tonight-head { padding-bottom: 4px; }

body.site-4igr .tonight-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
body.site-4igr .tonight-dot {
  width: 8px;
  height: 8px;
  flex: none;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 122, 47, .16);
}
body.site-4igr .tonight-sep { opacity: .45; }

body.site-4igr .tonight-title {
  margin-top: 8px;
  font-family: var(--round);
  font-size: clamp(28px, 2.5vw, 36px);
  font-weight: 900;
  line-height: .98;
  letter-spacing: -.055em;
}

body.site-4igr .tonight-sub {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}

body.site-4igr .tonight-list {
  display: grid;
  gap: 0;
  margin-top: 15px;
  padding: 0;
  list-style: none;
  border-top: 1px dashed var(--line-2);
}

body.site-4igr .tonight-row { list-style: none; border-bottom: 1px dashed var(--line-2); }

body.site-4igr .tonight-row > a {
  display: grid;
  grid-template-columns: 25px 58px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  min-height: 69px;
  padding: 8px 0;
}

body.site-4igr .tonight-index {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted-2);
}
body.site-4igr .tonight-row[data-world="think"] .tonight-index { color: var(--w-think); }
body.site-4igr .tonight-row[data-world="words"] .tonight-index { color: #6F8F12; }
body.site-4igr .tonight-row[data-world="arcade"] .tonight-index { color: var(--w-arcade); }
body.site-4igr .tonight-row[data-world="it"] .tonight-index { color: #0E8F7C; }

body.site-4igr .tonight-cover {
  width: 58px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--cream-2);
}
body.site-4igr .tonight-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body.site-4igr .tonight-cover.is-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  background: var(--sun);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  overflow-wrap: anywhere;
}

body.site-4igr .tonight-copy { min-width: 0; }
body.site-4igr .tonight-copy b {
  display: block;
  font-family: var(--round);
  font-size: 14.5px;
  font-weight: 850;
  line-height: 1.12;
  letter-spacing: -.025em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.site-4igr .tonight-copy em {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.site-4igr .tonight-arrow {
  color: var(--muted-2);
  font-size: 16px;
  line-height: 1;
  transition: transform .15s ease, color .15s ease;
}
body.site-4igr .tonight-row > a:hover .tonight-arrow {
  color: var(--ink);
  transform: translateX(3px);
}
body.site-4igr .tonight-row > a:hover .tonight-copy b { color: var(--w-think); }

body.site-4igr .tonight-row.is-skeleton {
  display: grid;
  grid-template-columns: 25px 58px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 69px;
  padding: 8px 0;
}
body.site-4igr .tonight-row.is-skeleton span {
  height: 11px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--cream-2) 25%, var(--paper) 50%, var(--cream-2) 75%);
  background-size: 200% 100%;
  animation: four-shimmer 1.5s linear infinite;
}
body.site-4igr .tonight-row.is-skeleton span:first-child { height: 8px; }
body.site-4igr .tonight-row.is-skeleton span:nth-child(2) { height: 43px; border-radius: 8px; }

@keyframes four-shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

body.site-4igr .tonight-empty {
  padding: 22px 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

body.site-4igr .tonight-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
}
body.site-4igr .tonight-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 800;
}
body.site-4igr .tonight-all .icon { width: 15px; height: 15px; color: var(--accent); }
body.site-4igr .tonight-all:hover { color: var(--w-think); }
body.site-4igr .tonight-resume {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 650;
  min-width: 0;
}
body.site-4igr .tonight-resume span {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.site-4igr .tonight-resume .icon { width: 14px; height: 14px; color: var(--w-think); }
body.site-4igr .tonight-resume:hover { color: var(--ink); }

/* ---------- section heads ---------- */

body.site-4igr .section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .18em;
}
body.site-4igr .section-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  background: var(--accent);
}
body.site-4igr .section-head h2,
body.site-4igr .about-copy h2 { letter-spacing: -.055em; }
body.site-4igr .section-note { color: var(--muted); }

/* ---------- worlds ---------- */

body.site-4igr .worlds {
  padding-top: 74px;
  scroll-margin-top: calc(102px + env(safe-area-inset-top));
}
body.site-4igr .worlds-head { margin-bottom: 24px; }

body.site-4igr .worlds-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

body.site-4igr .world-card {
  --wc: var(--w-think);
  position: relative;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--hard-lg);
  transition: transform .18s ease, box-shadow .18s ease;
}
body.site-4igr .world-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  background: var(--wc);
  z-index: 2;
}
body.site-4igr .world-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 11px 11px 0 var(--ink);
}
body.site-4igr .w-think { --wc: var(--w-think); }
body.site-4igr .w-words { --wc: var(--w-words); }
body.site-4igr .w-arcade { --wc: var(--w-arcade); }
body.site-4igr .w-it { --wc: var(--w-it); }

body.site-4igr .world-main {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 292px;
  padding: 24px 22px 18px;
}

body.site-4igr .world-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
}
body.site-4igr .world-num {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
}
body.site-4igr .world-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 13px;
  box-shadow: 2px 2px 0 var(--ink);
}
body.site-4igr .world-icon .icon { width: 23px; height: 23px; stroke-width: 1.7; }
body.site-4igr .w-think .world-icon { background: #E8EDFF; color: var(--w-think); }
body.site-4igr .w-words .world-icon { background: #F1F8D8; color: #6F8F12; }
body.site-4igr .w-arcade .world-icon { background: #FCE3EA; color: var(--w-arcade); }
body.site-4igr .w-it .world-icon { background: #DFF8F3; color: #0E8F7C; }

body.site-4igr .world-name {
  margin-top: 16px;
  font-family: var(--round);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}

body.site-4igr .world-desc {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
  text-wrap: pretty;
}

body.site-4igr .world-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
}
body.site-4igr .world-samples span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  background: var(--cream);
  color: var(--ink-2);
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1.2;
}
body.site-4igr .world-samples span:empty { display: none; }

body.site-4igr .world-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 15px;
  color: var(--muted);
  font-size: 11.5px;
}
body.site-4igr .world-foot b {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
}
body.site-4igr .world-go {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--ink);
  font-weight: 800;
  white-space: nowrap;
}
body.site-4igr .world-go .icon {
  width: 14px;
  height: 14px;
  color: var(--wc);
  transition: transform .15s ease;
}
body.site-4igr .world-card:hover .world-go .icon { transform: translateX(3px); }

body.site-4igr .worlds-note {
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
body.site-4igr .worlds-note b { color: var(--ink); }
body.site-4igr .worlds-note a {
  color: var(--w-it);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- profile strip ---------- */

body.site-4igr .profile-zone { padding-top: 24px; }

body.site-4igr .profile-card {
  border: 2px solid var(--ink);
  border-radius: 22px;
  background:
    radial-gradient(420px 260px at 100% 0%, rgba(255, 200, 61, .18), transparent 65%),
    radial-gradient(380px 240px at 0% 100%, rgba(61, 107, 245, .08), transparent 65%),
    var(--paper);
  box-shadow: 6px 6px 0 var(--ink);
}
body.site-4igr .profile-card::after {
  border-color: rgba(61, 107, 245, .16);
  box-shadow: 0 0 0 24px rgba(61, 107, 245, .04);
}
body.site-4igr .profile-kicker { color: var(--w-think); }
body.site-4igr .profile-level {
  border-radius: 14px;
  background: var(--w-think);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
body.site-4igr .profile-xp-track { background: var(--cream-3); }
body.site-4igr .profile-xp-track i { background: linear-gradient(90deg, var(--w-think), var(--w-it)); }
body.site-4igr .profile-block { border-left-color: var(--line); }
body.site-4igr .profile-twohour-track { background: var(--cream-3); }
body.site-4igr .profile-twohour-track i { background: linear-gradient(90deg, var(--accent), var(--sun)); }
body.site-4igr .profile-daily-count {
  background: #FCE3EA;
  color: var(--w-arcade);
}
body.site-4igr .profile-open {
  border: 2px solid var(--ink);
  background: var(--ink);
  box-shadow: 3px 3px 0 var(--w-arcade);
}
body.site-4igr .profile-open .icon { color: var(--sun); }

/* ---------- catalog ---------- */

body.site-4igr .catalog { padding-top: 70px; }

body.site-4igr .filter-chip {
  border: 1.5px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  font-weight: 750;
}
body.site-4igr .filter-chip:hover:not(:disabled) {
  border-color: var(--ink);
  background: var(--sun);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
}
body.site-4igr .filter-chip[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
  box-shadow: none;
  transform: translate(2px, 2px);
}
body.site-4igr .filter-chip[aria-pressed="true"] .n { color: rgba(255, 253, 247, .55); }
body.site-4igr .filter-chip[data-category="think"][aria-pressed="true"] { background: var(--w-think); }
body.site-4igr .filter-chip[data-category="words"][aria-pressed="true"] { background: var(--w-words); color: var(--ink); }
body.site-4igr .filter-chip[data-category="words"][aria-pressed="true"] .n { color: rgba(20, 20, 31, .55); }
body.site-4igr .filter-chip[data-category="arcade"][aria-pressed="true"] { background: var(--w-arcade); color: #fff; }
body.site-4igr .filter-chip[data-category="arcade"][aria-pressed="true"] .n { color: rgba(255, 255, 255, .60); }
body.site-4igr .filter-chip[data-category="it"][aria-pressed="true"] { background: var(--w-it); color: var(--ink); }
body.site-4igr .filter-chip[data-category="it"][aria-pressed="true"] .n { color: rgba(20, 20, 31, .55); }

body.site-4igr .catalog-search {
  border: 1.5px solid var(--ink);
  background: var(--paper);
  box-shadow: 2px 2px 0 var(--ink);
}
body.site-4igr .catalog-search:focus-within {
  border-color: var(--w-think);
  box-shadow: 0 0 0 3px rgba(61, 107, 245, .16);
}
body.site-4igr .catalog-search > .icon { color: var(--muted); }

body.site-4igr .fav-filter {
  border: 1.5px solid var(--ink);
  background: var(--paper);
  box-shadow: 2px 2px 0 var(--ink);
}
body.site-4igr .fav-filter:hover:not(:disabled) { background: var(--cream); transform: translate(-1px, -1px); }
body.site-4igr .fav-filter[aria-pressed="true"] {
  background: var(--w-arcade);
  border-color: var(--ink);
  color: #fff;
  box-shadow: none;
  transform: translate(2px, 2px);
}
body.site-4igr .clear-filters { color: var(--w-think); }

body.site-4igr .games-grid { gap: 20px; }

body.site-4igr .game-card {
  padding: 7px;
  border: 2px solid var(--ink);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: var(--hard);
  transition: transform .18s ease, box-shadow .18s ease;
}
body.site-4igr .game-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink);
}
body.site-4igr .game-card[data-world="think"]:hover { box-shadow: 7px 7px 0 var(--w-think); }
body.site-4igr .game-card[data-world="words"]:hover { box-shadow: 7px 7px 0 #6F8F12; }
body.site-4igr .game-card[data-world="arcade"]:hover { box-shadow: 7px 7px 0 var(--w-arcade); }
body.site-4igr .game-card[data-world="it"]:hover { box-shadow: 7px 7px 0 var(--w-it); }
body.site-4igr .game-cover { border-radius: 14px; }
body.site-4igr .game-title { font-size: 15.5px; }
body.site-4igr .game-title a:hover { color: var(--w-think); }
body.site-4igr .game-meta { color: var(--muted); }
body.site-4igr .badge-session {
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .02em;
}
body.site-4igr .badge-session::before { background: var(--accent); }
body.site-4igr .fav-btn {
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
}
body.site-4igr .fav-btn[aria-pressed="true"] { background: var(--w-arcade); color: #fff; }

body.site-4igr .four-dot {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 3;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--wc, var(--w-think));
  box-shadow: 0 0 0 2px var(--paper);
  pointer-events: none;
}
body.site-4igr .game-card[data-world="think"] { --wc: var(--w-think); }
body.site-4igr .game-card[data-world="words"] { --wc: var(--w-words); }
body.site-4igr .game-card[data-world="arcade"] { --wc: var(--w-arcade); }
body.site-4igr .game-card[data-world="it"] { --wc: var(--w-it); }

body.site-4igr .skeleton-card {
  border: 2px solid var(--line-2);
  border-radius: 22px;
  background: var(--paper);
}
body.site-4igr .skeleton-cover { border-radius: 14px; background: linear-gradient(90deg, var(--cream-2) 25%, var(--paper) 50%, var(--cream-2) 75%); background-size: 200% 100%; }
body.site-4igr .skeleton-line { background: var(--cream-2); }

body.site-4igr .catalog-empty,
body.site-4igr .catalog-error {
  border: 2px dashed var(--ink);
  border-radius: 22px;
  background: rgba(255, 253, 247, .8);
}
body.site-4igr .empty-icon,
body.site-4igr .error-icon { border: 1.5px solid var(--ink); background: var(--sun); color: var(--ink); border-radius: 14px; }
body.site-4igr .empty-action .btn,
body.site-4igr .error-action .btn { border: 2px solid var(--ink); background: var(--sun); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }

/* ---------- about ---------- */

body.site-4igr .about { padding-top: 76px; }

body.site-4igr .about-card {
  border: 2px solid var(--ink);
  border-radius: 30px;
  background:
    radial-gradient(520px 340px at 100% 0%, rgba(255, 200, 61, .20), transparent 62%),
    radial-gradient(420px 300px at 0% 100%, rgba(61, 107, 245, .08), transparent 62%),
    var(--paper);
  box-shadow: 8px 8px 0 var(--ink);
}
body.site-4igr .about-card::after { background: rgba(255, 122, 47, .16); }
body.site-4igr .about-copy p:last-child { color: var(--muted); }

body.site-4igr .about-facts { gap: 10px; }
body.site-4igr .about-facts li {
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  background: var(--cream);
  box-shadow: 2px 2px 0 var(--ink);
}
body.site-4igr .fact-icon {
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}
body.site-4igr .fact-think { background: #E8EDFF; color: var(--w-think); }
body.site-4igr .fact-words { background: #F1F8D8; color: #6F8F12; }
body.site-4igr .fact-arcade { background: #FCE3EA; color: var(--w-arcade); }
body.site-4igr .fact-it { background: #DFF8F3; color: #0E8F7C; }
body.site-4igr .about-facts b { letter-spacing: -.02em; }
body.site-4igr .about-facts em { color: var(--muted); }

/* ---------- footer ---------- */

body.site-4igr .site-footer {
  margin-top: 82px;
  border-radius: 32px 32px 0 0;
  background:
    radial-gradient(800px 460px at 92% -10%, rgba(61, 107, 245, .24), transparent 62%),
    radial-gradient(620px 380px at 0% 110%, rgba(232, 48, 107, .16), transparent 60%),
    var(--ink);
}

body.site-4igr .footer-stripe {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 8px;
}
body.site-4igr .footer-stripe i:nth-child(1) { background: var(--w-think); }
body.site-4igr .footer-stripe i:nth-child(2) { background: var(--w-words); }
body.site-4igr .footer-stripe i:nth-child(3) { background: var(--w-arcade); }
body.site-4igr .footer-stripe i:nth-child(4) { background: var(--w-it); }

body.site-4igr .footer-inner { padding-top: 40px; }
body.site-4igr .brand-footer .brand-name { color: var(--paper); }
body.site-4igr .brand-footer .brand-mark { box-shadow: 0 0 0 1px rgba(255, 253, 247, .18), 0 8px 20px rgba(0, 0, 0, .28); }
body.site-4igr .footer-brand p { color: rgba(255, 253, 247, .62); }
body.site-4igr .footer-status {
  border-color: rgba(255, 253, 247, .14);
  background: rgba(255, 253, 247, .07);
  color: rgba(255, 253, 247, .66);
}
body.site-4igr .status-dot { background: var(--w-it); box-shadow: 0 0 0 3px rgba(22, 191, 164, .16); }
body.site-4igr .footer-directory { border-top-color: rgba(255, 253, 247, .13); }
body.site-4igr .footer-games a { color: rgba(255, 253, 247, .70); }
body.site-4igr .footer-games a:hover { color: var(--paper); }
body.site-4igr .footer-dir-head a { color: rgba(255, 253, 247, .58); }
body.site-4igr .footer-dir-head a:hover { color: var(--paper); }
body.site-4igr .footer-bottom { border-top-color: rgba(255, 253, 247, .11); color: rgba(255, 253, 247, .44); }

/* ---------- dialogs ---------- */

body.site-4igr .howto-card,
body.site-4igr .profile-dialog-card {
  border: 2px solid var(--ink);
  background:
    radial-gradient(520px 320px at 100% 0%, rgba(255, 200, 61, .14), transparent 62%),
    var(--paper);
  box-shadow: 10px 10px 0 var(--ink), 0 40px 90px rgba(0, 0, 0, .35);
}
body.site-4igr .howto-kicker { color: var(--w-think); }
body.site-4igr .profile-panel { border: 1px solid var(--line-2); background: var(--cream); }
body.site-4igr .profile-stat-grid > div { background: var(--paper); }
body.site-4igr .ach-item { background: var(--paper); }
body.site-4igr .ach-item.is-unlocked { border-color: var(--w-it); background: #E8FBF7; }
body.site-4igr .ach-item.is-unlocked .ach-mark { background: var(--w-it); }
body.site-4igr .howto-facts > div { background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
body.site-4igr .profile-dialog-foot { border-top-color: var(--line); }
body.site-4igr .profile-open .icon,
body.site-4igr .profile-dialog .profile-open .icon { color: var(--sun); }

/* ---------- responsive ---------- */

@media (max-width: 1180px) {
  body.site-4igr .hero-grid { grid-template-columns: 1fr; }
  body.site-4igr .tonight-card { min-height: 0; }
  body.site-4igr .tonight-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }
  body.site-4igr .worlds-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  body.site-4igr .hero-bigfour { display: none; }
  body.site-4igr .world-main { min-height: 0; }
}

@media (max-width: 820px) {
  body.site-4igr .hero-card { grid-template-columns: 1fr; padding: 32px 30px 30px; }
  body.site-4igr .hero-art { max-width: 330px; }
  body.site-4igr .tonight-list { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body.site-4igr .site-header { background: var(--ink); }
  body.site-4igr .brand-name { font-size: 27px; }
  body.site-4igr .worlds { padding-top: 56px; }
  body.site-4igr .worlds-grid { grid-template-columns: 1fr; }
  body.site-4igr .world-card { box-shadow: 5px 5px 0 var(--ink); }
  body.site-4igr .world-card:hover { box-shadow: 7px 7px 0 var(--ink); }
  body.site-4igr .hero-grid { gap: 18px; }
  body.site-4igr .catalog { padding-top: 56px; }
  body.site-4igr .about { padding-top: 58px; }
  body.site-4igr .site-footer { margin-top: 62px; border-radius: 24px 24px 0 0; }
}

@media (max-width: 560px) {
  body.site-4igr .hero { padding-top: 22px; }
  body.site-4igr .hero-card { padding: 26px 22px 24px; border-radius: 22px; box-shadow: 5px 5px 0 var(--ink); }
  body.site-4igr .hero-title { font-size: clamp(34px, 10vw, 42px); }
  body.site-4igr .hero-text { font-size: 14px; }
  body.site-4igr .hero-actions { gap: 8px; }
  body.site-4igr .hero-actions .btn { flex: 1 1 auto; }
  body.site-4igr .hero-art-frame { box-shadow: 7px 7px 0 rgba(0, 0, 0, .30); }
  body.site-4igr .tonight-card { padding: 20px; border-radius: 22px; box-shadow: 5px 5px 0 var(--ink); }
  body.site-4igr .tonight-row > a { grid-template-columns: 22px 52px minmax(0, 1fr) 16px; gap: 8px; min-height: 64px; }
  body.site-4igr .tonight-cover { width: 52px; }
  body.site-4igr .tonight-copy b { font-size: 13.5px; }
  body.site-4igr .tonight-copy em { font-size: 10.5px; }
  body.site-4igr .tonight-foot { flex-wrap: wrap; }
  body.site-4igr .world-main { padding: 22px 18px 16px; }
  body.site-4igr .world-name { font-size: 21px; }
  body.site-4igr .profile-card { padding: 18px; border-radius: 18px; box-shadow: 4px 4px 0 var(--ink); }
  body.site-4igr .game-card { padding: 6px; border-radius: 18px; }
  body.site-4igr .game-cover { border-radius: 12px; }
  body.site-4igr .game-title { font-size: 14.5px; }
  body.site-4igr .about-card { padding: 24px; border-radius: 22px; box-shadow: 5px 5px 0 var(--ink); }
  body.site-4igr .footer-inner { padding-top: 34px; }
}

@media (max-width: 400px) {
  body.site-4igr .hero-card { padding: 22px 18px; }
  body.site-4igr .tonight-card { padding: 17px; }
  body.site-4igr .tonight-row > a { grid-template-columns: 18px 46px minmax(0, 1fr) 14px; gap: 7px; }
  body.site-4igr .tonight-cover { width: 46px; }
  body.site-4igr .world-main { padding: 20px 16px 15px; }
}

@media (prefers-reduced-motion: reduce) {
  body.site-4igr .world-card,
  body.site-4igr .game-card,
  body.site-4igr .world-go .icon,
  body.site-4igr .tonight-arrow { transition: none; }
  body.site-4igr .tonight-row.is-skeleton span { animation: none; }
}
