/* YSA Games – site styles. Colours mirror the theme.json palette. */
:root {
	--ysa-navy: #0B2D4A;
	--ysa-cyan: #00E5F0;
	--ysa-blue: #154F7E;
	--ysa-silver: #C1CDD9;
	--ysa-slate: #5B6B7C;
	--ysa-dark: #0A1320;
	--ysa-ink: #13202E;
	--ysa-mist: #F3F6FA;
	--ysa-line: #E2E8F0;
	--ysa-radius: 20px;
	--ysa-shadow: 0 1px 2px rgba(10, 19, 32, .06), 0 12px 32px -12px rgba(10, 19, 32, .18);
	--ysa-header-h: 68px;
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
:where(a, button, summary, input, select, textarea):focus-visible { outline: 2px solid var(--ysa-cyan); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: calc(var(--ysa-header-h) + 24px); }
.ysa-main { margin-block: 0 !important; }
.wp-site-blocks > * { margin-block: 0 !important; }
.ysa-main > :first-child { margin-top: 0; }

/* ---------- Header ---------- */
.ysa-header { position: relative; isolation: isolate; color: #fff; }
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would trap the fixed mobile menu inside it. */
.ysa-header::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: rgba(10, 19, 32, .88);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid rgba(255, 255, 255, .07);
}
header:has(.ysa-header) { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 50; }
.ysa-header__inner { min-height: var(--ysa-header-h); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-inline: auto; }
.ysa-brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: #fff; flex: none; }
.ysa-brand img { height: 34px; width: auto; display: block; }
.ysa-brand span { font-weight: 600; font-size: 1.15rem; letter-spacing: .01em; color: var(--ysa-silver); line-height: 1; }
.ysa-menu { margin-left: auto; }
.ysa-menu ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem 1.6rem; font-size: .95rem; font-weight: 500; }
.ysa-menu a { color: #DCE6F0; text-decoration: none; padding: .35rem 0; display: inline-block; }
.ysa-menu a:hover, .ysa-menu a[aria-current="page"] { color: var(--ysa-cyan); }
.ysa-menu .ysa-menu__cta a { border: 1.5px solid rgba(0, 229, 240, .55); color: var(--ysa-cyan); border-radius: 999px; padding: .45rem 1.1rem; }
.ysa-menu .ysa-menu__cta a:hover { background: var(--ysa-cyan); color: var(--ysa-dark); }
.ysa-header__tools { display: flex; align-items: center; gap: .75rem; flex: none; }
.ysa-menu .ysa-langswitch--menu { display: none; }
.ysa-burger { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: #fff; cursor: pointer; place-items: center; }
.ysa-burger__bars, .ysa-burger__bars::before, .ysa-burger__bars::after { display: block; width: 22px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s, opacity .2s; }
.ysa-burger__bars { position: relative; }
.ysa-burger__bars::before, .ysa-burger__bars::after { content: ""; position: absolute; left: 0; }
.ysa-burger__bars::before { top: -7px; }
.ysa-burger__bars::after { top: 7px; }
.ysa-menu-open .ysa-burger__bars { background: transparent; }
.ysa-menu-open .ysa-burger__bars::before { transform: translateY(7px) rotate(45deg); }
.ysa-menu-open .ysa-burger__bars::after { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 899px) {
	.ysa-burger { display: grid; }
	.ysa-header .ysa-langswitch--header { display: none; }
	.ysa-menu {
		position: fixed; inset: calc(var(--ysa-header-h) + var(--wp-admin--admin-bar--height, 0px)) 0 0 0; z-index: 49;
		background: var(--ysa-dark); padding: 2rem 16px 3rem; overflow-y: auto;
		display: flex; flex-direction: column; gap: 2rem;
		opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
	}
	.ysa-menu-open .ysa-menu { opacity: 1; visibility: visible; transform: none; }
	.ysa-menu-open, .ysa-menu-open body { overflow: hidden; }
	.ysa-menu ul { flex-direction: column; align-items: flex-start; gap: 1.1rem; font-size: 1.4rem; }
	.ysa-menu .ysa-menu__cta a { padding: .55rem 1.5rem; }
	.ysa-menu .ysa-langswitch--menu { display: inline-flex; align-self: flex-start; margin: 0; }
}
.ysa-header .ysa-langswitch { margin: 0; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); }
.ysa-header .ysa-langswitch button { color: #BFD0E0; }
.ysa-header .ysa-langswitch button[aria-pressed="true"] { background: var(--ysa-cyan); color: var(--ysa-dark); }
.ysa-langswitch--header button { padding: .45rem .7rem; font-size: .8rem; letter-spacing: .04em; }

/* ---------- Languages: Turkish unless <html data-lang="en"> ---------- */
html:not([data-lang="en"]) :is(.ysa-lang-en, .ysa-en),
html[data-lang="en"] :is(.ysa-lang-tr, .ysa-tr) { display: none !important; }
.ysa-lang { margin-block: 0 !important; }

/* ---------- Sections ---------- */
.ysa-section { padding-top: var(--wp--preset--spacing--60); padding-bottom: var(--wp--preset--spacing--60); margin-block: 0 !important; position: relative; }
.ysa-section.is-mist { background: var(--ysa-mist); }
.is-dark, .is-cta {
	background:
		radial-gradient(900px 480px at 85% -10%, rgba(0, 229, 240, .16), transparent 60%),
		radial-gradient(700px 420px at -10% 110%, rgba(21, 79, 126, .55), transparent 60%),
		linear-gradient(160deg, var(--ysa-navy) 0%, var(--ysa-dark) 70%);
	color: #D5E0EB;
}
.is-dark :where(h1, h2, h3, h4), .is-cta :where(h1, h2, h3, h4) { color: #fff; }
.is-dark a:not(.wp-element-button):not(.ysa-btn), .is-cta a:not(.wp-element-button):not(.ysa-btn) { color: var(--ysa-cyan); }
.is-dark .wp-block-button.is-style-outline > .wp-block-button__link,
.is-cta .wp-block-button.is-style-outline > .wp-block-button__link { color: #fff; border-color: rgba(255, 255, 255, .45); }
.is-dark .wp-block-button.is-style-outline > .wp-block-button__link:hover,
.is-cta .wp-block-button.is-style-outline > .wp-block-button__link:hover { border-color: var(--ysa-cyan); color: var(--ysa-cyan); background: transparent; }
.wp-block-button.is-style-outline > .wp-block-button__link { border-width: 1.5px; padding: calc(.8rem - 1.5px) calc(1.6rem - 1.5px); }
.wp-block-button__link { transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
.wp-block-button__link:hover { transform: translateY(-1px); }

.ysa-eyebrow {
	display: flex; align-items: center; gap: .7rem; margin: 0 0 .9rem;
	font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ysa-blue);
}
.ysa-eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--ysa-cyan); }
.is-dark .ysa-eyebrow, .is-cta .ysa-eyebrow { color: var(--ysa-cyan); }
.ysa-lead { font-size: var(--wp--preset--font-size--large); line-height: 1.65; color: var(--ysa-slate); max-width: 46rem; }
.is-dark .ysa-lead, .is-cta .ysa-lead { color: #BFD0E0; }

.ysa-section-head { margin-bottom: 2.25rem !important; }
.ysa-section-head > * { max-width: 46rem; }
.ysa-section-head h2 { margin-top: 0; }
.ysa-section-head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .5rem 2rem; }
.ysa-section-head--row > .ysa-eyebrow { flex-basis: 100%; max-width: none; margin-bottom: 0; }
.ysa-section-head--row h2 { margin: 0; flex: 1; }
.ysa-more { margin: 0; font-weight: 600; }
.ysa-more a { text-decoration: none; }

/* ---------- Home hero ---------- */
.ysa-hero { overflow: hidden; padding-top: clamp(3.5rem, 8vw, 6.5rem); padding-bottom: clamp(3.5rem, 8vw, 6.5rem); }
.ysa-hero::before {
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
	background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
	background-size: 48px 48px;
	-webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
	mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
}
.ysa-hero__cols { align-items: center !important; gap: 2rem 4rem; position: relative; }
.ysa-hero__title { font-size: clamp(2.4rem, 5.2vw, 4rem) !important; font-weight: 700; letter-spacing: -.025em; line-height: 1.08; margin: 0 0 1.25rem; }
.ysa-hero .wp-block-buttons { margin-top: 2rem; }

.ysa-hero-art { position: relative; height: 480px; max-width: 520px; margin-inline: auto; }
.ysa-hero-art__ring {
	position: absolute; inset: 12% 8%; border-radius: 50%; z-index: 0;
	background: radial-gradient(circle, rgba(0, 229, 240, .35), transparent 65%); filter: blur(10px);
}
.ysa-phone {
	border-radius: 30px; overflow: hidden; background: #0d1b2b;
	border: 6px solid #182a3f; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .06);
}
.ysa-phone img { display: block; width: 100%; height: 100%; aspect-ratio: 9 / 19; object-fit: cover; object-position: top; }
.ysa-hero-art .ysa-phone { position: absolute; width: 42%; z-index: 1; transition: transform .4s ease; }
.ysa-hero-art .ysa-phone--1 { left: 0; top: 14%; transform: rotate(-9deg); }
.ysa-hero-art .ysa-phone--2 { left: 29%; top: 0; z-index: 2; width: 44%; }
.ysa-hero-art .ysa-phone--3 { right: 0; top: 16%; transform: rotate(9deg); }
.ysa-hero-art:hover .ysa-phone--1 { transform: rotate(-12deg) translateX(-6px); }
.ysa-hero-art:hover .ysa-phone--3 { transform: rotate(12deg) translateX(6px); }

/* ---------- Page heroes (inner pages) ---------- */
.ysa-pagehero { padding-top: clamp(3.5rem, 7vw, 5.5rem); padding-bottom: clamp(3rem, 6vw, 4.5rem); }
/* Align hero text with the wide content below it, but keep line length readable. */
.ysa-pagehero > * { max-width: 1200px !important; box-sizing: border-box; }
.ysa-pagehero > .ysa-lead { padding-right: max(0px, calc(100% - 46rem)); }
.ysa-pagehero > h1 { padding-right: max(0px, calc(100% - 52rem)); }
.ysa-pagehero h1 { font-size: clamp(2.1rem, 4.4vw, 3.25rem); font-weight: 700; letter-spacing: -.02em; margin-top: 0; margin-bottom: 1rem; }
.ysa-pagehero .wp-block-buttons { margin-top: 1.75rem; }
.ysa-page-head {
	background: linear-gradient(160deg, var(--ysa-navy), var(--ysa-dark));
	padding-top: clamp(3rem, 6vw, 4.5rem); padding-bottom: clamp(2.5rem, 5vw, 3.5rem); margin-bottom: 2.5rem;
}
.ysa-page-head h1, .ysa-page-head .wp-block-post-title, .ysa-page-head .wp-block-query-title { color: #fff; margin: 0; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
.ysa-page-head .ysa-eyebrow, .ysa-page-head .wp-block-post-date { color: var(--ysa-cyan); }

/* ---------- Buttons from shortcodes ---------- */
.ysa-btn {
	display: inline-flex; align-items: center; gap: .6rem; padding: .8rem 1.5rem; border-radius: 999px; border: 0;
	background: var(--ysa-cyan); color: var(--ysa-dark); font: 600 1rem/1.2 inherit; text-decoration: none; cursor: pointer;
	transition: transform .2s, background-color .2s, box-shadow .2s;
}
.ysa-btn:hover { background: #5FF3F9; color: var(--ysa-dark); transform: translateY(-1px); }
.ysa-btn--play { background: #000; color: #fff; border-radius: 12px; padding: .55rem 1.15rem .55rem .95rem; border: 1px solid rgba(255, 255, 255, .22); }
.ysa-btn--play:hover { background: #111c2a; color: #fff; box-shadow: 0 0 0 3px rgba(0, 229, 240, .25); }
.ysa-btn--play .ysa-ico { width: 22px; height: 22px; color: var(--ysa-cyan); flex: none; }
.ysa-btn--play span { display: flex; flex-direction: column; font-size: 1.05rem; line-height: 1.1; }
.ysa-btn--play small { font-size: .62rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
.ysa-btn--soon { background: transparent; color: var(--ysa-slate); border: 1.5px dashed #b8c4d1; cursor: default; font-size: .9rem; }
.ysa-btn--soon:hover { background: transparent; color: var(--ysa-slate); transform: none; }
.is-dark .ysa-btn--soon { color: #BFD0E0; border-color: rgba(255, 255, 255, .35); }
.ysa-btn--sm { padding: .5rem 1rem .5rem .8rem; }
.ysa-btn--sm span { font-size: .95rem; }
.ysa-arrow { font-weight: 600; text-decoration: none; white-space: nowrap; }
.ysa-arrow::after { content: " →"; transition: margin .2s; }
.ysa-arrow:hover::after { margin-left: .25rem; }
.ysa-play-row { display: flex; justify-content: center; margin: 1.5rem 0; }

/* ---------- Game cards ---------- */
.ysa-games { display: grid; gap: 1.5rem; }
.ysa-games--grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 255px), 1fr)); }
.ysa-card {
	position: relative; display: flex; flex-direction: column; gap: 1.1rem; padding: 1.6rem; background: #fff;
	border: 1px solid var(--ysa-line); border-radius: var(--ysa-radius); box-shadow: var(--ysa-shadow);
	transition: transform .25s, box-shadow .25s, border-color .25s;
}
.ysa-card:hover { transform: translateY(-4px); border-color: #cfe3ef; box-shadow: 0 2px 4px rgba(10, 19, 32, .06), 0 24px 48px -18px rgba(11, 45, 74, .35); }
.ysa-card__media img { width: 80px; height: 80px; border-radius: 20px; display: block; box-shadow: 0 8px 20px -8px rgba(10, 19, 32, .4); }
.ysa-card__meta { display: flex; flex-wrap: wrap; gap: .4rem; }
.ysa-chip { display: inline-block; padding: .2rem .65rem; border-radius: 999px; background: #E8F4FA; color: var(--ysa-blue); font-size: .75rem; font-weight: 600; }
.ysa-chip--soon { background: #FFF2D1; color: #7A4F00; }
.ysa-card__title { margin: .55rem 0 .4rem; font-size: 1.3rem; }
.ysa-card__title a { color: var(--ysa-navy); text-decoration: none; }
.ysa-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.ysa-card__body p { margin: 0; color: var(--ysa-slate); }
.ysa-card__actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 1.25rem; }
.ysa-card__body { display: flex; flex-direction: column; flex: 1; }
.ysa-card__body .ysa-card__actions { margin-top: auto; padding-top: 1.25rem; }
.ysa-card__shots { display: flex; gap: .75rem; overflow-x: auto; }
.ysa-card__shots img { width: 120px; flex: none; aspect-ratio: 9 / 19; object-fit: cover; object-position: top; border-radius: 16px; border: 4px solid #e9eef4; }
@media (min-width: 900px) {
	.ysa-games--list .ysa-card { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; align-items: center; gap: 2rem; padding: 2rem; }
}

/* ---------- Feature grids ---------- */
.ysa-featgrid, .ysa-features { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1.25rem !important; }
.ysa-featgrid > *, .ysa-features > * { margin: 0 !important; }
.ysa-feat, .ysa-feature {
	background: #fff; border: 1px solid var(--ysa-line); border-radius: var(--ysa-radius); padding: 1.6rem 1.6rem 1.4rem;
}
.ysa-feat h3, .ysa-feature h3 { font-size: 1.1rem; margin: 0 0 .5rem; display: flex; gap: .65rem; align-items: center; }
.ysa-feat h3::before, .ysa-feature h3::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--ysa-cyan); box-shadow: 0 0 0 4px rgba(0, 229, 240, .18); }
.ysa-feat p, .ysa-feature p { margin: 0; color: var(--ysa-slate); font-size: .98rem; }

/* ---------- Stats ---------- */
.ysa-stats { padding-top: 3rem; padding-bottom: 3rem; }
.ysa-statlist { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.ysa-statlist li { display: flex; flex-direction: column; gap: .25rem; }
.ysa-statlist strong { font-size: clamp(1.6rem, 3.2vw, 2.4rem); color: var(--ysa-cyan); font-weight: 700; line-height: 1.1; }
.ysa-statlist span { color: #BFD0E0; font-size: .95rem; }
@media (max-width: 720px) { .ysa-statlist { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; } }

/* ---------- News ---------- */
.ysa-latest { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 1.25rem; }
.ysa-latest li { display: flex; flex-direction: column; gap: .4rem; padding: 1.5rem; border: 1px solid var(--ysa-line); border-radius: var(--ysa-radius); background: #fff; }
.ysa-latest__title { font-weight: 600; font-size: 1.15rem; color: var(--ysa-navy); text-decoration: none; line-height: 1.35; }
.ysa-latest__title:hover { color: var(--ysa-blue); }
.ysa-latest__date { color: var(--ysa-slate); font-size: .82rem; }
.ysa-latest__excerpt { color: var(--ysa-slate); margin: .2rem 0 0; font-size: .98rem; }
.ysa-posts { margin-bottom: var(--wp--preset--spacing--60) !important; }
.ysa-post-card { height: 100%; gap: .5rem !important; padding: 1.5rem; border: 1px solid var(--ysa-line); border-radius: var(--ysa-radius); box-shadow: var(--ysa-shadow); }
.ysa-post-card .wp-block-post-featured-image { margin: -1.5rem -1.5rem .75rem; overflow: hidden; border-radius: var(--ysa-radius) var(--ysa-radius) 0 0; }
.ysa-post-card__date { color: var(--ysa-slate); font-size: .82rem; }
.ysa-post-card__title { font-size: 1.2rem !important; margin: 0; }
.ysa-post-card__title a { color: var(--ysa-navy); text-decoration: none; }
.ysa-post-card .wp-block-post-excerpt__excerpt { color: var(--ysa-slate); margin: 0; }
.wp-block-query-pagination { margin-top: 2.5rem; }
.ysa-post-nav { margin: 3rem auto var(--wp--preset--spacing--60) !important; padding-top: 1.5rem; border-top: 1px solid var(--ysa-line); font-weight: 600; }

/* ---------- CTA ---------- */
.is-cta { text-align: center; overflow: hidden; }
.ysa-cta > * { margin-left: auto !important; margin-right: auto !important; }
.ysa-cta h2 { margin-top: 0; }
.ysa-cta .wp-block-buttons { justify-content: center; margin-top: 1.75rem; }
.ysa-links { font-size: .92rem; color: #9fb3c6; margin-top: 1.75rem; }
.ysa-links a { color: #DCE6F0 !important; }

/* ---------- Game page ---------- */
.ysa-gamehero { overflow: hidden; padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.ysa-game-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 3rem; align-items: center; max-width: 1200px; margin: 0 auto; }
.ysa-game-hero__icon { width: 104px; height: 104px; border-radius: 26px; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .6); margin-bottom: 1.5rem; display: block; }
.ysa-game-hero__title { font-size: clamp(2.2rem, 4.6vw, 3.4rem) !important; font-weight: 700; margin: 0 0 1rem; letter-spacing: -.02em; }
.ysa-facts { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 1.5rem 0 2rem; padding: 0; }
.ysa-facts li { padding: .35rem .9rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); color: #DCE6F0; font-size: .85rem; font-weight: 500; }
.ysa-game-hero__note { font-size: .9rem; color: #9fb3c6; margin-top: 1rem; }
.ysa-game-hero__phone { width: min(300px, 100%); justify-self: center; transform: rotate(4deg); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 80px -10px rgba(0, 229, 240, .35); }
@media (max-width: 860px) {
	.ysa-game-hero { grid-template-columns: 1fr; gap: 2.5rem; }
	.ysa-game-hero__phone { width: 220px; transform: rotate(3deg); }
}

.ysa-screens { display: flex; gap: 1.1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .5rem .25rem 1.25rem; scrollbar-width: thin; scrollbar-color: var(--ysa-silver) transparent; }
.ysa-screens img { flex: none; height: 480px; width: auto; border-radius: 22px; scroll-snap-align: start; box-shadow: var(--ysa-shadow); background: #fff; }
@media (max-width: 600px) { .ysa-screens img { height: 380px; } }

/* ---------- FAQ ---------- */
.ysa-faq h2 { margin-top: 3rem; }
.ysa-faq > .ysa-eyebrow + h2 { margin-top: 0; }
.ysa-faq .wp-block-details { border-bottom: 1px solid var(--ysa-line); padding: 0; margin: 0 !important; }
.ysa-faq .wp-block-details summary {
	list-style: none; cursor: pointer; padding: 1.15rem 2.5rem 1.15rem 0; font-weight: 600; color: var(--ysa-navy); position: relative;
}
.ysa-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.ysa-faq .wp-block-details summary::after {
	content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%;
	display: grid; place-items: center; background: var(--ysa-mist); color: var(--ysa-blue); font-weight: 500; font-size: 1.2rem; transition: transform .2s;
}
.ysa-faq .wp-block-details[open] summary::after { content: "–"; background: var(--ysa-cyan); color: var(--ysa-dark); }
.ysa-faq .wp-block-details > :not(summary) { margin: 0 0 1.25rem; color: var(--ysa-slate); }

/* ---------- Documents (legal pages, posts) ---------- */
.ysa-doc__body { padding-bottom: var(--wp--preset--spacing--60); }
.ysa-doc__body h2 { font-size: 1.45rem; margin-top: 2.75rem; }
.ysa-doc__body h3 { margin-top: 2rem; }
.ysa-doc__body :where(ul, ol) { padding-left: 1.3rem; }
.ysa-doc__body li + li { margin-top: .35rem; }
.ysa-updated { color: var(--ysa-slate); font-size: .9rem; }
.ysa-langswitch { display: inline-flex; margin-bottom: 1.5rem; padding: 4px; border-radius: 999px; background: var(--ysa-mist); border: 1px solid var(--ysa-line); gap: 2px; }
.ysa-langswitch button { font: 600 .9rem/1 inherit; padding: .6rem 1.2rem; border: 0; border-radius: 999px; background: transparent; color: var(--ysa-slate); cursor: pointer; }
.ysa-langswitch button[aria-pressed="true"] { background: var(--ysa-navy); color: #fff; }

/* ---------- About / split ---------- */
.ysa-split { gap: 2rem 4rem; }
@media (min-width: 782px) { .ysa-split > .wp-block-column:first-child { flex: 0 0 32% !important; } .ysa-contact > .ysa-contact__form { flex: 0 0 58% !important; } }
.ysa-split h2 { margin-top: 0; }

/* ---------- Contact ---------- */
.ysa-contact { gap: 2.5rem 4rem; }
.ysa-contact__info h3 { font-size: 1.05rem; margin: 1.75rem 0 .35rem; }
.ysa-contact__info h3:first-child { margin-top: 0; }
.ysa-contact__info p { margin: 0; color: var(--ysa-slate); }
.ysa-form { display: grid; gap: 1.1rem; padding: clamp(1.25rem, 3vw, 2rem); background: #fff; border: 1px solid var(--ysa-line); border-radius: var(--ysa-radius); box-shadow: var(--ysa-shadow); }
.ysa-form__row { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .ysa-form__row { grid-template-columns: 1fr; } }
.ysa-form label { display: grid; gap: .4rem; font-size: .88rem; font-weight: 600; color: var(--ysa-navy); }
.ysa-form :is(input, select, textarea) {
	width: 100%; box-sizing: border-box; font: 400 1rem/1.5 inherit; color: var(--ysa-ink); background: var(--ysa-mist);
	border: 1.5px solid var(--ysa-line); border-radius: 12px; padding: .75rem .9rem; transition: border-color .2s, background-color .2s;
}
.ysa-form :is(input, select, textarea):focus { outline: none; border-color: var(--ysa-blue); background: #fff; box-shadow: 0 0 0 3px rgba(0, 229, 240, .25); }
.ysa-form textarea { resize: vertical; min-height: 9rem; }
.ysa-form .ysa-btn { justify-self: start; }
.ysa-form__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.ysa-form__fine { font-size: .82rem; color: var(--ysa-slate); margin: 0; }
.ysa-form__notice { margin: 0; padding: .85rem 1rem; border-radius: 12px; font-weight: 500; }
.ysa-form__notice.is-ok { background: #E3FAF4; color: #0B5D4A; }
.ysa-form__notice.is-error { background: #FDECEC; color: #8A1F1F; }

/* ---------- Press kit ---------- */
.ysa-facts-table { display: grid; grid-template-columns: minmax(120px, 30%) 1fr; margin: 0; border-top: 1px solid var(--ysa-line); }
.ysa-facts-table :is(dt, dd) { margin: 0; padding: .85rem 0; border-bottom: 1px solid var(--ysa-line); }
.ysa-facts-table dt { font-weight: 600; color: var(--ysa-navy); padding-right: 1rem; }
.ysa-facts-table dd { color: var(--ysa-slate); }
.ysa-downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1.25rem; margin-bottom: 3rem !important; }
.ysa-downloads figure { margin: 0; background: #fff; border: 1px solid var(--ysa-line); border-radius: var(--ysa-radius); overflow: hidden; }
.ysa-downloads__preview { height: 190px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; padding: 1.5rem; background: #fff; }
.ysa-downloads__preview.is-dark { background: var(--ysa-dark); }
.ysa-downloads__preview.is-navy { background: var(--ysa-mist); }
.ysa-downloads__preview img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.ysa-downloads figcaption { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .85rem 1.1rem; border-top: 1px solid var(--ysa-line); font-size: .9rem; }
.ysa-downloads figcaption a { font-weight: 600; text-decoration: none; }
.ysa-swatches { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.ysa-swatches li { display: grid; gap: .2rem; font-size: .9rem; }
.ysa-swatches span { height: 84px; border-radius: 16px; background: var(--c); border: 1px solid rgba(10, 19, 32, .08); margin-bottom: .4rem; }
.ysa-swatches code { color: var(--ysa-slate); font-size: .85rem; }
.ysa-note { color: var(--ysa-slate); font-size: .95rem; }
.ysa-presskit-games { display: grid; gap: 1rem; }
.ysa-presskit-games article { display: flex; gap: 1.25rem; align-items: flex-start; padding: 1.5rem; border: 1px solid var(--ysa-line); border-radius: var(--ysa-radius); }
.ysa-presskit-games img { border-radius: 18px; flex: none; }
.ysa-presskit-games h3 { margin: 0 0 .25rem; font-size: 1.15rem; }
.ysa-presskit-games p { margin: 0; color: var(--ysa-slate); }
.ysa-presskit-games__links { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: .6rem !important; font-size: .9rem; font-weight: 600; }

/* ---------- 404 ---------- */
.ysa-404 { padding-top: 7rem; padding-bottom: 7rem; min-height: 50vh; }
.ysa-404 h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }

/* ---------- Footer ---------- */
.ysa-footer { background: var(--ysa-dark); color: #9fb3c6; padding-top: 4rem; padding-bottom: 2rem; margin-top: 0 !important; font-size: .95rem; }
.ysa-footer a { color: #C9D6E3; text-decoration: none; }
.ysa-footer a:hover { color: var(--ysa-cyan); }
.ysa-footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2.5rem; }
.ysa-footer__brand img { height: 92px; width: auto; display: block; margin-bottom: 1rem; }
.ysa-footer__brand p { margin: 0 0 .75rem; max-width: 26rem; }
.ysa-footer h2 { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: #fff; margin: .5rem 0 1rem; }
.ysa-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.ysa-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .8rem; color: #6f8296; }
.ysa-footer__bottom p { margin: 0; }
@media (max-width: 900px) { .ysa-footer__grid { grid-template-columns: 1fr 1fr; } .ysa-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .ysa-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Responsive ---------- */
@media (max-width: 781px) {
	.ysa-hero-art { height: 380px; max-width: 400px; margin-top: 1rem; }
}
@media (max-width: 420px) { .ysa-hero-art { height: 320px; } }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; }
}
