    :root {
      --pink: #ff4d8d;
      --pink-hover: #e63d7a;
      --text: #1a1a1a;
      --muted: #666;
      --border: #e8e8e8;
      --footer-bg: #1c1412;
      --page-bg: #f5f5f5;
      --card-bg: #fff;
      --max: 1180px;
      --front-photo-max-h: 200px;
      --front-photo-max-w: min(100%, calc(200px * 16 / 9));
    }

    *,
    *::before,
    *::after {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      font-family: "DM Sans", system-ui, -apple-system, sans-serif;
      color: var(--text);
      background: var(--page-bg);
      line-height: 1.5;
      padding-left: env(safe-area-inset-left, 0);
      padding-right: env(safe-area-inset-right, 0);
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    .site-header {
      position: sticky;
      top: 0;
      z-index: 50;
      background: #fff;
      border-bottom: 1px solid var(--border);
      padding-top: env(safe-area-inset-top, 0);
    }

    .header-inner {
      max-width: var(--max);
      margin: 0 auto;
      padding: 0.75rem clamp(0.65rem, 4vw, 1.25rem);
      display: flex;
      flex-wrap: nowrap;
      align-items: center;
      justify-content: space-between;
      gap: 0.5rem 1rem;
    }

    @media (max-width: 959px) {
      .header-inner {
        flex-wrap: wrap;
      }

      .logo {
        order: 1;
      }

      .header-tools {
        order: 2;
        margin-left: auto;
      }

      .nav-toggle {
        display: flex;
      }
    }

    @media (min-width: 960px) {
      .nav-toggle {
        display: none !important;
      }
    }

    .logo {
      font-weight: 700;
      font-size: 1.35rem;
      letter-spacing: -0.02em;
      background: linear-gradient(135deg, #ff6b9d, #c471ed, #12c2e9);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      flex-shrink: 0;
    }

    .nav-main {
      display: flex;
      flex: 1 1 auto;
      flex-wrap: wrap;
      justify-content: center;
      gap: 0.35rem 1rem;
      font-size: 0.72rem;
      font-weight: 600;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      min-width: 0;
    }

    .nav-main a {
      color: var(--text);
      padding: 0.25rem 0;
    }

    .nav-main a:hover {
      color: var(--pink);
    }

    .nav-main a[aria-current="page"] {
      color: var(--pink);
      font-weight: 600;
    }

    @media (max-width: 959px) {
      .nav-main {
        order: 3;
        flex-basis: 100%;
        display: none;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: 0;
        margin: 0;
        overflow: visible;
        border: none;
        mask-image: none;
      }

      .site-header.is-nav-open .nav-main {
        display: flex;
        padding: 0.5rem 0 0.35rem;
        margin-top: 0.35rem;
        border-top: 1px solid var(--border);
      }

      .nav-main a {
        padding: 0.65rem 0.25rem;
        border-bottom: 1px solid #f2f2f2;
        white-space: normal;
      }

      .nav-main a:last-child {
        border-bottom: none;
      }
    }

    .header-tools {
      display: flex;
      align-items: center;
      flex-shrink: 0;
    }

    .nav-toggle {
      display: none;
      width: 44px;
      height: 44px;
      padding: 0;
      border: none;
      background: transparent;
      border-radius: 50%;
      cursor: pointer;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 5px;
      color: var(--text);
      touch-action: manipulation;
      -webkit-tap-highlight-color: transparent;
    }

    .nav-toggle:hover {
      background: #f0f0f0;
    }

    .nav-toggle__bar {
      display: block;
      width: 18px;
      height: 2px;
      border-radius: 1px;
      background: currentColor;
    }

    .screen-reader {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    .page-main {
      max-width: var(--max);
      margin: 0 auto;
      padding: clamp(0.75rem, 3vw, 1.25rem) clamp(0.65rem, 4vw, 1.25rem) 2rem;
    }

    .home-section {
      background: var(--card-bg);
      border-radius: 12px;
      padding: clamp(1rem, 3vw, 1.25rem) clamp(0.85rem, 3vw, 1.35rem) 1.35rem;
      margin-bottom: 1rem;
      box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
    }

    .home-section__head {
      display: flex;
      align-items: center;
      gap: 0.35rem;
      margin-bottom: 1.15rem;
    }

    .home-section__head--split {
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 0.75rem;
    }

    .home-section__title {
      margin: 0;
      font-size: 1.15rem;
      font-weight: 700;
      display: flex;
      align-items: center;
      gap: 0.35rem;
    }

    .star {
      color: var(--pink);
      font-size: 0.85rem;
      line-height: 1;
    }

    .see-all {
      font-size: 0.85rem;
      font-weight: 600;
      color: var(--pink);
    }

    .see-all:hover {
      text-decoration: underline;
    }

    .quiz-card {
      display: block;
      color: inherit;
      border-radius: 10px;
      overflow: hidden;
      background: #fff;
      border: 1px solid var(--border);
      transition: box-shadow 0.15s, transform 0.15s;
    }

    @media (hover: hover) {
      .quiz-card:hover {
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
        transform: translateY(-2px);
      }
    }

    .quiz-card__img {
      width: 100%;
      max-width: var(--front-photo-max-w);
      margin-inline: auto;
      aspect-ratio: 16 / 9;
      max-height: var(--front-photo-max-h);
      background: linear-gradient(145deg, #e8e8e8 0%, #d0d0d0 50%, #c4c4c4 100%);
    }

    .quiz-card__title {
      display: block;
      padding: 0.65rem 0.75rem 0.85rem;
      font-size: 0.82rem;
      font-weight: 600;
      line-height: 1.35;
    }

    .quiz-card__author {
      display: flex;
      align-items: center;
      gap: 0.35rem;
      margin: -0.45rem 0.75rem 0.65rem;
      font-size: 0.72rem;
      color: var(--muted);
      font-weight: 500;
    }

    .quiz-card__author-av {
      border-radius: 50%;
      object-fit: cover;
      flex-shrink: 0;
    }

    .quiz-card--lg .quiz-card__title {
      font-size: 0.95rem;
    }

    .popular-block {
      display: grid;
      grid-template-columns: 1fr 1fr minmax(100px, 150px);
      grid-template-rows: auto auto;
      gap: 1rem;
    }

    .popular-block > .quiz-card--lg:nth-of-type(1) {
      grid-column: 1;
      grid-row: 1;
    }

    .popular-block > .quiz-card--lg:nth-of-type(2) {
      grid-column: 2;
      grid-row: 1;
    }

    .ad-slot {
      grid-column: 3;
      grid-row: 1 / span 2;
      border: 2px dashed #ddd;
      border-radius: 10px;
      background: #fafafa;
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 120px;
      font-size: 0.7rem;
      font-weight: 700;
      letter-spacing: 0.18em;
      color: #bbb;
    }

    .popular-bottom {
      grid-column: 1 / 3;
      grid-row: 2;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1rem;
    }

    @media (max-width: 720px) {
      .popular-block {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
      }

      .popular-block > .quiz-card--lg:nth-of-type(1),
      .popular-block > .quiz-card--lg:nth-of-type(2) {
        grid-column: 1;
        grid-row: auto;
      }

      .ad-slot {
        grid-column: 1;
        grid-row: auto;
        min-height: 100px;
      }

      .popular-bottom {
        grid-column: 1;
        grid-row: auto;
        grid-template-columns: 1fr;
      }
    }

    @media (min-width: 481px) and (max-width: 720px) {
      .popular-bottom {
        grid-template-columns: repeat(2, 1fr);
      }

      .popular-bottom .quiz-card:last-child {
        grid-column: 1 / -1;
      }
    }

    .latest-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1rem;
    }

    @media (max-width: 900px) {
      .latest-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 640px) {
      .latest-grid {
        grid-template-columns: 1fr;
      }
    }

    .ad-banner {
      margin: 0 0 1.25rem;
    }

    .ad-banner--before-ym {
      margin-top: 0.25rem;
    }

    .ad-banner__inner {
      background: #fff;
      border-radius: 12px;
      border: 2px dashed #e0e0e0;
      min-height: 140px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.75rem;
      font-weight: 700;
      letter-spacing: 0.2em;
      color: #c8c8c8;
    }

    .ym-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1rem;
    }

    @media (max-width: 900px) {
      .ym-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 520px) {
      .ym-grid {
        grid-template-columns: 1fr;
      }
    }

    .see-more-wrap {
      display: flex;
      justify-content: center;
      margin-top: 1.5rem;
    }

    .see-more {
      font-family: inherit;
      font-size: 0.95rem;
      font-weight: 700;
      letter-spacing: 0.04em;
      padding: 0.85rem 3rem;
      border: none;
      border-radius: 999px;
      background: var(--pink);
      color: #fff;
      cursor: pointer;
      transition: background 0.15s;
    }

    .see-more:hover {
      background: var(--pink-hover);
    }

    @media (max-width: 480px) {
      .home-section__title {
        font-size: 1.05rem;
      }

      .see-more {
        width: 100%;
        max-width: 320px;
        padding-left: 1rem;
        padding-right: 1rem;
      }

      .quiz-card--lg .quiz-card__img {
        min-height: 0;
        aspect-ratio: 16 / 9;
        max-height: var(--front-photo-max-h);
      }

      .subscribe-row {
        flex-direction: column;
        align-items: stretch;
      }

      .subscribe-row input {
        min-width: 0;
        width: 100%;
      }

      .subscribe-block .sign-up {
        width: 100%;
      }
    }

    .site-footer {
      background: var(--footer-bg);
      color: #ece8e6;
      padding: 2rem clamp(0.75rem, 4vw, 1.25rem) 1.25rem;
      padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0));
      margin-top: 0.5rem;
    }

    .footer-inner {
      max-width: var(--max);
      margin: 0 auto;
      display: grid;
      gap: 2rem;
    }

    @media (min-width: 640px) {
      .footer-inner {
        grid-template-columns: 1fr 1fr;
        align-items: start;
      }
    }

    .footer-col h3 {
      margin: 0 0 1rem;
      font-size: 1rem;
      font-weight: 700;
      color: #fff;
    }

    .footer-links {
      list-style: none;
      margin: 0;
      padding: 0;
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      font-size: 0.92rem;
    }

    .footer-links a:hover {
      color: var(--pink);
    }

    .subscribe-block h3 {
      margin: 0 0 0.75rem;
      font-size: 0.98rem;
      font-weight: 600;
      color: #fff;
    }

    .subscribe-row {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      flex-wrap: wrap;
      margin-bottom: 0.65rem;
    }

    .mailbox {
      font-size: 1.5rem;
      line-height: 1;
      flex-shrink: 0;
    }

    .subscribe-row input {
      flex: 1;
      min-width: 180px;
      padding: 0.7rem 0.85rem;
      border: 1px solid #555;
      border-radius: 6px;
      background: #fff;
      color: var(--text);
      font-family: inherit;
      font-size: 0.9rem;
    }

    .subscribe-block .sign-up {
      font-family: inherit;
      font-weight: 700;
      padding: 0.7rem 1.75rem;
      border: none;
      border-radius: 8px;
      background: var(--pink);
      color: #fff;
      cursor: pointer;
      transition: background 0.15s;
    }

    .subscribe-block .sign-up:hover {
      background: var(--pink-hover);
    }

    .footer-copy {
      max-width: var(--max);
      margin: 0 auto;
      padding: 2rem 1.25rem 0;
      text-align: center;
      font-size: 0.8rem;
      color: #8a8583;
    }

    .home-api-msg {
      margin: 0;
      padding: 1rem 0;
      color: var(--muted);
      font-size: 0.95rem;
      grid-column: 1 / -1;
    }

    .quiz-card__img.is-photo {
      background-size: cover;
      background-position: center;
      position: relative;
    }

    .quiz-card__img.is-photo img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .quiz-card__credit {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      padding: 0.35rem 0.4rem 0.25rem;
      font-size: 0.62rem;
      line-height: 1.2;
      color: rgba(255, 255, 255, 0.92);
      background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
    }
