/* ตั้งค่าพื้นฐาน */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Kanit', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

/* Crimson sci-fi / fantasy homepage */
body.home-page {
    --red: #ff3154;
    --red-bright: #ff526d;
    --muted: #c8adb4;
    display: block;
    min-height: 100vh;
    padding: 0;
    overflow-x: hidden;
    background: transparent;
    color: #fff5f6;
    font-family: 'Kanit', sans-serif;
}
.home-page .video-background { z-index: 0; }
.home-page .overlay { background: transparent; }
.home-page #bg-video { min-width: 100%; min-height: 100%; filter: saturate(.72) contrast(1.08); }
.home-page .overlay {
    background: linear-gradient(90deg, rgba(13,5,9,.94) 0%, rgba(25,6,13,.82) 52%, rgba(14,5,10,.72) 100%),
                linear-gradient(0deg, #10070b 1%, transparent 45%, rgba(30,4,13,.34));
}
.magic-grid {
    position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .14;
    background-image: linear-gradient(rgba(255,75,103,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,75,103,.12) 1px, transparent 1px);
    background-size: 54px 54px; mask-image: linear-gradient(90deg, transparent, #000 35%, #000 85%, transparent);
}
.home-shell { width: min(1160px, calc(100% - 56px)); max-width: none; min-height: 100vh; margin: auto; padding: 25px 0 18px; background: transparent; backdrop-filter: none; }
.topbar { display:flex; justify-content:space-between; align-items:center; border-bottom:1px solid rgba(255,89,117,.22); padding:0 0 18px; }
.wordmark { display:flex; align-items:center; gap:11px; color:#fff; text-decoration:none; font:600 12px 'Orbitron',sans-serif; letter-spacing:1.3px; }
.wordmark-mark { display:grid; place-items:center; width:34px; height:34px; border:1px solid var(--red); color:var(--red-bright); font-size:11px; transform:rotate(45deg); }
.wordmark-mark::first-line { transform:rotate(-45deg); }
.wordmark-dot { color:var(--red-bright); }
.system-status,.section-index { color:#c3aab1; font:10px 'Orbitron',sans-serif; letter-spacing:1px; }
.system-status i { display:inline-block; width:6px; height:6px; margin-right:8px; border-radius:50%; background:#ff3154; box-shadow:0 0 11px #ff3154; }
.system-status b { color:var(--red); padding:0 6px; }
.hero-layout { display:grid; grid-template-columns:1.25fr .75fr; gap:80px; align-items:center; padding:72px 0 67px; }
.hero-copy { max-width:630px; }
.eyebrow,.section-kicker { display:flex; align-items:center; gap:10px; color:var(--red-bright); font:10px 'Orbitron',sans-serif; letter-spacing:2px; }
.sigil { font-size:17px; text-shadow:0 0 12px var(--red); }
.eyebrow-line { width:46px; height:1px; background:linear-gradient(90deg,var(--red),transparent); }
.hero-copy h1 { margin:17px 0 4px; font:800 clamp(52px,8vw,95px)/.98 'Orbitron',sans-serif; letter-spacing:-5px; text-shadow:0 5px 30px rgba(255,36,77,.15); }
.hero-copy h1 span { color:var(--red); }
.hero-subtitle { margin:14px 0 13px; color:#fff; font-size:19px; letter-spacing:.3px; }
.hero-subtitle span { margin:0 8px; color:var(--red-bright); }
.hero-description { max-width:540px; color:#cfbac0; font-size:15px; line-height:1.9; }
.hero-actions { display:flex; align-items:center; gap:25px; margin-top:27px; }
.primary-action { display:flex; align-items:center; justify-content:space-between; gap:24px; min-width:205px; padding:13px 16px; color:white; text-decoration:none; background:linear-gradient(110deg,#bd1739,#6e1028); border:1px solid rgba(255,115,140,.6); box-shadow:0 8px 30px rgba(180,18,54,.18); transition:.25s; }
.primary-action:hover { transform:translateY(-3px); box-shadow:0 10px 32px rgba(255,30,76,.3); }
.primary-action b { font-size:19px; color:#ffc7d0; }
.secondary-action { color:#f3dfe3; text-decoration:none; font-size:14px; }
.secondary-action span { margin-left:7px; color:var(--red-bright); }
.hero-meta { display:flex; flex-wrap:wrap; gap:20px; margin-top:35px; color:#a78d94; font:9px 'Orbitron',sans-serif; letter-spacing:.8px; }
.profile-panel { position:relative; width:min(100%,340px); justify-self:end; padding:20px 24px 23px; text-align:center; border:1px solid rgba(255,92,120,.4); background:rgba(16,7,11,.12); box-shadow:0 25px 80px rgba(0,0,0,.22),inset 0 0 45px rgba(119,12,42,.04); backdrop-filter:blur(3px); }
.panel-corner { position:absolute; width:16px; height:16px; border-color:var(--red-bright); }
.corner-tl { top:-1px; left:-1px; border-top:2px solid; border-left:2px solid; }.corner-br { bottom:-1px; right:-1px; border-right:2px solid; border-bottom:2px solid; }
.panel-label { display:flex; justify-content:space-between; color:#a98c94; font:9px 'Orbitron',sans-serif; letter-spacing:1.1px; }
.panel-label span:last-child { color:var(--red-bright); }
.portrait-frame { position:relative; width:143px; height:143px; margin:24px auto 15px; padding:6px; border:1px solid rgba(255,70,105,.65); border-radius:50%; box-shadow:0 0 24px rgba(255,36,77,.15),inset 0 0 18px rgba(255,36,77,.13); }
.portrait-frame::before,.portrait-frame::after { content:''; position:absolute; inset:-7px; border:1px dashed rgba(255,102,130,.4); border-radius:50%; animation:orbit 30s linear infinite; }
.portrait-frame::after { inset:12px; border-style:solid; opacity:.45; animation-direction:reverse; }
.portrait-frame img { position:relative; z-index:1; width:100%; height:100%; border-radius:50%; border:0; object-fit:cover; margin:0; filter:saturate(.88); }
.portrait-rune { position:absolute; z-index:2; top:-14px; right:5px; color:#ff8ca0; font-size:19px; text-shadow:0 0 12px var(--red); }
.portrait-scan { position:absolute; z-index:2; top:50%; left:-5px; right:-5px; height:1px; background:rgba(255,70,105,.6); box-shadow:0 0 8px var(--red); }
.profile-panel h2 { margin:8px 0 1px; font:600 17px 'Orbitron',sans-serif; }.profile-panel h2 span { color:#e9748c; font:400 14px 'Kanit',sans-serif; }
.profile-role { color:#c8adb4; font-size:12px; }
.profile-divider { display:flex; align-items:center; gap:10px; margin:16px 0 12px; color:var(--red); }.profile-divider::before,.profile-divider::after { content:''; height:1px; flex:1; background:linear-gradient(90deg,transparent,rgba(255,80,112,.45)); }.profile-divider::after { transform:rotate(180deg); }
.profile-stats { display:grid; grid-template-columns:repeat(3,1fr); }.profile-stats div { display:flex; flex-direction:column; gap:3px; border-right:1px solid rgba(255,255,255,.09); }.profile-stats div:last-child { border:0; }.profile-stats strong { color:#fff0f2; font:600 18px 'Orbitron',sans-serif; }.profile-stats small { color:#a78d94; font:8px 'Orbitron',sans-serif; letter-spacing:.5px; }
.profile-tags { display:flex; justify-content:center; gap:7px; margin-top:18px; }.profile-tags span { padding:4px 8px; color:#e7adb8; border:1px solid rgba(255,85,116,.28); font:8px 'Orbitron',sans-serif; letter-spacing:.5px; }
.portal-section { border-top:1px solid rgba(255,89,117,.24); padding-top:23px; }
.section-heading { display:flex; justify-content:space-between; align-items:end; margin-bottom:17px; }.section-heading h2 { margin:5px 0 0; font-size:22px; font-weight:500; }.section-heading h2 span { margin-left:7px; color:var(--red-bright); }
.portal-grid { display:grid; grid-template-columns:repeat(6,1fr); gap:11px; }
.portal-card { position:relative; display:flex; flex-direction:column; min-height:111px; padding:13px 13px 11px; text-decoration:none; color:#fff; background:rgba(16,7,11,.12); border:1px solid rgba(255,255,255,.11); transition:.22s; }
.portal-card:hover { transform:translateY(-4px); border-color:rgba(255,79,111,.67); background:rgba(64,11,26,.2); box-shadow:0 10px 25px rgba(0,0,0,.18); }
.portal-icon { color:var(--red-bright); font-size:20px; line-height:1; margin-bottom:12px; text-shadow:0 0 12px rgba(255,49,84,.4); }.portal-name { font:500 11px 'Orbitron',sans-serif; }.portal-sub { color:#a99198; font-size:10px; margin-top:3px; }.portal-arrow { position:absolute; top:11px; right:12px; color:#a85a6b; font-size:13px; }
.home-footer { display:flex; justify-content:space-between; gap:12px; padding:19px 0 3px; color:#907b82; font:8px 'Orbitron',sans-serif; letter-spacing:.7px; }.home-footer b { color:var(--red); }.home-footer a { color:#bb8d98; text-decoration:none; }
.intro-screen { position:fixed; inset:0; z-index:20; display:flex; flex-direction:column; align-items:center; justify-content:center; overflow:hidden; background:radial-gradient(ellipse at 50% 45%,rgba(86,11,33,.65),transparent 37%),#0c0609; transition:opacity .7s ease,visibility .7s ease; }
.intro-screen::before { content:''; position:absolute; inset:0; opacity:.18; background-image:linear-gradient(rgba(255,75,103,.14) 1px,transparent 1px),linear-gradient(90deg,rgba(255,75,103,.14) 1px,transparent 1px); background-size:44px 44px; mask-image:radial-gradient(ellipse at center,#000,transparent 72%); }
.intro-stars { position:absolute; top:17%; color:rgba(255,152,171,.5); letter-spacing:13px; font-size:15px; animation:twinkle 2s ease-in-out infinite alternate; }
.intro-emblem { position:relative; display:grid; place-items:center; width:94px; height:94px; margin-bottom:26px; border:1px solid rgba(255,92,125,.75); transform:rotate(45deg); box-shadow:0 0 35px rgba(255,35,80,.2),inset 0 0 22px rgba(255,35,80,.14); }
.intro-emblem::before { content:''; position:absolute; inset:8px; border:1px dashed rgba(255,117,143,.7); }.intro-emblem span { transform:rotate(-45deg); color:#fff0f3; font:600 24px 'Orbitron',sans-serif; text-shadow:0 0 18px var(--red); }.intro-emblem i { position:absolute; inset:-9px; border:1px solid rgba(255,92,125,.22); border-radius:50%; }
.intro-kicker { color:#e46f88; font:10px 'Orbitron',sans-serif; letter-spacing:2.5px; }.intro-screen h2 { margin:9px 0 19px; font-size:27px; font-weight:400; }.intro-screen h2 span { margin-left:9px; color:var(--red-bright); }
.loading-track { width:min(300px,70vw); height:2px; background:#34121d; }.loading-track i { display:block; width:100%; height:100%; transform-origin:left; background:linear-gradient(90deg,#9e1435,#ff6b84); box-shadow:0 0 12px var(--red); animation:loadline 2.6s ease-out forwards; }
.loading-caption { margin-top:12px; color:#987d86; font:9px 'Orbitron',sans-serif; letter-spacing:1.2px; }.loading-caption span { color:#fff; }.loading-caption b { color:var(--red); padding:0 5px; }
.skip-intro { position:absolute; bottom:34px; border:0; background:transparent; color:#ac929a; font:12px 'Kanit',sans-serif; cursor:pointer; }.skip-intro:hover { color:#fff; }.skip-intro span { margin-left:7px; color:var(--red-bright); }
.intro-exit { opacity:0; visibility:hidden; }
@keyframes orbit { to { transform:rotate(360deg); } } @keyframes twinkle { to { opacity:.35; transform:translateY(5px); } } @keyframes loadline { from { transform:scaleX(0); } to { transform:scaleX(1); } }
.intro-sound { position:absolute; right:30px; bottom:31px; padding:8px 11px; color:#c7aab2; background:rgba(44,12,24,.68); border:1px solid rgba(255,92,125,.3); font:11px 'Kanit',sans-serif; cursor:pointer; }
.skip-intro,.intro-sound { z-index:5; }
.intro-sound:hover,.intro-sound[aria-pressed="true"] { color:#fff; border-color:rgba(255,92,125,.8); box-shadow:0 0 18px rgba(255,49,84,.15); }
.loading-complete .intro-emblem,.loading-complete .intro-kicker,.loading-complete h2,.loading-complete .loading-track,.loading-complete .loading-caption,.loading-complete .intro-stars { opacity:0; transition:opacity .35s ease; }
.scan-sequence { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; overflow:hidden; opacity:0; visibility:hidden; background:radial-gradient(ellipse at center,rgba(46,8,20,.38),rgba(7,5,9,.96) 70%); }
.loading-complete .scan-sequence { opacity:1; visibility:visible; }
.scan-hud { position:absolute; top:32px; left:5vw; right:5vw; display:flex; justify-content:space-between; color:#ff8297; font:10px 'Orbitron',sans-serif; letter-spacing:1.5px; }
.scan-hud span:last-child { color:#b598a1; }
.scan-reticle { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; width:190px; height:190px; border:1px solid rgba(255,77,111,.6); border-radius:50%; color:#fff; font:600 14px 'Orbitron',sans-serif; box-shadow:0 0 38px rgba(255,41,82,.16),inset 0 0 35px rgba(255,41,82,.12); }
.scan-reticle::before,.scan-reticle::after { content:''; position:absolute; inset:-11px; border:1px dashed rgba(255,96,125,.5); border-radius:50%; animation:orbit 6s linear infinite; }
.scan-reticle::after { inset:22px -22px; border-style:solid; border-color:rgba(255,96,125,.25); animation-direction:reverse; }
.scan-reticle i { position:absolute; left:0; right:0; top:50%; height:2px; background:#ff5b78; box-shadow:0 0 18px #ff3154; transform:scaleX(0); transform-origin:left; }
.scan-active .scan-reticle i { animation:scanbeam 1.5s ease-in-out infinite alternate; }
.scan-reticle b { text-shadow:0 0 16px #ff3154; letter-spacing:2px; }
.scan-reticle span { margin-top:9px; color:#c99aa5; font:8px 'Orbitron',sans-serif; letter-spacing:1px; }
.scan-status { min-height:25px; margin:26px 0 0; color:#f2c2cb; font-size:14px; letter-spacing:.5px; }
.cinema-card { position:absolute; inset:0; display:grid; place-items:center; overflow:hidden; opacity:0; transform:scale(1.16); transition:opacity .55s ease,transform 2.2s cubic-bezier(.16,.7,.3,1); background:#080609; }
.cinema-active .cinema-card { opacity:1; transform:scale(1); }
.cinema-card img { width:100%; height:100%; object-fit:cover; animation:cinema-zoom 7s ease-out forwards; }
.cinema-card .cinema-image { position:absolute; inset:0; opacity:0; transition:opacity .9s ease; }
.cinema-card .cinema-image-one { opacity:1; }
.cinema-second .cinema-image-one { opacity:0; }
.cinema-second .cinema-image-two { opacity:1; }
.cinema-vignette { position:absolute; inset:0; background:linear-gradient(90deg,rgba(8,4,8,.7),transparent 35%,transparent 65%,rgba(8,4,8,.7)),linear-gradient(0deg,rgba(8,4,8,.78),transparent 35%,rgba(8,4,8,.25)); }
.cinema-title { position:absolute; left:9vw; bottom:14vh; color:#fff3f5; font:800 clamp(36px,8vw,88px)/1 'Orbitron',sans-serif; letter-spacing:.07em; text-shadow:0 4px 35px rgba(255,24,70,.65); animation:title-rise .9s .35s both; }
.scan-flash { position:absolute; inset:0; z-index:2; pointer-events:none; opacity:0; background:#fff0f2; }
.cinema-active .scan-flash { animation:flash .65s ease-out .1s; }
@keyframes scanbeam { from { transform:translateY(-60px) scaleX(.2); opacity:.35; } to { transform:translateY(60px) scaleX(1); opacity:1; } }
@keyframes cinema-zoom { from { transform:scale(1.08); } to { transform:scale(1); } }
@keyframes title-rise { from { opacity:0; transform:translateY(24px); letter-spacing:.3em; } to { opacity:1; transform:translateY(0); letter-spacing:.07em; } }
@keyframes flash { 0% { opacity:0; } 18% { opacity:.9; } 100% { opacity:0; } }
@media (prefers-reduced-motion: reduce) { .cinema-card .cinema-image { transition:none; } }
@media (max-width:850px) { .hero-layout { gap:35px; padding:55px 0 48px; }.portal-grid { grid-template-columns:repeat(3,1fr); }.profile-panel { width:100%; } }
@media (max-width:600px) { .home-shell { width:calc(100% - 32px); padding-top:17px; }.system-status { font-size:8px; }.hero-layout { grid-template-columns:1fr; gap:32px; padding:45px 0 36px; }.hero-copy h1 { font-size:clamp(49px,14vw,78px); letter-spacing:-3px; }.hero-description { font-size:14px; }.profile-panel { width:min(100%,340px); justify-self:center; }.hero-meta { gap:9px 15px; font-size:8px; }.portal-grid { grid-template-columns:repeat(2,1fr); }.section-heading h2 { font-size:19px; }.section-index { font-size:8px; }.home-footer { flex-wrap:wrap; font-size:7px; }.home-footer span:nth-child(2) { order:3; width:100%; }.intro-screen h2 { font-size:22px; } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior:auto!important; animation-duration:.01ms!important; animation-iteration-count:1!important; transition-duration:.01ms!important; } }
@media (max-width:600px) { .intro-sound { right:50%; bottom:70px; transform:translateX(50%); white-space:nowrap; }.scan-hud { top:19px; font-size:7px; letter-spacing:.7px; }.scan-reticle { width:155px; height:155px; }.cinema-title { left:7vw; bottom:12vh; } }

/* Shared crimson archive theme for every Locations page */
body:not(.home-page) {
    --page-red: #ff3154;
    --page-red-soft: #ff7189;
    --page-ink: #10070b;
    color: #fff3f5;
    background: var(--page-ink);
    background-image: radial-gradient(ellipse at 50% 0%, rgba(103, 11, 37, .32), transparent 55%);
    font-family: 'Kanit', sans-serif;
}
body:not(.home-page) .video-background { z-index: 0; }
body:not(.home-page) .overlay {
    background: linear-gradient(90deg, rgba(12,5,9,.94), rgba(25,6,13,.8) 52%, rgba(14,5,10,.84)),
                linear-gradient(0deg, #10070b 0%, rgba(16,7,11,.2) 65%, rgba(42,5,17,.35));
}
body:not(.home-page) .container-about,
body:not(.home-page) .container-work,
body:not(.home-page) .container-full,
body:not(.home-page) .container {
    position: relative;
    z-index: 1;
}
body:not(.home-page) .container-about,
body:not(.home-page) .container-work,
body:not(.home-page) .container-full { color: #fff3f5; }
body:not(.home-page) .top-nav,
body:not(.home-page) .header-nav { margin-bottom: 28px; }
body:not(.home-page) .back-link,
body:not(.home-page) .back-btn {
    color: #d1aeb7;
    transition: color .2s, border-color .2s, transform .2s;
}
body:not(.home-page) .back-link:hover,
body:not(.home-page) .back-btn:hover { color: #fff; }
body:not(.home-page) .huge-title,
body:not(.home-page) .section-title,
body:not(.home-page) .bio-content h2,
body:not(.home-page) .work-details h3 { color: #fff3f5; }
body:not(.home-page) .huge-title { text-shadow: 0 0 38px rgba(255,49,84,.2); }
body:not(.home-page) .section-title { letter-spacing: 2px; }
body:not(.home-page) .title-line,
body:not(.home-page) .header-line {
    background: linear-gradient(90deg, #ff3154, rgba(255,49,84,.2) 62%, transparent);
}
body:not(.home-page) .section-header,
body:not(.home-page) .section-divider {
    color: #ff8095;
    border-color: rgba(255,85,116,.38);
}
body:not(.home-page) .section-divider::before,
body:not(.home-page) .section-divider::after { background: linear-gradient(90deg, transparent, rgba(255,85,116,.55)); }
body:not(.home-page) .bio-content p,
body:not(.home-page) .sub-bio,
body:not(.home-page) .gallery-desc,
body:not(.home-page) .work-details .sub-detail { color: #cbb5bb !important; }
body:not(.home-page) .info-tags .tag-item,
body:not(.home-page) .profile-tags span {
    color: #f2c5ce;
    background: rgba(60,13,29,.5);
    border: 1px solid rgba(255,85,116,.3);
}
body:not(.home-page) .arsenal-card,
body:not(.home-page) .project-card,
body:not(.home-page) .timeline-item,
body:not(.home-page) .gallery-item,
body:not(.home-page) .activity-item {
    color: #fff3f5;
    background: linear-gradient(145deg, rgba(45,17,27,.92), rgba(17,10,14,.95));
    border: 1px solid rgba(255,255,255,.09);
    box-shadow: 0 12px 34px rgba(0,0,0,.22);
}
body:not(.home-page) .arsenal-card:hover,
body:not(.home-page) .project-card:hover,
body:not(.home-page) .gallery-item:hover {
    border-color: rgba(255,80,112,.65);
    box-shadow: 0 15px 38px rgba(130,12,42,.2);
}
body:not(.home-page) .arsenal-card p,
body:not(.home-page) .project-info p { color: #c4adb4; }
body:not(.home-page) .arsenal-card .icon-box,
body:not(.home-page) .arsenal-card .icon { border-color: var(--page-red-soft); }
body:not(.home-page) .tag,
body:not(.home-page) .tag.lua,
body:not(.home-page) .tag.python,
body:not(.home-page) .tag.web {
    color: #ff9aac;
    background: rgba(112,16,43,.24);
    border: 1px solid rgba(255,85,116,.42);
}
body:not(.home-page) .view-project { color: #ff8298; }
body:not(.home-page) .view-project:hover { border-color: #ff8298; }
body:not(.home-page) .timeline::before { background: linear-gradient(#ff3154, rgba(255,49,84,.08)); }
body:not(.home-page) .timeline-item::before { background: #ff526e; box-shadow: 0 0 14px #ff3154; }
body:not(.home-page) .work-details .role,
body:not(.home-page) .work-date { color: #ff8298; }
body:not(.home-page) .logo-box { background: rgba(39,13,23,.9); border: 1px solid rgba(255,80,112,.26); }
body:not(.home-page) .social-btn { background: #79152e; color: #fff; border: 1px solid rgba(255,120,145,.35); }
body:not(.home-page) .modal { background: rgba(5,3,6,.94); }
body:not(.home-page) .close-modal { color: #ff8298; }
body:not(.home-page) footer { color: #c6aab2; }
body:not(.home-page) .container:not(.container-full) {
    max-width: 560px;
    padding: 42px 30px;
    border: 1px solid rgba(255,85,116,.36);
    background: linear-gradient(145deg, rgba(42,13,25,.83), rgba(14,8,12,.88));
    box-shadow: 0 22px 70px rgba(0,0,0,.35), inset 0 0 35px rgba(120,12,43,.1);
}
body:not(.home-page) .container .profile-img img { border-color: #ff4868; box-shadow: 0 0 24px rgba(255,49,84,.28); }
body:not(.home-page) .container h1 { color: #fff3f5; font-family: 'Orbitron','Kanit',sans-serif; }
body:not(.home-page) .container .description { color: #d5b8c0; }
.birthday-trigger {
    appearance: none;
    font: inherit;
    cursor: default;
    touch-action: manipulation;
    transition: none;
}
.birthday-trigger:focus-visible { outline: 2px solid #ff7189; outline-offset: 3px; }
.arsenal-list { display: grid; gap: 14px; }
.arsenal-row {
    position: relative;
    display: grid;
    grid-template-columns: 54px minmax(160px, .7fr) minmax(0, 1.5fr);
    align-items: center;
    gap: 16px;
    min-height: 88px;
    padding: 14px 20px 14px 15px;
    border: 1px solid rgba(255,112,139,.22);
    border-radius: 15px;
    background: linear-gradient(105deg,rgba(42,15,26,.92),rgba(18,10,15,.88));
    box-shadow: 0 10px 28px rgba(0,0,0,.18);
    transition: border-color .25s, transform .25s, box-shadow .25s;
}
.arsenal-row:hover { transform: translateY(-2px); border-color: rgba(255,112,139,.55); box-shadow: 0 14px 32px rgba(105,10,37,.2); }
.arsenal-row-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: #ff8da1;
    border: 1px solid rgba(255,112,139,.42);
    border-radius: 13px;
    background: linear-gradient(145deg,rgba(111,19,48,.65),rgba(38,11,24,.88));
    box-shadow: 0 7px 18px rgba(0,0,0,.24), inset 0 0 14px rgba(255,49,84,.1);
    font-size: 22px;
}
.arsenal-row h4 { margin: 0; color: #fff2f4; font-size: 1.15rem; font-weight: 500; }
.arsenal-tools { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.arsenal-tools span {
    padding: 5px 10px;
    color: #f4c5ce;
    border: 1px solid rgba(255,112,139,.2);
    border-radius: 7px;
    background: rgba(108,20,47,.24);
    font-size: .78rem;
    line-height: 1.2;
    white-space: nowrap;
}
.birthday-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(5,3,7,.84);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}
.birthday-modal.is-open { opacity: 1; visibility: visible; }
body.birthday-card-open { overflow:hidden; }
.birthday-card-wrap { position: relative; width: min(760px, 100%); transform: translateY(18px) scale(.97); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.birthday-modal.is-open .birthday-card-wrap { transform: translateY(0) scale(1); }
.birthday-close {
    position: absolute;
    z-index: 2;
    top: -17px;
    right: -14px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255,145,164,.65);
    border-radius: 50%;
    color: #fff;
    background: #64132a;
    font-size: 25px;
    cursor: pointer;
}
.birthday-card {
    overflow: hidden;
    padding: 18px 21px 13px;
    color: #fff1f3;
    border: 1px solid rgba(255,128,151,.66);
    border-radius: 20px;
    background: linear-gradient(120deg,rgba(52,16,31,.98),rgba(18,10,16,.98) 58%,rgba(75,13,34,.98));
    box-shadow: 0 28px 100px rgba(0,0,0,.62),0 0 50px rgba(255,49,84,.2),inset 0 0 50px rgba(255,49,84,.08);
}
.birthday-card-head,.birthday-card-footer { display:flex; justify-content:space-between; gap:12px; color:#ff91a4; font:9px 'Orbitron',sans-serif; letter-spacing:1px; }
.birthday-card-head span:last-child { color:#f1c4cc; }
.birthday-card-main { display:grid; grid-template-columns:1fr 190px; align-items:center; gap:22px; padding:24px 5px 18px; }
.birthday-card-copy { position:relative; }
.birthday-card-label { color:#bc8995; font:8px 'Orbitron',sans-serif; letter-spacing:1.2px; }
.birthday-card h2 { margin:12px 0 17px; color:#fff7f8; font:600 clamp(23px,5vw,39px) 'Orbitron','Kanit',sans-serif; letter-spacing:-1px; }
.birthday-date { margin:0; color:#f3dce1; font:500 clamp(21px,5vw,34px) 'Orbitron',sans-serif; letter-spacing:.2em; }
.birthday-date b { color:#ff627d; }
.birthday-facts { display:flex; flex-wrap:wrap; gap:8px 20px; margin-top:15px; color:#c5a5ad; font-size:14px; }
.birthday-facts strong { color:#fff; }
.birthday-card-stamp { display:inline-block; margin-top:19px; padding:6px 10px; color:#ff9eaf; border:1px solid rgba(255,112,139,.45); font:8px 'Orbitron',sans-serif; letter-spacing:1px; }
.birthday-card-photo { position:relative; overflow:hidden; aspect-ratio:4/5; border:1px solid rgba(255,125,148,.6); border-radius:12px; box-shadow:0 0 28px rgba(255,49,84,.15); }
.birthday-card-photo::after { content:''; position:absolute; inset:0; background:linear-gradient(0deg,rgba(55,7,23,.28),transparent 55%); }
.birthday-card-photo img { width:100%; height:100%; display:block; object-fit:cover; }
.birthday-card-footer { padding-top:10px; border-top:1px solid rgba(255,112,139,.24); color:#b98d97; font-size:8px; }
@media (max-width:560px) {
    .birthday-modal { padding:19px; }
    .birthday-card { padding:15px 14px 12px; border-radius:15px; }
    .birthday-card-main { grid-template-columns:1fr 112px; gap:12px; padding:23px 0 15px; }
    .birthday-card h2 { font-size:clamp(18px,5.8vw,27px); letter-spacing:-.7px; }
    .birthday-card-label { font-size:6px; letter-spacing:.7px; }
    .birthday-date { font-size:clamp(17px,5.4vw,25px); letter-spacing:.1em; }
    .birthday-facts { gap:4px 9px; font-size:12px; }
    .birthday-card-head { font-size:7px; letter-spacing:.4px; }
    .birthday-close { top:-12px; right:-8px; width:33px; height:33px; }
    .arsenal-row { grid-template-columns:42px minmax(0,1fr); gap:10px 12px; padding:13px; }
    .arsenal-row-icon { width:40px; height:40px; border-radius:11px; }
    .arsenal-row h4 { font-size:1rem; }
    .arsenal-tools { grid-column:2; justify-content:flex-start; gap:6px; }
    .arsenal-tools span { padding:4px 8px; font-size:.72rem; }
}
.contact-page { display:block; min-height:100vh; padding:0; background:#10070b; }
.contact-page .video-background { z-index:0; }
.contact-page .overlay { background:linear-gradient(90deg,rgba(12,5,9,.92),rgba(25,6,13,.79),rgba(14,5,10,.9)),linear-gradient(0deg,#10070b,transparent 65%); }
.contact-shell { position:relative; z-index:1; width:min(1120px,calc(100% - 48px)); min-height:100vh; margin:0 auto; padding:26px 0 18px; display:flex; flex-direction:column; justify-content:center; }
.contact-nav { display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; color:#b997a0; font:9px 'Orbitron',sans-serif; letter-spacing:1px; }
.contact-nav a { color:#e2c1c8; text-decoration:none; font:13px 'Kanit',sans-serif; }
.contact-nav a:hover { color:#fff; }
.contact-email-panel { padding:clamp(28px,5vw,58px); border:1px solid rgba(255,112,139,.38); border-radius:22px; background:linear-gradient(125deg,rgba(47,15,28,.93),rgba(17,9,14,.94) 68%); box-shadow:0 24px 72px rgba(0,0,0,.32),inset 0 0 45px rgba(255,49,84,.06); }
.contact-kicker { color:#ff8097; font:9px 'Orbitron',sans-serif; letter-spacing:1.6px; }
.contact-email-panel h1 { margin:16px 0 13px; font:700 clamp(25px,5.5vw,58px)/1.12 'Orbitron','Kanit',sans-serif; letter-spacing:-1.8px; overflow-wrap:anywhere; }
.contact-email-panel h1 a { color:#fff4f6; text-decoration:none; text-shadow:0 0 32px rgba(255,49,84,.15); }
.contact-email-panel p { margin:0; color:#d3b9c0; font-size:clamp(14px,2vw,18px); }
.contact-actions { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin-top:25px; }
.contact-actions button,.contact-actions>a { display:inline-flex; align-items:center; gap:12px; min-height:43px; padding:9px 17px; color:#fff0f3; border:1px solid rgba(255,112,139,.48); border-radius:9px; background:rgba(102,18,43,.53); text-decoration:none; font:500 14px 'Kanit',sans-serif; cursor:pointer; transition:background .2s,transform .2s; }
.contact-actions button:hover,.contact-actions>a:hover { transform:translateY(-2px); background:rgba(154,26,58,.62); }
.contact-actions button span,.contact-actions>a span { color:#ff9aab; font-size:17px; }
#copy-status { min-height:1em; color:#ff9aab; font-size:12px; }
.contact-socials { display:grid; grid-template-columns:repeat(3,1fr); gap:15px; margin-top:17px; }
.contact-social-card { display:flex; align-items:center; gap:13px; min-width:0; padding:16px; color:#fff2f4; border:1px solid rgba(255,112,139,.24); border-radius:15px; background:linear-gradient(140deg,rgba(43,15,27,.93),rgba(17,10,14,.93)); text-decoration:none; box-shadow:0 12px 34px rgba(0,0,0,.2); transition:transform .22s,border-color .22s,box-shadow .22s; }
.contact-social-card:hover { transform:translateY(-4px); border-color:rgba(255,112,139,.66); box-shadow:0 16px 36px rgba(110,12,40,.2); }
.contact-social-icon { display:grid; flex:0 0 48px; place-items:center; width:48px; height:48px; border-radius:13px; color:#fff; font:700 16px 'Orbitron',sans-serif; }
.github-icon { background:#241c22; border:1px solid rgba(255,255,255,.18); }.instagram-icon { background:linear-gradient(145deg,#7735a8,#d5366f 55%,#ef8b45); font:32px sans-serif; }.facebook-icon { background:#194c9d; font:700 31px Arial,sans-serif; }
.contact-social-copy { display:flex; min-width:0; flex:1; flex-direction:column; }.contact-social-copy strong { font-size:16px; font-weight:500; }.contact-social-copy small { overflow:hidden; color:#c2a7af; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.contact-social-arrow { color:#ff8298; font-size:16px; }
.contact-footer { margin-top:25px; color:#a58a92; text-align:center; font:8px 'Orbitron',sans-serif; letter-spacing:1px; }.contact-footer span { padding:0 7px; color:#ff526e; }
@media (max-width:700px) { .contact-shell { width:calc(100% - 30px); justify-content:flex-start; padding-top:22px; }.contact-socials { grid-template-columns:1fr; gap:10px; }.contact-social-card { padding:12px 14px; }.contact-email-panel h1 { letter-spacing:-1px; }.contact-nav span { font-size:7px; letter-spacing:.5px; } }
.merch-page { display:block; min-height:100vh; padding:0; background:#10070b; }
.merch-page .video-background { z-index:0; }
.merch-page .overlay { background:linear-gradient(90deg,rgba(12,5,9,.93),rgba(25,6,13,.78),rgba(14,5,10,.91)),linear-gradient(0deg,#10070b,transparent 70%); }
.merch-shell { position:relative; z-index:1; width:min(1100px,calc(100% - 48px)); min-height:100vh; margin:0 auto; padding:25px 0 18px; display:flex; flex-direction:column; justify-content:center; }
.merch-nav { display:flex; justify-content:space-between; align-items:center; margin-bottom:26px; color:#b997a0; font:9px 'Orbitron',sans-serif; letter-spacing:1px; }
.merch-nav a { color:#e2c1c8; text-decoration:none; font:13px 'Kanit',sans-serif; }.merch-nav a:hover { color:#fff; }
.merch-hero { display:grid; grid-template-columns:1fr .9fr; align-items:center; gap:35px; min-height:390px; padding:30px clamp(24px,5vw,60px); border:1px solid rgba(255,112,139,.35); border-radius:22px; background:linear-gradient(115deg,rgba(48,15,29,.94),rgba(18,9,14,.92) 65%); box-shadow:0 24px 72px rgba(0,0,0,.3),inset 0 0 50px rgba(255,49,84,.06); }
.merch-kicker,.merch-store-heading>span { color:#ff8298; font:9px 'Orbitron',sans-serif; letter-spacing:1.7px; }
.merch-copy h1 { margin:13px 0 15px; color:#fff3f5; font:800 clamp(58px,9vw,100px)/.92 'Orbitron','Kanit',sans-serif; letter-spacing:-5px; }
.merch-copy h1 span { color:#ff4968; text-shadow:0 0 30px rgba(255,49,84,.25); }
.merch-copy p { max-width:470px; color:#d0b7be; font-size:16px; line-height:1.8; }
.merch-coming-badge { display:inline-flex; align-items:center; gap:9px; margin-top:13px; padding:9px 12px; color:#ffc6d0; border:1px solid rgba(255,112,139,.4); border-radius:7px; background:rgba(111,17,43,.28); font:9px 'Orbitron',sans-serif; letter-spacing:.8px; }
.merch-coming-badge i { width:7px; height:7px; border-radius:50%; background:#ff526e; box-shadow:0 0 12px #ff3154; animation:merch-pulse 1.5s ease-in-out infinite; }
.merch-art { position:relative; display:grid; place-items:center; min-height:315px; isolation:isolate; }
.merch-art-glow { position:absolute; width:65%; aspect-ratio:1; border-radius:50%; background:rgba(192,20,61,.2); filter:blur(55px); }
.merch-art-orbit { position:absolute; width:260px; height:260px; border:1px solid rgba(255,93,122,.22); border-radius:50%; transform:rotate(-25deg) scaleY(.43); }
.orbit-two { width:330px; height:330px; border-style:dashed; opacity:.65; transform:rotate(35deg) scaleY(.4); }
.merch-art-card { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; width:min(260px,70vw); aspect-ratio:.86; padding:20px; border:1px solid rgba(255,177,91,.53); border-radius:15px; background:linear-gradient(145deg,rgba(255,255,255,.11),rgba(48,16,30,.82) 54%,rgba(17,8,13,.95)); box-shadow:0 22px 60px rgba(0,0,0,.4),inset 0 0 36px rgba(255,102,56,.09); transform:rotate(4deg); animation:merch-float 5s ease-in-out infinite; }
.merch-art-card::before { content:''; position:absolute; inset:7px; border:1px solid rgba(255,156,111,.13); border-radius:10px; pointer-events:none; }
.merch-edition { align-self:flex-start; color:#e7a798; font:8px 'Orbitron',sans-serif; letter-spacing:1px; }
.merch-art-card img { width:78%; max-height:65%; margin:14px auto; object-fit:contain; filter:drop-shadow(0 0 22px rgba(255,179,39,.3)); }
.merch-art-caption { color:#fff0d5; text-align:center; font:700 13px 'Orbitron',sans-serif; letter-spacing:2px; }.merch-art-caption small { color:#dcae94; font-size:7px; letter-spacing:2px; }
.merch-art-star { position:absolute; color:#ffab83; text-shadow:0 0 14px #ff526e; }.star-one { top:13%; right:15%; font-size:22px; }.star-two { left:12%; bottom:17%; font-size:17px; }
.merch-stores { margin-top:24px; padding:20px 0 0; }.merch-store-heading { text-align:center; }.merch-store-heading h2 { margin:5px 0 2px; color:#fff3f5; font-size:24px; font-weight:500; }.merch-store-heading p { margin:0; color:#bd9da6; font-size:13px; }
.merch-store-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:13px; margin-top:16px; }
.merch-store-card { display:grid; grid-template-columns:50px 1fr; grid-template-rows:auto auto; align-items:center; column-gap:12px; padding:13px 15px; border:1px solid rgba(255,112,139,.23); border-radius:13px; background:linear-gradient(135deg,rgba(41,14,25,.9),rgba(17,9,14,.94)); }
.merch-store-logo { grid-row:1/3; display:grid; place-items:center; width:48px; height:48px; overflow:hidden; border-radius:11px; background:#fff; }.merch-store-logo img { display:block; width:100%; height:100%; object-fit:contain; }
.merch-store-name { color:#fff0f3; font-size:15px; font-weight:500; }.merch-store-status { color:#ff92a5; font-size:11px; }
.merch-footer { margin-top:18px; color:#a58a92; text-align:center; font:8px 'Orbitron',sans-serif; letter-spacing:1px; }.merch-footer span { padding:0 7px; color:#ff526e; }
@keyframes merch-float { 0%,100% { transform:translateY(0) rotate(4deg); } 50% { transform:translateY(-9px) rotate(2deg); } }
@keyframes merch-pulse { 50% { opacity:.45; box-shadow:0 0 4px #ff3154; } }
@media (max-width:760px) { .merch-shell { width:calc(100% - 30px); justify-content:flex-start; padding-top:20px; }.merch-hero { grid-template-columns:1fr; gap:5px; padding:28px 23px 10px; }.merch-copy h1 { font-size:clamp(58px,15vw,82px); }.merch-copy p { font-size:14px; }.merch-art { min-height:280px; }.merch-art-card { width:205px; }.merch-store-grid { grid-template-columns:1fr; gap:9px; }.merch-nav span { font-size:7px; letter-spacing:.5px; } }
@media (prefers-reduced-motion: reduce) { .merch-art-card,.merch-coming-badge i { animation:none; } }
/* Shared entrance and interaction motion across all site pages */
@keyframes page-enter-soft { from { opacity:0; transform:translateY(20px); filter:blur(3px); } to { opacity:1; transform:translateY(0); filter:blur(0); } }
@keyframes card-enter-soft { from { opacity:0; transform:translateY(15px) scale(.985); } to { opacity:1; transform:translateY(0) scale(1); } }
@keyframes icon-hover-float { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-3px); } }
@keyframes accent-breathe { 0%,100% { opacity:.7; } 50% { opacity:1; } }
body:not(.home-page) .container-about,
body:not(.home-page) .container-work,
body:not(.home-page) .container-full,
body:not(.home-page) .contact-shell,
body:not(.home-page) .merch-shell { animation:page-enter-soft .75s cubic-bezier(.2,.75,.25,1) both; }
body:not(.home-page) .container-about > section,
body:not(.home-page) .container-work > *,
body:not(.home-page) .container-full > header,
body:not(.home-page) .contact-email-panel,
body:not(.home-page) .merch-hero,
body:not(.home-page) .merch-stores { animation:page-enter-soft .7s cubic-bezier(.2,.75,.25,1) both; }
body:not(.home-page) .container-about > section:nth-of-type(2),
body:not(.home-page) .container-work > :nth-child(2),
body:not(.home-page) .container-full > header { animation-delay:.08s; }
body:not(.home-page) .container-about > section:nth-of-type(3),
body:not(.home-page) .container-work > :nth-child(3),
body:not(.home-page) .contact-social-card:nth-child(1) { animation-delay:.16s; }
body:not(.home-page) .container-about > section:nth-of-type(4),
body:not(.home-page) .contact-social-card:nth-child(2) { animation-delay:.24s; }
body:not(.home-page) .contact-social-card:nth-child(3) { animation-delay:.32s; }
body:not(.home-page) .project-card,
body:not(.home-page) .arsenal-row,
body:not(.home-page) .favorite-game-card,
body:not(.home-page) .timeline-item,
body:not(.home-page) .gallery-item,
body:not(.home-page) .activity-item,
body:not(.home-page) .contact-social-card,
body:not(.home-page) .merch-store-card { animation:card-enter-soft .58s cubic-bezier(.2,.8,.2,1) both; }
.project-grid > :nth-child(2),.arsenal-list > :nth-child(2),.favorite-games-grid > :nth-child(2),.timeline > :nth-child(2),.gallery-grid > :nth-child(2),.activity-grid > :nth-child(2),.merch-store-grid > :nth-child(2) { animation-delay:.08s; }
.project-grid > :nth-child(3),.arsenal-list > :nth-child(3),.favorite-games-grid > :nth-child(3),.timeline > :nth-child(3),.gallery-grid > :nth-child(3),.activity-grid > :nth-child(3),.merch-store-grid > :nth-child(3) { animation-delay:.16s; }
.project-grid > :nth-child(4),.arsenal-list > :nth-child(4),.favorite-games-grid > :nth-child(4),.timeline > :nth-child(4),.gallery-grid > :nth-child(4) { animation-delay:.24s; }
.project-grid > :nth-child(n+5),.arsenal-list > :nth-child(n+5),.favorite-games-grid > :nth-child(n+5),.timeline > :nth-child(n+5),.gallery-grid > :nth-child(n+5) { animation-delay:.3s; }
.arsenal-row-icon,.portal-icon { animation:icon-hover-float 4s ease-in-out infinite; }
.featured-image-label b,.system-status i { animation:accent-breathe 2.3s ease-in-out infinite; }
.link-card,.social-btn,.back-link,.back-btn,.portal-card,.contact-social-card,.merch-store-card,.arsenal-row,.favorite-game-card,.project-card,.gallery-item,.activity-item,.arsenal-card { transition:transform .28s cubic-bezier(.2,.8,.2,1),border-color .28s,box-shadow .28s,background-color .28s; }
.link-card:hover,.social-btn:hover,.contact-social-card:hover,.merch-store-card:hover { transform:translateY(-4px); }
.home-page.page-ready .topbar { animation:page-enter-soft .55s ease both; }
.home-page.page-ready .hero-copy { animation:page-enter-soft .7s .08s ease both; }
.home-page.page-ready .profile-panel { animation:page-enter-soft .7s .2s ease both; }
.home-page.page-ready .featured-project { animation:page-enter-soft .7s .14s ease both; }
.home-page.page-ready .portal-card { animation:card-enter-soft .55s ease both; }
.home-page.page-ready .portal-card:nth-child(2) { animation-delay:.06s; }.home-page.page-ready .portal-card:nth-child(3) { animation-delay:.12s; }.home-page.page-ready .portal-card:nth-child(4) { animation-delay:.18s; }.home-page.page-ready .portal-card:nth-child(5) { animation-delay:.24s; }.home-page.page-ready .portal-card:nth-child(6) { animation-delay:.3s; }
*:focus-visible { outline:2px solid rgba(255,113,137,.9); outline-offset:3px; }
@media (prefers-reduced-motion: reduce) {
    body:not(.home-page) .container-about,body:not(.home-page) .container-work,body:not(.home-page) .container-full,body:not(.home-page) .contact-shell,body:not(.home-page) .merch-shell,
    body:not(.home-page) .container-about > section,body:not(.home-page) .container-work > *,body:not(.home-page) .container-full > header,body:not(.home-page) .contact-email-panel,body:not(.home-page) .merch-hero,body:not(.home-page) .merch-stores,
    body:not(.home-page) .project-card,body:not(.home-page) .arsenal-row,body:not(.home-page) .favorite-game-card,body:not(.home-page) .timeline-item,body:not(.home-page) .gallery-item,body:not(.home-page) .activity-item,body:not(.home-page) .contact-social-card,body:not(.home-page) .merch-store-card,
    .home-page.page-ready .topbar,.home-page.page-ready .hero-copy,.home-page.page-ready .profile-panel,.home-page.page-ready .featured-project,.home-page.page-ready .portal-card,
    .arsenal-row-icon,.portal-icon,.featured-image-label b,.system-status i { animation:none!important; transition:none!important; }
}
.home-page .topbar { position:relative; z-index:10; isolation:isolate; }
.topbar-left { position:relative; display:flex; align-items:center; gap:18px; }
.menu-toggle { position:relative; z-index:14; display:flex; flex:0 0 38px; flex-direction:column; justify-content:center; gap:5px; width:38px; height:38px; padding:9px; border:1px solid rgba(255,95,124,.35); border-radius:9px; background:rgba(16,7,11,.12); color:#fff; cursor:pointer; pointer-events:auto; touch-action:manipulation; -webkit-tap-highlight-color:transparent; transition:background .2s,border-color .2s; }
.menu-toggle:hover,.menu-open .menu-toggle { border-color:rgba(255,112,139,.8); background:rgba(95,13,36,.2); }
.menu-toggle span { display:block; width:100%; height:1.5px; border-radius:2px; background:#ff8398; transition:transform .2s,opacity .2s; }
.menu-open .menu-toggle span:first-child { transform:translateY(6.5px) rotate(45deg); }.menu-open .menu-toggle span:nth-child(2) { opacity:0; }.menu-open .menu-toggle span:last-child { transform:translateY(-6.5px) rotate(-45deg); }
.site-menu { position:absolute; z-index:15; top:calc(100% + 14px); left:0; display:none; width:min(340px,calc(100vw - 36px)); padding:12px; border:1px solid rgba(255,99,128,.58); border-radius:13px; background:#13070d; box-shadow:0 24px 60px rgba(0,0,0,.68),0 0 30px rgba(255,49,84,.12); pointer-events:auto; }
.site-menu[hidden] { display:none!important; }
.menu-open .site-menu:not([hidden]) { display:grid; animation:menu-appear .18s ease both; }
.site-menu-heading { display:flex; justify-content:space-between; padding:4px 8px 10px; color:#ff8298; font:8px 'Orbitron',sans-serif; letter-spacing:1px; }
.site-menu-heading span:last-child { color:#997a83; }
.site-menu>a { display:grid; grid-template-columns:26px 1fr 18px; align-items:center; gap:10px; padding:9px 8px; color:#fff0f3; border-top:1px solid rgba(255,255,255,.06); text-decoration:none; transition:background .18s,padding .18s; }
.site-menu>a:hover { padding-left:12px; background:rgba(134,20,49,.24); }
.site-menu>a>b { color:#ff7189; font:9px 'Orbitron',sans-serif; }
.site-menu>a>span { display:flex; flex-direction:column; font-size:13px; line-height:1.35; }
.site-menu>a small { color:#aa8d96; font-size:10px; }
.site-menu>a i { color:#ff8298; font-style:normal; }
@keyframes menu-appear { from { opacity:1; transform:translateY(-7px); } to { opacity:1; transform:translateY(0); } }
@media (max-width:600px) { .topbar-left { gap:8px; }.wordmark { gap:7px; font-size:9px; letter-spacing:.6px; }.wordmark-mark { width:30px; height:30px; }.system-status { font-size:7px; letter-spacing:.3px; }.system-status b { padding:0 2px; } }
.topbar-right { display:flex; align-items:center; gap:24px; }
.topbar-links { display:flex; align-items:center; gap:20px; }
.topbar-links a { position:relative; color:#c9aeb6; text-decoration:none; font:9px 'Orbitron',sans-serif; letter-spacing:1px; transition:color .2s; }
.topbar-links a::after { content:''; position:absolute; left:0; right:100%; bottom:-7px; height:1px; background:#ff526e; transition:right .2s; }
.topbar-links a:hover { color:#fff; }.topbar-links a:hover::after { right:0; }
.featured-project { position:relative; display:grid; grid-template-columns:.95fr 1.05fr; align-items:center; gap:clamp(22px,5vw,65px); min-height:290px; margin:0 0 52px; padding:24px clamp(20px,4vw,48px) 24px 24px; overflow:hidden; border:1px solid rgba(255,89,117,.28); border-radius:17px; background:rgba(16,7,11,.1); box-shadow:0 20px 55px rgba(0,0,0,.16),inset 0 0 45px rgba(255,49,84,.025); }
.featured-project::before { content:''; position:absolute; top:-100px; right:-100px; width:300px; height:300px; border:1px solid rgba(255,76,109,.1); border-radius:50%; box-shadow:0 0 0 24px rgba(255,76,109,.025),0 0 0 50px rgba(255,76,109,.02); pointer-events:none; }
.featured-project-image { position:relative; display:block; min-height:230px; height:100%; overflow:hidden; border:1px solid rgba(255,111,137,.32); border-radius:11px; background:#170d12; }
.featured-project-image img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:.82; transition:transform .6s cubic-bezier(.2,.8,.2,1),opacity .4s; }
.featured-project-image:hover img { transform:scale(1.05); opacity:1; }
.featured-image-shade { position:absolute; inset:0; background:linear-gradient(0deg,rgba(14,5,9,.84),transparent 60%),linear-gradient(90deg,rgba(20,5,10,.25),transparent); }
.featured-image-label { position:absolute; left:14px; bottom:12px; color:#f8dce2; font:8px 'Orbitron',sans-serif; letter-spacing:1.3px; }.featured-image-label b { margin-left:7px; color:#ff8499; }
.featured-project-copy { position:relative; z-index:1; padding:11px 0; }
.featured-project-copy .section-kicker { font-size:8px; letter-spacing:1.3px; }.featured-project-copy .section-kicker i { width:5px; height:5px; border-radius:50%; background:#ff526e; box-shadow:0 0 8px #ff3154; }
.featured-project-copy h2 { margin:15px 0 10px; color:#fff3f5; font:700 clamp(26px,4vw,43px)/1.12 'Orbitron','Kanit',sans-serif; letter-spacing:-1.5px; }.featured-project-copy h2 span { color:#ff7289; }
.featured-project-copy p { max-width:480px; color:#cdb5bc; font-size:14px; line-height:1.8; }
.featured-link { display:inline-flex; align-items:center; gap:18px; margin-top:5px; padding:10px 13px; color:#fff2f4; border:1px solid rgba(255,103,130,.45); border-radius:7px; background:rgba(126,18,46,.38); text-decoration:none; font-size:13px; transition:background .2s,transform .2s; }
.featured-link:hover { transform:translateY(-2px); background:rgba(160,23,56,.55); }.featured-link b { color:#ff9aaa; }
.featured-index { position:absolute; right:15px; bottom:12px; color:rgba(237,177,188,.47); font:7px 'Orbitron',sans-serif; letter-spacing:1.2px; }
.home-page .portal-card { border-radius:10px; }
.home-page .portal-card::before { content:''; position:absolute; left:0; top:12px; bottom:12px; width:2px; background:linear-gradient(transparent,#ff526e,transparent); opacity:0; transition:opacity .2s; }
.home-page .portal-card:hover::before { opacity:1; }
.home-page .portal-icon { display:grid; place-items:center; width:28px; height:28px; border:1px solid rgba(255,90,120,.22); border-radius:8px; background:rgba(120,18,44,.17); }
.home-page .section-heading { margin-bottom:19px; }.home-page .section-heading h2 { letter-spacing:.1px; }
.home-page .home-footer { margin-top:28px; border-top:1px solid rgba(255,89,117,.16); }
@media (max-width:850px) { .topbar-right { gap:14px; }.topbar-links { gap:11px; }.topbar-links a { font-size:8px; }.featured-project { gap:25px; } }
@media (max-width:600px) {
    .topbar-right { gap:0; }.topbar-links { display:none; }.featured-project { grid-template-columns:1fr; gap:17px; padding:15px; margin-bottom:38px; }.featured-project-image { min-height:190px; }.featured-project-copy { padding:3px 3px 12px; }.featured-project-copy h2 { margin:10px 0 7px; }.featured-project-copy p { font-size:13px; }.featured-index { right:13px; bottom:15px; }
}
@media (prefers-reduced-motion: reduce) { .featured-project-image img { transition:none; } }
.site-music { position:fixed; z-index:18; right:22px; bottom:20px; width:min(340px,calc(100vw - 30px)); padding:12px 14px 10px; color:#fff3f5; border:1px solid rgba(255,112,139,.47); border-radius:14px; background:linear-gradient(145deg,rgba(48,15,29,.96),rgba(14,8,12,.97)); box-shadow:0 14px 42px rgba(0,0,0,.4),0 0 25px rgba(255,49,84,.1); backdrop-filter:blur(14px); }
.site-music-top { display:flex; align-items:center; gap:10px; }
.site-music-disc { display:grid; flex:0 0 38px; place-items:center; width:38px; height:38px; border:1px solid rgba(255,112,139,.42); border-radius:50%; color:#ff8ea2; background:rgba(121,19,48,.42); font-size:18px; }
.is-playing .site-music-disc { animation:music-spin 4s linear infinite; box-shadow:0 0 16px rgba(255,49,84,.24); }
.site-music-track { display:flex; flex:1; min-width:0; flex-direction:column; }
.site-music-track strong { overflow:hidden; color:#fff1f4; font-size:13px; font-weight:500; text-overflow:ellipsis; white-space:nowrap; }
.site-music-track small { color:#bd9ba5; font-size:10px; }
.site-music-toggle { display:grid; flex:0 0 36px; place-items:center; width:36px; height:36px; border:1px solid rgba(255,112,139,.52); border-radius:50%; color:#fff; background:#851932; font-size:13px; cursor:pointer; transition:transform .2s,background .2s; }
.site-music-toggle:hover { transform:scale(1.07); background:#b21c41; }
.site-music-controls { display:grid; grid-template-columns:31px 1fr 31px; align-items:center; gap:8px; margin-top:9px; color:#a98c95; font:8px 'Orbitron',sans-serif; }
.site-music input[type="range"] { width:100%; height:3px; margin:0; appearance:none; border-radius:4px; outline:none; background:linear-gradient(90deg,#ff526e var(--music-progress,0%),rgba(255,255,255,.16) var(--music-progress,0%)); cursor:pointer; }
.site-music input[type="range"]::-webkit-slider-thumb { width:10px; height:10px; appearance:none; border:1px solid #ffd2da; border-radius:50%; background:#ff526e; box-shadow:0 0 8px rgba(255,49,84,.5); }
.site-music input[type="range"]::-moz-range-thumb { width:9px; height:9px; border:1px solid #ffd2da; border-radius:50%; background:#ff526e; }
.site-music-volume { display:flex; align-items:center; gap:8px; margin-top:8px; color:#a98c95; font:8px 'Orbitron',sans-serif; }
.site-music-volume input { max-width:90px; }
.site-music-volume [role="status"] { flex:1; text-align:right; color:#ff9aab; font:10px 'Kanit',sans-serif; }
@keyframes music-spin { to { transform:rotate(360deg); } }
@media (max-width:600px) { .site-music { right:10px; bottom:10px; width:min(310px,calc(100vw - 20px)); padding:10px 12px 9px; } }
@media (prefers-reduced-motion: reduce) { .is-playing .site-music-disc { animation:none; } }
.favorite-games-section { margin-top:76px; }
.game-category-title { display:flex; align-items:center; gap:10px; margin:24px 0 12px; color:#e9c8cf; font:10px 'Orbitron',sans-serif; letter-spacing:1.2px; }
.game-category-title span { color:#ff7189; font-size:9px; }
.pc-games-heading { margin-top:30px; }
.favorite-games-grid { display:grid; gap:13px; }
.mobile-games-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.pc-games-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.favorite-game-card { position:relative; display:flex; min-width:0; aspect-ratio:1.08; flex-direction:column; justify-content:flex-end; padding:14px; overflow:hidden; border:1px solid rgba(255,112,139,.27); border-radius:13px; background:linear-gradient(145deg,#42152a,#160b11 76%); box-shadow:0 12px 28px rgba(0,0,0,.22); isolation:isolate; transition:transform .25s,border-color .25s,box-shadow .25s; }
.favorite-game-card:hover { transform:translateY(-4px); border-color:rgba(255,112,139,.68); box-shadow:0 16px 32px rgba(110,10,39,.25); }
.favorite-game-card>img { position:absolute; z-index:-2; inset:0; width:100%; height:100%; object-fit:cover; transition:transform .5s; }
.favorite-game-card:hover>img { transform:scale(1.06); }
.favorite-game-shade { position:absolute; z-index:-1; inset:0; background:linear-gradient(0deg,rgba(12,5,9,.97),rgba(16,6,12,.55) 42%,rgba(9,5,10,.08)); }
.favorite-game-type { color:#ff9aab; font:7px 'Orbitron',sans-serif; letter-spacing:.75px; text-shadow:0 2px 7px rgba(0,0,0,.8); }
.favorite-game-card h5 { margin:5px 0 0; color:#fff4f6; font-size:clamp(12px,1.7vw,17px); font-weight:600; line-height:1.2; text-shadow:0 2px 8px rgba(0,0,0,.8); }
.favorite-game-card h5 small { color:#ff9aac; font-size:.72em; }
@media (max-width:700px) { .mobile-games-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.favorite-games-grid { gap:10px; }.favorite-game-card { aspect-ratio:1.22; padding:12px; }.favorite-game-type { font-size:6px; }.favorite-game-card h5 { font-size:15px; } }
.merch-page { display:block; min-height:100vh; padding:0; background:#10070b; }
.merch-page .video-background { z-index:0; }
.merch-page .overlay { background:linear-gradient(90deg,rgba(12,5,9,.93),rgba(25,6,13,.78),rgba(14,5,10,.91)),linear-gradient(0deg,#10070b,transparent 70%); }
.merch-shell { position:relative; z-index:1; width:min(1100px,calc(100% - 48px)); min-height:100vh; margin:0 auto; padding:25px 0 18px; display:flex; flex-direction:column; justify-content:center; }
.merch-nav { display:flex; justify-content:space-between; align-items:center; margin-bottom:26px; color:#b997a0; font:9px 'Orbitron',sans-serif; letter-spacing:1px; }
.merch-nav a { color:#e2c1c8; text-decoration:none; font:13px 'Kanit',sans-serif; }.merch-nav a:hover { color:#fff; }
.merch-hero { display:grid; grid-template-columns:1fr .9fr; align-items:center; gap:35px; min-height:390px; padding:30px clamp(24px,5vw,60px); border:1px solid rgba(255,112,139,.35); border-radius:22px; background:linear-gradient(115deg,rgba(48,15,29,.94),rgba(18,9,14,.92) 65%); box-shadow:0 24px 72px rgba(0,0,0,.3),inset 0 0 50px rgba(255,49,84,.06); }
.merch-kicker,.merch-store-heading>span { color:#ff8298; font:9px 'Orbitron',sans-serif; letter-spacing:1.7px; }
.merch-copy h1 { margin:13px 0 15px; color:#fff3f5; font:800 clamp(58px,9vw,100px)/.92 'Orbitron','Kanit',sans-serif; letter-spacing:-5px; }.merch-copy h1 span { color:#ff4968; text-shadow:0 0 30px rgba(255,49,84,.25); }
.merch-copy p { max-width:470px; color:#d0b7be; font-size:16px; line-height:1.8; }
.merch-coming-badge { display:inline-flex; align-items:center; gap:9px; margin-top:13px; padding:9px 12px; color:#ffc6d0; border:1px solid rgba(255,112,139,.4); border-radius:7px; background:rgba(111,17,43,.28); font:9px 'Orbitron',sans-serif; letter-spacing:.8px; }
.merch-coming-badge i { width:7px; height:7px; border-radius:50%; background:#ff526e; box-shadow:0 0 12px #ff3154; animation:merch-pulse 1.5s ease-in-out infinite; }
.merch-art { position:relative; display:grid; place-items:center; min-height:315px; isolation:isolate; }.merch-art-glow { position:absolute; width:65%; aspect-ratio:1; border-radius:50%; background:rgba(192,20,61,.2); filter:blur(55px); }
.merch-art-orbit { position:absolute; width:260px; height:260px; border:1px solid rgba(255,93,122,.22); border-radius:50%; transform:rotate(-25deg) scaleY(.43); }.orbit-two { width:330px; height:330px; border-style:dashed; opacity:.65; transform:rotate(35deg) scaleY(.4); }
.merch-art-card { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; width:min(260px,70vw); aspect-ratio:.86; padding:20px; border:1px solid rgba(255,177,91,.53); border-radius:15px; background:linear-gradient(145deg,rgba(255,255,255,.11),rgba(48,16,30,.82) 54%,rgba(17,8,13,.95)); box-shadow:0 22px 60px rgba(0,0,0,.4),inset 0 0 36px rgba(255,102,56,.09); transform:rotate(4deg); animation:merch-float 5s ease-in-out infinite; }
.merch-art-card::before { content:''; position:absolute; inset:7px; border:1px solid rgba(255,156,111,.13); border-radius:10px; pointer-events:none; }.merch-edition { align-self:flex-start; color:#e7a798; font:8px 'Orbitron',sans-serif; letter-spacing:1px; }
.merch-art-card img { width:78%; max-height:65%; margin:14px auto; object-fit:contain; filter:drop-shadow(0 0 22px rgba(255,179,39,.3)); }.merch-art-caption { color:#fff0d5; text-align:center; font:700 13px 'Orbitron',sans-serif; letter-spacing:2px; }.merch-art-caption small { color:#dcae94; font-size:7px; letter-spacing:2px; }
.merch-art-star { position:absolute; color:#ffab83; text-shadow:0 0 14px #ff526e; }.star-one { top:13%; right:15%; font-size:22px; }.star-two { left:12%; bottom:17%; font-size:17px; }
.merch-stores { margin-top:24px; padding:20px 0 0; }.merch-store-heading { text-align:center; }.merch-store-heading h2 { margin:5px 0 2px; color:#fff3f5; font-size:24px; font-weight:500; }.merch-store-heading p { margin:0; color:#bd9da6; font-size:13px; }
.merch-store-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:13px; margin-top:16px; }.merch-store-card { display:grid; grid-template-columns:50px 1fr; grid-template-rows:auto auto; align-items:center; column-gap:12px; padding:13px 15px; border:1px solid rgba(255,112,139,.23); border-radius:13px; background:linear-gradient(135deg,rgba(41,14,25,.9),rgba(17,9,14,.94)); }
.merch-store-logo { grid-row:1/3; display:grid; place-items:center; width:48px; height:48px; overflow:hidden; border-radius:11px; background:#fff; }.merch-store-logo img { display:block; width:100%; height:100%; object-fit:contain; }
.merch-store-name { color:#fff0f3; font-size:15px; font-weight:500; }.merch-store-status { color:#ff92a5; font-size:11px; }
.merch-footer { margin-top:18px; color:#a58a92; text-align:center; font:8px 'Orbitron',sans-serif; letter-spacing:1px; }.merch-footer span { padding:0 7px; color:#ff526e; }
@keyframes merch-float { 0%,100% { transform:translateY(0) rotate(4deg); } 50% { transform:translateY(-9px) rotate(2deg); } } @keyframes merch-pulse { 50% { opacity:.45; box-shadow:0 0 4px #ff3154; } }
@media (max-width:760px) { .merch-shell { width:calc(100% - 30px); justify-content:flex-start; padding-top:20px; }.merch-hero { grid-template-columns:1fr; gap:5px; padding:28px 23px 10px; }.merch-copy h1 { font-size:clamp(58px,15vw,82px); }.merch-copy p { font-size:14px; }.merch-art { min-height:280px; }.merch-art-card { width:205px; }.merch-store-grid { grid-template-columns:1fr; gap:9px; }.merch-nav span { font-size:7px; letter-spacing:.5px; } }
@media (prefers-reduced-motion: reduce) { .merch-art-card,.merch-coming-badge i { animation:none; } }
@media (max-width: 600px) {
    body:not(.home-page) .container-about,
    body:not(.home-page) .container-work,
    body:not(.home-page) .container-full { padding-left: 18px; padding-right: 18px; }
}

/* ส่วนหัวโปรไฟล์ */
header {
    margin-bottom: 30px;
}

.profile-img img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #4ecca3;
    margin-bottom: 15px;
    object-fit: cover;
}

h1 {
    font-size: 2rem;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.description {
    font-weight: 300;
    opacity: 0.8;
}

/* ส่วนของปุ่มลิงก์ */
.links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.link-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px;
    border-radius: 12px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.link-card:hover {
    background: #4ecca3;
    color: #1a1a2e;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(78, 204, 163, 0.2);
}

/* ส่วนท้าย */
footer {
    margin-top: 40px;
    font-size: 0.8rem;
    opacity: 0.5;
}

/* การรองรับหน้าจอเล็ก */
@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }
}

/* การตั้งค่าเพิ่มเติมสำหรับหน้า Project ให้เหมือนในรูป */
.project-page {
    background-color: #0b0e14; /* สีพื้นหลังเข้มตามรูป */
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.02) 1px, transparent 0);
    background-size: 40px 40px;
}

.container-full {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.8rem;
    letter-spacing: 2px;
    color: #ffffff;
    text-align: left;
    margin-bottom: 10px;
}

.title-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #00d2ff 0%, transparent 100%);
    margin-bottom: 40px;
}

/* Project Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

/* Card Style ตามรูปที่คุณส่งมา */
.project-card {
    background: #151921;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: #00d2ff;
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.1);
}

.project-thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    opacity: 0.8;
}

.project-info {
    padding: 20px;
}

.tag {
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    display: inline-block;
    margin-bottom: 10px;
}

.tag.lua { background: rgba(0, 0, 255, 0.1); color: #5c7cff; border: 1px solid #5c7cff; }
.tag.python { background: rgba(255, 255, 0, 0.1); color: #ffd700; border: 1px solid #ffd700; }
.tag.web { background: rgba(255, 69, 0, 0.1); color: #ff4500; border: 1px solid #ff4500; }

.project-info h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.project-info p {
    font-size: 0.9rem;
    color: #a0a0a0;
    line-height: 1.5;
    margin-bottom: 20px;
}

.view-project {
    color: #00d2ff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: 0.3s;
}

.view-project:hover {
    border-bottom: 1px solid #00d2ff;
}

.back-btn {
    text-decoration: none;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: inline-block;
}

/* Base Styles */
body.about-page {
    background-color: #000000;
    color: #ffffff;
    font-family: 'Poppins', 'Kanit', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.container-about {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.top-nav { margin-bottom: 40px; }
.back-link { color: #888; text-decoration: none; font-size: 0.9rem; transition: 0.3s; }
.back-link:hover { color: #fff; }

/* Hero Section */
.huge-title {
    font-size: clamp(4rem, 15vw, 8rem);
    font-weight: 800;
    margin: 0;
    line-height: 0.9;
    letter-spacing: -2px;
    opacity: 1;
}

.bio-content h2 {
    font-size: 2.5rem;
    margin: 30px 0 15px 0;
    font-weight: 700;
}

.bio-content p {
    font-size: 1.1rem;
    color: #cccccc;
    max-width: 700px;
}

.sub-bio { margin-top: 20px; color: #888 !important; }

/* Info Tags */
.info-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.tag-item {
    background: #111;
    border: 1px solid #333;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: #eee;
}

/* Technical Arsenal */
.arsenal-section { margin-top: 80px; }

.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.icon-box {
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
}

.section-title {
    font-size: 1.5rem;
    margin: 0;
    white-space: nowrap;
}

.header-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, #00f2ff 0%, transparent 100%);
}

.arsenal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.arsenal-card {
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    padding: 30px;
    border-radius: 15px;
    transition: 0.3s;
}

.arsenal-card:hover {
    border-color: #333;
    background: #111;
}

.icon {
    width: 24px;
    height: 24px;
    border: 2px solid;
    margin-bottom: 15px;
}

/* Icon Colors */
.blue-box { border-color: #4facfe; }
.yellow-box { border-color: #f6d365; }
.cyan-box { border-color: #00f2ff; }
.orange-box { border-color: #fa709a; }
.dark-blue-box { border-color: #302b63; }
.white-box { border-color: #ffffff; }

.arsenal-card h4 { margin: 0 0 5px 0; font-size: 1.1rem; }
.arsenal-card p { margin: 0; font-size: 0.8rem; color: #666; }

footer { margin-top: 80px; text-align: center; color: #444; font-size: 0.8rem; }

/* Style สำหรับหน้า Working */
.working-page {
    background-color: #f4f4f4; /* สีพื้นหลังตามรูป */
    color: #333;
    font-family: 'Kanit', 'Poppins', sans-serif;
    margin: 0;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.container-work {
    width: 100%;
    max-width: 800px;
    padding: 60px 20px;
}

/* เส้นคั่นหัวข้อ */
.section-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 50px;
}

.section-divider::before, .section-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.section-divider span {
    padding: 0 20px;
}

/* Timeline โครงสร้าง */
.timeline {
    position: relative;
}

/* เส้นเชื่อมแนวตั้ง */
.timeline::before {
    content: '';
    position: absolute;
    left: 40px; /* กึ่งกลางของ logo-box */
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: #ddd;
    z-index: 1;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

/* กล่องโลโก้ */
.logo-box {
    width: 80px;
    height: 80px;
    background-color: #fff;
    border-radius: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-right: 25px;
    overflow: hidden;
}

.logo-box.black-bg {
    background-color: #000;
}

.logo-box img {
    width: 60%;
    height: auto;
}

/* รายละเอียดงาน */
.work-details {
    flex: 1;
}

.work-details h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #ffffff;
    font-weight: 600;
}

.work-details .role {
    margin: 4px 0;
    color: #ffffff; /* สีส้มตามรูป */
    font-size: 1rem;
    font-weight: 500;
}

.work-details .sub-detail {
    margin: 0;
    color: #999;
    font-size: 0.85rem;
}

/* วันที่ด้านขวา */
.work-date {
    color: #aaa;
    font-size: 0.85rem;
    font-family: 'Poppins', sans-serif;
}

/* ปุ่มกลับหน้าหลัก */
.navigation-footer {
    margin-top: 50px;
    text-align: center;
}

.back-btn {
    text-decoration: none;
    color: #888;
    font-size: 0.9rem;
    border: 1px solid #ddd;
    padding: 8px 20px;
    border-radius: 50px;
    transition: 0.3s;
}

.back-btn:hover {
    background-color: #eee;
    color: #333;
}

/* ปรับแต่งสำหรับมือถือ */
@media (max-width: 600px) {
    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .timeline::before {
        display: none;
    }
    .logo-box {
        margin-bottom: 15px;
    }
    .work-date {
        margin-top: 10px;
    }
}

/* Anime Gallery Section */
.gallery-section { margin-top: 60px; }
.gallery-desc { color: #888; font-size: 0.9rem; margin-bottom: 25px; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 180px;
    border: 1px solid #1a1a1a;
    transition: 0.3s;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(30%);
    transition: 0.5s;
}

.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 15px;
    opacity: 0;
    transition: 0.3s;
}

.item-overlay span {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
}

.gallery-item:hover {
    transform: scale(1.02);
    border-color: #00f2ff;
}

.gallery-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.gallery-item:hover .item-overlay {
    opacity: 1;
}

/* Footer Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.social-btn {
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
}

.linktree { background: #43e55e; color: #000; }
.carrd { background: #ffffff; color: #000; }

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255,255,255,0.1);
    filter: brightness(1.1);
}










/* Activity Gallery Styling */
.activity-gallery {
    margin-top: 80px;
    text-align: center;
}

.gallery-header-main {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
}

.gallery-header-main h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
    letter-spacing: 1px;
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.activity-item {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.activity-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.activity-item:hover {
    transform: scale(1.03);
    border-color: #00f2ff;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.2);
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 85%;
    max-height: 85%;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}





/* Video Background Styling */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* ให้อยู่หลังสุด */
    overflow: hidden;
}

#bg-video, .video-background img {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover; /* ให้ภาพเต็มจอไม่บิดเบี้ยว */
}

/* เพิ่มแผ่นสีดำจางๆ ทับวิดีโอเพื่อให้ตัวหนังสืออ่านง่ายขึ้น */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* ปรับค่า 0.5 เพิ่ม/ลด ความมืดได้ */
}

/* ปรับแต่ง Container ให้โปร่งใสเล็กน้อยเพื่อให้เห็นพื้นหลัง */
.container {
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.2); /* ทำให้พื้นหลังคอนเทนเนอร์ใสขึ้น */
    backdrop-filter: blur(5px); /* เพิ่มเอฟเฟกต์กระจกฝ้า */
    min-height: 100vh;
}
