@charset "UTF-8";

:root {
  --sky: #87ceeb;
  --sky-ink: #34738b;
  --ink: #3b606e;
  --muted: #637c86;
  --line: #e1eef3;
  --wash: #f4fbfe;
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #fff;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: #c9ecfa; }
a:focus-visible, button:focus-visible { outline: 3px solid #51afd3; outline-offset: 5px; }
.container { width: min(1060px, calc(100% - 80px)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 20; padding: 14px; background: #fff; border: 1px solid var(--sky); }
.skip-link:focus { top: 10px; }

/* Navigation */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.97); border-bottom: 1px solid #eff5f8; }
.header-inner { height: 82px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; font-size: 23px; font-weight: 700; letter-spacing: -.8px; }
.brand-dot, .sky-dot { color: var(--sky); }
.brand-mark { width: 34px; height: 37px; display: inline-flex; align-items: center; justify-content: center; margin-right: 12px; font-size: 36px; font-weight: 800; position: relative; transform: rotate(-7deg); letter-spacing: -3px; }
.brand-mark span { position: absolute; width: 8px; height: 8px; background: var(--sky); right: 0; top: 2px; border-radius: 50%; }
nav { display: flex; gap: 36px; align-items: center; }
nav a { font-size: 14px; position: relative; padding: 10px 0; color: var(--muted); }
nav a.active, nav a:hover { color: var(--sky-ink); }
nav a.active::after { content: ""; width: 4px; height: 4px; background: var(--sky); border-radius: 50%; position: absolute; bottom: 0; left: calc(50% - 2px); }
nav a span { margin-left: 5px; }
.menu-toggle { display: none; }

/* A quiet introduction above the two collections */
.hero { padding-block: 76px 66px; text-align: center; }
.eyebrow { font-size: 10px; font-weight: 600; letter-spacing: 1.8px; color: var(--muted); line-height: 1.8; }
.hero .eyebrow { display: flex; align-items: center; justify-content: center; gap: 9px; }
.tiny-dot { width: 6px; height: 6px; background: var(--sky); border-radius: 50%; flex-shrink: 0; }
h1 { font-size: clamp(32px, 4vw, 48px); font-weight: 600; letter-spacing: -1.6px; line-height: 1.45; margin: 17px 0 18px; }
h1 > span { color: var(--sky-ink); margin-left: 8px; }
.hero-description { font-size: 14px; line-height: 1.95; color: var(--muted); }
.mobile-break { display: none; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid transparent; border-radius: 7px; font-size: 13px; font-weight: 500; min-height: 42px; padding: 10px 19px; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--sky); color: #275466; }
.button-primary:hover { background: #a5def3; }
.hero-cta { margin-top: 24px; gap: 25px; }
.hero-cta > span { font-size: 18px; }

/* Shared square icon cards for games and applications */
.works { padding-top: 10px; }
.project-section + .project-section { margin-top: 50px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.section-name { display: flex; align-items: center; gap: 10px; }
.section-icon { color: var(--sky-ink); display: flex; }
.section-name h3 { font-size: 21px; font-weight: 600; }
.section-name h3 > span { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 10px; }
.section-number { font-size: 9px; letter-spacing: 1.8px; color: var(--muted); }
.game-projects, .app-projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.project-card { display: flex; flex-direction: column; padding: 27px; border: 1px solid var(--line); border-radius: 14px; background: #fff; min-width: 0; transition: border-color .2s, box-shadow .2s; }
.project-card:hover { border-color: #c3e4f1; box-shadow: 0 9px 30px #65b2cf0d; }
.project-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.project-image { width: 88px; height: 88px; flex-shrink: 0; border-radius: 19px; overflow: hidden; background: #eaf8fe; }
.project-image img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
.project-status { font-size: 9px; white-space: nowrap; background: var(--wash); color: #527d8d; padding: 5px 7px; border-radius: 4px; margin-top: 3px; }
.project-content { margin-top: 22px; }
.project-subtitle { font-size: 8px; letter-spacing: 1.8px; color: var(--muted); }
.project-content h4 { font-size: 23px; font-weight: 600; margin: 9px 0 12px; }
.project-description { font-size: 12px; color: var(--muted); line-height: 1.95; }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.project-tags > span { font-size: 9px; color: #5e8090; background: #f5fafc; border-radius: 4px; padding: 5px 7px; }
.project-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: auto; padding-top: 23px; }
.button-small { min-height: 38px; font-size: 11px; padding: 8px 12px; gap: 7px; border-radius: 6px; }
.button-small svg { width: 15px; height: 15px; }
.button-soft { background: #e6f6fd; color: #4a788c; }
.button:disabled { cursor: not-allowed; opacity: .8; }
.button:disabled:hover { transform: none; }
.pending-link { font-size: 9px; color: var(--muted); }
.placeholder-note { font-size: 11px; color: var(--muted); margin-top: 20px; line-height: 1.8; display: flex; gap: 7px; }

/* About and footer */
.about { margin-block: 65px 50px; padding-block: 32px; border-top: 1px solid var(--line); }
.about h2 { font-size: 21px; font-weight: 550; margin: 9px 0 12px; }
.about > p:last-child { font-size: 12px; line-height: 1.9; color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; row-gap: 22px; justify-content: space-between; align-items: center; padding-block: 27px 35px; }
.footer-brand { font-size: 18px; font-weight: 650; letter-spacing: -.5px; }
.footer-brand span { color: var(--sky); }
.site-footer p { font-size: 10px; color: var(--muted); margin-top: 10px; }
.footer-right { display: flex; align-items: center; gap: 35px; font-size: 11px; color: var(--muted); }
.footer-right a { display: flex; gap: 10px; }
.footer-right a:hover { color: var(--sky-ink); }
.site-footer .footer-registration { flex-basis: 100%; margin: 0; text-align: center; font-size: 11px; line-height: 1.9; }
.footer-registration a:hover { color: var(--sky-ink); text-decoration: underline; }

@media (max-width: 900px) {
  .container { width: calc(100% - 56px); }
  .game-projects, .app-projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  h1 > span { display: block; margin-left: 0; }
  .hero { padding-block: 60px 55px; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 40px); }
  .header-inner { height: 74px; }
  .brand { font-size: 20px; }
  .brand-mark { font-size: 31px; width: 29px; margin-right: 9px; }
  .menu-toggle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
  .menu-toggle span { width: 18px; height: 1px; background: var(--sky-ink); transition: transform .2s; }
  .menu-toggle[aria-expanded=true] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded=true] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  nav { display: none; position: absolute; top: 73px; left: 0; right: 0; background: #fff; padding: 17px 25px; border-bottom: 1px solid var(--line); box-shadow: 0 12px 15px #87ceeb15; gap: 20px; }
  nav.is-open { display: flex; justify-content: space-between; }
  nav a { font-size: 13px; }
  .hero { padding-block: 49px 46px; }
  .hero .eyebrow { font-size: 8px; letter-spacing: 1px; }
  h1 { font-size: 34px; letter-spacing: -1px; margin-block: 18px 16px; }
  .hero-description { font-size: 12px; }
  .mobile-break { display: block; }
  .game-projects, .app-projects { grid-template-columns: 1fr; gap: 18px; }
  .project-card { padding: 24px; }
  .project-image { width: 82px; height: 82px; border-radius: 18px; }
  .project-content { margin-top: 20px; }
  .project-description { font-size: 13px; }
  .project-actions { gap: 14px; }
  .button-small { font-size: 12px; min-height: 42px; }
  .section-name h3 { font-size: 19px; }
  .section-name h3 > span { font-size: 11px; }
  .section-number { font-size: 8px; letter-spacing: 1px; }
  .project-section + .project-section { margin-top: 40px; }
  .placeholder-note { font-size: 10px; }
  .about { margin-block: 44px 34px; padding-block: 26px; }
  .about h2 { font-size: 19px; }
  .site-footer { align-items: flex-start; padding-block: 25px 30px; }
  .footer-brand { font-size: 16px; }
  .footer-right { flex-direction: column; align-items: flex-end; gap: 17px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
