/* "ทายใจออดี้" arcade cabinet (assets/personal-guess.js). */
#guessGameSection.gg-wrap { margin: 3.5rem auto 1rem; max-width: 1080px; font-family: 'Outfit', 'Mitr', var(--font-body, 'Plus Jakarta Sans', 'Sarabun'), sans-serif; color: #fff; }
.gg-cab { position: relative; padding: 18px 18px 22px; border-radius: 28px 28px 18px 18px;
    background: linear-gradient(180deg, #2a1150 0%, #16092e 60%, #0e061f 100%);
    box-shadow: 0 0 0 3px #ff4fd8, 0 0 0 6px #1a0b33, 0 0 0 8px #46e6ff, 0 0 40px rgba(255,79,216,0.35), 0 30px 60px rgba(0,0,0,0.55); }
.gg-cab.is-shake { animation: ggShake .45s ease; }
@keyframes ggShake { 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }

/* neon sign */
.gg-sign { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; margin: -4px 0 14px; padding: 10px; border-radius: 16px; background: #0b0418; box-shadow: inset 0 0 0 2px rgba(255,79,216,0.4); }
.gg-sign-a { font-size: 1.9rem; font-weight: 800; color: #ffe9fb; text-shadow: 0 0 6px #ff4fd8, 0 0 16px #ff4fd8, 0 0 30px #ff4fd8; animation: ggFlicker 5s infinite; }
.gg-sign-b { font-family: 'Press Start 2P', 'IBM Plex Mono', monospace; font-size: .62rem; letter-spacing: .3em; color: #b8f6ff; text-shadow: 0 0 6px #46e6ff, 0 0 14px #46e6ff; }
@keyframes ggFlicker { 0%, 92%, 96%, 100% { opacity: 1; } 93%, 95% { opacity: .4; } }

/* screen */
.gg-screen { position: relative; overflow: hidden; border-radius: 16px; padding: 14px 16px 18px; background: radial-gradient(ellipse at 50% 0%, #241049, #0a0416 75%); box-shadow: inset 0 0 0 2px #000, inset 0 0 40px rgba(0,0,0,0.8); }
.gg-scan { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 3px); mix-blend-mode: overlay; }
.gg-panel { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 16px; }
.gg-panel i { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff8ae9, #d61fb1); box-shadow: 0 3px 0 #7a0f65; }
.gg-panel i:nth-child(2) { background: radial-gradient(circle at 35% 30%, #9ff5ff, #1bb8d6); box-shadow: 0 3px 0 #0d6173; }
.gg-panel i:nth-child(3) { background: radial-gradient(circle at 35% 30%, #fff39a, #e6b800); box-shadow: 0 3px 0 #7a6100; }
.gg-panel span { width: 14px; height: 40px; border-radius: 7px; background: linear-gradient(180deg, #555, #222); position: relative; }
.gg-panel span::before { content: ''; position: absolute; left: 50%; top: -12px; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff6b6b, #b30000); }
.gg-panel span + span { display: none; }

/* HUD */
.gg-hud { display: grid; grid-template-columns: repeat(5, auto); justify-content: space-between; gap: 6px; margin-bottom: 14px; padding: 8px 10px; border-radius: 10px; background: rgba(0,0,0,0.45); border: 1px solid rgba(70,230,255,0.25); }
.gg-hud span { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.gg-hud small { font-family: 'Press Start 2P', 'IBM Plex Mono', monospace; font-size: .5rem; letter-spacing: .12em; color: #8fe9ff; }
.gg-hud b { font-family: 'Press Start 2P', 'IBM Plex Mono', monospace; font-size: .78rem; font-weight: 400; color: #fff; }
.gg-lives b i { font-style: normal; color: rgba(255,255,255,0.18); margin: 0 1px; }
.gg-lives b i.is-on { color: #ff4f7b; text-shadow: 0 0 8px rgba(255,79,123,0.8); }
.gg-combo.is-hot b { color: #ffb347; text-shadow: 0 0 10px rgba(255,140,40,0.9); animation: ggPulse .8s ease-in-out infinite alternate; }
@keyframes ggPulse { to { transform: scale(1.12); } }

/* start / over */
.gg-start, .gg-over { text-align: center; padding: 18px 6px 8px; }
.gg-blink { margin: 0 0 10px; font-family: 'Press Start 2P', 'IBM Plex Mono', monospace; font-size: .8rem; color: #ffe14a; text-shadow: 0 0 10px rgba(255,225,74,0.7); animation: ggBlink 1s steps(2) infinite; }
@keyframes ggBlink { 50% { opacity: 0; } }
.gg-start h3 { margin: 0 0 6px; font-size: 2rem; font-weight: 800; text-shadow: 0 0 18px rgba(255,79,216,0.6); }
.gg-sub { margin: 0 0 14px; color: #c9b8ff; font-size: .95rem; }
.gg-rules { list-style: none; margin: 0 auto 18px; padding: 0; display: flex; width: max-content; max-width: 100%; flex-direction: column; gap: 6px; text-align: left; font-size: .9rem; color: #e8defa; }
.gg-rules li::before { content: '▸ '; color: #46e6ff; }
.gg-go { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 28px; cursor: pointer; font: inherit; font-size: 1.05rem; font-weight: 700; color: #1a0633;
    background: linear-gradient(180deg, #fff39a, #ffc400); box-shadow: 0 5px 0 #a57b00, 0 0 22px rgba(255,210,60,0.45); transition: transform .12s ease, box-shadow .12s ease; }
.gg-go:hover { transform: translateY(-2px); }
.gg-go:active { transform: translateY(3px); box-shadow: 0 2px 0 #a57b00; }
.gg-best { margin: 14px 0 0; color: #9ff5ff; font-size: .88rem; }
.gg-final { margin: 6px 0 4px; display: flex; flex-direction: column; align-items: center; }
.gg-final small { color: #c9b8ff; }
.gg-final b { font-family: 'Press Start 2P', 'IBM Plex Mono', monospace; font-size: 2.4rem; font-weight: 400; color: #ffe14a; text-shadow: 0 0 18px rgba(255,225,74,0.6); margin: 6px 0; }
.gg-final em { font-style: normal; color: #7cff6b; font-weight: 700; }
.gg-rank { margin: 10px 0 2px; font-size: 1.5rem; font-weight: 800; }
.gg-tally { color: #e8defa; margin: 0 0 18px; }
.gg-tally b { color: #fff; }

/* card flip */
.gg-stage { position: relative; display: flex; flex-direction: column; align-items: center; }
.gg-card { width: 100%; max-width: 480px; aspect-ratio: 16 / 10; perspective: 1200px; }
.gg-card-in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.gg-card.is-flipped .gg-card-in { transform: rotateY(180deg); }
.gg-face { position: absolute; inset: 0; overflow: hidden; border-radius: 14px; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: #111; box-shadow: 0 16px 30px rgba(0,0,0,0.6), 0 0 0 2px rgba(255,255,255,0.1); }
.gg-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gg-noimg { display: grid; place-items: center; height: 100%; font-size: 4rem; }
.gg-cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 40px 16px 14px; background: linear-gradient(0deg, rgba(0,0,0,0.9), transparent); text-align: left; }
.gg-cap em { font-style: normal; font-size: .72rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: #8b5cf6; }
.gg-cap b { font-size: 1.25rem; line-height: 1.2; }
.gg-back { transform: rotateY(180deg); }
.gg-back img { filter: blur(6px) brightness(.35); transform: scale(1.1); }
.gg-reveal { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 14px 18px; text-align: center; }
.gg-rv-stars { font-size: 2.4rem; letter-spacing: .08em; color: #ffd84a; text-shadow: 0 0 16px rgba(255,216,74,0.7); line-height: 1; }
.gg-rv-stars i { font-style: normal; color: rgba(255,255,255,0.2); text-shadow: none; }
.gg-rv-verdict { font-size: 1.3rem; }
.gg-rv-verdict.is-perfect { color: #7cff6b; } .gg-rv-verdict.is-near { color: #ffe14a; } .gg-rv-verdict.is-miss { color: #ff6b8b; }
.gg-rv-guess { font-size: .85rem; color: #d9ccff; }
.gg-rv-text { font-size: .85rem; color: #eee; line-height: 1.5; font-style: italic; max-width: 420px; }
.gg-q { margin: 16px 0 10px; font-size: 1.05rem; text-align: center; color: #e8defa; }
.gg-q b { color: #fff; }

/* stars */
.gg-stars { display: flex; justify-content: center; gap: 8px; }
.gg-star { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 64px; padding: 6px 0 5px; border: 2px solid rgba(255,255,255,0.14); border-radius: 14px; cursor: pointer;
    background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.35); font: inherit; transition: transform .12s ease, color .12s ease, border-color .12s ease, background .12s ease; }
.gg-star span { font-size: 2rem; line-height: 1; }
.gg-star small { font-family: 'Press Start 2P', 'IBM Plex Mono', monospace; font-size: .55rem; color: rgba(255,255,255,0.6); }
.gg-star.is-lit { color: #ffd84a; border-color: rgba(255,216,74,0.6); background: rgba(255,216,74,0.08); text-shadow: 0 0 12px rgba(255,216,74,0.7); }
.gg-star:hover:not(:disabled) { transform: translateY(-3px); }
.gg-star:disabled { cursor: default; opacity: .35; }
.gg-star.is-real { opacity: 1; color: #1a0633; background: #7cff6b; border-color: #7cff6b; }
.gg-star.is-real small { color: #1a0633; }
.gg-star.is-picked { opacity: 1; color: #fff; background: #ff4f7b; border-color: #ff4f7b; }
.gg-star:focus-visible, .gg-go:focus-visible, .gg-link:focus-visible { outline: 2px solid #46e6ff; outline-offset: 3px; }
.gg-after { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 16px; }
.gg-link { border: 0; background: none; color: #9ff5ff; cursor: pointer; font: inherit; font-size: .9rem; text-decoration: underline; }

/* points pop + confetti */
.gg-pop { position: absolute; left: 50%; top: 30%; z-index: 3; transform: translate(-50%, 0); font-family: 'Press Start 2P', 'IBM Plex Mono', monospace; font-size: 1.6rem; pointer-events: none; animation: ggPop 1.1s ease-out forwards; }
.gg-pop.is-perfect { color: #7cff6b; text-shadow: 0 0 14px rgba(124,255,107,0.8); } .gg-pop.is-near { color: #ffe14a; } .gg-pop.is-miss { color: #ff4f7b; }
@keyframes ggPop { 0% { opacity: 0; transform: translate(-50%, 20px) scale(.6); } 20% { opacity: 1; transform: translate(-50%, 0) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -70px) scale(1); } }
.gg-conf { position: absolute; top: 40%; width: 8px; height: 12px; border-radius: 2px; pointer-events: none; z-index: 2; animation: ggConf 1.2s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes ggConf { to { transform: translate(var(--dx), calc(var(--dy) + 260px)) rotate(var(--r)); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
    .gg-card-in { transition: none; } .gg-sign-a, .gg-blink, .gg-combo.is-hot b, .gg-pop { animation: none; }
}
@media (max-width: 600px) {
    #guessGameSection.gg-wrap { margin-top: 2.5rem; }
    .gg-cab { padding: 12px 10px 16px; border-radius: 22px 22px 14px 14px; }
    .gg-sign-a { font-size: 1.45rem; }
    .gg-screen { padding: 10px 10px 14px; }
    .gg-hud { grid-template-columns: repeat(4, auto); }
    .gg-hud span:nth-child(6) { display: none; }
    .gg-star { width: 54px; } .gg-star span { font-size: 1.6rem; }
    .gg-stars { gap: 5px; }
    .gg-rv-stars { font-size: 1.8rem; } .gg-rv-text { font-size: .78rem; }
    .gg-start h3 { font-size: 1.6rem; }
}

.gg-mute { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(70,230,255,0.4); background: rgba(70,230,255,0.08); cursor: pointer; font-size: 1rem; line-height: 1; }
.gg-mute:hover { background: rgba(70,230,255,0.2); }
.gg-mute:focus-visible { outline: 2px solid #46e6ff; outline-offset: 2px; }

/* ---------- layout + leaderboard ---------- */
.gg-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.gg-name { display: flex; flex-direction: column; gap: 6px; width: min(320px, 100%); margin: 0 auto 16px; text-align: left; }
.gg-name span { font-size: .88rem; color: #e8defa; }
.gg-name small { color: #a99bd0; }
.gg-name input { padding: 10px 14px; border-radius: 12px; border: 2px solid rgba(70,230,255,0.45); background: rgba(0,0,0,0.45); color: #fff; font: inherit; font-size: 1rem; text-align: center; letter-spacing: .04em; }
.gg-name input:focus { outline: none; border-color: #46e6ff; box-shadow: 0 0 14px rgba(70,230,255,0.45); }
.gg-player b { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: 'Outfit', 'Mitr', sans-serif !important; font-size: .85rem !important; }
.gg-hud { grid-template-columns: repeat(6, auto); }
.gg-submit { margin: 0 0 16px; font-size: .92rem; color: #9ff5ff; }
.gg-board { position: sticky; top: 90px; padding: 16px; border-radius: 22px; background: linear-gradient(180deg, #1a0b33, #0e061f);
    box-shadow: 0 0 0 2px #46e6ff, 0 0 26px rgba(70,230,255,0.22), 0 20px 40px rgba(0,0,0,0.45); }
.gg-bd-head { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 12px; }
.gg-bd-head b { font-family: 'Press Start 2P', 'IBM Plex Mono', monospace; font-size: .8rem; font-weight: 400; color: #ffe14a; text-shadow: 0 0 10px rgba(255,225,74,0.6); letter-spacing: .08em; }
.gg-bd-tabs { display: inline-flex; gap: 4px; padding: 3px; border-radius: 999px; background: rgba(255,255,255,0.06); }
.gg-bd-tabs button { border: 0; background: none; color: #c9b8ff; padding: 4px 12px; border-radius: 999px; cursor: pointer; font: inherit; font-size: .82rem; }
.gg-bd-tabs button.is-on { background: #46e6ff; color: #0a0416; font-weight: 700; }
.gg-bd-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.gg-bd-list li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 12px; background: rgba(255,255,255,0.04); }
.gg-bd-list li.is-top { background: rgba(255,225,74,0.08); }
.gg-bd-list li.is-top1 { box-shadow: inset 0 0 0 1px rgba(255,225,74,0.5); }
.gg-bd-list li.is-mine { background: rgba(70,230,255,0.16); box-shadow: inset 0 0 0 2px #46e6ff; animation: ggMine 1.2s ease-in-out 3; }
@keyframes ggMine { 50% { box-shadow: inset 0 0 0 2px #46e6ff, 0 0 18px rgba(70,230,255,0.6); } }
.gg-bd-rank { text-align: center; font-family: 'Press Start 2P', 'IBM Plex Mono', monospace; font-size: .7rem; color: #a99bd0; }
.gg-bd-list li.is-top .gg-bd-rank { font-family: inherit; font-size: 1.2rem; }
.gg-bd-name { display: flex; flex-direction: column; min-width: 0; font-weight: 600; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gg-bd-name em { font-style: normal; font-size: .62rem; font-weight: 700; padding: 1px 6px; border-radius: 999px; background: #46e6ff; color: #0a0416; vertical-align: middle; }
.gg-bd-name small { font-weight: 400; font-size: .72rem; color: #a99bd0; }
.gg-bd-score { font-family: 'Press Start 2P', 'IBM Plex Mono', monospace; font-size: .72rem; font-weight: 400; color: #fff; }
.gg-bd-note { text-align: center; color: #c9b8ff; font-size: .9rem; line-height: 1.6; margin: 18px 0; }
@media (prefers-reduced-motion: reduce) { .gg-bd-list li.is-mine { animation: none; } }
@media (max-width: 900px) {
    .gg-layout { grid-template-columns: 1fr; }
    .gg-board { position: static; }
}
@media (max-width: 600px) {
    .gg-hud { grid-template-columns: repeat(3, auto); row-gap: 8px; }
}
/* art under 🏆 HIGH SCORES (Audi 2026-10-17) */
.gg-bd-art { margin: 0; width: 100%; }
.gg-bd-art img { display: block; width: 100%; max-height: 240px; object-fit: cover; object-position: 50% 32%; border-radius: 12px; border: 1px solid rgba(255, 225, 74, 0.35); box-shadow: 0 0 18px rgba(255, 225, 74, 0.18); }
.gg-bd-art figcaption { margin-top: 4px; font-size: .75rem; color: #c9b8ff; text-align: right; }
