/*
 * GameBosh Kids visual system.
 * Loaded after the MyArcade base stylesheet.
 */

:root {
  --gbk-purple: #6c4df6;
  --gbk-purple-dark: #4930b8;
  --gbk-coral: #ff5f7d;
  --gbk-orange: #ff9f43;
  --gbk-yellow: #ffd84d;
  --gbk-mint: #43d9a3;
  --gbk-sky: #36b8f4;
  --gbk-navy: #20234a;
  --gbk-text: #30335e;
  --gbk-muted: #72769d;
  --gbk-page: #fffaf3;
  --gbk-surface: #ffffff;
  --gbk-surface-soft: #f7f3ff;
  --gbk-border: #e9e4f5;
  --gbk-shadow: 0 20px 48px rgba(70, 54, 122, .13);
  --gbk-shadow-soft: 0 12px 30px rgba(70, 54, 122, .09);
  --gbk-radius-xl: 32px;
  --gbk-radius-lg: 24px;
  --gbk-radius: 18px;
  --gbk-shell: 1280px;
  --gbk-font: "Nunito", "Avenir Next", Avenir, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-gbk-theme="night"] {
  --gbk-navy: #f6f2ff;
  --gbk-text: #eae7ff;
  --gbk-muted: #b6b3d4;
  --gbk-page: #15152b;
  --gbk-surface: #20203b;
  --gbk-surface-soft: #292847;
  --gbk-border: #3a385e;
  --gbk-shadow: 0 20px 48px rgba(3, 3, 17, .34);
  --gbk-shadow-soft: 0 12px 30px rgba(3, 3, 17, .24);
}

html { scroll-behavior: smooth; }
body.gbkids-site {
  min-width: 320px;
  margin: 0 !important;
  overflow-x: hidden;
  background: var(--gbk-page) !important;
  color: var(--gbk-text) !important;
  font-family: var(--gbk-font) !important;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.gbkids-site *, .gbkids-site *::before, .gbkids-site *::after { box-sizing: border-box; }
.gbkids-site img { display: block; max-width: 100%; }
.gbkids-site a { color: inherit; text-decoration: none; }
.gbkids-site button, .gbkids-site input, .gbkids-site select, .gbkids-site textarea { font: inherit; }
.gbkids-site button { cursor: pointer; }
.gbkids-site h1, .gbkids-site h2, .gbkids-site h3, .gbkids-site h4 { color: var(--gbk-navy); font-family: var(--gbk-font); font-weight: 900; letter-spacing: -.025em; }
.gbkids-site h1 { font-size: clamp(2.25rem, 5vw, 4.9rem); line-height: 1.02; }
.gbkids-site h2 { font-size: clamp(1.75rem, 3vw, 2.75rem); line-height: 1.12; }
.gbkids-site h3 { font-size: 1.1rem; line-height: 1.25; }

.gbk-shell { width: min(calc(100% - 40px), var(--gbk-shell)); margin-inline: auto; }
.gbk-main { min-height: 56vh; }
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; width: 1px; overflow: hidden; position: absolute !important; white-space: nowrap; }
.screen-reader-text:focus, .gbk-skip-link:focus { clip: auto !important; clip-path: none; width: auto; height: auto; top: 12px; left: 12px; padding: 12px 16px; color: #fff; background: var(--gbk-purple-dark); border-radius: 12px; z-index: 100000; }
.gbk-skip-link { position: fixed; left: -9999px; }

.gbkids-site :focus-visible { outline: 4px solid var(--gbk-yellow); outline-offset: 3px; }

/* Header */
.gbk-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, .93);
  border-bottom: 1px solid rgba(108, 77, 246, .12);
  box-shadow: 0 8px 28px rgba(51, 39, 97, .08);
  backdrop-filter: blur(18px) saturate(145%);
  transition: transform .28s ease, box-shadow .28s ease;
}
html[data-gbk-theme="night"] .gbk-header { background: rgba(28, 28, 53, .94); }
.gbk-header.is-compact { box-shadow: 0 12px 34px rgba(51, 39, 97, .14); }
.gbk-header__inner {
  width: min(calc(100% - 32px), var(--gbk-shell));
  min-height: 80px;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(230px, .8fr) minmax(300px, 1.25fr) auto;
  gap: 22px;
  align-items: center;
}
.gbk-brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.gbk-brand__logo { width: 126px; max-height: 66px; object-fit: contain; }
.gbk-brand__words { display: flex; flex-direction: column; min-width: 0; }
.gbk-brand__words strong { color: var(--gbk-navy); font-size: 1.05rem; line-height: 1.2; white-space: nowrap; }
.gbk-brand__words small { color: var(--gbk-muted); font-size: .73rem; font-weight: 800; white-space: nowrap; }
.gbk-search { min-width: 0; height: 48px; display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: center; padding: 5px 5px 5px 16px; background: var(--gbk-surface-soft); border: 2px solid transparent; border-radius: 999px; transition: border-color .2s ease, box-shadow .2s ease; }
.gbk-search:focus-within { border-color: var(--gbk-purple); box-shadow: 0 0 0 4px rgba(108, 77, 246, .13); }
.gbk-search svg { width: 20px; height: 20px; fill: none; stroke: var(--gbk-muted); stroke-width: 2; }
.gbk-search input { width: 100%; min-width: 0; border: 0 !important; outline: 0; padding: 0 !important; color: var(--gbk-text); background: transparent !important; box-shadow: none !important; }
.gbk-search button { min-height: 38px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--gbk-purple); color: #fff; font-weight: 900; }
.gbk-header__actions { display: flex; align-items: center; gap: 9px; }
.gbk-parent-link, .gbk-theme-toggle, .gbk-menu-toggle { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--gbk-border); border-radius: 14px; color: var(--gbk-navy); background: var(--gbk-surface); font-weight: 900; box-shadow: var(--gbk-shadow-soft); }
.gbk-parent-link { gap: 7px; padding: 0 13px; }
.gbk-theme-toggle, .gbk-menu-toggle { width: 44px; padding: 0; }
.gbk-menu-toggle { display: none; flex-direction: column; gap: 4px; }
.gbk-menu-toggle span:not(.screen-reader-text) { width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.gbk-menu-toggle[aria-expanded="true"] span:nth-last-child(3) { transform: translateY(6px) rotate(45deg); }
.gbk-menu-toggle[aria-expanded="true"] span:nth-last-child(2) { opacity: 0; }
.gbk-menu-toggle[aria-expanded="true"] span:nth-last-child(1) { transform: translateY(-6px) rotate(-45deg); }
.gbk-primary-nav { border-top: 1px solid var(--gbk-border); background: var(--gbk-surface); }
.gbk-primary-nav > ul { width: min(calc(100% - 40px), var(--gbk-shell)); min-height: 48px; margin: 0 auto; padding: 0; display: flex; align-items: center; justify-content: center; gap: 8px; list-style: none; }
.gbk-primary-nav li { position: relative; margin: 0; }
.gbk-primary-nav a { display: inline-flex; align-items: center; min-height: 38px; padding: 5px 14px; border-radius: 12px; color: var(--gbk-text); font-size: .9rem; font-weight: 900; }
.gbk-primary-nav a:hover, .gbk-primary-nav .current-menu-item > a { color: var(--gbk-purple); background: var(--gbk-surface-soft); }
.gbk-primary-nav .sub-menu { position: absolute; top: 100%; left: 0; min-width: 210px; display: none; padding: 9px; list-style: none; background: var(--gbk-surface); border: 1px solid var(--gbk-border); border-radius: 14px; box-shadow: var(--gbk-shadow); }
.gbk-primary-nav li:hover > .sub-menu, .gbk-primary-nav li:focus-within > .sub-menu { display: block; }
.gbk-primary-nav .sub-menu a { width: 100%; }
.gbk-category-rail { overflow: hidden; padding: 9px 0; background: linear-gradient(90deg, #6c4df6, #8b63f8 45%, #ff5f7d); }
.gbk-category-rail__track { width: min(calc(100% - 40px), var(--gbk-shell)); margin: auto; display: flex; gap: 9px; overflow-x: auto; scrollbar-width: none; }
.gbk-category-rail__track::-webkit-scrollbar { display: none; }
.gbk-category-rail a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 5px 13px; border: 1px solid rgba(255,255,255,.26); border-radius: 999px; color: #fff; background: rgba(255,255,255,.13); font-size: .82rem; font-weight: 900; }
.gbk-category-rail a:hover { background: #fff; color: var(--gbk-purple-dark); transform: translateY(-1px); }

/* Hero */
.gbk-hero { position: relative; isolation: isolate; overflow: hidden; padding: 78px 0 116px; color: #fff; background: linear-gradient(135deg, #5f45ec 0%, #7d57f6 46%, #bd64dc 72%, #ff7185 100%); }
.gbk-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(circle at 12% 13%, rgba(255,216,77,.3), transparent 18rem), radial-gradient(circle at 82% 16%, rgba(54,184,244,.28), transparent 22rem), radial-gradient(circle at 50% 112%, rgba(255,255,255,.26), transparent 30rem); }
.gbk-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .2; background-image: radial-gradient(circle, #fff 1.5px, transparent 1.5px); background-size: 34px 34px; mask-image: linear-gradient(90deg, #000, transparent 47%, #000); }
.gbk-hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(34px, 6vw, 80px); align-items: center; }
.gbk-hero__copy { position: relative; z-index: 2; }
.gbk-eyebrow { display: inline-flex; align-items: center; gap: 7px; color: var(--gbk-purple); font-size: .78rem; font-weight: 1000; letter-spacing: .12em; text-transform: uppercase; }
.gbk-hero .gbk-eyebrow { color: #fff; }
.gbk-hero h1 { max-width: 760px; margin: 16px 0 20px; color: #fff; text-wrap: balance; text-shadow: 0 10px 30px rgba(48, 29, 124, .23); }
.gbk-hero__copy > p { max-width: 680px; margin: 0 0 28px; color: rgba(255,255,255,.91); font-size: clamp(1.05rem, 1.6vw, 1.28rem); font-weight: 700; }
.gbk-hero-search { max-width: 660px; min-height: 62px; display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 7px; border-radius: 999px; background: #fff; box-shadow: 0 24px 52px rgba(44, 26, 118, .24); }
.gbk-hero-search input { width: 100%; min-width: 0; padding: 0 20px !important; border: 0 !important; outline: none; color: #3b3d66 !important; background: transparent !important; box-shadow: none !important; }
.gbk-hero-search button { padding: 0 23px; border: 0; border-radius: 999px; color: #fff; background: linear-gradient(135deg, var(--gbk-coral), #ff814a); font-weight: 1000; box-shadow: 0 10px 22px rgba(255,95,125,.32); }
.gbk-trust-row { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 11px 20px; color: rgba(255,255,255,.92); font-size: .88rem; font-weight: 800; }
.gbk-hero__art { position: relative; min-height: 480px; display: grid; place-items: center; }
.gbk-hero__art::before { content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.13); border: 2px dashed rgba(255,255,255,.23); animation: gbk-spin 30s linear infinite; }
.gbk-hero__art img { position: relative; width: min(90%, 520px); aspect-ratio: 1; object-fit: cover; border: 10px solid rgba(255,255,255,.3); border-radius: 42% 58% 58% 42% / 48% 43% 57% 52%; box-shadow: 0 30px 80px rgba(48,29,124,.3); transform: rotate(2deg); }
.gbk-hero__bubble { position: absolute; right: 2%; bottom: 8%; padding: 13px 18px; border-radius: 16px 16px 4px 16px; color: #49330a; background: var(--gbk-yellow); font-size: .9rem; font-weight: 1000; box-shadow: 0 16px 34px rgba(48,29,124,.2); animation: gbk-float 4s ease-in-out infinite; }
.gbk-float-shape { position: absolute; z-index: 2; display: grid; place-items: center; filter: drop-shadow(0 10px 15px rgba(48,29,124,.25)); animation: gbk-float 5s ease-in-out infinite; }
.gbk-float-shape--star { top: 8%; left: 0; width: 74px; height: 74px; color: #fff; background: var(--gbk-orange); border-radius: 24px; font-size: 2rem; transform: rotate(-12deg); }
.gbk-float-shape--puzzle { top: 17%; right: -2%; font-size: 4rem; animation-delay: -2.5s; }
.gbk-hero__wave { position: absolute; bottom: -1px; left: -2%; width: 104%; height: 72px; background: var(--gbk-page); clip-path: polygon(0 68%, 9% 55%, 18% 70%, 28% 42%, 39% 66%, 51% 44%, 64% 70%, 77% 45%, 90% 66%, 100% 50%, 100% 100%, 0 100%); }

/* Sections */
.gbk-section { padding: 76px 0; }
.gbk-section--categories { padding-top: 42px; }
.gbk-section--games { background: linear-gradient(180deg, transparent, var(--gbk-surface-soft) 18%, var(--gbk-surface-soft) 82%, transparent); }
.gbk-section-heading { margin-bottom: 30px; display: flex; justify-content: space-between; gap: 24px; align-items: end; }
.gbk-section-heading span { color: var(--gbk-coral); font-size: .76rem; font-weight: 1000; letter-spacing: .12em; text-transform: uppercase; }
.gbk-section-heading h2 { margin: 5px 0 0; }
.gbk-section-heading > a { flex: 0 0 auto; padding-bottom: 5px; color: var(--gbk-purple); font-weight: 1000; }
.gbk-category-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 14px; }
.gbk-category-card { min-height: 145px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 18px 10px; border: 1px solid var(--gbk-border); border-radius: 24px; background: var(--gbk-surface); box-shadow: var(--gbk-shadow-soft); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.gbk-category-card:hover { transform: translateY(-7px) rotate(-1deg); border-color: rgba(108,77,246,.3); box-shadow: var(--gbk-shadow); }
.gbk-category-card > span { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 9px; border-radius: 20px; background: #f1edff; font-size: 1.8rem; }
.gbk-category-card:nth-child(2n) > span { background: #fff1db; }
.gbk-category-card:nth-child(3n) > span { background: #e1f8f0; }
.gbk-category-card:nth-child(4n) > span { background: #ffe7ed; }
.gbk-category-card strong { color: var(--gbk-navy); font-size: .95rem; text-align: center; }
.gbk-category-card small { color: var(--gbk-muted); font-size: .72rem; font-weight: 800; }

/* Game cards */
.gbk-game-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.gbk-game-card { min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--gbk-border); border-radius: 22px; background: var(--gbk-surface); box-shadow: var(--gbk-shadow-soft); transition: transform .23s ease, box-shadow .23s ease, border-color .23s ease; }
.gbk-game-card:hover { transform: translateY(-7px); border-color: rgba(108,77,246,.3); box-shadow: var(--gbk-shadow); }
.gbk-game-card__media { position: relative; aspect-ratio: 4 / 3; display: block; overflow: hidden; background: linear-gradient(135deg, #efeaff, #ffedf1); }
.gbk-game-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.gbk-game-card:hover .gbk-game-card__media img { transform: scale(1.07); }
.gbk-game-card__placeholder { width: 100%; height: 100%; display: grid; place-items: center; font-size: 3.3rem; }
.gbk-game-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(24,20,65,.58)); opacity: .25; transition: opacity .2s ease; }
.gbk-game-card:hover .gbk-game-card__media::after { opacity: .75; }
.gbk-game-card__badge { position: absolute; z-index: 2; top: 10px; left: 10px; padding: 5px 10px; border-radius: 999px; color: #4b3500; background: var(--gbk-yellow); font-size: .68rem; font-weight: 1000; text-transform: uppercase; box-shadow: 0 8px 18px rgba(53,39,8,.15); }
.gbk-game-card__play { position: absolute; z-index: 2; left: 50%; top: 50%; width: 54px; height: 54px; display: grid; place-items: center; padding-left: 3px; border: 4px solid rgba(255,255,255,.65); border-radius: 50%; color: #fff; background: var(--gbk-coral); box-shadow: 0 12px 28px rgba(37,26,75,.3); opacity: 0; transform: translate(-50%,-44%) scale(.75); transition: opacity .2s ease, transform .2s ease; }
.gbk-game-card:hover .gbk-game-card__play, .gbk-game-card__media:focus-visible .gbk-game-card__play { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.gbk-game-card__body { padding: 14px 15px 15px; }
.gbk-game-card__body h3 { min-height: 2.55em; margin: 0 0 9px; display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.gbk-game-card__body h3 a:hover { color: var(--gbk-purple); }
.gbk-game-card__body p { margin: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; color: var(--gbk-muted); font-size: .68rem; font-weight: 800; }

.gbk-empty-state { padding: 55px 24px; border: 2px dashed rgba(108,77,246,.25); border-radius: var(--gbk-radius-xl); text-align: center; background: var(--gbk-surface); }
.gbk-empty-state > span { display: block; margin-bottom: 8px; font-size: 3rem; }
.gbk-empty-state h2, .gbk-empty-state h3 { margin: 4px 0 8px; }
.gbk-empty-state p { max-width: 680px; margin: 0 auto 20px; color: var(--gbk-muted); }

/* Value and FAQ */
.gbk-section--value { position: relative; overflow: hidden; }
.gbk-section--value::before { content: ""; position: absolute; inset: 18% auto auto -90px; width: 230px; height: 230px; border-radius: 50%; background: rgba(67,217,163,.13); filter: blur(4px); }
.gbk-value-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 95px); align-items: center; }
.gbk-value-copy h2 { margin: 12px 0 18px; }
.gbk-value-copy p { margin-bottom: 25px; color: var(--gbk-muted); font-size: 1.08rem; }
.gbk-button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; border: 0; border-radius: 15px; color: #fff !important; background: linear-gradient(135deg, var(--gbk-purple), #8c62f8); font-weight: 1000; box-shadow: 0 14px 30px rgba(108,77,246,.24); }
.gbk-button:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(108,77,246,.3); }
.gbk-benefit-cards { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 17px; }
.gbk-benefit-cards article { min-height: 180px; padding: 25px; border: 1px solid var(--gbk-border); border-radius: 26px; background: var(--gbk-surface); box-shadow: var(--gbk-shadow-soft); }
.gbk-benefit-cards article:nth-child(2), .gbk-benefit-cards article:nth-child(4) { transform: translateY(24px); }
.gbk-benefit-cards span { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 18px; background: #efeaff; font-size: 1.55rem; }
.gbk-benefit-cards article:nth-child(2) span { background: #fff0d9; }
.gbk-benefit-cards article:nth-child(3) span { background: #e1f8f0; }
.gbk-benefit-cards article:nth-child(4) span { background: #ffe7ed; }
.gbk-benefit-cards h3 { margin: 13px 0 4px; font-size: 1.18rem; }
.gbk-benefit-cards p { margin: 0; color: var(--gbk-muted); font-size: .88rem; }
.gbk-section--faq { background: var(--gbk-surface-soft); }
.gbk-faq-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(35px, 7vw, 90px); }
.gbk-faq-grid h2 { margin: 12px 0; }
.gbk-faq-grid > div:first-child p { color: var(--gbk-muted); }
.gbk-accordion { display: grid; gap: 12px; }
.gbk-accordion details { overflow: hidden; border: 1px solid var(--gbk-border); border-radius: 18px; background: var(--gbk-surface); box-shadow: var(--gbk-shadow-soft); }
.gbk-accordion summary { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 18px; color: var(--gbk-navy); font-weight: 900; cursor: pointer; list-style: none; }
.gbk-accordion summary::-webkit-details-marker { display: none; }
.gbk-accordion summary span { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: var(--gbk-purple); background: var(--gbk-surface-soft); font-size: 1.2rem; transition: transform .2s ease; }
.gbk-accordion details[open] summary span { transform: rotate(45deg); }
.gbk-accordion details p { margin: 0; padding: 0 18px 18px; color: var(--gbk-muted); }

/* Ads */
.gbk-ad { width: min(calc(100% - 40px), 970px); min-height: 110px; margin: 40px auto; padding: 28px 16px 16px; position: relative; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--gbk-border); border-radius: 18px; background: var(--gbk-surface); }
.gbk-ad > span { position: absolute; top: 7px; left: 50%; transform: translateX(-50%); color: var(--gbk-muted); font-size: .62rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

/* Internal page, archive and prose */
.gbk-archive, .gbk-content-page, .gbk-game-page { padding-top: 52px; padding-bottom: 88px; }
.gbk-page-hero { max-width: 900px; margin: 0 0 42px; }
.gbk-page-hero h1 { margin: 12px 0 13px; font-size: clamp(2.3rem,5vw,4.4rem); }
.gbk-page-hero > p, .gbk-page-hero__description { color: var(--gbk-muted); font-size: 1.06rem; }
.gbk-breadcrumb { margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 7px; align-items: center; color: var(--gbk-muted); font-size: .78rem; font-weight: 800; }
.gbk-breadcrumb a:hover { color: var(--gbk-purple); }
.gbk-prose { color: var(--gbk-text); font-size: 1rem; }
.gbk-content-page > .gbk-prose { max-width: 860px; padding: clamp(24px,5vw,54px); border: 1px solid var(--gbk-border); border-radius: var(--gbk-radius-xl); background: var(--gbk-surface); box-shadow: var(--gbk-shadow-soft); }
.gbk-prose h2 { margin: 1.8em 0 .55em; font-size: 1.65rem; }
.gbk-prose h3 { margin: 1.5em 0 .5em; }
.gbk-prose p, .gbk-prose ul, .gbk-prose ol { margin: 0 0 1.05em; }
.gbk-prose ul, .gbk-prose ol { padding-left: 1.35em; }
.gbk-prose a { color: var(--gbk-purple); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.gbk-prose img { border-radius: 18px; }
.gbk-post-hero { max-width: 920px; margin-bottom: 30px; overflow: hidden; border-radius: 28px; }
.gbk-guide-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.gbk-guide-card { overflow: hidden; border: 1px solid var(--gbk-border); border-radius: 24px; background: var(--gbk-surface); box-shadow: var(--gbk-shadow-soft); }
.gbk-guide-card > a img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.gbk-guide-card > div { padding: 22px; }
.gbk-guide-card span { color: var(--gbk-coral); font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.gbk-guide-card h2 { margin: 7px 0 10px; font-size: 1.35rem; }
.gbk-guide-card p { color: var(--gbk-muted); }
.gbk-guide-card > div > a { color: var(--gbk-purple); font-weight: 900; }
.gbk-pagination { margin-top: 46px; }
.gbk-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.gbk-pagination .page-numbers { min-width: 42px; min-height: 42px; display: inline-grid; place-items: center; padding: 7px 12px; border: 1px solid var(--gbk-border); border-radius: 12px; background: var(--gbk-surface); font-weight: 900; }
.gbk-pagination .current { color: #fff; border-color: var(--gbk-purple); background: var(--gbk-purple); }

/* Game page */
.gbk-game-heading { margin-bottom: 24px; }
.gbk-game-heading > div { display: flex; justify-content: space-between; gap: 24px; align-items: end; }
.gbk-game-heading h1 { margin: 8px 0 0; font-size: clamp(2rem,4.2vw,3.7rem); }
.gbk-game-heading__badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.gbk-game-heading__badges span { padding: 7px 12px; border: 1px solid var(--gbk-border); border-radius: 999px; color: var(--gbk-text); background: var(--gbk-surface); font-size: .76rem; font-weight: 900; box-shadow: var(--gbk-shadow-soft); }
.gbk-game-stage { overflow: hidden; border: 1px solid #343459; border-radius: 28px; background: #121225; box-shadow: 0 26px 70px rgba(23,20,62,.25); }
.gbk-game-stage__screen { position: relative; width: 100%; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; background: #0d0d1d; }
.gbk-game-stage__screen::before { content: "Loading game…"; position: absolute; color: rgba(255,255,255,.55); font-weight: 900; }
.gbk-game-stage__screen #myarcade_game, .gbk-game-stage__screen .game-play { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; display: block !important; margin: 0 !important; background: #0d0d1d; }
.gbk-game-stage__screen iframe, .gbk-game-stage__screen embed, .gbk-game-stage__screen object, .gbk-game-stage__screen canvas, .gbk-game-stage__screen ruffle-player { width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; display: block !important; border: 0 !important; }
.gbk-game-stage__error { position: absolute; inset: 0; display: grid; place-items: center; padding: 30px; color: #fff; text-align: center; }
.gbk-game-toolbar { min-height: 62px; display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 10px 16px 10px 22px; color: #fff; background: linear-gradient(90deg, #272742, #36345a); }
.gbk-game-toolbar > strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gbk-game-toolbar > div { display: flex; gap: 8px; }
.gbk-game-toolbar button, .gbk-game-toolbar a { min-height: 39px; display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border: 1px solid rgba(255,255,255,.15); border-radius: 11px; color: #fff; background: rgba(255,255,255,.08); font-size: .78rem; font-weight: 900; }
.gbk-game-toolbar button:hover, .gbk-game-toolbar a:hover { background: var(--gbk-purple); }
.gbk-game-stage:fullscreen { width: 100vw; height: 100vh; border-radius: 0; display: grid; grid-template-rows: 1fr auto; }
.gbk-game-stage:fullscreen .gbk-game-stage__screen { width: 100%; height: 100%; aspect-ratio: auto; }
.gbk-iframe-note { max-width: 900px; margin: 16px auto 0; color: var(--gbk-muted); font-size: .78rem; text-align: center; }
.gbk-game-info-grid { margin-top: 42px; display: grid; grid-template-columns: 1.3fr .7fr; gap: 22px; align-items: start; }
.gbk-info-card { position: relative; padding: clamp(24px,4vw,38px); border: 1px solid var(--gbk-border); border-radius: 28px; background: var(--gbk-surface); box-shadow: var(--gbk-shadow-soft); }
.gbk-info-card h2 { margin: 0 0 18px; padding-left: 58px; font-size: 1.65rem; }
.gbk-info-card__icon { position: absolute; left: 28px; top: 28px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 15px; background: var(--gbk-surface-soft); font-size: 1.3rem; }
.gbk-info-card dl { margin: 24px 0 0; display: grid; gap: 9px; }
.gbk-info-card dl div { display: flex; justify-content: space-between; gap: 15px; padding: 10px 0; border-top: 1px solid var(--gbk-border); }
.gbk-info-card dt { color: var(--gbk-muted); font-size: .78rem; font-weight: 800; }
.gbk-info-card dd { margin: 0; color: var(--gbk-navy); font-size: .78rem; font-weight: 900; text-align: right; }
.gbk-related { margin-top: 58px; }

/* Contact */
.gbk-contact-form { position: relative; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.gbk-contact-form__intro, .gbk-contact-form label:has(textarea), .gbk-contact-form__check, .gbk-contact-form > button { grid-column: 1 / -1; }
.gbk-contact-form label { display: grid; gap: 7px; color: var(--gbk-navy); font-size: .86rem; font-weight: 900; }
.gbk-contact-form input, .gbk-contact-form select, .gbk-contact-form textarea { width: 100%; padding: 12px 14px !important; border: 1px solid var(--gbk-border) !important; border-radius: 13px; color: var(--gbk-text); background: var(--gbk-surface-soft) !important; }
.gbk-contact-form textarea { resize: vertical; }
.gbk-contact-form__check { display: flex !important; grid-template-columns: auto 1fr; align-items: center; }
.gbk-contact-form__check input { width: 20px; }
.gbk-contact-form > button { min-height: 48px; border: 0; border-radius: 14px; color: #fff; background: var(--gbk-purple); font-weight: 1000; }
.gbk-contact-form__trap { position: absolute !important; left: -9999px !important; }
.gbk-notice { margin-bottom: 22px; padding: 14px 16px; border-radius: 13px; font-weight: 800; }
.gbk-notice--success { color: #0f5b40; background: #dff8ee; }
.gbk-notice--error { color: #7b2436; background: #ffe5eb; }

/* 404 */
.gbk-error-page { min-height: 62vh; padding-top: 90px; padding-bottom: 90px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.gbk-error-page > div { display: flex; align-items: center; gap: 18px; color: var(--gbk-purple); }
.gbk-error-page > div span { font-size: 4rem; animation: gbk-float 4s ease-in-out infinite; }
.gbk-error-page > div strong { font-size: clamp(4rem,12vw,9rem); line-height: 1; }
.gbk-error-page h1 { max-width: 760px; margin: 10px 0; font-size: clamp(2rem,5vw,3.4rem); }
.gbk-error-page p { max-width: 620px; margin: 0 0 24px; color: var(--gbk-muted); }

/* Footer */
.gbk-footer { position: relative; overflow: hidden; padding-top: 90px; color: rgba(255,255,255,.8); background: #25254a; }
.gbk-footer__clouds { position: absolute; top: -2px; left: -3%; width: 106%; height: 70px; background: var(--gbk-page); clip-path: polygon(0 0,100% 0,100% 42%,92% 60%,83% 45%,72% 65%,61% 48%,49% 70%,38% 46%,26% 66%,14% 48%,0 67%); }
.gbk-footer__grid { padding: 45px 0 58px; display: grid; grid-template-columns: 1.5fr repeat(3,1fr); gap: 46px; }
.gbk-footer h2 { margin: 0 0 15px; color: #fff; font-size: 1rem; }
.gbk-footer ul { margin: 0; padding: 0; list-style: none; }
.gbk-footer li { margin: 7px 0; }
.gbk-footer a:hover { color: var(--gbk-yellow); }
.gbk-footer__brand img { width: 150px; margin-bottom: 14px; }
.gbk-footer__brand p { max-width: 350px; margin: 0 0 17px; }
.gbk-footer__parent-badge { display: inline-flex; padding: 8px 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; color: #fff; background: rgba(255,255,255,.07); font-size: .78rem; font-weight: 900; }
.gbk-footer__bottom { border-top: 1px solid rgba(255,255,255,.1); }
.gbk-footer__bottom .gbk-shell { min-height: 70px; display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.gbk-footer__bottom p { margin: 0; font-size: .75rem; }
.gbk-footer__bottom button { border: 0; color: #fff; background: transparent; font-size: .76rem; font-weight: 900; }

/* Compatibility: neutralise old theme wrappers when they appear. */
.gbkids-site .bdcn, .gbkids-site .cont { width: auto; max-width: none; margin: 0; padding: 0; }
.gbkids-site .main-cn { float: none; width: 100%; }
.gbkids-site #wpadminbar { display: block !important; }
.admin-bar .gbk-header { top: 32px; }

@keyframes gbk-float { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-13px) rotate(2deg); } }
@keyframes gbk-spin { to { transform: rotate(360deg); } }

@media (max-width: 1120px) {
  .gbk-header__inner { grid-template-columns: auto 1fr auto; gap: 14px; }
  .gbk-brand__words { display: none; }
  .gbk-parent-link span:last-child { display: none; }
  .gbk-category-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .gbk-game-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
}

@media (max-width: 820px) {
  .admin-bar .gbk-header { top: 46px; }
  .gbk-shell { width: min(calc(100% - 28px), var(--gbk-shell)); }
  .gbk-header__inner { min-height: 70px; grid-template-columns: auto 1fr auto; }
  .gbk-brand__logo { width: 104px; max-height: 54px; }
  .gbk-search { height: 44px; }
  .gbk-search button { display: none; }
  .gbk-menu-toggle { display: inline-flex; }
  .gbk-theme-toggle { display: none; }
  .gbk-primary-nav { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .3s ease, opacity .2s ease; }
  .gbk-primary-nav.is-open { max-height: 70vh; overflow-y: auto; opacity: 1; }
  .gbk-primary-nav > ul { width: calc(100% - 28px); display: grid; justify-content: stretch; gap: 3px; padding: 10px 0 15px; }
  .gbk-primary-nav a { width: 100%; }
  .gbk-primary-nav .sub-menu { position: static; display: block; min-width: 0; padding: 0 0 0 14px; border: 0; box-shadow: none; }
  .gbk-category-rail__track { width: calc(100% - 28px); }
  .gbk-hero { padding: 56px 0 105px; }
  .gbk-hero__grid { grid-template-columns: 1fr; text-align: center; }
  .gbk-hero__copy > p { margin-inline: auto; }
  .gbk-hero-search { margin-inline: auto; }
  .gbk-trust-row { justify-content: center; }
  .gbk-hero__art { min-height: 330px; }
  .gbk-hero__art img { width: min(76%, 390px); border-width: 7px; }
  .gbk-float-shape--star { left: 7%; }
  .gbk-float-shape--puzzle { right: 7%; }
  .gbk-section { padding: 58px 0; }
  .gbk-game-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
  .gbk-guide-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .gbk-value-grid, .gbk-faq-grid, .gbk-game-info-grid { grid-template-columns: 1fr; }
  .gbk-benefit-cards article:nth-child(2), .gbk-benefit-cards article:nth-child(4) { transform: none; }
  .gbk-faq-grid { gap: 30px; }
  .gbk-game-heading > div { display: grid; align-items: start; }
  .gbk-game-heading__badges { justify-content: flex-start; }
  .gbk-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
  .gbk-footer__grid > div:last-child { grid-column: 2 / 4; }
}

@media (max-width: 560px) {
  .gbk-header__inner { width: calc(100% - 20px); grid-template-columns: auto 1fr auto; gap: 8px; }
  .gbk-brand__logo { width: 92px; }
  .gbk-search { padding-left: 12px; grid-template-columns: 18px 1fr; }
  .gbk-parent-link { display: none; }
  .gbk-category-rail__track { width: calc(100% - 20px); }
  .gbk-hero { padding-top: 44px; }
  .gbk-hero h1 { font-size: clamp(2.35rem,13vw,3.6rem); }
  .gbk-hero-search { min-height: 56px; grid-template-columns: 1fr; padding: 6px; border-radius: 20px; }
  .gbk-hero-search input { min-height: 44px; text-align: center; }
  .gbk-hero-search button { min-height: 46px; border-radius: 15px; }
  .gbk-trust-row { display: grid; gap: 6px; }
  .gbk-hero__art { min-height: 280px; }
  .gbk-hero__art img { width: min(82%, 310px); }
  .gbk-hero__bubble { right: 0; bottom: 3%; }
  .gbk-float-shape--star { width: 54px; height: 54px; font-size: 1.45rem; }
  .gbk-float-shape--puzzle { font-size: 2.8rem; }
  .gbk-section-heading { align-items: start; }
  .gbk-section-heading > a { display: none; }
  .gbk-category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
  .gbk-category-card { min-height: 125px; }
  .gbk-game-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
  .gbk-guide-grid { grid-template-columns: 1fr; }
  .gbk-game-card { border-radius: 17px; }
  .gbk-game-card__body { padding: 11px; }
  .gbk-game-card__body h3 { font-size: .93rem; }
  .gbk-game-card__body p span:last-child { display: none; }
  .gbk-benefit-cards { grid-template-columns: 1fr; }
  .gbk-benefit-cards article { min-height: 0; }
  .gbk-game-stage { margin-inline: -14px; border-radius: 0; border-left: 0; border-right: 0; }
  .gbk-game-stage__screen { aspect-ratio: 4 / 3; }
  .gbk-game-toolbar { padding: 9px 10px; }
  .gbk-game-toolbar > strong { display: none; }
  .gbk-game-toolbar > div { width: 100%; justify-content: space-between; }
  .gbk-info-card h2 { padding-left: 0; padding-top: 52px; }
  .gbk-info-card__icon { left: 24px; top: 24px; }
  .gbk-contact-form { grid-template-columns: 1fr; }
  .gbk-contact-form__intro, .gbk-contact-form label:has(textarea), .gbk-contact-form__check, .gbk-contact-form > button { grid-column: auto; }
  .gbk-footer__grid { grid-template-columns: repeat(2,1fr); }
  .gbk-footer__brand { grid-column: 1 / -1; }
  .gbk-footer__grid > div:last-child { grid-column: auto; }
  .gbk-footer__bottom .gbk-shell { padding: 14px 0; display: grid; text-align: center; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
}

@media print {
  .gbk-header, .gbk-footer, .gbk-ad, .gbk-game-stage, .gbk-game-toolbar { display: none !important; }
  .gbkids-site { color: #000 !important; background: #fff !important; }
  .gbk-content-page > .gbk-prose, .gbk-info-card { border: 0; box-shadow: none; }
}
