/* ═══ PTN Guide v2 — Complete Stylesheet ═══ */

:root {
    --bg:        #0b0b0e;
    --bg2:       #111115;
    --bg3:       #19191e;
    --bg4:       #222228;
    --bg-hover:  #2a2a32;
    --c1:        #e8e6e2;
    --c2:        #9a9a9e;
    --c3:        #5a5a5e;
    --gold:      #c8a74e;
    --red:       #c0392b;
    --green:     #27ae60;
    --rank-s:    #e6c44d;
    --rank-a:    #c084fc;
    --rank-b:    #60a5fa;
    --border:    #222228;
    --sb-w:      56px;
    --sb-exp:    190px;
    --tb-h:      52px;
    --ff:        'Inter', system-ui, sans-serif;
    --fd:        'Cinzel', Georgia, serif;
    --r:         6px;
    --t:         .2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--ff); font-size: 14px; line-height: 1.6; color: var(--c1); background: var(--bg); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

/* ═══ SIDEBAR ═══ */
.sb {
    position: fixed; left: 0; top: 0; bottom: 0; width: var(--sb-w);
    background: #0d0d10; border-right: 1px solid #1a1a1e;
    display: flex; flex-direction: column; align-items: center;
    padding: 12px 0; z-index: 1000; transition: width var(--t); overflow: hidden;
}
.sb:hover { width: var(--sb-exp); }

.sb-logo {
    font-family: var(--fd); font-size: 18px; font-weight: 700; color: var(--gold);
    letter-spacing: .08em; height: 36px; display: flex; align-items: center;
    justify-content: center; margin-bottom: 20px; flex-shrink: 0; white-space: nowrap;
}

.sb-nav { display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 0 6px; flex: 1; overflow-y: auto; }
.sb-nav::-webkit-scrollbar { width: 0; }

.sb-item {
    display: flex; align-items: center; gap: 10px; padding: 8px 10px;
    border-radius: var(--r); color: var(--c2); white-space: nowrap; transition: all var(--t);
}
.sb-item svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }
.sb-item span { font-size: 13px; font-weight: 500; opacity: 0; transition: opacity var(--t); }
.sb:hover .sb-item span { opacity: 1; }
.sb-item:hover, .sb-item.active { color: var(--c1); background: rgba(255,255,255,.06); }
.sb-item.active { color: var(--gold); }

.sb-social {
    display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 8px 6px 0;
    border-top: 1px solid #1a1a1e; margin-top: auto;
}
.sb-social a {
    display: flex; align-items: center; justify-content: center;
    padding: 7px; border-radius: var(--r); color: var(--c3); transition: all var(--t);
}
.sb-social a:hover { color: var(--c1); background: rgba(255,255,255,.06); }
.sb-social svg { width: 18px; height: 18px; fill: currentColor; }

/* ═══ TOPBAR ═══ */
.tb {
    position: fixed; top: 0; left: var(--sb-exp); right: 0; height: var(--tb-h);
    background: rgba(11,11,14,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #1a1a1e;
    display: flex; align-items: center; padding: 0 20px; gap: 12px; z-index: 999;
}

.tb-burger { display: none; flex-direction: column; gap: 4px; padding: 8px; }
.tb-burger span { display: block; width: 18px; height: 2px; background: var(--c2); border-radius: 2px; transition: var(--t); }

.tb-search {
    display: flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.05); border: 1px solid var(--border); border-radius: var(--r);
    padding: 6px 12px; flex: 0 1 360px; transition: border-color var(--t);
}
.tb-search:focus-within { border-color: var(--gold); }
.tb-search-ico { width: 16px; height: 16px; fill: var(--c3); flex-shrink: 0; }
.tb-search input {
    background: 0; border: 0; outline: 0; color: var(--c1); font-size: 13px; width: 100%; font-family: var(--ff);
}
.tb-search input::placeholder { color: var(--c3); }
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.tb-lang {
    font-size: 11px; font-weight: 600; color: var(--c2);
    border: 1px solid var(--border); padding: 2px 8px; border-radius: 4px;
}

/* ═══ OVERLAY ═══ */
.sb-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 999; }
body.sb-open .sb-overlay { display: block; }
body.sb-open .sb { width: var(--sb-exp); z-index: 1001; transform: translateX(0); }
body.sb-open .sb .sb-item span { opacity: 1; }

/* ═══ MAIN CONTENT ═══ */
.main-wrap { margin-left: var(--sb-exp); margin-top: var(--tb-h); min-height: calc(100vh - var(--tb-h)); }

/* ═══ PAGE BANNERS ═══ */
.pg-banner {
    position: relative; height: 200px; display: flex; align-items: center;
    justify-content: center; overflow: hidden;
}
.pg-banner::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 30%, var(--bg) 100%); z-index: 1;
}
.pg-banner h1 {
    position: relative; z-index: 2; font-family: var(--fd);
    font-size: 3rem; font-weight: 700; letter-spacing: .12em;
    text-shadow: 0 4px 20px rgba(0,0,0,.6);
}
.pg-banner--red { background: linear-gradient(135deg, #2d0a0a, #1a0a2e 50%, #0a1a3e); }
.pg-banner--green { background: linear-gradient(135deg, #0a2d0a, #0a1a2e 50%, #1a0a2e); }
.pg-banner--purple { background: linear-gradient(135deg, #1a0a2e, #2e0a1a 50%, #0a1a2e); }
.pg-banner--gold { background: linear-gradient(135deg, #2d2a0a, #1a1a0e 50%, #2e1a0a); }
.pg-banner--blue { background: linear-gradient(135deg, #0a0a2d, #0a1a2e 50%, #1a0a1e); }
.pg-banner--dark { background: linear-gradient(135deg, #0e0e14, #14141e 50%, #0e1420); }

/* ═══ HERO (homepage) ═══ */
.hero {
    position: relative; height: 440px; display: flex; align-items: center;
    justify-content: center; overflow: hidden;
    background: linear-gradient(180deg, #14141e 0%, var(--bg) 100%);
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, rgba(200,167,78,.08) 0%, transparent 70%);
}
.hero h1 {
    font-family: var(--fd); font-size: 7rem; font-weight: 700;
    color: var(--c1); letter-spacing: .15em; line-height: 1; position: relative; z-index: 1;
    text-shadow: 0 4px 40px rgba(0,0,0,.5);
}
.hero p {
    font-size: .85rem; font-weight: 300; color: var(--c2);
    letter-spacing: .35em; text-transform: uppercase; margin-top: 8px;
    position: relative; z-index: 1; text-align: center;
}

/* ═══ SECTIONS ═══ */
.sec { padding: 28px 24px; max-width: 1340px; }
.sec-title {
    font-size: .78rem; font-weight: 600; letter-spacing: .14em;
    color: var(--c2); margin-bottom: 16px; text-transform: uppercase;
}
.sec-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }

/* ═══ EVENT CARD ═══ */
.ev-card {
    display: flex; align-items: center; gap: 12px; background: var(--bg3);
    border-radius: var(--r); overflow: hidden; margin-bottom: 6px; transition: background var(--t);
}
.ev-card:hover { background: var(--bg4); }
.ev-card-img { width: 110px; height: 64px; overflow: hidden; flex-shrink: 0; }
.ev-card-img img { width: 100%; height: 100%; object-fit: cover; }
.ev-card-body { flex: 1; padding: 6px 10px 6px 0; }
.ev-card-title { font-size: .88rem; font-weight: 600; line-height: 1.3; }
.ev-card-sub { font-size: .75rem; color: var(--c3); }
.ev-card-timer { font-size: .75rem; color: var(--c3); white-space: nowrap; }

/* ═══ NAV CARDS ═══ */
.nav-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.nav-card {
    position: relative; height: 160px; border-radius: 8px; overflow: hidden;
    display: flex; align-items: flex-end; padding: 16px; transition: transform var(--t);
}
.nav-card:hover { transform: translateY(-4px); }
.nav-card::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.75) 100%);
}
.nav-card span {
    position: relative; z-index: 1; font-family: var(--fd);
    font-size: 1.3rem; font-weight: 700; letter-spacing: .05em;
}
.nav-card--1 { background: linear-gradient(135deg, #2d1b1b, #1a1a2e); }
.nav-card--2 { background: linear-gradient(135deg, #1b2d1b, #1a2e1a); }
.nav-card--3 { background: linear-gradient(135deg, #1b1b2d, #1a1a2e); }
.nav-card--4 { background: linear-gradient(135deg, #2d2d1b, #2e2a1a); }

/* ═══ FILTER BAR ═══ */
.flt { padding: 18px 24px 0; max-width: 1400px; }
.flt-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.flt-search {
    display: flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: var(--r);
    padding: 7px 12px; flex: 0 1 300px; transition: border-color var(--t);
}
.flt-search:focus-within { border-color: var(--gold); }
.flt-search svg { width: 16px; height: 16px; fill: var(--c3); flex-shrink: 0; }
.flt-search input {
    background: 0; border: 0; outline: 0; color: var(--c1); font-size: 13px; width: 100%; font-family: var(--ff);
}
.flt-search input::placeholder { color: var(--c3); }
.flt-toggle {
    display: flex; align-items: center; gap: 5px; padding: 7px 12px;
    border: 1px solid var(--border); border-radius: var(--r);
    font-size: .82rem; color: var(--c2); transition: all var(--t);
}
.flt-toggle svg { width: 16px; height: 16px; fill: currentColor; }
.flt-toggle:hover, .flt-toggle.on { color: var(--c1); border-color: var(--gold); }

.flt-panel { display: none; padding: 10px 0; }
.flt-panel.open { display: block; }
.flt-row { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 10px; }
.flt-group { display: flex; flex-direction: column; gap: 6px; }
.flt-label { font-size: .7rem; font-weight: 600; letter-spacing: .1em; color: var(--c3); text-transform: uppercase; }
.flt-opts { display: flex; flex-wrap: wrap; gap: 4px; }

.fb {
    padding: 5px 10px; border: 1px solid var(--border); border-radius: 4px;
    font-size: .78rem; font-weight: 500; color: var(--c2); transition: all var(--t); white-space: nowrap;
}
.fb:hover { color: var(--c1); border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.05); }
.fb.on { color: var(--bg); background: var(--c1); border-color: var(--c1); }
.fb.on-s { color: #000; background: var(--rank-s); border-color: var(--rank-s); }
.fb.on-a { color: #000; background: var(--rank-a); border-color: var(--rank-a); }
.fb.on-b { color: #000; background: var(--rank-b); border-color: var(--rank-b); }
.fb.on-gold { color: #000; background: var(--gold); border-color: var(--gold); }

.fb--ico {
    padding: 4px; display: flex; align-items: center; justify-content: center;
}
.fb--ico svg { width: 26px; height: 26px; opacity: .5; transition: opacity var(--t); }
.fb--ico:hover svg, .fb--ico.on svg { opacity: 1; }
.fb--ico.on { border-color: var(--gold); background: rgba(200,167,78,.12); }

/* ═══ SINNER GRID ═══ */
.s-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 12px; padding: 18px 24px 40px; max-width: 1400px;
}

.s-card {
    position: relative; background: var(--bg3); border-radius: var(--r);
    overflow: hidden; transition: transform var(--t), box-shadow var(--t);
    display: flex; flex-direction: column; animation: fadeUp .4s ease both;
}
.s-card:hover { transform: translateY(-5px); box-shadow: 0 10px 36px rgba(0,0,0,.5); }
.s-card.rank-s { border-top: 2px solid var(--rank-s); }
.s-card.rank-a { border-top: 2px solid var(--rank-a); }
.s-card.rank-b { border-top: 2px solid var(--rank-b); }
.s-card.hidden { display: none; }

.s-card-img { position: relative; width: 100%; aspect-ratio: 3/4; overflow: hidden; background: var(--bg2); }
.s-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.s-card:hover .s-card-img img { transform: scale(1.06); }

.s-badge {
    position: absolute; top: 7px; left: 7px; padding: 2px 7px;
    font-size: .6rem; font-weight: 700; letter-spacing: .04em;
    border-radius: 3px; text-transform: uppercase; z-index: 2;
}
.s-badge--unr { background: rgba(192,57,43,.85); color: #fff; }
.s-badge--new { background: rgba(39,174,96,.85); color: #fff; }

.s-gem {
    position: absolute; top: 7px; right: 7px; width: 12px; height: 12px;
    background: var(--gold); transform: rotate(45deg); border-radius: 2px;
    box-shadow: 0 0 8px rgba(200,167,78,.5); z-index: 2;
}

.s-card-info { padding: 8px 10px; display: flex; align-items: center; gap: 7px; flex: 1; }
.s-card-info svg { flex-shrink: 0; }
.s-card-name { font-size: .85rem; font-weight: 600; line-height: 1.2; }
.s-card-code { font-size: .65rem; color: var(--c3); margin-top: 2px; }

.s-rank-bar { height: 3px; width: 100%; }
.s-rank-bar--s { background: var(--rank-s); }
.s-rank-bar--a { background: var(--rank-a); }
.s-rank-bar--b { background: var(--rank-b); }

/* ═══ CB GRID (small squares) ═══ */
.cb-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
    gap: 12px; padding: 18px 24px 40px; max-width: 1400px;
}
.cb-card {
    background: var(--bg3); border-radius: var(--r); overflow: hidden;
    transition: transform var(--t); text-align: center;
}
.cb-card:hover { transform: translateY(-4px); }
.cb-card-img { aspect-ratio: 1; overflow: hidden; background: var(--bg2); position: relative; }
.cb-card-img img { width: 100%; height: 100%; object-fit: cover; }
.cb-card-name { font-size: .72rem; font-weight: 600; padding: 6px 4px; line-height: 1.2; }

/* ═══ GUIDE CARDS ═══ */
.g-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; margin-bottom: 20px; }

/* ═══ LINKS PAGE ═══ */
.links-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; max-width: 900px; }
.link-card {
    display: flex; align-items: center; gap: 12px; background: var(--bg3);
    border-radius: var(--r); padding: 14px 16px; transition: background var(--t);
}
.link-card:hover { background: var(--bg4); }
.link-card svg { width: 24px; height: 24px; fill: var(--gold); flex-shrink: 0; }
.link-card-info h3 { font-size: .9rem; font-weight: 600; }
.link-card-info p { font-size: .78rem; color: var(--c3); }

/* ═══ SINGLE SINNER ═══ */
.ss-layout { display: grid; grid-template-columns: 320px 1fr; gap: 30px; padding: 28px 24px; max-width: 1200px; }
.ss-portrait { border-radius: 8px; overflow: hidden; background: var(--bg3); }
.ss-portrait img { width: 100%; }
.ss-stats { background: var(--bg3); border-radius: var(--r); padding: 16px; margin-top: 12px; }
.ss-stats table { width: 100%; font-size: .85rem; line-height: 2.2; }
.ss-stats td:first-child { color: var(--c3); font-weight: 500; }
.ss-stats td:last-child { text-align: right; }
.ss-content { font-size: .92rem; line-height: 1.75; }
.ss-content h2, .ss-content h3 { margin: 1.5em 0 .5em; font-family: var(--fd); }
.ss-content p { margin-bottom: 1em; }
.ss-content img { border-radius: var(--r); margin: 1em 0; }

/* ═══ FOOTER ═══ */
.ft { margin-left: var(--sb-exp); border-top: 1px solid #1a1a1e; background: var(--bg2); padding: 36px 24px 18px; }
.ft-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; max-width: 1300px; }
.ft-logo { font-family: var(--fd); font-size: 1.4rem; font-weight: 700; color: var(--gold); }
.ft-brand p { color: var(--c2); font-size: .85rem; margin: 4px 0; }
.ft-disc { color: var(--c3); font-size: .72rem; margin-top: 6px; }
.ft-col h4 { font-size: .72rem; font-weight: 600; letter-spacing: .1em; color: var(--c2); margin-bottom: 10px; text-transform: uppercase; }
.ft-col a { display: block; font-size: .85rem; color: var(--c3); padding: 2px 0; transition: color var(--t); }
.ft-col a:hover { color: var(--c1); }
.ft-copy { text-align: center; margin-top: 24px; padding-top: 18px; border-top: 1px solid #1a1a1e; font-size: .75rem; color: var(--c3); }

/* ═══ GENERIC ═══ */
.txt-muted { color: var(--c3); font-style: italic; padding: 24px; text-align: center; }
.entry-content h1,.entry-content h2,.entry-content h3 { font-family: var(--fd); margin: 1.5em 0 .5em; }
.entry-content p { margin-bottom: 1em; }
.entry-content a { color: var(--gold); text-decoration: underline; }
.entry-content img { border-radius: var(--r); margin: 1em 0; }
.entry-content ul, .entry-content ol { padding-left: 1.5em; margin-bottom: 1em; }

/* ═══ ANIMATION ═══ */
@keyframes fadeUp { from { opacity:0; transform: translateY(16px); } to { opacity:1; transform: translateY(0); } }

/* ═══ RESPONSIVE ═══ */
/* Tablet & down, and ALL touch devices (no hover) → sidebar becomes a slide-in
   hamburger drawer and content goes full-width. */
@media (max-width: 1024px), (hover: none) {
    .sb { width: var(--sb-exp); transform: translateX(-100%); z-index: 1001; }
    .sb .sb-item span { opacity: 1; }
    body.sb-open .sb { transform: translateX(0); }
    .tb { left: 0; }
    .tb-burger { display: flex; }
    .main-wrap { margin-left: 0; }
    .ft { margin-left: 0; }
    .sec-grid2 { grid-template-columns: 1fr; }
    .nav-cards { grid-template-columns: 1fr 1fr; }
    .ss-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    :root { --tb-h: 48px; }
    .hero { height: 280px; }
    .hero h1 { font-size: 3.5rem; }
    .pg-banner { height: 130px; }
    .pg-banner h1 { font-size: 2rem; }
    .s-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); padding: 12px; gap: 8px; }
    .cb-grid { grid-template-columns: repeat(auto-fill, minmax(85px, 1fr)); padding: 12px; gap: 8px; }
    .flt { padding: 12px; }
    .flt-row { gap: 10px; }
    .fb { font-size: .72rem; padding: 4px 7px; }
    .sec { padding: 18px 14px; }
    .nav-cards { gap: 8px; }
    .nav-card { height: 110px; }
    .nav-card span { font-size: 1rem; }
    .g-grid { grid-template-columns: 1fr; }
    .ft-inner { grid-template-columns: 1fr; gap: 18px; }
    .ss-layout { padding: 14px; gap: 18px; }
}
@media (max-width: 480px) {
    .s-grid { grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)); gap: 6px; }
    .s-card-name { font-size: .76rem; }
    .s-card-info { padding: 5px 7px; }
    .flt-search { flex: 1; }
}
