* { box-sizing: border-box; }
:root { --page: #fcfbff; --surface: #fff; --ink: #332c49; --muted: #6c637e; --line: #e7e1f0; --accent: #7251ac; --radius: 26px; --tools: #ece4f8; --desktop: #ecf1fc; --prompts: #f2edfb; --skills: #fff1e2; --games: #e6f3ee; }
body { margin: 0; background: var(--page); color: var(--ink); font: 16px/1.5 "Segoe UI", Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icons { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: min(1248px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: fixed; top: -100px; left: 16px; z-index: 10; padding: 12px; background: white; }
.skip:focus { top: 8px; }
.header { display: flex; align-items: center; justify-content: space-between; min-height: 80px; border-bottom: 1px solid var(--line); gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.brand__mark { background: var(--ink); color: white; border-radius: 12px; width: 42px; height: 42px; font: 600 32px/42px Georgia, serif; text-align: center; position: relative; }
.brand__mark span { font: 18px/1 "Segoe UI", sans-serif; position: absolute; right: 3px; top: 3px; color: #c3e4b5; }
.brand__text { font-size: 20px; font-weight: 750; letter-spacing: -.04em; line-height: 1.25; }
.brand__text small { display: block; font-size: 12px; font-weight: 400; letter-spacing: .01em; color: var(--muted); }
.header__nav { display: flex; align-items: center; gap: 26px; }
.header__nav a { font-size: 14px; min-height: 44px; display: flex; align-items: center; }
.header__toggle { display: none; }
.intro { padding: 22px 0 20px; }
.intro__eyebrow { font-size: 11px; font-weight: 650; letter-spacing: .14em; color: var(--accent); margin: 0 0 8px; }
h1 { font-size: clamp(30px, 2.7vw, 38px); line-height: 1.14; font-weight: 650; letter-spacing: -.045em; margin: 0 0 12px; }
h1 span { color: var(--accent); }
.intro__description { font-size: 16px; color: var(--muted); margin: 0; }
.intro__break { display: none; }
.categories { display: grid; grid-template-columns: 1.2fr 1fr 1fr; grid-template-areas: "tools desktop prompts" "tools skills games"; gap: 12px; }
.category { display: flex; flex-direction: column; align-items: flex-start; position: relative; min-height: 112px; background: var(--surface); padding: 16px 22px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .18s, box-shadow .18s, border-color .18s; }
.category--tools { grid-area: tools; background: var(--tools); padding: 24px; }
.category--desktop { grid-area: desktop; --tint: var(--desktop); }
.category--prompts { grid-area: prompts; --tint: var(--prompts); }
.category--skills { grid-area: skills; --tint: var(--skills); }
.category--games { grid-area: games; --tint: var(--games); }
.category__icon { width: 38px; height: 38px; border-radius: 11px; background: var(--tint, #ffffff99); display: flex; align-items: center; justify-content: center; position: absolute; top: 17px; right: 18px; }
.category__copy { position: relative; z-index: 1; width: 100%; }
.category h2 { font-size: 18px; font-weight: 650; line-height: 1.3; letter-spacing: -.025em; margin: 0 42px 5px 0; }
.category p { font-size: 14px; color: var(--muted); margin: 0; max-width: 240px; }
.category__action { font-size: 12px; margin-top: auto; padding-top: 12px; color: var(--accent); font-weight: 600; position: relative; z-index: 1; }
.category--tools .category__icon { position: static; margin-bottom: 13px; }
.category--tools h2 { font-size: 27px; margin-right: 0; }
.category--tools p { max-width: 220px; }
.category__art { position: absolute; width: 155px; height: 132px; right: 15px; bottom: 23px; transform: rotate(-8deg); color: #427861; }
.art__window { height: 119px; width: 140px; padding: 12px; background: #ffffffbd; border: 1px solid #91b7a6; border-radius: 12px; box-shadow: 0 12px 20px #43695314; }
.art__window > span { display: inline-block; width: 4px; height: 4px; background: #9bbbab; border-radius: 50%; vertical-align: top; }
.art__shapes { display: flex; gap: 7px; margin: 2px 0 12px; }
.art__shapes i { width: 30px; height: 30px; background: #bdd8c7; border-radius: 6px; }
.art__shapes i:nth-child(2) { background: #d4cdea; border-radius: 50%; }
.art__shapes i:nth-child(3) { background: #ead6a5; }
.art__line { background: #cedbd3; height: 5px; border-radius: 5px; margin: 6px 0; }
.art__line--short { width: 65%; }
.art__badge { position: absolute; right: 0; bottom: 0; width: 48px; height: 48px; background: #fbf7d9; border: 1px solid #d1cda8; border-radius: 12px; text-align: center; font-size: 32px; }
.games { margin-top: 23px; }
.games__heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 13px; }
.games__heading h2 { font-size: 24px; line-height: 1.3; letter-spacing: -.03em; margin: 0 0 3px; font-weight: 650; }
.games__heading p { font-size: 14px; color: var(--muted); margin: 0; }
.games__all { font-size: 14px; text-decoration: underline; text-underline-offset: 4px; min-height: 44px; display: flex; align-items: center; }
.games__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.game { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.game__cover { aspect-ratio: 1.91; display: grid; place-items: center; position: relative; background: #e8efe9; border-bottom: 1px solid var(--line); }
.game__cover--clock { background: #eaeef5; }
.game__cover--houses { background: #f3ece5; }
.game__placeholder { font-size: 14px; color: #58635e; border: 1px dashed #aab6af; padding: 8px 15px; border-radius: 8px; }
.game__body { padding: 14px 18px; }
.game h3, .game h2 { font-size: 18px; font-weight: 650; line-height: 1.3; letter-spacing: -.025em; margin: 0 0 6px; overflow-wrap: anywhere; }
.game p { color: var(--muted); font-size: 14px; margin: 0 0 10px; min-height: 42px; }
.game__status { display: inline-block; color: var(--muted); background: var(--page); font-size: 12px; padding: 3px 10px; border-radius: 6px; }
.footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 22px; padding-block: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
@media (hover: hover) { .category:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 8px 20px #182e2310; } .header__nav a:hover, .games__all:hover { color: var(--accent); } }
.category:active { transform: translateY(1px); }
.brand__mark { background: #7251ac; border-radius: 50%; }
.brand__mark span { color: #f5dc98; }
.intro { text-align: center; padding-block: 24px; }
h1 { margin-inline: auto; font-weight: 750; max-width: 850px; }
.categories { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-areas: "tools tools desktop prompts" "tools tools skills games"; }
.category { background: var(--tint); border-color: transparent; min-height: 112px; }
.category--tools { background: #ece4f8; padding: 26px; }
.category--tools h2 { font-size: 30px; }
.category__icon { background: #ffffff9c; border-radius: 50%; width: 34px; height: 34px; top: 14px; right: 14px; }
.category h2 { margin-right: 32px; }
.category p { max-width: 220px; }
.category__art { width: 175px; height: 150px; right: 36px; bottom: 28px; transform: rotate(-9deg) scale(1.1); }
.art__window { background: #fffc; border-color: #b8a5cf; }
.game__cover { background: #e9f1e9; }
.game__cover--clock { background: #f0e9f8; }
.game__cover--houses { background: #fcf0dd; }
.game__placeholder { border-radius: 24px; background: #ffffff80; }
.catalog { min-height: 65vh; padding-block: 40px; }
.catalog__back { display: inline-flex; min-height: 44px; align-items: center; text-decoration: underline; color: var(--accent); }
.catalog__empty { margin-top: 32px; padding: 60px 24px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; background: var(--surface); }
.catalog__empty h2 { font-size: 24px; margin: 0 0 10px; }
.catalog__empty p { margin: 0; color: var(--muted); }
@media (max-width: 1100px) {
  .header__nav { gap: 16px; } .wrap { width: calc(100% - 48px); }
  .categories { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "tools tools" "desktop prompts" "skills games"; }
  .category--tools { min-height: 215px; } .category__art { right: 48px; }
  .games__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  .header { min-height: 80px; flex-wrap: wrap; position: relative; gap: 0; }
  .header__toggle { display: flex; gap: 12px; align-items: center; min-height: 44px; padding: 8px 12px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
  .header__nav { display: none; width: 100%; padding-block: 12px; flex-direction: column; align-items: stretch; gap: 0; }
  .header__nav.is-open { display: flex; }
  .header__nav a { padding-inline: 12px; font-size: 16px; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .intro { padding-block: 27px 24px; text-align: left; }
  .intro__eyebrow { font-size: 10px; letter-spacing: .09em; margin-bottom: 12px; max-width: 260px; }
  h1 { font-size: 34px; line-height: 1.12; }
  h1 span { display: inline; } .intro__description { line-height: 1.6; }
  .categories { grid-template-columns: 1fr; grid-template-areas: "tools" "desktop" "prompts" "skills" "games"; gap: 10px; }
  .category { padding: 20px; min-height: 138px; }
  .category--tools { min-height: 245px; }
  .category__icon { right: 18px; top: 18px; }
  .category--tools h2 { font-size: 26px; }
  .category--tools p { max-width: 190px; }
  .category__art { right: 8px; bottom: 22px; transform: rotate(-8deg) scale(.7); transform-origin: bottom right; }
  .games { margin-top: 30px; }
  .games__heading { flex-wrap: wrap; gap: 4px; margin-bottom: 15px; }
  .games__heading h2 { font-size: 26px; }
  .games__heading p { font-size: 16px; }
  .games__grid { grid-template-columns: 1fr; gap: 18px; }
  .game__body { padding: 18px; } .game h3, .game h2 { font-size: 20px; } .game p { font-size: 16px; min-height: 0; margin-bottom: 14px; }
  .game__status { font-size: 14px; }
  .footer { flex-direction: column; gap: 4px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
.header__toggle { display: none; }
@media (max-width: 780px) {
  .header__nav { display: flex; }
  .has-js .header__toggle { display: flex; }
  .has-js .header__nav { display: none; }
  .has-js .header__nav.is-open { display: flex; }
}
.game__cover img { display: block; width: 100%; height: 100%; aspect-ratio: 1.91; object-fit: contain; }
.game__link { display: flex; flex-direction: column; height: 100%; transition: box-shadow .18s; border-radius: var(--radius); }
.game__link .game__status { background: var(--prompts); color: var(--accent); }
.game__link .game__body { flex: 1; }
@media (hover: hover) { .game__link:hover { box-shadow: inset 0 0 0 2px var(--accent); } }
.catalog__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.catalog__grid:empty { display: none; }
.catalog__empty { margin-top: 28px; }
.prompt { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--surface); }
.prompt h2 { margin: 0 0 8px; font-size: 22px; }
.prompt p { color: var(--muted); }
.prompt__text { white-space: pre-wrap; font: inherit; overflow-wrap: anywhere; background: var(--page); padding: 16px; border-radius: 12px; }
.prompt__button { min-height: 44px; padding: 10px 18px; border: 1px solid var(--accent); border-radius: 12px; background: var(--prompts); color: var(--ink); cursor: pointer; }
.prompt__feedback { display: block; min-height: 24px; margin-top: 8px; font-size: 14px; color: var(--muted); }
details { margin-block: 16px; }
summary { cursor: pointer; min-height: 44px; padding-block: 10px; }
@media (max-width: 1100px) { .catalog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .catalog__grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .game__link { transition: none; } }
@media (max-width: 360px) { .category__art { transform: rotate(-9deg) scale(.4); } }
