* {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #F5F3EF;
      font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      overflow: hidden;
    }

    .game-container {
      position: relative;
      width: 100vmin;
      height: 100vmin;
      max-width: 600px;
      max-height: 600px;
    }

    canvas {
      display: block;
      width: 100%;
      height: 100%;
      cursor: default;
    }

    .ui {
      position: absolute;
      top: 24px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
      pointer-events: none;
      z-index: 10;
    }

    .level {
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: #8B8680;
    }

    .crossings {
      font-size: 32px;
      font-weight: 300;
      color: #3D3A36;
      line-height: 1;
      transition: color 0.4s ease;
    }

    .crossings.solved {
      color: #5B8C6A;
    }

    .crossings-label {
      font-size: 10px;
      font-weight: 500;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: #A8A49E;
      margin-top: 2px;
    }

    .message-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(245, 243, 239, 0.92);
      opacity: 0;
      pointer-events: none;
      z-index: 19;
      transition: opacity 0.5s ease;
    }

    .message-overlay.visible {
      opacity: 1;
    }

    .message {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      text-align: center;
      pointer-events: none;
      opacity: 0;
      z-index: 20;
    }

    .message.visible {
      pointer-events: auto;
    }

    .message h2 {
      font-size: 28px;
      font-weight: 300;
      color: #3D3A36;
      margin-bottom: 8px;
      letter-spacing: 0.02em;
    }

    .message p {
      font-size: 13px;
      color: #8B8680;
      letter-spacing: 0.03em;
    }

    .next-btn {
      margin-top: 24px;
      padding: 12px 32px;
      background: #3D3A36;
      color: #F5F3EF;
      border: none;
      font-size: 12px;
      font-weight: 500;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .next-btn:hover {
      background: #5B8C6A;
      transform: translateY(-2px);
    }

    .intro {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      background: #F5F3EF;
      z-index: 100;
    }

    .intro.hidden {
      display: none !important;
    }

    .intro h1 {
      font-size: 48px;
      font-weight: 200;
      color: #3D3A36;
      letter-spacing: 0.08em;
      margin-bottom: 12px;
    }

    .intro-subtitle {
      font-size: 13px;
      color: #8B8680;
      letter-spacing: 0.05em;
      margin-bottom: 48px;
    }

    .intro-graphic {
      width: 120px;
      height: 120px;
      margin-bottom: 48px;
      position: relative;
    }

    .intro-graphic svg {
      width: 100%;
      height: 100%;
    }

    .intro-node {
      fill: #3D3A36;
    }

    .intro-line {
      stroke: #C9665A;
      stroke-width: 2;
      stroke-linecap: round;
    }

    .start-btn {
      padding: 16px 48px;
      background: transparent;
      color: #3D3A36;
      border: 1px solid #3D3A36;
      font-size: 12px;
      font-weight: 500;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .start-btn:hover {
      background: #3D3A36;
      color: #F5F3EF;
    }

    .intro-credit {
      margin-top: 32px;
      font-size: 11px;
      color: #A8A49E;
      letter-spacing: 0.03em;
    }

    .intro-credit a {
      color: #8B8680;
      text-decoration: none;
      transition: color 0.3s ease;
    }

    .intro-credit a:hover {
      color: #3D3A36;
    }

    .attribution {
      position: absolute;
      bottom: 12px;
      right: 12px;
      font-size: 10px;
      color: #C4C0BA;
      text-decoration: none;
      letter-spacing: 0.03em;
      transition: color 0.3s ease;
      z-index: 5;
    }

    .attribution:hover {
      color: #8B8680;
    }

    .progress-bar {
      position: absolute;
      bottom: 24px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      gap: 6px;
      z-index: 10;
    }

    .progress-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: #D9D5CF;
      transition: all 0.3s ease;
    }

    .progress-dot.completed {
      background: #5B8C6A;
    }

    .progress-dot.current {
      background: #3D3A36;
      transform: scale(1.3);
    }

    .controls {
      position: absolute;
      top: 24px;
      right: 24px;
      display: flex;
      gap: 8px;
      z-index: 10;
    }

    .control-btn {
      width: 36px;
      height: 36px;
      border: 1px solid #D9D5CF;
      background: #F5F3EF;
      color: #8B8680;
      font-size: 16px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s ease;
    }

    .control-btn:hover {
      border-color: #8B8680;
      color: #3D3A36;
    }

    .control-btn.hint-btn:hover {
      border-color: #D4A574;
      color: #D4A574;
    }

    .control-btn svg {
      width: 18px;
      height: 18px;
      stroke: currentColor;
      stroke-width: 1.5;
      fill: none;
    }

    .hint-text {
      position: absolute;
      top: 68px;
      right: 24px;
      font-size: 10px;
      color: #D4A574;
      letter-spacing: 0.05em;
      opacity: 0;
      transition: opacity 0.3s ease;
      pointer-events: none;
      z-index: 10;
      text-align: right;
    }

    .hint-text.visible {
      opacity: 1;
    }