    /* =========================================
       THEME — เปลี่ยนสีหลักได้จากตรงนี้
    ========================================= */
    :root {
      color-scheme: dark;
      --bg: #0c1119;
      --surface: #121a25;
      --surface-2: #17212e;
      --surface-3: #1d2937;
      --line: #293647;
      --text: #edf4fa;
      --muted: #96a6b8;
      --mint: #79efc3;
      --mint-dark: #132e29;
      --yellow: #e4cd8b;
      --radius: 15px;
      --max-width: 1180px;
    }

    * { box-sizing: border-box; }
    html {
      scroll-behavior: smooth;
      scroll-padding-top: 95px;
    }
    body {
      margin: 0;
      color: var(--text);
      background: var(--bg);
      font-family: "Noto Sans Thai", "Leelawadee UI", Tahoma, sans-serif;
      font-size: 14px;
      line-height: 1.75;
    }
    body.modal-open { overflow: hidden; }
    button, input, select, textarea { font: inherit; }
    button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
    button, select { cursor: pointer; }
    a { color: inherit; text-decoration: none; }
    button { color: inherit; }
    h1, h2, h3, p { margin: 0; }
    button:focus-visible, a:focus-visible,
    input:focus-visible, textarea:focus-visible, select:focus-visible {
      outline: 2px solid var(--mint);
      outline-offset: 4px;
    }
    [hidden] { display: none !important; }
    ::selection { background: var(--mint); color: var(--bg); }

    .container {
      width: min(var(--max-width), calc(100% - 48px));
      margin-inline: auto;
    }
    .mono {
      font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    }
    .accent { color: var(--mint); }
    .muted { color: var(--muted); }
    .eyebrow {
      color: var(--mint);
      font: 11px/1.5 ui-monospace, monospace;
      text-transform: uppercase;
      letter-spacing: 2px;
    }
    .button {
      display: inline-flex;
      justify-content: center;
      align-items: center;
      gap: 8px;
      min-height: 42px;
      padding: 10px 17px;
      border: 1px solid var(--line);
      border-radius: 7px;
      background: transparent;
      color: var(--text);
      font-size: 12px;
      font-weight: 700;
      line-height: 1.5;
      transition: background .2s, border-color .2s, transform .2s;
    }
    .button:hover {
      border-color: var(--mint);
      background: #79efc30a;
      transform: translateY(-2px);
    }
    .button.primary {
      color: #092119;
      background: var(--mint);
      border-color: var(--mint);
    }
    .button.primary:hover { background: #a5f8d9; }
    .button.small {
      min-height: 34px;
      padding: 7px 11px;
      font-size: 11px;
    }
    .button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
    .skip-link {
      position: fixed;
      top: -80px;
      left: 15px;
      z-index: 100;
      background: var(--mint);
      color: var(--bg);
      padding: 10px;
    }
    .skip-link:focus { top: 10px; }

    /* Navigation */
    .site-header {
      position: sticky;
      top: 0;
      z-index: 30;
      border-bottom: 1px solid #29364799;
      background: #0c1119ee;
      backdrop-filter: blur(18px);
    }
    .navigation {
      min-height: 76px;
      display: flex;
      align-items: center;
      gap: 28px;
    }
    .brand {
      font: 800 15px/1.5 ui-monospace, monospace;
      letter-spacing: -.6px;
      white-space: nowrap;
    }
    .brand span { color: var(--mint); }
    .brand small { color: var(--muted); font-weight: 400; }
    .nav-links {
      display: flex;
      align-items: center;
      gap: 25px;
      margin-left: auto;
    }
    .nav-links a { color: var(--muted); font-size: 12px; }
    .nav-links a:hover { color: var(--mint); }
    .availability {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: #bcceca;
      border: 1px solid #79efc326;
      border-radius: 99px;
      padding: 6px 11px;
      font: 10px/1.6 ui-monospace, monospace;
      background: #79efc307;
    }
    .status-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--mint);
      box-shadow: 0 0 12px #79efc366;
      flex-shrink: 0;
    }
    .menu-toggle { display: none; margin-left: auto; }

    /* Hero */
    .hero {
      position: relative;
      padding: 91px 0 73px;
      overflow: hidden;
      border-bottom: 1px solid var(--line);
      background:
        radial-gradient(ellipse at 50% 10%, #79efc30a, transparent 65%),
        linear-gradient(#ffffff02 1px, transparent 1px),
        linear-gradient(90deg, #ffffff02 1px, transparent 1px);
      background-size: auto, 48px 48px, 48px 48px;
    }
    .hero-content {
      position: relative;
      z-index: 1;
      max-width: 870px;
      margin: auto;
      text-align: center;
    }
    .hero-label {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      margin-bottom: 22px;
      color: var(--muted);
      font: 11px/1.6 ui-monospace, monospace;
      letter-spacing: 1px;
    }
    .hero h1 {
      font-size: clamp(32px, 4.8vw, 58px);
      font-weight: 800;
      line-height: 1.18;
      letter-spacing: -2px;
    }
    .hero h1 span { color: var(--mint); }
    .hero-subtitle {
      max-width: 710px;
      margin: 23px auto 0;
      font-size: 15px;
      color: #cfdae6;
    }
    .hero-bio {
      max-width: 665px;
      margin: 15px auto 0;
      font-size: 13px;
      color: var(--muted);
      line-height: 1.95;
    }
    .hero-actions {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 12px;
      margin-top: 29px;
    }
    .hero-meta {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 24px;
      margin-top: 37px;
      color: var(--muted);
      font: 10px/1.6 ui-monospace, monospace;
    }
    .hero-meta span::before {
      content: "+";
      color: var(--mint);
      margin-right: 8px;
    }
    .circuit {
      position: absolute;
      width: 170px;
      height: 90px;
      opacity: .3;
      pointer-events: none;
      border-top: 1px solid var(--mint);
      border-right: 1px solid var(--mint);
    }
    .circuit::before {
      content: "";
      position: absolute;
      inset: 8px -8px -8px 20px;
      border-top: 1px solid var(--mint);
      border-right: 1px solid var(--mint);
    }
    .circuit::after {
      content: "";
      position: absolute;
      right: -4px;
      bottom: -4px;
      width: 7px;
      height: 7px;
      border: 1px solid var(--mint);
      background: var(--bg);
    }
    .circuit.right { top: 50px; right: -50px; }
    .circuit.left { bottom: 35px; left: -70px; transform: rotate(180deg); }

    /* Sections & filter */
    .section { padding: 66px 0; }
    .section-heading {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 20px;
      margin-bottom: 26px;
    }
    .section-heading h2 {
      margin-top: 8px;
      font-size: 28px;
      line-height: 1.4;
      letter-spacing: -.7px;
    }
    .section-heading p { color: var(--muted); font-size: 12px; }
    .section-index { color: #617287; font: 11px ui-monospace, monospace; }
    .filters {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 24px;
    }
    .filter {
      padding: 8px 13px;
      color: var(--muted);
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: 6px;
      font-size: 11px;
      transition: .2s;
    }
    .filter:hover { color: var(--text); border-color: #577164; }
    .filter[aria-pressed="true"] {
      color: var(--mint);
      border-color: #79efc36b;
      background: var(--mint-dark);
    }

    /* Project cards */
    .project-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 19px;
    }
    .project-card {
      min-width: 0;
      display: flex;
      flex-direction: column;
      padding: 9px;
      background: linear-gradient(145deg, #18222f, #111923);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      transition: transform .2s, border-color .2s;
    }
    .project-card:hover {
      transform: translateY(-5px);
      border-color: #79efc35c;
    }
    .project-preview {
      height: 205px;
      position: relative;
      overflow: hidden;
      border: 1px solid #ffffff09;
      border-radius: 9px;
      background: #0b1017;
    }
    .preview-topbar {
      height: 27px;
      padding: 0 10px;
      display: flex;
      align-items: center;
      gap: 4px;
      border-bottom: 1px solid #ffffff09;
      color: #7d8b9b;
      font: 8px ui-monospace, monospace;
    }
    .preview-topbar i {
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: #3a4655;
    }
    .preview-topbar i:first-child { background: #79efc3; }
    .preview-topbar span { margin-left: 7px; }
    .preview-label {
      position: absolute;
      bottom: 9px;
      right: 9px;
      padding: 2px 7px;
      background: #0b111ce6;
      border: 1px solid #ffffff16;
      border-radius: 4px;
      color: var(--mint);
      font: 8px/1.8 ui-monospace, monospace;
      z-index: 2;
    }
    .preview-media {
      height: calc(100% - 27px);
      position: relative;
      overflow: hidden;
      background: #000;
    }
    .preview-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: top center;
      display: block;
      transition: transform .35s ease;
    }
    .project-card:hover .preview-img {
      transform: scale(1.05);
    }
    .dashboard-mock {
      display: grid;
      grid-template-columns: 42px 1fr;
      height: calc(100% - 27px);
    }
    .mock-sidebar {
      padding: 15px 9px;
      border-right: 1px solid #ffffff09;
    }
    .mock-sidebar b {
      display: block;
      height: 5px;
      margin-bottom: 12px;
      background: #253141;
      border-radius: 2px;
    }
    .mock-sidebar b:first-child { background: #79efc37a; }
    .mock-dashboard { padding: 15px 12px; }
    .mock-title {
      color: #d3dce7;
      font: 9px ui-monospace, monospace;
      margin-bottom: 12px;
    }
    .mock-stats { display: flex; gap: 6px; }
    .mock-stat {
      flex: 1;
      padding: 8px;
      border: 1px solid #ffffff0b;
      border-radius: 4px;
      color: #8192a3;
      font: 7px ui-monospace, monospace;
    }
    .mock-stat strong {
      display: block;
      margin-top: 3px;
      color: var(--mint);
      font-size: 13px;
    }
    .mock-chart {
      display: flex;
      align-items: flex-end;
      gap: 7px;
      height: 74px;
      margin-top: 11px;
      padding-bottom: 5px;
      border-bottom: 1px solid #ffffff12;
    }
    .mock-chart i {
      flex: 1;
      height: var(--h);
      background: linear-gradient(#79efc3ad, #79efc322);
      border-radius: 2px 2px 0 0;
    }
    .game-mock {
      display: grid;
      place-items: center;
      height: calc(100% - 27px);
      background:
        linear-gradient(90deg, #ffffff03 1px, transparent 1px),
        linear-gradient(#ffffff03 1px, transparent 1px),
        radial-gradient(ellipse, #24493c, #12261f);
      background-size: 24px 24px, 24px 24px, auto;
    }
    .battle-row { display: flex; align-items: center; gap: 28px; }
    .pixel-character {
      width: 29px;
      height: 38px;
      background: #8cd9c0;
      box-shadow:
        0 -12px 0 -5px #efceaa,
        -10px 5px 0 -5px #527caf,
        10px 5px 0 -5px #527caf,
        -7px 29px 0 -10px #bbcdd6,
        7px 29px 0 -10px #bbcdd6;
    }
    .pixel-character.enemy {
      background: #cb7e86;
      box-shadow:
        0 -12px 0 -5px #b19abf,
        -10px 5px 0 -5px #71475d,
        10px 5px 0 -5px #71475d,
        -7px 29px 0 -10px #786e93,
        7px 29px 0 -10px #786e93;
    }
    .battle-center {
      text-align: center;
      color: #c8ddcc;
      font: 9px/2 ui-monospace, monospace;
    }
    .battle-center b {
      display: block;
      color: var(--mint);
      font-size: 18px;
    }
    .terminal-mock {
      padding: 15px;
      color: #95acbb;
      font: 9px/1.9 ui-monospace, monospace;
    }
    .terminal-mock .green { color: var(--mint); }
    .terminal-mock .dim { color: #526477; }
    .terminal-cursor {
      display: inline-block;
      width: 6px;
      height: 11px;
      vertical-align: middle;
      background: var(--mint);
    }
    .card-body {
      display: flex;
      flex: 1;
      flex-direction: column;
      padding: 16px 9px 9px;
    }
    .category-tags, .stack {
      display: flex;
      flex-wrap: wrap;
      gap: 5px;
    }
    .category-tags span {
      color: #b7c8d7;
      font: 9px/1.5 ui-monospace, monospace;
      border: 1px solid #354459;
      padding: 3px 6px;
      border-radius: 4px;
    }
    .project-card h3 {
      margin: 11px 0 10px;
      font-size: 17px;
      line-height: 1.5;
      letter-spacing: -.3px;
    }
    .project-card p { color: var(--muted); font-size: 12px; }
    .stack { margin: 17px 0 15px; }
    .stack span {
      padding: 3px 7px;
      border-radius: 4px;
      background: #0b111a;
      color: #b8c8d9;
      font: 9px/1.5 ui-monospace, monospace;
    }
    .card-bottom { margin-top: auto; }
    .security-badge {
      margin-bottom: 12px;
      color: var(--yellow);
      font: 9px/1.7 ui-monospace, monospace;
    }
    .card-actions { display: grid; gap: 7px; }
    .card-actions .button { width: 100%; }
    .card-actions .button:first-child {
      color: var(--mint);
      border-color: #79efc34d;
      background: #79efc305;
    }
    .empty-state {
      padding: 50px 20px;
      border: 1px dashed var(--line);
      border-radius: var(--radius);
      text-align: center;
      color: var(--muted);
    }
    .empty-state h3 { color: var(--text); margin-bottom: 8px; }
    .project-footnote {
      margin-top: 17px;
      color: #7b8da1;
      font: 10px/1.8 ui-monospace, monospace;
    }

    /* About */
    .about-panel {
      display: grid;
      grid-template-columns: 1fr 1.5fr;
      gap: 42px;
      padding: 33px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--surface);
    }
    .about-panel h2 { margin-top: 9px; font-size: 27px; line-height: 1.4; }
    .about-panel p { color: var(--muted); font-size: 13px; }
    .about-highlights {
      display: flex;
      flex-wrap: wrap;
      gap: 9px;
      margin-top: 18px;
    }
    .about-highlights span {
      padding: 5px 9px;
      border: 1px solid var(--line);
      border-radius: 5px;
      color: #c8d8e4;
      font: 10px/1.6 ui-monospace, monospace;
    }

    /* Skills + Contact */
    .lower-section { border-top: 1px solid var(--line); margin-top: 65px; }
    .lower-grid {
      display: grid;
      grid-template-columns: 1.2fr 1fr;
      gap: 50px;
      align-items: start;
    }
    .skills-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 28px 22px;
    }
    .skill-icon {
      display: grid;
      place-items: center;
      width: 31px;
      height: 31px;
      margin-bottom: 12px;
      border: 1px solid #79efc32b;
      border-radius: 7px;
      color: var(--mint);
      background: #79efc309;
      font: 12px ui-monospace, monospace;
    }
    .skill-group h3 { font-size: 13px; margin-bottom: 9px; }
    .skill-group ul { list-style: none; padding: 0; margin: 0; }
    .skill-group li {
      position: relative;
      padding-left: 12px;
      margin: 5px 0;
      color: var(--muted);
      font-size: 11px;
    }
    .skill-group li::before {
      content: "·";
      position: absolute;
      left: 0;
      color: var(--mint);
    }
    .contact-panel {
      padding: 27px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: linear-gradient(140deg, var(--surface-2), var(--surface));
    }
    .contact-panel h2 {
      font-size: 26px;
      line-height: 1.35;
      margin: 10px 0 12px;
      letter-spacing: -.7px;
    }
    .contact-panel > p { color: var(--muted); font-size: 12px; }
    .contact-form { margin-top: 22px; }
    .field { margin-bottom: 13px; }
    .field label {
      display: block;
      margin-bottom: 5px;
      color: #c1cddb;
      font-size: 11px;
    }
    .field input, .field select, .field textarea {
      display: block;
      width: 100%;
      padding: 10px 11px;
      background: #0e1620;
      border: 1px solid #304053;
      border-radius: 6px;
      color: var(--text);
      font-size: 12px;
    }
    .field textarea { min-height: 107px; resize: vertical; }
    .field input::placeholder, .field textarea::placeholder { color: #697d91; }
    .contact-form .button { width: 100%; }
    .form-note { margin-top: 10px; font-size: 10px; color: var(--muted); }
    .form-status { margin-top: 10px; font-size: 11px; color: var(--mint); }
    .form-status.is-error { color: #ff9b9b; }
    .social-links {
      display: flex;
      gap: 18px;
      flex-wrap: wrap;
      margin-top: 20px;
      padding-top: 17px;
      border-top: 1px solid var(--line);
    }
    .social-links a {
      color: #c4d2df;
      font: 11px ui-monospace, monospace;
    }
    .social-links a:hover { color: var(--mint); }

    /* Footer */
    .site-footer { padding: 25px 0; border-top: 1px solid var(--line); }
    .footer-content {
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 15px;
      color: #8193a5;
      font: 10px/1.8 ui-monospace, monospace;
    }

    /* Modal */
    .preview-dialog {
      width: min(1000px, calc(100% - 32px));
      max-height: calc(100dvh - 40px);
      padding: 0;
      border: 1px solid #405466;
      border-radius: 12px;
      color: var(--text);
      background: var(--surface);
      box-shadow: 0 30px 120px #0009;
    }
    .preview-dialog::backdrop {
      background: #03070ddb;
      backdrop-filter: blur(7px);
    }
    .modal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      padding: 17px 20px;
      border-bottom: 1px solid var(--line);
    }
    .modal-header h2 { font: 600 13px/1.7 ui-monospace, monospace; }
    .modal-header p { color: var(--muted); font-size: 10px; margin-top: 4px; }
    .modal-live {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      margin-right: 10px;
      color: var(--mint);
      font: 10px ui-monospace, monospace;
    }
    .modal-close {
      width: 32px;
      height: 32px;
      border: 1px solid var(--line);
      border-radius: 5px;
      background: transparent;
      font-size: 18px;
    }
    .modal-notice {
      margin: 15px 20px;
      padding: 12px;
      color: #a9c6bb;
      border: 1px solid #79efc32b;
      border-radius: 6px;
      background: #79efc306;
      font-size: 11px;
    }
    .modal-notice small { display: block; margin-top: 6px; color: var(--muted); }
    .iframe-wrap { padding: 0 20px; }
    .preview-frame {
      display: block;
      width: 100%;
      height: min(53dvh, 450px);
      min-height: 270px;
      border: 1px solid var(--line);
      border-radius: 7px;
      background: #0c1119;
    }
    .modal-toolbar {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      padding: 15px 20px;
    }
    .modal-toolbar .close-action { margin-left: auto; }

    @media (min-width: 1500px) {
      .hero { padding-top: 110px; padding-bottom: 90px; }
    }
    @media (max-width: 1050px) {
      .navigation > .availability { display: none; }
      .project-grid { gap: 13px; }
      .project-card h3 { font-size: 15px; }
      .lower-grid { gap: 30px; }
    }
    @media (max-width: 800px) {
      .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .lower-grid { grid-template-columns: 1fr; gap: 45px; }
      .about-panel { grid-template-columns: 1fr; gap: 20px; }
    }
    @media (max-width: 600px) {
      .container { width: calc(100% - 32px); }
      .navigation { min-height: 66px; flex-wrap: wrap; gap: 0; }
      .brand { font-size: 13px; }
      .menu-toggle { display: inline-flex; }
      .nav-links {
        display: none;
        width: 100%;
        padding: 16px 0 20px;
        margin-left: 0;
        justify-content: space-between;
        border-top: 1px solid var(--line);
      }
      .nav-links.open {
        display: flex;
        flex-wrap: wrap;
        gap: 14px 18px;
        justify-content: flex-start;
      }
      .hero { padding: 61px 0 48px; }
      .hero h1 { font-size: 36px; letter-spacing: -1.4px; }
      .hero-subtitle { font-size: 13px; }
      .hero-bio { font-size: 12px; }
      .hero-meta { gap: 12px; font-size: 9px; }
      .section { padding: 45px 0; }
      .section-heading h2 { font-size: 25px; }
      .section-index { display: none; }
      .filters { gap: 6px; }
      .filter { font-size: 10px; padding: 7px 9px; }
      .project-grid { grid-template-columns: 1fr; gap: 20px; }
      .project-preview { height: 220px; }
      .project-card h3 { font-size: 18px; }
      .card-body { padding: 17px 12px 12px; }
      .about-panel, .contact-panel { padding: 23px; }
      .lower-section { margin-top: 45px; }
      .skills-grid { gap: 25px 15px; }
      .modal-header { padding: 13px; }
      .modal-header h2 { font-size: 10px; }
      .modal-live { display: none; }
      .modal-notice { margin: 12px; font-size: 10px; }
      .iframe-wrap { padding: 0 12px; }
      .modal-toolbar { padding: 12px; }
      .modal-toolbar .close-action { margin-left: 0; }
    }
    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after { transition: none !important; }
    }
