/* Pagină autonomă: resursele din acest director funcționează și pe subdomeniu. */
:root {
  --ink: #173b4a;
  --ink-soft: #41626e;
  --night: #293f78;
  --night-deep: #1d2c59;
  --teal: #087378;
  --sky: #bdefff;
  --sun: #ffd64f;
  --coral: #ff7b6e;
  --mint: #dff5d9;
  --paper: #fffaf0;
  --display: ui-rounded, "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.65 "Trebuchet MS", system-ui, sans-serif; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { color: inherit; font: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 5px; }
.button-dark:focus-visible, .site-footer a:focus-visible { outline-color: var(--sun); }
.shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
h1, h2, h3 { margin: 0 0 1rem; font-family: var(--display); line-height: 1.1; letter-spacing: -.035em; }
p { margin: 0 0 1rem; }
.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 100; padding: .75rem 1rem; border-radius: 2rem; color: #fff; background: var(--night); }
.skip-link:focus { top: 1rem; }
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid #173b4a14; background: #fffaf0f5; }
.nav { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 82px; }
.brand { flex: 0 0 auto; }
.brand img { width: 155px; }
.nav nav { display: flex; align-items: center; gap: clamp(.9rem, 1.8vw, 1.55rem); font-size: .95rem; font-weight: 800; }
.nav a { text-decoration: none; }
.nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 3px; text-underline-offset: .5rem; }
.nav nav a:hover { text-decoration: underline; text-underline-offset: .3rem; }
.nav-cta { padding: .72rem 1.05rem; border-radius: 2rem; color: #fff; background: var(--teal); }
.menu-toggle { display: none; align-items: center; gap: .55rem; padding: .65rem .8rem; border: 0; border-radius: 2rem; background: #e7f9ff; font-weight: 900; cursor: pointer; }
.menu-lines { display: grid; gap: 3px; }
.menu-lines i { width: 18px; height: 2px; border-radius: 2px; background: var(--ink); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: .85rem 1.35rem; border: 2px solid transparent; border-radius: 2rem; font-weight: 900; line-height: 1.2; text-align: center; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.button:hover, .game-card-link:hover .button { transform: translateY(-3px); box-shadow: 0 10px 24px #1b455326; }
.button-dark { color: #fff; background: var(--night); }
.button-sun { color: var(--night-deep); background: var(--sun); }
.eyebrow { display: flex; align-items: center; gap: .5rem; margin-bottom: .85rem; color: var(--teal); font-size: .875rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.eyebrow > span { display: grid; place-items: center; flex: 0 0 auto; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: #fff9; }
.games-hero { position: relative; overflow: hidden; padding: clamp(3rem, 6vw, 5.5rem) 0; background: linear-gradient(120deg, var(--sky), #e9f8dc); }
.games-hero::after { position: absolute; right: -80px; bottom: -140px; width: 320px; aspect-ratio: 1; border-radius: 50%; background: #ff7b6e26; content: ""; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(240px, 1fr); align-items: center; gap: 2rem; }
.hero-copy h1 { color: var(--night); font-size: clamp(3rem, 5.2vw, 4.8rem); }
.hero-copy h1 span { color: var(--teal); }
.lead { max-width: 600px; margin: 1.35rem 0 1.8rem; color: var(--ink-soft); font-size: 1.15rem; }
.hero-character { position: relative; display: grid; justify-items: center; padding-top: 2rem; }
.hero-character::before { position: absolute; bottom: -5px; width: 310px; max-width: 100%; aspect-ratio: 1; border-radius: 46% 54% 58% 42%; background: #ffffff80; content: ""; transform: rotate(-12deg); }
.hero-character img { position: relative; width: 235px; transform: rotate(3deg); }
.character-bubble { position: relative; z-index: 1; margin: 0 0 .8rem 2rem; padding: .6rem 1rem; border: 2px solid var(--night); border-radius: 1rem 1rem 1rem .2rem; background: #fff; box-shadow: 4px 5px 0 var(--sun); font-family: var(--display); font-weight: 800; transform: rotate(-3deg); }
.hero-spark { position: absolute; top: 35%; right: 3%; color: var(--coral); font-size: 3rem; transform: rotate(10deg); }
.games-section { padding: clamp(3.5rem, 6vw, 5.5rem) 0; background-image: radial-gradient(#173b4a09 .8px, transparent .8px); background-size: 8px 8px; }
.section-heading { margin-bottom: 2rem; }
.section-heading h2 { color: var(--night); font-size: clamp(2.2rem, 3.5vw, 3rem); }
.section-heading > p:last-child { color: var(--ink-soft); font-size: 1.08rem; }
.games-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.game-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid #173b4a24; border-radius: 1.7rem; background: #fff; box-shadow: 0 12px 30px #1b455314; }
.game-art { position: relative; display: grid; place-items: center; min-height: 240px; overflow: hidden; }
.rays-art { background: #bdefff; }
.rays-art img { width: 100%; height: 240px; object-fit: cover; }
.game-copy { display: flex; flex: 1; flex-direction: column; align-items: start; padding: 1.65rem; }
.game-category { margin-bottom: .65rem; color: var(--teal); font-size: .875rem; font-weight: 900; }
.game-copy h3 { color: var(--night); font-size: 1.85rem; }
.game-copy > p:not(.game-category) { margin-bottom: 1.5rem; color: var(--ink-soft); }
.game-copy .button { margin-top: auto; }
.proverb-art { padding: 1.5rem; background: var(--mint); }
.proverb-paper { width: 230px; padding: 1rem 1.3rem; border: 1px solid #173b4a24; border-radius: .5rem 1.5rem .5rem .5rem; background: var(--paper); box-shadow: 7px 9px 0 #08737821; transform: rotate(-5deg); }
.proverb-paper > span { color: var(--teal); font-size: 1.4rem; }
.proverb-paper p { margin: .25rem 0 .6rem; color: var(--night); font-family: var(--display); font-size: 2.4rem; font-weight: 900; line-height: 1.15; }
.proverb-paper b { display: inline-block; min-width: 3rem; border-bottom: 3px dashed var(--teal); color: var(--teal); text-align: center; }
.proverb-paper small { font-size: .875rem; }
.cat-art { background: #233352; }
.cat-moon { position: absolute; top: .25rem; left: 1.5rem; color: var(--sun); font-size: 4rem; transform: rotate(-15deg); }
.cat-sleep { position: absolute; top: 2rem; right: 1.4rem; color: #e2ecff; font-size: 1.4rem; font-weight: 900; transform: rotate(-10deg); }
.cat { position: absolute; bottom: 53px; left: 50%; width: 125px; height: 107px; border-radius: 45% 45% 25% 25%; background: #f2a03d; transform: translateX(-50%) rotate(-5deg); }
.cat-ear { position: absolute; top: -24px; width: 43px; height: 50px; background: #f2a03d; clip-path: polygon(0 0, 100% 70%, 5% 100%); }
.cat-ear.left { left: 3px; }
.cat-ear.right { right: 3px; transform: scaleX(-1); }
.cat-face { position: absolute; top: 13px; width: 100%; color: #382817; font-size: 2rem; font-weight: 900; text-align: center; }
.cat-paw { position: absolute; right: -34px; bottom: 5px; width: 60px; height: 32px; border-radius: 50%; background: #f2a03d; transform: rotate(20deg); }
.cat-table { position: absolute; right: 8%; bottom: 34px; left: 8%; height: 15px; border-radius: 4px; background: #e5bb81; box-shadow: 0 9px 0 #b98958; }
.cup { position: absolute; top: -39px; right: 12%; width: 29px; height: 37px; border-radius: 3px 3px 10px 10px; background: var(--sky); transform: rotate(30deg); }
.cup::after { position: absolute; top: 6px; right: -12px; width: 15px; height: 18px; border: 5px solid var(--sky); border-left: 0; border-radius: 0 12px 12px 0; content: ""; }
.ball { position: absolute; top: -23px; left: 11%; width: 23px; aspect-ratio: 1; border-radius: 50%; background: var(--coral); }
.miau-art { background: linear-gradient(#bdefff 70%, #dff5d9 70%); }
.miau-art .cat-table { background: #73ad75; box-shadow: 0 9px 0 #467c50; }
.miau-art .cat-sleep { color: var(--teal); font-size: 2.5rem; }
.vacuum-art { background: #3a6b75; }
.vacuum-art .cat { left: 38%; bottom: 73px; transform: translateX(-50%) rotate(-12deg); }
.vacuum-robot { position: absolute; right: 12%; bottom: 53px; width: 73px; height: 38px; border: 4px solid #a8b8bd; border-radius: 50%; background: #dce6e9; box-shadow: 0 8px 0 #293f4b; }
.vacuum-robot::after { position: absolute; top: 8px; left: 28px; width: 9px; height: 9px; border-radius: 50%; background: var(--coral); content: ""; }
.strategy-art { background: #ffe3d4; }
.strategy-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; width: 182px; padding: 10px; border-radius: 1rem; background: var(--night); box-shadow: 8px 10px 0 #293f7826; transform: rotate(7deg); }
.strategy-board span { display: grid; place-items: center; aspect-ratio: 1; border-radius: 5px; color: var(--teal); background: #fffaf0; font-size: 2.1rem; font-weight: 900; line-height: 1; }
.strategy-board span:nth-child(5n + 1) { color: var(--night); background: var(--sun); }
.strategy-spark { position: absolute; top: 1rem; right: 1rem; color: #a13b33; font-size: 2.5rem; }
.more-games { display: flex; align-items: center; justify-content: center; gap: .8rem; margin: 2.5rem 0 0; color: var(--ink-soft); text-align: center; }
.more-games span { color: var(--teal); font-size: 1.4rem; }
.creative-banner { padding: 3.5rem 0; color: #fff; background: var(--teal); }
.banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 3rem; }
.banner-inner h2 { font-size: clamp(2rem, 3vw, 2.8rem); }
.banner-inner .eyebrow { color: var(--sun); }
.banner-inner p:last-child { margin-bottom: 0; }
.banner-inner .button { flex: 0 0 auto; }
.site-footer { padding: 2rem 0; color: #d8e7ee; background: var(--night-deep); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; font-size: .9rem; }
.footer-inner p { max-width: 410px; margin: 0; }
.footer-inner nav { display: flex; flex-wrap: wrap; align-items: start; gap: .75rem 1.5rem; }
.footer-inner a { text-underline-offset: .25rem; }
@media (max-width: 1020px) {
  .games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav nav { gap: .85rem; font-size: .875rem; }
  .game-copy { padding: 1.5rem; }
}
@media (max-width: 820px) {
  html { scroll-padding-top: 92px; }
  .nav { flex-wrap: wrap; min-height: 72px; gap: .5rem; padding-block: .75rem; }
  .brand img { width: 130px; }
  .nav nav { flex-wrap: wrap; width: 100%; padding: 1rem 0; }
  .has-menu .menu-toggle { display: inline-flex; }
  .has-menu .nav nav { position: absolute; top: 100%; right: -24px; left: -24px; display: none; width: auto; max-height: calc(100dvh - 80px); overflow-y: auto; padding: 1rem 24px; background: var(--paper); box-shadow: 0 16px 30px #173b4a26; }
  .has-menu .nav nav.is-open { display: grid; }
  .nav nav a { padding: .75rem; font-size: 1rem; }
  .nav-cta { text-align: center; }
  .menu-toggle[aria-expanded="true"] i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 200px; }
  .hero-character img { width: 175px; }
  .hero-character::before { width: 210px; }
  .character-bubble { margin-left: 0; font-size: .875rem; }
  .hero-spark { right: -8px; font-size: 2rem; }
  .banner-inner { display: grid; gap: 1.5rem; }
  .banner-inner .button { justify-self: start; }
}
@media (max-width: 620px) {
  .shell { width: calc(100% - 32px); }
  .has-menu .nav nav { right: -16px; left: -16px; }
  .games-hero { padding: 2.5rem 0 2rem; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .hero-copy h1 { font-size: clamp(2.6rem, 10.7vw, 4rem); }
  .lead { font-size: 1.05rem; }
  .hero-character { width: 230px; justify-self: center; padding-top: 0; }
  .hero-character img { width: 145px; }
  .hero-character::before { width: 190px; }
  .character-bubble { position: absolute; top: 1rem; right: -25px; padding: .45rem .65rem; font-size: .8rem; }
  .hero-spark { top: 14%; left: -10px; right: auto; }
  .games-grid { grid-template-columns: minmax(0, 1fr); }
  .game-art { min-height: 240px; }
  .button { width: 100%; }
  .more-games { align-items: start; font-size: .95rem; }
  .more-games span { line-height: 1.5; }
  .creative-banner { padding: 3rem 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
