/* 10000 Apps theme — light design (brand guide parts 2–4). Colours come from theme.json presets. */

:root {
	--tt-ink: var(--wp--preset--color--contrast);
	--tt-deep: var(--wp--preset--color--accent-1);
	--tt-muted: var(--wp--preset--color--muted);
	--tt-line: var(--wp--preset--color--line);
	--tt-radius: 16px;
}

body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img { max-width: 100%; height: auto; }
:where(a, button, summary, input, select, textarea):focus-visible { outline: 2px solid var(--tt-ink); outline-offset: 3px; border-radius: 4px; }

/* ---------- Header ---------- */
.tile-strip { display: flex; height: 6px; }
.tile-strip i { flex: 1; }
.tile-strip i:nth-child(1) { background: #1187fc; }
.tile-strip i:nth-child(2) { background: #a050fb; }
.tile-strip i:nth-child(3) { background: #fd48b0; }
.tile-strip i:nth-child(4) { background: #27dc6e; }
.tile-strip i:nth-child(5) { background: #fdb61d; }
.tile-strip i:nth-child(6) { background: #07d6f1; }
.tile-strip i:nth-child(7) { background: #fd5d49; }
.tile-strip i:nth-child(8) { background: #6665fb; }
.tile-strip i:nth-child(9) { background: #1397fd; }

.site-header { background: #fff; border-bottom: 1px solid #e3edf7; }
.site-header__row { padding-block: 10px; gap: 12px 20px; }
.site-logo { display: block; line-height: 0; flex: none; border-radius: 8px; }
.site-logo img { width: 64px; height: 64px; display: block; }

.site-header .wp-block-navigation { gap: 4px; margin-left: auto; }
.site-header .wp-block-navigation .wp-block-navigation-item__content {
	display: block; padding: 8px 12px; border-radius: 10px; color: var(--tt-ink); text-decoration: none;
}
.site-header .wp-block-navigation .wp-block-navigation-item__content:hover { background: var(--wp--preset--color--soft); }
.site-header .wp-block-navigation a[aria-current="page"] { background: var(--wp--preset--color--accent-2); color: var(--tt-deep); }

/* Language switcher from the Languages snippet, sitting after the header menu */
.site-header .lang-switch { margin-left: 4px; font-weight: 700; font-size: 15px; color: var(--tt-muted); }
.site-header .lang-switch summary { padding: 8px 10px; border: 1px solid var(--tt-line); border-radius: 10px; min-height: 40px; }
.site-header .lang-switch ul { border-radius: 12px; border-color: var(--tt-line); box-shadow: 0 8px 24px rgba(11, 27, 51, .12); }
.site-header .lang-switch li a { color: var(--tt-ink); font-weight: 600; }

@media (max-width: 640px) {
	.site-header__row { justify-content: space-between; }
	.site-header .wp-block-navigation { order: 3; width: 100%; justify-content: flex-start; }
	.site-header .wp-block-navigation .wp-block-navigation-item__content { padding: 8px 10px; }
	.site-header .lang-switch { margin-left: auto; }
}

/* ---------- Main ---------- */
.site-main { padding-top: var(--wp--preset--spacing--50); padding-bottom: var(--wp--preset--spacing--60); }
.site-main--no-title { padding-top: 0; }
.site-main > .wp-block-post-content > :first-child.alignfull { margin-top: 0; }
.page-title { margin-bottom: var(--wp--preset--spacing--40); }
/* Line length: normal pages are already 760px wide (contentSize); only the wide sections need a limit. */
.site-main .alignwide p, .site-main .alignwide li { max-width: 70ch; }
/* Narrower blocks (forms are 640px) start at the text's left edge instead of being centred */
.site-main .is-layout-constrained > .site-form { margin-left: max(0px, calc((100% - 760px) / 2)) !important; }
.site-main .has-text-align-center { margin-inline: auto; }

/* Tinted bands and cards (page content uses the accent-* backgrounds) */
.wp-block-group.has-background { border-radius: var(--tt-radius); }
.wp-block-group.alignfull.has-background { border-radius: 0; }
.wp-block-image img { border-radius: 12px; }

/* Buttons: outline style = white with a deep sky edge */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: #fff; color: var(--tt-deep); border: 2px solid var(--tt-deep); padding: calc(0.7rem - 2px) calc(1.3rem - 2px);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--accent-2); color: var(--tt-deep); }
.wp-block-button__link { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }

/* Tables (privacy policy) */
.wp-block-table table { border-collapse: collapse; width: 100%; font-size: 16px; }
.wp-block-table th, .wp-block-table td { border: 1px solid var(--tt-line); padding: 8px 10px; vertical-align: top; }
.wp-block-table thead th { background: var(--wp--preset--color--soft); text-align: left; }
.wp-block-table { overflow-x: auto; }

/* Forms from the forms snippet */
.site-main input[type="text"], .site-main input[type="email"], .site-main select, .site-main textarea {
	font: inherit; font-size: 16px; border: 1px solid #b9cde2; border-radius: 10px; padding: 10px 12px; background: #fff; color: var(--tt-ink); max-width: 100%;
}
.site-main input:focus, .site-main select:focus, .site-main textarea:focus { border-color: var(--tt-deep); outline: 2px solid color-mix(in srgb, var(--tt-deep) 35%, transparent); outline-offset: 0; }
.site-main button[type="submit"], .site-main input[type="submit"] {
	font: inherit; font-weight: 700; background: var(--tt-deep); color: #fff; border: 0; border-radius: 12px; padding: 0.75rem 1.4rem; min-height: 44px; cursor: pointer;
}
.site-main button[type="submit"]:hover, .site-main input[type="submit"]:hover { background: #05528f; }

.translation-note { background: var(--wp--preset--color--accent-2) !important; color: var(--tt-ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--wp--preset--color--soft); border-top: 1px solid #e3edf7; padding-top: var(--wp--preset--spacing--50); padding-bottom: var(--wp--preset--spacing--40); }
.site-footer__row { gap: 24px 48px; }
.site-footer__brand .site-logo { margin-bottom: 10px; }
.site-footer .wp-block-site-tagline { color: var(--tt-muted); font-size: 15px; margin: 0; }
.site-footer__menu { gap: 6px; font-weight: 600; font-size: 16px; }
.site-footer__menu a { color: var(--tt-ink); text-decoration: none; }
.site-footer__menu a:hover, .site-footer .lang-footer a:hover { text-decoration: underline; color: var(--tt-deep); }
.site-footer .lang-footer a { color: var(--tt-ink); }
.site-footer__copy { color: var(--tt-muted); margin-top: var(--wp--preset--spacing--40); }

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

/* ---------- Page sections (home and game pages) ---------- */
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
.band { padding-top: var(--wp--preset--spacing--50); padding-bottom: var(--wp--preset--spacing--50); }
.band--hero { margin-top: 0 !important; margin-bottom: var(--wp--preset--spacing--40); }
.band--hero .wp-block-columns { gap: var(--wp--preset--spacing--40); }
.band--hero h1 { margin-top: 0; text-wrap: balance; }
.band--hero p { color: var(--tt-muted); }
.hero-art img { border-radius: 20px; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.game-title img { width: min(380px, 100%) !important; border-radius: 0; }
.phone-shot { margin-inline: auto !important; }
.phone-shot img { border-radius: 24px; box-shadow: 0 0 0 6px #fff, 0 0 0 7px var(--tt-line); width: min(270px, 70vw) !important; }
.muted { color: var(--tt-muted); }

.game-card, .beta-band, .feature, .news__item { border-radius: var(--tt-radius); }
.game-card { padding: var(--wp--preset--spacing--40); margin-top: var(--wp--preset--spacing--40) !important; }
.game-card h2 { margin-top: 0; }
.game-card .wp-block-columns { gap: var(--wp--preset--spacing--30); margin: 0; }
.game-card__icon img { border-radius: 24px; }
.beta-band { padding: var(--wp--preset--spacing--40); margin-top: var(--wp--preset--spacing--40) !important; gap: 16px 32px; }
.beta-band h2 { margin: 0 0 6px; }
.beta-band p { margin: 0; }
.touch, .section { margin-top: var(--wp--preset--spacing--50) !important; }

.store-row { gap: 12px 16px; }
.store-badge { margin: 0 !important; line-height: 0; }
.store-badge img { border-radius: 0; height: auto; }
.wp-block-button.is-ink > .wp-block-button__link { background: var(--tt-ink); color: #fff; }
.wp-block-button.is-ink > .wp-block-button__link:hover { background: #22324d; }

.screens { overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
.screens > .wp-block-image { flex: 0 0 min(42vw, 210px); margin: 0; scroll-snap-align: start; }
.screens img { border-radius: 16px; box-shadow: 0 0 0 1px var(--tt-line); }

.features { gap: 14px; }
.feature { padding: 20px 22px; }
.feature h3 { margin: 0 0 6px; }
.feature p { margin: 0; }

.news { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.news__item { padding: 18px 22px; border: 1px solid var(--tt-line); background: #fff; }
.news__date { color: var(--tt-muted); margin: 0 0 4px; font-weight: 700; }
.news__item h3 { margin: 0 0 8px; }
.news__item ul { margin: 0; padding-left: 1.2em; }
.news__item li { margin-bottom: 4px; }

@media (max-width: 781px) {
	.band--hero .wp-block-column { flex-basis: 100% !important; }
	.game-card .wp-block-columns { flex-wrap: wrap !important; }
	.game-card__icon { flex-basis: 96px !important; }
	.game-card__icon img { width: 96px !important; }
}
.features, .news { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)) !important; gap: 14px; }
.features > *, .news > * { margin: 0 !important; }
.phone-shot { text-align: center; }
.phone-shot img { display: inline-block; }

/* Platform buttons (Android / Windows PC / iPhone), our own design: Google's and Apple's badges can't be changed */
.store-row { align-items: center; }
.platforms { display: flex; flex-wrap: wrap; gap: 10px; }
.platform {
	display: inline-flex; align-items: center; gap: 10px; min-height: 56px; min-width: 176px; padding: 8px 18px 8px 14px; box-sizing: border-box;
	background: var(--tt-ink); color: #fff; border: 2px solid var(--tt-ink); border-radius: 12px; text-decoration: none; line-height: 1.15;
}
.platform > span { display: flex; flex-direction: column; }
.platform b { font-family: var(--wp--preset--font-family--fredoka); font-weight: 600; font-size: 19px; }
.platform small { font-size: 13px; font-weight: 600; opacity: .85; }
a.platform:hover { background: #22324d; border-color: #22324d; color: #fff; }
.platform--soon { background: #fff; color: var(--tt-ink); border: 2px dashed #9fb6cf; }
.platform--soon small { color: var(--tt-muted); opacity: 1; }
@media (max-width: 600px) { .platforms { flex-direction: column; align-items: stretch; width: 100%; } .platform { width: 100%; } }

/* Home game card on phones: icon above the text, text uses the full width */
@media (max-width: 600px) {
	.game-card .wp-block-columns { flex-direction: column; align-items: flex-start !important; }
	.game-card .wp-block-column { flex-basis: auto !important; width: 100%; align-self: stretch; }
	.game-card .game-card__icon { width: auto; align-self: flex-start; }
}

/* Faint tile shapes in the white side margins (owner, 2026-12-04): a strip of shapes down each side of the page,
   sized to the margin outside the content (wide size 1180px), so the text area stays clean on any screen. Header, hero
   band and footer are see-through tints, so the strips run on behind them; cards keep solid colours. */
body {
	--tt-gutter: clamp(56px, calc((100vw - 1180px) / 2 - 8px), 240px);
	background-color: #fff;
	background-image: url(../images/tiles-left.svg), url(../images/tiles-right.svg);
	background-position: left top, right top;
	background-repeat: repeat-y, repeat-y;
	background-size: var(--tt-gutter) auto, var(--tt-gutter) auto;
}
.site-header { background: rgb(255 255 255 / .82); }
.band--hero.has-background { background-color: rgb(213 236 255 / .5) !important; }
.site-footer { background: rgb(232 241 250 / .6); }
/* Phones have almost no margin outside the text: no shapes there (they looked busy behind the text) */
@media (max-width: 600px) { body { background-image: none; } }

/* Home hero: the logo's nine tiles, one per game (owner, 2026-12-04). A new game's icon goes into the next tile. */
.studio-tiles {
	position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 7%; width: min(400px, 100%); margin-inline: auto; padding: 4%;
	aspect-ratio: 1; box-sizing: border-box;
}
.studio-tiles .tile { display: block; position: relative; aspect-ratio: 1; min-width: 0; min-height: 0; border-radius: 24%; background: var(--c); box-shadow: 0 6px 0 rgb(11 27 51 / .08); }
.studio-tiles .tile:nth-child(1) { transform: rotate(-7deg) translateY(4%); }
.studio-tiles .tile:nth-child(2) { transform: rotate(5deg) translateY(-6%); }
.studio-tiles .tile:nth-child(3) { transform: rotate(-4deg) translateY(8%); }
.studio-tiles .tile:nth-child(4) { transform: rotate(6deg); }
.studio-tiles .tile:nth-child(6) { transform: rotate(-6deg) translateY(-4%); }
.studio-tiles .tile:nth-child(7) { transform: rotate(4deg) translateY(-3%); }
.studio-tiles .tile:nth-child(8) { transform: rotate(-5deg) translateY(6%); }
.studio-tiles .tile:nth-child(9) { transform: rotate(7deg) translateY(-2%); }
.studio-tiles .tile--game { transform: scale(1.18) rotate(-3deg); overflow: hidden; background: #fff; box-shadow: 0 10px 24px rgb(11 27 51 / .18); z-index: 1; transition: transform .2s; }
.studio-tiles .tile--game:hover, .studio-tiles .tile--game:focus-visible { transform: scale(1.24) rotate(0deg); }
.studio-tiles .tile--game img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
.studio-ball {
	position: absolute; width: 9%; aspect-ratio: 1; border-radius: 50%; right: 2%; top: -2%;
	background: radial-gradient(circle at 35% 30%, #fff6c8 0 12%, #ffcf3a 40%, #d98a00 100%); box-shadow: 0 4px 8px rgb(150 90 0 / .3);
	animation: studio-bounce 2.4s ease-in-out infinite;
}
@keyframes studio-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-40%); } }
@media (prefers-reduced-motion: reduce) { .studio-ball { animation: none; } }
@media (max-width: 781px) { .studio-tiles { width: 230px; } }

/* Form notes: muted colour instead of the forms snippet's 80 % opacity, so the Privacy Policy link keeps 4.5:1 contrast */
.site-main .site-form .site-form-note, .site-main .beta-device-sub { opacity: 1; color: var(--tt-muted); }
