/* ==========================================================================
   Kalaroko child theme
   Tokens → base → shared components → header/footer → desktop home (.kd)
   → mobile home (.km) → inner pages. Layout switch at 1024px.
   ========================================================================== */

:root {
	--kr-accent: #FFC531;
	--kr-bg: #14112B;
	--kr-tint: #1A1638;
	--kr-surface: #1E1942;
	--kr-surface-2: #221C4A;
	--kr-chip: #241E4D;
	--kr-iconbox: #2C2560;
	--kr-line: #2E2858;
	--kr-line-2: #4A4280;
	--kr-line-3: #5A5195;
	--kr-ink: #EDEAFB;
	--kr-white: #FFFFFF;
	--kr-soft: #C4BEE6;
	--kr-muted: #B7B1D9;
	--kr-coral: #FF6B4A;
	--kr-teal: #0E6B66;
	--kr-footer: #0E0C20;
	--kr-dark-ink: #14112B;
	--kr-display: 'Bricolage Grotesque', 'Arial Black', system-ui, sans-serif;
	--kr-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--kr-pad: clamp(20px, 5.5vw, 80px);
	--kr-radius: 24px;
}

/* ---------- Base (overrides Hello Elementor reset) ---------- */
html { scroll-padding-top: 90px; }
body.kr-theme {
	margin: 0;
	background: var(--kr-bg);
	color: var(--kr-ink);
	font-family: var(--kr-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
.kr-theme a { color: var(--kr-accent); text-decoration: none; }
.kr-theme a:hover { color: var(--kr-accent); filter: brightness(1.1); }
.kr-theme h1, .kr-theme h2, .kr-theme h3, .kr-theme h4 { color: var(--kr-white); margin: 0; font-family: var(--kr-display); }
.kr-theme p { margin: 0; }
.kr-theme img { max-width: 100%; height: auto; }
.kr-theme ul, .kr-theme ol { margin: 0; padding: 0; }
.kr-theme :focus-visible { outline: 3px solid var(--kr-accent); outline-offset: 3px; border-radius: 6px; }
.kr-theme [hidden] { display: none !important; }
html.kr-drawer-open { overflow: hidden; }

.kr-skip {
	position: absolute; left: 12px; top: -60px; z-index: 1000;
	padding: 10px 16px; border-radius: 10px;
	background: var(--kr-accent); color: var(--kr-dark-ink) !important; font-weight: 700;
}
.kr-skip:focus { top: 12px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

/* Layout switch (cache-safe: both layouts are in the HTML) */
.kr-only-mobile { display: none; }
@media (max-width: 1023.98px) {
	.kr-only-desktop { display: none !important; }
	.kr-only-mobile { display: block; }
	.kr-appbar.kr-only-mobile { display: flex; }
}

.kr-wrap {
	box-sizing: border-box;
	width: 100%;
	max-width: 1440px;
	margin-inline: auto;
	padding-inline: var(--kr-pad);
}
.kr-wrap--narrow { max-width: calc(760px + var(--kr-pad) * 2); }
.kr-wrap--mid { max-width: calc(1040px + var(--kr-pad) * 2); }

/* ---------- Shared components ---------- */
.kr-theme .kr-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 0 26px; box-sizing: border-box;
	border-radius: 999px; border: 1.5px solid transparent;
	font-family: var(--kr-body); font-weight: 700; font-size: 16px; line-height: 1.2;
	text-align: center; text-decoration: none; white-space: nowrap; cursor: pointer;
	transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.kr-theme .kr-btn:hover { filter: none; transform: translateY(-1px); }
.kr-theme .kr-btn:active { transform: translateY(0); }
.kr-theme .kr-btn--accent { background: var(--kr-accent); color: var(--kr-dark-ink); }
.kr-theme .kr-btn--accent:hover { color: var(--kr-dark-ink); background: var(--kr-accent); filter: brightness(1.06); }
.kr-theme .kr-btn--ghost { background: transparent; color: var(--kr-white); border-color: var(--kr-line-3); }
.kr-theme .kr-btn--ghost:hover { color: var(--kr-white); border-color: var(--kr-muted); background: rgba(255, 255, 255, .04); }
.kr-theme .kr-btn--dark { background: var(--kr-dark-ink); color: var(--kr-white); border-radius: 16px; }
.kr-theme .kr-btn--dark:hover { color: var(--kr-white); background: #221c46; }
.kr-theme .kr-btn--lg { min-height: 60px; padding: 0 34px; font-size: 18px; font-weight: 800; }
.kr-theme .kr-btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.kr-theme .kr-btn--xs { min-height: 44px; padding: 0 20px; font-size: 14px; }
.kr-theme .kr-btn--block { display: flex; width: 100%; }
.kr-btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.kr-btn-row--center { justify-content: center; }

.kr-pill {
	align-self: flex-start; display: inline-block;
	padding: 8px 16px; border-radius: 999px;
	background: var(--kr-chip); color: #CFC9F2;
	font-size: 14px; font-weight: 600; line-height: 1.3;
}
.kr-pill--sm { padding: 7px 13px; font-size: 12px; }
.kr-theme a.kr-pill { color: #CFC9F2; }

.kr-hl { color: var(--kr-accent); }

.kr-eyebrow {
	display: block; margin-bottom: 12px;
	font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
	color: var(--kr-accent);
}
.kr-theme .kr-h2 { font-weight: 800; font-size: clamp(40px, 3.9vw, 56px); line-height: 1.04; letter-spacing: -.03em; }
.kr-theme .kr-h2--sm { font-size: clamp(30px, 2.7vw, 38px); letter-spacing: -.02em; }
.kr-theme .kr-h2--xs { font-size: 34px; letter-spacing: -.01em; }
.kr-theme .kr-h3 { font-weight: 700; font-size: 24px; line-height: 1.2; }

.kr-card {
	display: flex; flex-direction: column; gap: 14px;
	padding: 32px; border-radius: var(--kr-radius);
	background: var(--kr-surface);
}
.kr-card p { color: var(--kr-muted); line-height: 1.6; }
.kr-card--outline { background: transparent; border: 1px solid var(--kr-line); }
.kr-card--lg { padding: 44px; border-radius: 28px; gap: 16px; }
.kr-card--lg p { font-size: 17px; line-height: 1.65; }
.kr-card--lg .kr-btn-row { margin-top: 8px; }
.kr-card--coral { background: var(--kr-coral); color: var(--kr-dark-ink); }
.kr-theme .kr-card--coral h2 { color: var(--kr-dark-ink); }
.kr-card--coral p { color: #2A1A18; }

.kr-icon-box {
	display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
	width: 52px; height: 52px; border-radius: 16px;
	background: var(--kr-iconbox); color: var(--kr-accent);
}
.kr-icon-box--lg { width: 56px; height: 56px; }
.kr-icon-box--sm { width: 44px; height: 44px; border-radius: 13px; }
.kr-icon-box--xs { width: 40px; height: 40px; border-radius: 12px; background: var(--kr-surface-2); }
.kr-icon-box--dark { background: var(--kr-dark-ink); color: #FF8A6E; }
.kr-accent-ico { display: inline-flex; color: var(--kr-accent); }

.kr-stepnum { font-family: var(--kr-display); font-weight: 800; font-size: 64px; line-height: 1; color: var(--kr-accent); }
.kr-stepnum--sm { font-size: 36px; }

.kr-tag {
	position: relative; z-index: 1; align-self: flex-start;
	padding: 5px 11px; border-radius: 999px;
	background: var(--kr-white); color: var(--kr-dark-ink);
	font-size: 12px; font-weight: 700; line-height: 1.3;
}
.kr-tag--sm { padding: 4px 9px; font-size: 11px; }

.kr-watermark {
	position: absolute; right: -8px; bottom: -.3em; z-index: 0;
	font-family: var(--kr-display); font-weight: 800; line-height: 1;
	color: var(--kr-white); opacity: .12; pointer-events: none; user-select: none;
}
.kr-tile-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }

.kr-theme .kr-textlink { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; min-height: 44px; }

.kr-rg-ico {
	display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
	width: 80px; height: 80px; border-radius: 24px; background: var(--kr-teal); color: var(--kr-white);
}
.kr-rg-ico--sm { width: 48px; height: 48px; border-radius: 15px; }

/* Filters */
.kr-filters { display: flex; flex-wrap: wrap; gap: 10px; }
.kr-theme .kr-filter {
	min-height: 44px; padding: 0 22px; border-radius: 999px;
	background: transparent; color: var(--kr-ink); border: 1.5px solid var(--kr-line-2);
	font-family: var(--kr-body); font-size: 15px; font-weight: 700; line-height: 1; cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.kr-theme .kr-filter:hover { background: rgba(255, 255, 255, .05); color: var(--kr-white); border-color: var(--kr-muted); }
.kr-theme .kr-filter.is-active,
.kr-theme .kr-filter.is-active:hover { background: var(--kr-accent); border-color: var(--kr-accent); color: var(--kr-dark-ink); }

/* FAQ (native details/summary) */
.kr-faq__item { border-bottom: 1px solid var(--kr-line); }
.kr-faq__item summary {
	display: flex; align-items: center; justify-content: space-between; gap: 20px;
	padding: 24px 0; cursor: pointer; list-style: none;
	font-family: var(--kr-display); font-weight: 700; font-size: 22px; line-height: 1.3; color: var(--kr-white);
}
.kr-faq__item summary::-webkit-details-marker { display: none; }
.kr-faq__sign {
	position: relative; flex-shrink: 0;
	width: 36px; height: 36px; border-radius: 999px; background: var(--kr-chip);
}
.kr-faq__sign::before, .kr-faq__sign::after {
	content: ''; position: absolute; left: 50%; top: 50%;
	width: 14px; height: 2px; margin: -1px 0 0 -7px; border-radius: 2px;
	background: var(--kr-accent); transition: transform .2s ease;
}
.kr-faq__sign::after { transform: rotate(90deg); }
.kr-faq__item[open] .kr-faq__sign::after { transform: rotate(0deg); }
.kr-faq__item p { padding: 0 60px 26px 0; font-size: 17px; line-height: 1.65; color: var(--kr-muted); }
.kr-faq--sm .kr-faq__item summary { padding: 16px 0; font-size: 17px; min-height: 28px; }
.kr-faq--sm .kr-faq__sign { width: 32px; height: 32px; }
.kr-faq--sm .kr-faq__item p { padding: 0 0 18px; font-size: 15px; line-height: 1.6; }

/* ---------- Brand ---------- */
.kr-theme .kr-brand { display: inline-flex; align-items: center; gap: 12px; color: #F4F1FF; }
.kr-brand__logo { display: block; height: 42px; width: auto; }
.kr-brand__badge {
	display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
	width: 42px; height: 42px; border-radius: 12px; background: var(--kr-accent);
	font-family: var(--kr-display); font-weight: 800; font-size: 24px; color: var(--kr-dark-ink); line-height: 1;
}
.kr-brand__badge--xs { width: 26px; height: 26px; border-radius: 8px; font-size: 15px; }
.kr-brand__name { font-family: var(--kr-display); font-weight: 800; font-size: 28px; letter-spacing: -.02em; line-height: 1; }

/* ---------- App bar (mobile, front page) ---------- */
.kr-appbar {
	align-items: center; gap: 12px;
	padding: 10px 8px 10px 16px; background: var(--kr-surface);
}
.kr-appbar__badge {
	display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
	width: 36px; height: 36px; border-radius: 10px; background: var(--kr-accent);
	font-family: var(--kr-display); font-weight: 800; font-size: 19px; color: var(--kr-dark-ink);
}
.kr-appbar__text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.kr-appbar__text strong { font-size: 14px; color: var(--kr-white); }
.kr-appbar__text span { font-size: 12px; color: var(--kr-muted); }
.kr-theme .kr-appbar__close {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; padding: 0; border: 0; border-radius: 999px;
	background: transparent; color: var(--kr-muted); cursor: pointer;
}
.kr-theme .kr-appbar__close:hover { background: rgba(255, 255, 255, .06); color: var(--kr-white); }

/* ---------- Header ---------- */
.kr-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(20, 17, 43, .94);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	border-bottom: 1px solid #2A2452;
}
.admin-bar .kr-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .kr-header { top: 0; } }
.kr-header__inner {
	box-sizing: border-box; max-width: 1440px; margin-inline: auto;
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	padding: 18px var(--kr-pad);
}
.kr-menu { display: flex; gap: clamp(20px, 2.5vw, 36px); list-style: none; }
.kr-theme .kr-menu a { color: var(--kr-ink); font-weight: 600; font-size: 16px; }
.kr-theme .kr-menu a:hover, .kr-theme .kr-menu .current-menu-item > a { color: var(--kr-accent); }
.kr-header__actions { display: flex; align-items: center; gap: 12px; }
.kr-theme .kr-burger {
	display: none; align-items: center; justify-content: center;
	width: 44px; height: 44px; padding: 0; border-radius: 12px;
	background: transparent; border: 1.5px solid var(--kr-line-2); color: var(--kr-white); cursor: pointer;
}
.kr-theme .kr-burger:hover { background: rgba(255, 255, 255, .06); color: var(--kr-white); }
.kr-drawer { border-top: 1px solid #2A2452; background: var(--kr-bg); }
.kr-drawer__menu { list-style: none; padding: 8px 16px 20px !important; }
.kr-theme .kr-drawer__menu a {
	display: flex; align-items: center; min-height: 52px;
	border-bottom: 1px solid var(--kr-line); color: var(--kr-white); font-weight: 700; font-size: 17px;
}

@media (max-width: 1023.98px) {
	.kr-header__nav { display: none; }
	.kr-theme .kr-burger { display: inline-flex; }
	.kr-header__inner { padding: 12px 16px; gap: 10px; }
	.kr-brand__badge { width: 32px; height: 32px; border-radius: 9px; font-size: 18px; }
	.kr-brand__name { font-size: 22px; }
	.kr-brand__logo { height: 34px; }
	.kr-theme .kr-brand { gap: 8px; }
	.kr-header__actions { gap: 8px; }
	.kr-theme .kr-header__actions .kr-btn--sm { padding: 0 14px; font-size: 14px; }
}
.kr-drawer__actions { display: none; }
@media (max-width: 439.98px) {
	.kr-theme .kr-header__actions .kr-btn--ghost { display: none; }
	.kr-drawer__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 16px 16px 0; }
}
@media (max-width: 359.98px) {
	.kr-brand__name { font-size: 19px; }
}

/* ---------- Footer ---------- */
.kr-footer { background: var(--kr-footer); padding: 56px 0 44px; }
.kr-footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }
.kr-footer__about { display: flex; flex-direction: column; gap: 14px; max-width: 380px; }
.kr-footer__about p { font-size: 15px; line-height: 1.6; color: #A9A3CC; }
.kr-footer .kr-brand__badge { width: 36px; height: 36px; border-radius: 10px; font-size: 20px; }
.kr-footer .kr-brand__name { font-size: 24px; color: var(--kr-white); }
.kr-footer__menu { display: grid; grid-template-columns: repeat(2, minmax(0, auto)); gap: 12px 64px; list-style: none; }
.kr-theme .kr-footer__menu a { color: #D6D1F2; font-weight: 600; font-size: 15px; }
.kr-theme .kr-footer__menu a:hover { color: var(--kr-accent); }
.kr-footer__bottom {
	display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
	margin-top: 36px; padding-top: 24px; border-top: 1px solid #2A2452;
	font-size: 14px; color: #A9A3CC;
}
@media (max-width: 1023.98px) {
	.kr-footer { padding: 36px 0 32px; }
	.kr-footer__top { flex-direction: column; gap: 24px; }
	.kr-footer__menu { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; width: 100%; }
	.kr-theme .kr-footer__menu a { font-size: 14px; display: inline-flex; min-height: 28px; align-items: center; }
	.kr-footer__bottom { flex-direction: column; gap: 6px; margin-top: 24px; padding-top: 18px; font-size: 13px; }
}

/* ==========================================================================
   Desktop homepage (.kd)
   ========================================================================== */
.kd-section { padding-top: 110px; padding-bottom: 90px; }

/* Hero */
.kd-hero { display: flex; align-items: center; gap: clamp(40px, 4.5vw, 64px); padding-top: 88px; padding-bottom: 80px; }
.kd-hero__copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.kr-theme .kd-hero__title { font-weight: 800; font-size: clamp(56px, 5.6vw, 80px); line-height: .98; letter-spacing: -.035em; }
.kd-hero__text { max-width: 540px; font-size: 20px; line-height: 1.55; color: var(--kr-soft); }
.kd-hero__login { font-size: 15px; color: var(--kr-muted); }
.kd-hero__login a { font-weight: 700; }
.kd-hero__tiles { width: clamp(420px, 39vw, 560px); flex-shrink: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.kr-theme .kd-htile {
	position: relative; overflow: hidden; box-sizing: border-box;
	display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
	height: 200px; padding: 22px; border-radius: 24px;
	background: var(--tile, #3B2F8F); color: var(--kr-white);
}
.kd-htile .kr-watermark { font-size: 130px; }
.kr-theme .kd-htile--feature { grid-column: span 2; height: 260px; padding: 28px; border-radius: 28px; justify-content: space-between; }
.kd-htile--feature .kr-watermark { font-size: 240px; right: -30px; bottom: -70px; opacity: .14; }
.kd-htile__tag { position: relative; z-index: 1; font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .85); }
.kd-htile__body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 6px; }
.kd-htile__name { font-family: var(--kr-display); font-weight: 800; font-size: 26px; line-height: 1.1; }
.kd-htile--feature .kd-htile__name { font-size: 40px; }
.kd-htile__text { font-size: 16px; color: #DAD4FF; }
.kd-htile:has(.kr-tile-img)::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 8, 26, .75), transparent 60%); }
.kd-htile .kd-htile__body, .kd-htile .kd-htile__tag, .kd-htile .kr-tag { z-index: 2; }

/* Perks */
.kd-perks {
	display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr));
	list-style: none; border: 1px solid var(--kr-line); border-radius: 20px; background: var(--kr-tint);
}
.kd-perks li { display: flex; align-items: center; gap: 12px; padding: 22px 24px; font-weight: 600; font-size: 15px; line-height: 1.3; }
.kd-perks li + li { border-left: 1px solid var(--kr-line); }

/* Section heads */
.kd-split-head { display: flex; align-items: flex-end; gap: 80px; margin-bottom: 48px; }
.kd-split-head > div { flex: 1; }
.kd-lead { flex: 1.3; font-size: 18px; line-height: 1.65; color: var(--kr-soft); }
.kd-row-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 36px; }
.kd-row-head .kr-textlink { flex-shrink: 0; }
.kd-sub { margin-top: 14px !important; font-size: 18px; color: var(--kr-soft); }
.kd-center-head { text-align: center; margin-bottom: 44px; }

/* Grids */
.kd-grid { display: grid; gap: 20px; list-style: none; }
.kd-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kd-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kd-grid .kr-card p { font-size: 16px; }

/* Games */
.kd-games { padding: 90px 0; background: var(--kr-tint); }
.kd-games .kr-filters { margin-bottom: 36px; }
.kd-game { display: flex; flex-direction: column; overflow: hidden; border-radius: 22px; background: var(--kr-surface-2); }
.kd-game__art {
	position: relative; overflow: hidden; box-sizing: border-box;
	display: flex; align-items: flex-start; height: 180px; padding: 16px;
	background: var(--tile, #3B2F8F);
}
.kd-game__art .kr-watermark { font-size: 150px; bottom: -40px; right: -10px; }
.kd-game__body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; }
.kr-theme .kd-game__name { font-weight: 700; font-size: 22px; line-height: 1.2; }
.kd-game__body p { flex: 1; font-size: 14px; line-height: 1.5; color: var(--kr-muted); }
.kd-game__body .kr-btn { align-self: flex-start; margin-top: 6px; }

/* Steps */
.kd-steps { display: flex; flex-direction: column; }
.kd-steps__list .kr-card { padding: 36px; gap: 12px; }
.kd-steps__list .kr-h3 { font-size: 26px; }
.kr-theme .kd-steps__cta { align-self: center; margin-top: 44px; }

/* App */
.kd-app {
	display: flex; align-items: center; gap: 60px; overflow: hidden;
	padding: 72px clamp(40px, 5.5vw, 80px); border-radius: 36px;
	background: var(--kr-accent); color: var(--kr-dark-ink);
}
.kd-app__copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.kd-app__eyebrow { font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.kr-theme .kd-app__title { color: var(--kr-dark-ink); font-weight: 800; font-size: clamp(44px, 4.2vw, 60px); line-height: 1; letter-spacing: -.03em; }
.kd-app__text { max-width: 520px; font-size: 19px; line-height: 1.6; color: #2A2350; }
.kd-app__note { font-size: 14px; font-weight: 600; color: #3A3263; }
.kd-app__shot { width: 300px; max-height: 520px; object-fit: contain; flex-shrink: 0; }
.kd-phone { width: 280px; height: 470px; flex-shrink: 0; box-sizing: border-box; padding: 14px; border-radius: 44px; background: var(--kr-dark-ink); }
.kd-phone__screen { height: 100%; box-sizing: border-box; display: flex; flex-direction: column; gap: 12px; padding: 22px 16px; border-radius: 32px; background: var(--kr-surface); overflow: hidden; }
.kd-phone__brand { display: flex; align-items: center; gap: 8px; font-family: var(--kr-display); font-weight: 800; font-size: 17px; color: var(--kr-white); }
.kd-phone__feature, .kd-phone__tile {
	display: flex; align-items: flex-end; box-sizing: border-box; background: var(--tile, #3B2F8F); color: var(--kr-white);
}
.kd-phone__feature { height: 120px; padding: 14px; border-radius: 18px; font-family: var(--kr-display); font-weight: 800; font-size: 19px; line-height: 1.1; }
.kd-phone__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kd-phone__tile { height: 96px; padding: 10px; border-radius: 14px; font-weight: 700; font-size: 12px; line-height: 1.25; }

/* Transactions + promos */
.kd-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding-top: 100px; }

/* Guides */
.kr-theme .kd-guide {
	display: flex; flex-direction: column; gap: 22px; box-sizing: border-box; min-height: 150px;
	padding: 26px; border-radius: 20px; background: var(--kr-surface); border: 1px solid var(--kr-line);
	color: var(--kr-white); transition: border-color .15s ease, transform .15s ease;
}
.kr-theme .kd-guide:hover { border-color: var(--kr-line-3); transform: translateY(-2px); color: var(--kr-white); filter: none; }
.kd-guide__tag { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--kr-accent); }
.kd-guide__title { flex: 1; font-family: var(--kr-display); font-weight: 700; font-size: 21px; line-height: 1.25; }
.kd-guide__more { font-size: 14px; font-weight: 600; color: var(--kr-muted); }

/* Responsible gaming */
.kd-rg { display: flex; align-items: center; gap: 36px; padding: 44px 52px; border-radius: 28px; border: 1.5px solid var(--kr-line); }
.kd-rg__copy { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.kd-rg__copy p { font-size: 17px; line-height: 1.6; color: var(--kr-muted); }
.kd-rg .kr-btn { flex-shrink: 0; }

/* FAQ */
.kd-faq { display: flex; gap: 80px; padding-bottom: 40px; }
.kd-faq__side { width: 420px; flex-shrink: 0; display: flex; flex-direction: column; gap: 16px; }
.kd-faq__side .kr-eyebrow { margin-bottom: 0; }
.kd-faq__side p { font-size: 17px; line-height: 1.6; color: var(--kr-muted); }
.kd-faq__side .kr-btn { align-self: flex-start; margin-top: 8px; }
.kd-faq .kr-faq { flex: 1; min-width: 0; }

/* Final CTA */
.kd-cta { display: flex; flex-direction: column; align-items: center; gap: 24px; padding-top: 110px; padding-bottom: 120px; text-align: center; }
.kr-theme .kd-cta__title { font-weight: 800; font-size: clamp(72px, 7.2vw, 104px); line-height: .95; letter-spacing: -.04em; }
.kd-cta p { font-size: 20px; color: var(--kr-soft); }

/* Narrower desktops */
@media (max-width: 1239.98px) {
	.kd-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.kd-perks li { padding: 18px 16px; font-size: 14px; }
	.kd-split-head { gap: 48px; }
	.kd-faq { gap: 48px; }
	.kd-faq__side { width: 340px; }
	.kd-app { gap: 40px; }
}

/* ==========================================================================
   Mobile homepage (.km)
   ========================================================================== */
.km-pad { padding-left: 20px; padding-right: 20px; }
.km-section { padding-top: 48px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 16px; }
.km-section .kr-eyebrow { font-size: 12px; margin-bottom: -6px; }
.km-tint { background: var(--kr-tint); }
.kr-theme .km-h2 { font-weight: 800; font-size: 36px; line-height: 1.05; letter-spacing: -.03em; }
.kr-theme .km-h2--sm { font-size: 28px; letter-spacing: -.01em; }
.kr-theme .km-h3 { font-weight: 700; font-size: 18px; line-height: 1.25; }
.km-sub { font-size: 15px; line-height: 1.6; color: var(--kr-soft); }
.km-stack { display: flex; flex-direction: column; gap: 10px; }
.km-list { display: flex; flex-direction: column; gap: 10px; list-style: none; }

/* Hero */
.km-hero { padding-top: 36px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 20px; }
.km-hero__title { font-family: var(--kr-display); font-weight: 800; font-size: clamp(40px, 11.8vw, 56px); line-height: 1; letter-spacing: -.035em; color: var(--kr-white); }
.km-hero__text { font-size: 16px; line-height: 1.55; color: var(--kr-soft); }
.km-hero__login { font-size: 14px; color: var(--kr-muted); text-align: center; }
.km-hero__login a { font-weight: 700; }
.km-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.kr-theme .km-htile {
	position: relative; overflow: hidden; box-sizing: border-box;
	display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
	height: 120px; padding: 14px; border-radius: 18px;
	background: var(--tile, #3B2F8F); color: var(--kr-white);
}
.km-htile .kr-watermark { font-size: 80px; }
.kr-theme .km-htile--feature { grid-column: span 2; height: 170px; padding: 18px; border-radius: 22px; justify-content: space-between; }
.km-htile--feature .kr-watermark { font-size: 160px; right: -16px; bottom: -44px; opacity: .14; }
.km-htile__tag { position: relative; z-index: 2; font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .85); }
.km-htile__name { position: relative; z-index: 2; font-family: var(--kr-display); font-weight: 800; font-size: 18px; line-height: 1.15; }
.km-htile--feature .km-htile__name { font-size: 28px; }
.km-htile:has(.kr-tile-img)::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 8, 26, .75), transparent 65%); }
.km-htile .kr-tag { z-index: 2; }

/* Chips */
.km-chips {
	display: flex; gap: 8px; list-style: none; overflow-x: auto; padding: 0 20px 8px !important;
	scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.km-chips::-webkit-scrollbar { display: none; }
.km-chips li {
	flex-shrink: 0; padding: 10px 14px; border-radius: 999px;
	background: var(--kr-surface); border: 1px solid var(--kr-line);
	font-size: 13px; font-weight: 600; white-space: nowrap;
}

/* Games */
.km-filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px; padding: 0 20px 2px; gap: 8px; scrollbar-width: none; }
.km-filters::-webkit-scrollbar { display: none; }
.kr-theme .km-filters .kr-filter { flex-shrink: 0; padding: 0 16px; font-size: 14px; }
.km-games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kr-theme .km-game { display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; background: var(--kr-surface-2); color: var(--kr-white); }
.kr-theme .km-game:hover { color: var(--kr-white); filter: none; }
.km-game__art { position: relative; overflow: hidden; box-sizing: border-box; display: flex; align-items: flex-start; height: 110px; padding: 10px; background: var(--tile, #3B2F8F); }
.km-game__art .kr-watermark { font-size: 96px; right: -6px; bottom: -26px; }
.km-game__body { display: flex; flex-direction: column; gap: 4px; padding: 12px 12px 14px; }
.km-game__name { font-family: var(--kr-display); font-weight: 700; font-size: 16px; line-height: 1.2; }
.km-game__play { font-size: 13px; font-weight: 700; color: var(--kr-accent); }

/* Features + steps */
.km-feature { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 18px; background: var(--kr-surface-2); }
.km-feature > div, .km-step > div { display: flex; flex-direction: column; gap: 4px; }
.km-feature p, .km-step p { font-size: 14px; line-height: 1.5; color: var(--kr-muted); }
.km-step { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border-radius: 18px; border: 1px solid var(--kr-line); }
.km-steps { margin-bottom: 4px !important; }

/* App */
.km-app {
	display: flex; flex-direction: column; gap: 16px;
	margin: 0 16px; padding: 32px 22px; border-radius: 28px;
	background: var(--kr-accent); color: var(--kr-dark-ink);
}
.km-app .kd-app__eyebrow { font-size: 12px; }
.kr-theme .km-app__title { color: var(--kr-dark-ink); font-weight: 800; font-size: 36px; line-height: 1.02; letter-spacing: -.03em; }
.km-app p { font-size: 15px; line-height: 1.6; color: #2A2350; }
.km-app__note { font-size: 13px; font-weight: 600; color: #3A3263; text-align: center; }

/* Transactions + promos */
.km-duo { display: flex; flex-direction: column; gap: 12px; padding: 40px 16px 0; }
.km-duo .kr-card { padding: 26px 22px; gap: 12px; }
.km-duo .kr-card p { font-size: 15px; line-height: 1.6; }
.km-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.kr-theme .km-two .kr-btn { padding: 0 8px; font-size: 14px; white-space: normal; }

/* Guides */
.km-guides { list-style: none; border-top: 1px solid var(--kr-line); }
.km-guides li { border-bottom: 1px solid var(--kr-line); }
.kr-theme .km-guides a { display: flex; align-items: center; gap: 14px; min-height: 44px; padding: 16px 0; color: var(--kr-white); }
.kr-theme .km-guides a:hover { color: var(--kr-white); filter: none; }
.km-guides a > .kr-icon { color: var(--kr-muted); flex-shrink: 0; }
.km-guides__text { flex: 1; display: flex; flex-direction: column; gap: 2px; font-weight: 700; font-size: 15px; line-height: 1.35; }
.km-guides__text small { font-size: 12px; font-weight: 700; color: var(--kr-muted); }

/* Responsible gaming */
.km-rg { display: flex; flex-direction: column; gap: 12px; margin: 0 16px; padding: 24px 20px; border-radius: 22px; border: 1.5px solid var(--kr-line); }
.km-rg__head { display: flex; align-items: center; gap: 12px; }
.km-rg p { font-size: 15px; line-height: 1.6; color: var(--kr-muted); }

/* CTA */
.km-cta { display: flex; flex-direction: column; align-items: center; gap: 16px; padding-top: 48px; padding-bottom: 56px; text-align: center; }
.kr-theme .km-cta__title { font-weight: 800; font-size: 56px; line-height: .95; letter-spacing: -.04em; }
.km-cta p { font-size: 16px; color: var(--kr-soft); }
.km-cta .km-stack { align-self: stretch; }

/* Tablet widths inside the mobile layout: give it room */
@media (min-width: 640px) and (max-width: 1023.98px) {
	.km-pad { padding-left: 40px; padding-right: 40px; }
	.km-games { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.km-list:not(.km-steps) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.km-app, .km-rg { margin-inline: 40px; }
	.km-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-inline: 40px; }
	.km-chips { padding-inline: 40px !important; }
	.km-filters { margin: 0 -40px; padding: 0 40px 2px; }
	.km-stack { flex-direction: row; }
	.km-stack .kr-btn--block { flex: 1; }
}

/* ==========================================================================
   Inner pages
   ========================================================================== */
.kr-page { padding: 72px 0 96px; }
.kr-page--elementor { padding: 0; }
.kr-page__head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 44px; }
.kr-theme .kr-page__title { font-weight: 800; font-size: clamp(36px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -.03em; }
.kr-page__lead { font-size: 18px; line-height: 1.6; color: var(--kr-soft); max-width: 720px; }

.kr-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1023.98px) { .kr-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639.98px) { .kr-post-grid { grid-template-columns: 1fr; } }
.kr-post-card { border-radius: 20px; background: var(--kr-surface); border: 1px solid var(--kr-line); overflow: hidden; }
.kr-theme .kr-post-card__link { display: flex; flex-direction: column; height: 100%; color: var(--kr-white); }
.kr-theme .kr-post-card__link:hover { color: var(--kr-white); filter: none; }
.kr-post-card:hover { border-color: var(--kr-line-3); }
.kr-post-card__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--kr-surface-2); }
.kr-post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.kr-post-card__body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 24px; }
.kr-post-card__tag { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--kr-accent); }
.kr-post-card__title { font-family: var(--kr-display); font-weight: 700; font-size: 21px; line-height: 1.25; }
.kr-post-card__excerpt { flex: 1; font-size: 15px; line-height: 1.55; color: var(--kr-muted); }
.kr-post-card__meta { font-size: 13px; color: #A9A3CC; }

.kr-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 40px; border-radius: 24px; border: 1.5px dashed var(--kr-line-2); }
.kr-empty p { font-size: 17px; color: var(--kr-soft); }

/* Pagination */
.kr-pagination { margin-top: 48px; }
.kr-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.kr-theme .kr-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px;
	box-sizing: border-box; border-radius: 999px; border: 1.5px solid var(--kr-line-2); color: var(--kr-ink); font-weight: 700;
}
.kr-theme .kr-pagination .page-numbers.current { background: var(--kr-accent); border-color: var(--kr-accent); color: var(--kr-dark-ink); }

/* Search form */
.kr-search { display: flex; gap: 10px; max-width: 560px; }
.kr-theme .kr-search__input {
	flex: 1; min-width: 0; min-height: 48px; padding: 0 18px; box-sizing: border-box;
	border-radius: 999px; border: 1.5px solid var(--kr-line-2); background: var(--kr-surface);
	color: var(--kr-white); font-family: var(--kr-body); font-size: 16px;
}
.kr-theme .kr-search__input::placeholder { color: #9993C0; }
.kr-theme .kr-search__input:focus { border-color: var(--kr-accent); outline: none; }
.kr-theme .kr-search .kr-btn { min-height: 48px; }

/* Article */
.kr-article__head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 36px; }
.kr-theme .kr-article__title { font-weight: 800; font-size: clamp(34px, 4.2vw, 54px); line-height: 1.06; letter-spacing: -.03em; }
.kr-article__meta { font-size: 15px; color: var(--kr-muted); }
.kr-article__hero { margin: 0 0 44px; border-radius: 28px; overflow: hidden; }
.kr-article__hero img { display: block; width: 100%; height: auto; }

.kr-prose { font-size: 18px; line-height: 1.75; color: #DCD8F3; }
.kr-prose > * + * { margin-top: 1.1em !important; }
.kr-theme .kr-prose h2 { margin-top: 1.8em !important; font-size: 32px; line-height: 1.2; letter-spacing: -.02em; }
.kr-theme .kr-prose h3 { margin-top: 1.6em !important; font-size: 24px; line-height: 1.25; }
.kr-theme .kr-prose h4 { margin-top: 1.4em !important; font-size: 20px; }
.kr-prose ul, .kr-prose ol { padding-left: 1.4em; }
.kr-prose li + li { margin-top: .4em; }
.kr-prose li::marker { color: var(--kr-accent); font-weight: 700; }
.kr-theme .kr-prose a { text-decoration: underline; text-underline-offset: 3px; }
.kr-prose strong { color: var(--kr-white); }
.kr-prose blockquote { margin: 1.4em 0; padding: 20px 24px; border-radius: 18px; background: var(--kr-surface); font-size: 19px; color: var(--kr-white); }
.kr-prose img, .kr-prose figure img { border-radius: 18px; }
.kr-prose figcaption { margin-top: 8px; font-size: 14px; color: var(--kr-muted); text-align: center; }
.kr-prose table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.kr-prose th, .kr-prose td { padding: 12px 14px; border: 1px solid var(--kr-line); text-align: left; }
.kr-prose th { background: var(--kr-surface); color: var(--kr-white); }
.kr-prose code { padding: 2px 6px; border-radius: 6px; background: var(--kr-surface); font-size: .9em; }
.kr-prose hr { border: 0; border-top: 1px solid var(--kr-line); margin: 2em 0; }

.kr-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.kr-theme .kr-tags a { padding: 7px 14px; border-radius: 999px; background: var(--kr-chip); color: #CFC9F2; font-size: 14px; font-weight: 600; }

.kr-article__cta {
	display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
	margin-top: 48px; padding: 28px 32px; border-radius: 24px; background: var(--kr-surface);
}
.kr-article__cta > div:first-child { display: flex; flex-direction: column; gap: 4px; }
.kr-article__cta strong { font-family: var(--kr-display); font-size: 24px; color: var(--kr-white); }
.kr-article__cta span { color: var(--kr-muted); }

.kr-postnav { margin-top: 40px; }
.kr-postnav .nav-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kr-postnav .nav-next { text-align: right; grid-column: 2; }
.kr-theme .kr-postnav a { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: 18px; border: 1px solid var(--kr-line); color: var(--kr-white); }
.kr-postnav__label { font-size: 13px; font-weight: 700; color: var(--kr-accent); }
.kr-postnav__title { font-weight: 700; line-height: 1.35; }

.kr-page-links { margin-top: 24px; display: flex; gap: 8px; align-items: center; font-weight: 600; }

/* Comments */
.kr-comments { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--kr-line); }
.kr-theme .kr-comments__title { font-size: 26px; margin-bottom: 20px; }
.kr-comments__list { list-style: none; }
.kr-comments__list .comment-body { padding: 18px 0; border-bottom: 1px solid var(--kr-line); }
.kr-comments__list .children { list-style: none; padding-left: 28px; }
.kr-comments__list .avatar { border-radius: 999px; vertical-align: middle; margin-right: 10px; }
.kr-comments__list .comment-meta { font-size: 14px; color: var(--kr-muted); }
.kr-comments__list .fn { color: var(--kr-white); font-style: normal; font-weight: 700; }
.kr-comments .comment-form { display: flex; flex-direction: column; gap: 14px; }
.kr-comments .comment-form label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; }
.kr-theme .kr-comments input[type="text"],
.kr-theme .kr-comments input[type="email"],
.kr-theme .kr-comments input[type="url"],
.kr-theme .kr-comments textarea {
	width: 100%; box-sizing: border-box; padding: 12px 16px; border-radius: 14px;
	border: 1.5px solid var(--kr-line-2); background: var(--kr-surface); color: var(--kr-white); font-family: var(--kr-body); font-size: 16px;
}
.kr-theme .kr-comments input:focus, .kr-theme .kr-comments textarea:focus { border-color: var(--kr-accent); outline: none; }

/* 404 */
.kr-404 { text-align: center; }
.kr-404 .kr-wrap { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.kr-404__code { font-family: var(--kr-display); font-weight: 800; font-size: clamp(110px, 18vw, 200px); line-height: .9; letter-spacing: -.05em; color: var(--kr-accent); }
.kr-404 .kr-search { width: 100%; }

@media (max-width: 639.98px) {
	.kr-page { padding: 44px 0 64px; }
	.kr-prose { font-size: 17px; }
	.kr-article__cta { padding: 22px; }
	.kr-article__cta .kr-btn-row, .kr-article__cta .kr-btn { width: 100%; }
	.kr-postnav .nav-links { grid-template-columns: 1fr; }
	.kr-postnav .nav-next { grid-column: 1; }
	.kr-search { flex-direction: column; }
}

/* ---------- Popup banner (fixed 512 x 512) ---------- */
html.kr-popup-open { overflow: hidden; }
.kr-popup {
	position: fixed; inset: 0; z-index: 100000;
	display: flex; align-items: center; justify-content: center;
	padding: 20px;
	opacity: 0; transition: opacity .2s ease;
}
.kr-popup.is-open { opacity: 1; }
.kr-popup__backdrop { position: absolute; inset: 0; background: rgba(8, 6, 22, .78); cursor: pointer; }
.kr-popup__dialog {
	position: relative;
	width: min(512px, calc(100vw - 40px), calc(100vh - 40px));
	width: min(512px, calc(100vw - 40px), calc(100dvh - 40px));
	aspect-ratio: 1 / 1;
	transform: translateY(12px) scale(.98); transition: transform .2s ease;
}
.kr-popup.is-open .kr-popup__dialog { transform: none; }
.kr-popup__link { display: block; width: 100%; height: 100%; }
.kr-popup__img {
	display: block; width: 100%; height: 100%;
	object-fit: cover; border-radius: 20px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
.kr-theme .kr-popup__close {
	position: absolute; top: -14px; right: -14px; z-index: 2;
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; padding: 0; border-radius: 999px;
	background: var(--kr-white); color: var(--kr-dark-ink); border: 0; cursor: pointer;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}
.kr-theme .kr-popup__close:hover { background: var(--kr-accent); color: var(--kr-dark-ink); }
@media (max-width: 599.98px) {
	.kr-theme .kr-popup__close { top: -12px; right: -8px; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
	.kr-theme *, .kr-theme *::before, .kr-theme *::after { transition: none !important; scroll-behavior: auto !important; }
	.kr-theme .kr-btn:hover, .kr-theme .kd-guide:hover { transform: none; }
	.kr-popup__dialog { transform: none !important; }
}
