/* Casual Joy Games — Bauhaus geometric abstraction */
:root {
  --paper: #f3eee5;
  --ink: #1a1a1a;
  --red: #d92f1a;
  --yellow: #f4c430;
  --blue: #1f3da6;
  --black: #000;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--paper); color: var(--ink);
  font-family: 'Archivo', 'Inter', 'Helvetica Neue', sans-serif; font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--red); }
a:hover { background: var(--yellow); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

/* Top — title in big circle */
header.top { padding: 32px 0; border-bottom: 4px solid var(--black); display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 16px; }
.logo-circle { width: 56px; height: 56px; background: var(--red); border-radius: 50%; position: relative; }
.logo-circle::after { content: ''; position: absolute; left: 50%; top: 0; width: 28px; height: 56px; background: var(--blue); border-top-right-radius: 28px; border-bottom-right-radius: 28px; }
.logo-name { font-family: 'Archivo Black', 'Archivo', sans-serif; font-size: 22px; letter-spacing: -0.01em; text-transform: uppercase; }
nav.top-nav a { display: inline-block; margin-left: 24px; font-weight: 600; text-transform: uppercase; font-size: 13px; letter-spacing: 0.18em; border-bottom: none; }
nav.top-nav a:hover { color: var(--red); background: none; }

/* Hero — asymmetric grid with shapes */
.hero { padding: 80px 0 100px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 800px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { font-family: 'Archivo Black', 'Archivo', sans-serif; font-size: clamp(48px, 8vw, 104px); line-height: 0.95; letter-spacing: -0.04em; margin: 0 0 24px; text-transform: uppercase; }
.hero h1 .red { color: var(--red); }
.hero h1 .blue { color: var(--blue); }
.hero h1 .yellow-bg { background: var(--yellow); padding: 0 8px; }
.hero p.lead { font-size: 19px; max-width: 44ch; margin: 0; }
.hero-shapes { position: relative; height: 320px; }
.hero-shapes .shape { position: absolute; }
.shape.s1 { width: 200px; height: 200px; background: var(--blue); top: 0; left: 0; }
.shape.s2 { width: 150px; height: 150px; border-radius: 50%; background: var(--red); top: 80px; left: 120px; }
.shape.s3 { width: 120px; height: 120px; background: var(--yellow); right: 20px; top: 30px; transform: rotate(45deg); }
.shape.s4 { width: 0; height: 0; border-left: 50px solid transparent; border-right: 50px solid transparent; border-bottom: 86px solid var(--black); right: 40px; bottom: 20px; }

/* Section header style */
section { padding: 80px 0; border-top: 4px solid var(--black); }
.section-num { font-family: 'Archivo Black', sans-serif; font-size: 13px; letter-spacing: 0.24em; color: var(--red); text-transform: uppercase; margin-bottom: 12px; }
section h2 { font-family: 'Archivo Black', sans-serif; font-size: clamp(36px, 5vw, 64px); text-transform: uppercase; letter-spacing: -0.02em; margin: 0 0 32px; line-height: 1; }

/* Games — colored block grid */
.games-block-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; border: 4px solid var(--black); }
@media (max-width: 720px) { .games-block-grid { grid-template-columns: repeat(2, 1fr); } }
.gblock { padding: 32px 24px; min-height: 180px; display: flex; flex-direction: column; justify-content: space-between; background: var(--paper); }
.gblock.cR { background: var(--red); color: white; }
.gblock.cB { background: var(--blue); color: white; }
.gblock.cY { background: var(--yellow); }
.gblock.cK { background: var(--black); color: white; }
.gblock-num { font-family: 'Archivo Black'; font-size: 13px; letter-spacing: 0.2em; opacity: 0.7; }
.gblock h3 { font-family: 'Archivo Black', sans-serif; font-size: 22px; line-height: 1.05; margin: 0; letter-spacing: -0.01em; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
@media (max-width: 720px) { .about-grid { grid-template-columns: 1fr; } }
.about-grid p { font-size: 18px; }
.manifesto { background: var(--black); color: var(--paper); padding: 40px; }
.manifesto p { margin: 0 0 1em; font-family: 'Archivo Black'; font-size: 22px; line-height: 1.2; }

/* Contact */
.contact { background: var(--yellow); padding: 64px 48px; display: flex; align-items: center; gap: 32px; flex-wrap: wrap; justify-content: space-between; }
.contact h3 { font-family: 'Archivo Black'; font-size: 36px; margin: 0; text-transform: uppercase; }
.contact a.mail { font-size: 24px; font-family: 'Archivo Black'; border-bottom: 4px solid var(--black); padding-bottom: 4px; }

footer.foot { padding: 48px 0; border-top: 4px solid var(--black); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.14em; }
footer.foot a { border-bottom: none; }
footer.foot a:hover { color: var(--red); }

/* Legal */
.legal-page { padding: 64px 0 96px; }
.legal-page .legal-num { font-family: 'Archivo Black'; font-size: 13px; letter-spacing: 0.24em; color: var(--red); text-transform: uppercase; margin-bottom: 12px; }
.legal-page h1 { font-family: 'Archivo Black', sans-serif; font-size: clamp(48px, 7vw, 88px); text-transform: uppercase; letter-spacing: -0.03em; margin: 0 0 16px; line-height: 0.95; }
.legal-page .back-link { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; border: none; }
.legal-page .legal-body { font-size: 16px; line-height: 1.75; max-width: 68ch; margin-top: 48px; border-top: 4px solid var(--black); padding-top: 32px; }
.legal-page .legal-body h2, .legal-page .legal-body h3, .legal-page .legal-body h4 { font-family: 'Archivo Black'; text-transform: uppercase; margin: 2em 0 0.5em; letter-spacing: -0.01em; }
.legal-page .legal-body h2 { font-size: 26px; color: var(--red); }
.legal-page .legal-body h3 { font-size: 20px; }
.legal-page .legal-body h4 { font-size: 17px; }
.legal-page .legal-body p { margin: 0 0 1em; }
.legal-page .legal-body strong { background: var(--yellow); padding: 0 4px; }
.legal-page .legal-body a { border-bottom: 2px solid var(--blue); }
.legal-page .legal-body ul, .legal-page .legal-body ol { padding-left: 1.4em; margin: 0 0 1em; }
.legal-page .legal-body li { margin-bottom: 0.4em; }
.legal-page .legal-body table { width: 100%; border-collapse: collapse; border: 4px solid var(--black); margin: 1.5em 0; font-size: 14px; }
.legal-page .legal-body th, .legal-page .legal-body td { border: 1px solid var(--black); padding: 10px 14px; vertical-align: top; }
.legal-page .legal-body th { background: var(--black); color: var(--paper); text-transform: uppercase; font-size: 12px; letter-spacing: 0.1em; }
