/* guide.css — the GAME GUIDE page (/guide): sticky header, tab bar, card grids, interactive Pixelmon preview. Builds on home.css (cards, tables, grids). */
.guide-page { background: #0b1226; }
.g-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 10px clamp(12px, 3vw, 28px); background: linear-gradient(180deg, rgba(8, 14, 34, .96), rgba(8, 14, 34, .86)); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(124, 184, 255, .22); }
.g-back { color: #cfe3ff; text-decoration: none; font-weight: 600; white-space: nowrap; padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .06); }
.g-back:hover { background: rgba(255, 255, 255, .14); }
.g-title { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
.g-title b { font-size: clamp(17px, 2.4vw, 24px); color: #fff; letter-spacing: .5px; }
.g-title small { color: #9fb4d8; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-actions { display: flex; gap: 8px; align-items: center; }
.g-tabs { position: sticky; top: 56px; z-index: 19; display: flex; gap: 8px; overflow-x: auto; padding: 10px clamp(12px, 3vw, 28px); background: rgba(10, 18, 40, .94); border-bottom: 1px solid rgba(124, 184, 255, .14); scrollbar-width: none; }
.g-tabs::-webkit-scrollbar { display: none; }
.gtab { flex: 0 0 auto; border: 1px solid rgba(124, 184, 255, .3); background: rgba(255, 255, 255, .05); color: #cfe0ff; padding: 8px 16px; border-radius: 999px; font: 600 14px 'Kanit', sans-serif; cursor: pointer; transition: transform .15s, background .15s; }
.gtab:hover { transform: translateY(-1px); background: rgba(255, 255, 255, .12); }
.gtab.on { background: linear-gradient(180deg, #ffe9a0, #f0a830); color: #3a2200; border-color: #ffd36e; box-shadow: 0 0 14px rgba(255, 211, 110, .45); }
.g-main { max-width: 1180px; margin: 0 auto; padding: 18px clamp(12px, 3vw, 28px) 56px; }
.gpanel[hidden] { display: none; }
.gpanel { animation: gFade .25s ease both; }
@keyframes gFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.guide-page .journey-sec { margin-top: 36px; }
/* interactive cards */
.guide-page .mon[data-id] { cursor: pointer; transition: transform .15s, box-shadow .15s; }
.guide-page .mon[data-id]:hover, .guide-page .mon[data-id]:focus-visible { transform: translateY(-3px) scale(1.03); box-shadow: 0 8px 22px rgba(0, 0, 0, .45), 0 0 0 2px rgba(255, 211, 110, .7); outline: none; }
/* Pixelmon preview dialog */
.mon-preview { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(4, 8, 22, .78); backdrop-filter: blur(6px); }
.mon-preview[hidden] { display: none; }
.mp-card { position: relative; width: min(440px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 18px; border-radius: 18px; color: #e8f0ff; background: linear-gradient(165deg, #223066, #0e1638); box-shadow: 0 20px 50px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(160, 200, 255, .3); animation: gFade .2s ease both; }
.mp-x { position: absolute; right: 10px; top: 8px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 22px; cursor: pointer; }
.mp-stage { height: 250px; display: grid; place-items: center; border-radius: 14px; background: radial-gradient(circle at 50% 40%, #3b5cb0, #0b1330 75%); }
.mp-stage img { max-width: 92%; max-height: 92%; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .55)); }
.mp-angles { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 10px 0; }
.mp-angles button { border: 1px solid rgba(160, 200, 255, .35); background: rgba(255, 255, 255, .06); color: #cfe0ff; padding: 4px 10px; border-radius: 999px; font: 600 12px 'Kanit', sans-serif; cursor: pointer; }
.mp-angles button.on { background: #ffd36e; color: #3a2200; border-color: #ffd36e; }
.mp-card h3 { margin: 4px 0; font-size: 22px; letter-spacing: .5px; } .mp-card h3 small { color: #9fb4d8; font-size: 13px; font-weight: 500; }
.mp-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0; }
.mp-type { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 4px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 12.5px; } .mp-type img { width: 18px; height: 18px; }
.mp-desc { color: #c9d8f5; font-size: 14px; line-height: 1.5; margin: 8px 0; }
.mp-stats { display: grid; gap: 6px; margin: 10px 0; }
.mp-stats div { display: grid; grid-template-columns: 38px 1fr 34px; gap: 8px; align-items: center; font-size: 12.5px; }
.mp-stats i { display: block; height: 8px; border-radius: 999px; background: rgba(0, 0, 0, .45); overflow: hidden; position: relative; } .mp-stats i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); background: linear-gradient(90deg, #4fd2c6, #ffe18a); border-radius: inherit; }
.mp-hab { color: #9fb4d8; font-size: 12.5px; margin: 6px 0 0; }
@media (max-width: 640px) { .g-title small { display: none; } .g-tabs { top: 52px; } .mp-stage { height: 200px; } }
@media (prefers-reduced-motion: reduce) { .gpanel, .mp-card { animation: none; } .gtab, .guide-page .mon[data-id] { transition: none; } }
