/* ============================================
   TGSFH Game Portal - Core Styles
   Deep Teal + Amber Gold + Clean Layout
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --tgs-primary: #1A6B6A;
    --tgs-primary-dark: #145554;
    --tgs-primary-light: #2A8F8E;
    --tgs-primary-bg: rgba(26, 107, 106, 0.08);
    --tgs-accent: #D4A03C;
    --tgs-accent-light: #E8B94D;
    --tgs-accent-bg: rgba(212, 160, 60, 0.1);
    --tgs-dark: #2C3E50;
    --tgs-dark-light: #3D566E;
    --tgs-bg: #F4F6F7;
    --tgs-bg-white: #ffffff;
    --tgs-bg-section: #EDF0F2;
    --tgs-bg-hover: #E8ECEF;
    --tgs-text: #2C3E50;
    --tgs-text-secondary: #5A6B7D;
    --tgs-text-muted: #8E9EAE;
    --tgs-border: #D8DEE4;
    --tgs-border-light: #E8ECEF;
    --tgs-card: #ffffff;
    --tgs-shadow-sm: 0 1px 4px rgba(44,62,80,0.06);
    --tgs-shadow: 0 2px 10px rgba(44,62,80,0.08), 0 4px 20px rgba(44,62,80,0.04);
    --tgs-shadow-md: 0 4px 16px rgba(44,62,80,0.1), 0 8px 32px rgba(44,62,80,0.06);
    --tgs-shadow-hover: 0 8px 30px rgba(26,107,106,0.15), 0 16px 50px rgba(44,62,80,0.08);
    --tgs-radius: 12px;
    --tgs-radius-sm: 8px;
    --tgs-radius-lg: 16px;
    --tgs-radius-xl: 24px;
    --tgs-transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    --tgs-max-width: 1280px;
    --tgs-header-height: 64px;
}

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--tgs-text);
    background: var(--tgs-bg);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: var(--tgs-transition); }
img { max-width: 100%; height: auto; display: block; border: 0; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* === Container === */
.tgs-container { width: 100%; max-width: var(--tgs-max-width); margin: 0 auto; padding: 0 32px; }

/* === Header - Dark Teal Navigation === */
.tgs-header {
    width: 100%;
    background: var(--tgs-primary);
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 2px 12px rgba(26,107,106,0.2);
}

.tgs-navbar {
    display: flex; align-items: center; justify-content: space-between;
    height: var(--tgs-header-height);
    max-width: var(--tgs-max-width); margin: 0 auto; padding: 0 32px;
}

.tgs-nav-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.tgs-nav-logo {
    width: 40px; height: 40px; border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.tgs-nav-title {
    color: #fff; font-size: 1.5rem; font-weight: 800;
    letter-spacing: 1px;
}

.tgs-nav-toggle {
    display: none; width: 40px; height: 40px;
    align-items: center; justify-content: center;
    background: rgba(255,255,255,0.12); border-radius: 8px;
    transition: var(--tgs-transition);
}
.tgs-nav-toggle:hover { background: rgba(255,255,255,0.2); }
.tgs-nav-toggle-icon { width: 20px; height: 2px; background: #fff; position: relative; transition: var(--tgs-transition); border-radius: 2px; }
.tgs-nav-toggle-icon::before, .tgs-nav-toggle-icon::after { content: ""; position: absolute; width: 20px; height: 2px; background: #fff; left: 0; transition: var(--tgs-transition); border-radius: 2px; }
.tgs-nav-toggle-icon::before { top: -6px; }
.tgs-nav-toggle-icon::after { top: 6px; }

.tgs-nav-menu { display: flex; align-items: center; gap: 2px; }
.tgs-nav-link {
    display: block; padding: 8px 14px; color: rgba(255,255,255,0.8);
    font-size: 0.85rem; font-weight: 600; border-radius: 8px;
    transition: var(--tgs-transition); white-space: nowrap;
}
.tgs-nav-link:hover { color: #fff; background: rgba(255,255,255,0.12); }
.tgs-nav-link.is-active { color: #fff; background: rgba(255,255,255,0.18); }

/* === Main === */
.tgs-main { padding: 28px 0 60px; min-height: calc(100vh - var(--tgs-header-height) - 200px); }
.tgs-section { margin-bottom: 40px; }

.tgs-section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px;
}
.tgs-section-title {
    color: var(--tgs-text); font-size: 1.25rem; font-weight: 800;
    position: relative; padding-left: 18px;
}
.tgs-section-title::before {
    content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 4px; height: 22px; border-radius: 2px;
    background: var(--tgs-primary);
}
.tgs-section-more {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--tgs-primary); font-size: 0.82rem; font-weight: 700;
    padding: 8px 18px; border-radius: 8px;
    background: var(--tgs-primary-bg); transition: var(--tgs-transition);
    border: 1.5px solid rgba(26,107,106,0.15);
}
.tgs-section-more:hover { background: var(--tgs-primary); color: #fff; border-color: var(--tgs-primary); }

/* === Game Grid === */
.tgs-game-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.tgs-game-grid--compact { grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* Game Card - White + Left Color Border */
.tgs-game-card {
    background: var(--tgs-card); border-radius: var(--tgs-radius);
    overflow: hidden; box-shadow: var(--tgs-shadow);
    transition: var(--tgs-transition); display: flex; flex-direction: column;
    border-left: 4px solid var(--tgs-primary);
}
.tgs-game-card:hover { transform: translateY(-6px); box-shadow: var(--tgs-shadow-hover); }

.tgs-game-thumb {
    position: relative; width: 100%; aspect-ratio: 4/3; overflow: hidden;
    background: linear-gradient(135deg, #E8F4F4, #F0EDE6);
}
.tgs-game-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.tgs-game-card:hover .tgs-game-thumb img { transform: scale(1.06); }
.tgs-game-thumb-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.35) 0%, transparent 50%);
    pointer-events: none; opacity: 0; transition: opacity 0.3s ease;
}
.tgs-game-card:hover .tgs-game-thumb-overlay { opacity: 1; }

.tgs-game-meta {
    display: flex; align-items: center; gap: 6px;
    margin-bottom: 6px;
}
.tgs-game-tag {
    color: #fff; font-size: 0.68rem; font-weight: 700;
    padding: 3px 10px; border-radius: 6px;
    text-transform: uppercase; letter-spacing: 0.3px;
}
.tgs-tag-boys { background: var(--tgs-primary); }
.tgs-tag-girls { background: #C47A9E; }
.tgs-tag-puzzle { background: #5B8C85; }
.tgs-tag-sports { background: var(--tgs-accent); color: var(--tgs-dark); }
.tgs-tag-strategy { background: var(--tgs-dark); }
.tgs-tag-casual { background: #7A9E7A; }
.tgs-tag-popular { background: #B8860B; }

.tgs-game-mark {
    background: var(--tgs-accent-bg); color: var(--tgs-accent);
    font-size: 0.72rem; font-weight: 700; padding: 3px 8px;
    border-radius: 6px;
}

.tgs-game-body { padding: 12px 14px 14px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.tgs-game-name {
    color: var(--tgs-text); font-size: 0.86rem; font-weight: 700;
    line-height: 1.35; margin-bottom: 4px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    text-overflow: ellipsis; min-height: 2.3em;
}
.tgs-game-desc {
    color: var(--tgs-text-muted); font-size: 0.72rem; line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.tgs-game-card--cover .tgs-game-body { display: none; }
.tgs-game-card--cover .tgs-game-thumb { aspect-ratio: 4/3; }
.tgs-game-card--compact { border-radius: var(--tgs-radius-sm); }
.tgs-game-card--compact .tgs-game-thumb { aspect-ratio: 4/3; }
.tgs-game-card--compact .tgs-game-name { font-size: 0.78rem; min-height: auto; -webkit-line-clamp: 1; }

/* === Channel Page === */
.tgs-channel-header {
    display: flex; align-items: center; gap: 18px;
    padding: 24px 28px; background: var(--tgs-primary);
    border-radius: var(--tgs-radius-lg); margin-bottom: 28px;
    color: #fff; box-shadow: var(--tgs-shadow-md);
}
.tgs-channel-icon { width: 48px; height: 48px; object-fit: contain; filter: brightness(0) invert(1); }
.tgs-channel-title { color: #fff; font-size: 1.4rem; font-weight: 800; }

/* === Game Detail === */
.tgs-game-detail { padding: 24px 0; margin-bottom: 28px; }

/* Outer 2-col grid: main content | sidebar */
.tgs-game-detail-layout {
    display: grid; grid-template-columns: 1fr 290px; gap: 24px;
    align-items: start;
}

/* Main content card (wraps cover + meta) */
.tgs-game-detail-main {
    display: grid; grid-template-columns: 280px 1fr; gap: 28px;
    background: var(--tgs-card); border-radius: var(--tgs-radius-lg);
    padding: 24px; box-shadow: var(--tgs-shadow-md);
    border-left: 5px solid var(--tgs-primary);
}
.tgs-game-detail-cover { width: 100%; aspect-ratio: 3/4; border-radius: var(--tgs-radius); overflow: hidden; box-shadow: var(--tgs-shadow); }
.tgs-game-detail-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tgs-game-detail-meta { display: flex; flex-direction: column; justify-content: center; }
.tgs-game-detail-title { font-size: 1.5rem; font-weight: 800; color: var(--tgs-text); margin-bottom: 12px; line-height: 1.25; }
.tgs-game-detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tgs-tag {
    display: inline-block; background: var(--tgs-primary-bg); color: var(--tgs-primary);
    padding: 5px 14px; border-radius: 8px; font-size: 0.78rem; font-weight: 600;
    border: 1.5px solid rgba(26,107,106,0.15);
}
.tgs-tag--date { background: var(--tgs-accent-bg); color: var(--tgs-accent); border-color: rgba(212,160,60,0.2); }
.tgs-game-detail-desc { color: var(--tgs-text-secondary); font-size: 0.9rem; line-height: 1.8; margin-bottom: 20px; }

.tgs-play-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 13px 32px; background: var(--tgs-primary); color: #fff;
    font-size: 0.92rem; font-weight: 700; border-radius: 10px;
    box-shadow: 0 4px 14px rgba(26,107,106,0.3); transition: var(--tgs-transition);
    width: fit-content; letter-spacing: 0.3px;
}
.tgs-play-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(26,107,106,0.4); background: var(--tgs-primary-dark); }

/* Unified Sidebar */
.tgs-game-detail-sidebar {
    background: var(--tgs-card); border-radius: var(--tgs-radius-lg);
    box-shadow: var(--tgs-shadow-md); overflow: hidden;
    border-left: 5px solid var(--tgs-accent);
}
.tgs-sidebar-section {
    padding: 20px 22px;
}
.tgs-sidebar-section + .tgs-sidebar-section {
    border-top: 1px solid var(--tgs-border-light);
}
.tgs-sidebar-section-title {
    font-size: 0.85rem; font-weight: 800; color: var(--tgs-text);
    margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.3px;
}

/* Info rows inside sidebar */
.tgs-info-box-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 7px 0;
}
.tgs-info-box-row + .tgs-info-box-row {
    border-top: 1px solid var(--tgs-border-light);
}
.tgs-info-box-label { color: var(--tgs-text-muted); font-size: 0.8rem; font-weight: 600; }
.tgs-info-box-value { color: var(--tgs-text); font-size: 0.8rem; font-weight: 700; }

/* Rating inside sidebar */
.tgs-rating-stars {
    display: flex; justify-content: center; gap: 8px; margin-bottom: 8px;
}
.tgs-rating-star {
    font-size: 1.5rem; cursor: pointer; color: var(--tgs-border);
    transition: color 0.2s, transform 0.2s; line-height: 1;
}
.tgs-rating-star:hover, .tgs-rating-star.is-active {
    color: var(--tgs-accent); transform: scale(1.15);
}
.tgs-rating-count {
    font-size: 0.76rem; color: var(--tgs-text-muted); text-align: center;
}
.tgs-rating-thanks {
    color: var(--tgs-primary); font-size: 0.82rem; font-weight: 600;
    text-align: center; margin-top: 6px; display: none;
}

/* Share inside sidebar */
.tgs-share-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.tgs-share-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 12px; border-radius: 8px; font-size: 0.74rem;
    font-weight: 600; cursor: pointer; transition: var(--tgs-transition);
    border: 1.5px solid var(--tgs-border); color: var(--tgs-text-secondary);
    background: var(--tgs-bg-section);
}
.tgs-share-btn:hover {
    border-color: var(--tgs-primary); color: var(--tgs-primary);
    background: var(--tgs-primary-bg); transform: translateY(-1px);
}
.tgs-share-btn-icon { font-size: 0.95rem; line-height: 1; }
.tgs-share-btn.is-copied { background: var(--tgs-primary); color: #fff; border-color: var(--tgs-primary); }

/* Game Section Content */
.tgs-game-section {
    background: var(--tgs-card); border-radius: var(--tgs-radius);
    padding: 26px; margin-bottom: 22px; box-shadow: var(--tgs-shadow);
    border-left: 4px solid var(--tgs-accent);
}
.tgs-game-section-title {
    font-size: 1.1rem; font-weight: 800; color: var(--tgs-text);
    margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--tgs-border);
    position: relative;
}
.tgs-game-section-title::after {
    content: ""; position: absolute; bottom: -2px; left: 0;
    width: 50px; height: 3px; background: var(--tgs-accent); border-radius: 2px;
}
.tgs-game-section-content { color: var(--tgs-text-secondary); font-size: 0.92rem; line-height: 1.8; }
.tgs-game-section-content p { margin-bottom: 12px; }
.tgs-game-section-content ul, .tgs-game-section-content ol { padding-left: 22px; margin-bottom: 12px; }
.tgs-game-section-content li { margin-bottom: 6px; list-style: disc; }
.tgs-game-section-content ol li { list-style: decimal; }
.tgs-game-section-content strong { color: var(--tgs-primary); }

.tgs-section { background: transparent; }
.tgs-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding-bottom: 0; border-bottom: none; }

/* === Footer - Light Gray === */
.tgs-footer { background: var(--tgs-bg-section); color: var(--tgs-text-secondary); padding: 48px 0 24px; margin-top: 60px; border-top: 1px solid var(--tgs-border); }
.tgs-footer-inner { max-width: var(--tgs-max-width); margin: 0 auto; padding: 0 32px; }
.tgs-footer-grid { display: grid; grid-template-columns: 2.5fr 1fr 1fr 1.2fr; gap: 36px; margin-bottom: 32px; }
.tgs-footer-brand { display: flex; flex-direction: column; gap: 12px; }
.tgs-footer-brand-name { display: flex; align-items: center; gap: 10px; color: var(--tgs-text); font-size: 1.25rem; font-weight: 800; }
.tgs-footer-brand-name img { width: 36px; height: 36px; border-radius: 8px; }
.tgs-footer-brand-desc { color: var(--tgs-text-muted); font-size: 0.84rem; line-height: 1.65; }
.tgs-footer-col-title { color: var(--tgs-primary); font-size: 0.82rem; font-weight: 700; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 1px; }
.tgs-footer-links { display: flex; flex-direction: column; gap: 9px; }
.tgs-footer-links a { color: var(--tgs-text-secondary); font-size: 0.84rem; transition: var(--tgs-transition); }
.tgs-footer-links a:hover { color: var(--tgs-primary); padding-left: 4px; }
.tgs-footer-bottom { text-align: center; padding-top: 24px; border-top: 1px solid var(--tgs-border); color: var(--tgs-text-muted); font-size: 0.8rem; line-height: 1.6; }
.tgs-footer-bottom a { color: var(--tgs-primary); }
.tgs-footer-bottom a:hover { color: var(--tgs-primary-dark); }

/* === Article (Legal, FAQ) === */
.tgs-article {
    max-width: 820px; margin: 0 auto; background: var(--tgs-card);
    border-radius: var(--tgs-radius-lg); padding: 36px;
    box-shadow: var(--tgs-shadow-md); border-left: 5px solid var(--tgs-primary);
}
.tgs-article h1 { font-size: 1.65rem; color: var(--tgs-text); margin-bottom: 16px; padding-bottom: 14px; border-bottom: 2px solid var(--tgs-border); font-weight: 800; }
.tgs-article h2 { font-size: 1.15rem; color: var(--tgs-text); margin: 26px 0 10px; padding-left: 14px; border-left: 4px solid var(--tgs-primary); font-weight: 700; }
.tgs-article h3 { font-size: 1rem; color: var(--tgs-text); margin: 18px 0 8px; font-weight: 700; }
.tgs-article p { color: var(--tgs-text-secondary); font-size: 0.92rem; line-height: 1.85; margin-bottom: 14px; }
.tgs-article ul, .tgs-article ol { padding-left: 24px; margin-bottom: 14px; }
.tgs-article li { font-size: 0.92rem; line-height: 1.7; margin-bottom: 6px; list-style: disc; color: var(--tgs-text-secondary); }
.tgs-article ol li { list-style: decimal; }
.tgs-article a { color: var(--tgs-primary); text-decoration: underline; }
.tgs-article a:hover { color: var(--tgs-primary-dark); }
.tgs-article strong { color: var(--tgs-text); }
.tgs-article .tgs-article-date { color: var(--tgs-text-muted); font-size: 0.82rem; margin-bottom: 18px; }
.tgs-article .tgs-contact-email {
    display: inline-block; background: var(--tgs-primary-bg); color: var(--tgs-primary);
    padding: 8px 18px; border-radius: 8px; font-weight: 600; margin: 8px 0 14px;
    border: 1.5px dashed rgba(26,107,106,0.2); font-size: 0.88rem;
}

/* FAQ */
.tgs-faq-item { border: 1.5px solid var(--tgs-border); border-radius: var(--tgs-radius-sm); margin-bottom: 10px; overflow: hidden; transition: var(--tgs-transition); }
.tgs-faq-item:hover { border-color: var(--tgs-primary-light); }
.tgs-faq-question {
    width: 100%; padding: 15px 18px; background: var(--tgs-bg-section);
    color: var(--tgs-text); font-size: 0.92rem; font-weight: 700; text-align: left;
    display: flex; align-items: center; justify-content: space-between; transition: var(--tgs-transition);
}
.tgs-faq-question:hover { background: var(--tgs-bg-hover); }
.tgs-faq-question::after { content: "+"; font-size: 1.3rem; color: var(--tgs-primary); transition: transform 0.3s; font-weight: 400; }
.tgs-faq-item.is-open .tgs-faq-question::after { transform: rotate(45deg); }
.tgs-faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.tgs-faq-item.is-open .tgs-faq-answer { max-height: 600px; }
.tgs-faq-answer-inner { padding: 16px 18px; color: var(--tgs-text-secondary); font-size: 0.88rem; line-height: 1.8; background: var(--tgs-card); }

/* === Back to Top === */
.tgs-back-top { position: fixed; right: 22px; bottom: 72px; display: none; flex-direction: column; gap: 10px; z-index: 50; }
.tgs-back-top.is-visible { display: flex; }
.tgs-back-btn {
    width: 42px; height: 42px; background: var(--tgs-primary);
    border: none; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 3px 10px rgba(26,107,106,0.25); transition: var(--tgs-transition);
}
.tgs-back-btn:hover { background: var(--tgs-primary-dark); transform: translateY(-2px); box-shadow: 0 5px 16px rgba(26,107,106,0.35); }
.tgs-back-btn img { width: 18px; height: 18px; filter: brightness(0) invert(1); }

/* === Iframe (play page) === */
.tgs-iframe-wrap { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: #000; z-index: 9999; }
.tgs-iframe-wrap iframe, .tgs-iframe-wrap .game { display: block; width: 100%; height: 100%; border: 0; overflow: hidden; }
.tgs-iframe-back {
    position: fixed; top: 14px; left: 14px; width: 44px; height: 44px;
    background: var(--tgs-primary); border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 10000; transition: var(--tgs-transition);
    box-shadow: 0 3px 10px rgba(26,107,106,0.3);
}
.tgs-iframe-back:hover { background: var(--tgs-primary-dark); transform: scale(1.08); }
.tgs-iframe-back img { width: 20px; height: 20px; }

/* === Responsive - Tablet === */
@media (max-width: 1024px) {
    .tgs-game-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .tgs-game-detail-layout { grid-template-columns: 1fr; }
    .tgs-game-detail-main { grid-template-columns: 220px 1fr; gap: 22px; }
    .tgs-game-detail-cover { max-width: 100%; }
    .tgs-footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* === Responsive - Mobile === */
@media (max-width: 640px) {
    :root { --tgs-header-height: 56px; }
    .tgs-container { padding: 0 16px; }
    .tgs-navbar { padding: 0 16px; }
    .tgs-nav-title { font-size: 1.2rem; }
    .tgs-nav-logo { width: 34px; height: 34px; }
    .tgs-nav-toggle { display: flex; }
    .tgs-nav-menu {
        display: none; position: absolute; top: var(--tgs-header-height);
        right: 0; left: 0;
        flex-direction: row; flex-wrap: wrap;
        background: var(--tgs-primary-dark); box-shadow: 0 6px 20px rgba(0,0,0,0.15);
        padding: 10px; gap: 6px;
    }
    .tgs-nav-menu.is-open { display: flex; }
    .tgs-nav-link {
        color: rgba(255,255,255,0.8); padding: 10px 0; border-radius: 8px;
        font-size: 0.82rem; text-align: center;
        width: calc(33.333% - 4px); background: rgba(255,255,255,0.08);
        font-weight: 600;
    }
    .tgs-nav-link:hover, .tgs-nav-link.is-active { background: rgba(255,255,255,0.18); color: #fff; }
    .tgs-game-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .tgs-game-grid--compact { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .tgs-game-body { padding: 10px 12px 12px; }
    .tgs-game-name { font-size: 0.76rem; min-height: 2em; }
    .tgs-game-desc { display: none; }
    .tgs-game-tag { font-size: 0.6rem; padding: 3px 8px; }
    .tgs-section-title { font-size: 1.05rem; }
    .tgs-section-more { font-size: 0.75rem; padding: 6px 14px; }
    .tgs-game-detail-layout { grid-template-columns: 1fr; gap: 16px; }
    .tgs-game-detail-main { grid-template-columns: 1fr; gap: 0; padding: 0; border-left-width: 4px; }
    .tgs-game-detail-cover { border-radius: var(--tgs-radius-lg) var(--tgs-radius-lg) 0 0; aspect-ratio: 16/10; max-width: none; }
    .tgs-game-detail-meta { padding: 16px 18px 20px; }
    .tgs-game-detail-title { font-size: 1.15rem; }
    .tgs-play-btn { width: 100%; max-width: none; padding: 13px 24px; font-size: 0.9rem; }
    .tgs-article { padding: 20px; }
    .tgs-article h1 { font-size: 1.25rem; }
    .tgs-article h2 { font-size: 1rem; }
    .tgs-article p, .tgs-article li { font-size: 0.86rem; }
    .tgs-section { margin-bottom: 26px; }
    .tgs-footer-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
    .tgs-back-top { right: 14px; bottom: 62px; }
    .tgs-back-btn { width: 38px; height: 38px; }
}

/* === Breadcrumb Navigation === */
.tgs-breadcrumb {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 0; margin-bottom: 8px; font-size: 0.82rem;
}
.tgs-breadcrumb a {
    color: var(--tgs-primary); font-weight: 600;
    transition: var(--tgs-transition);
}
.tgs-breadcrumb a:hover { color: var(--tgs-primary-dark); }
.tgs-breadcrumb-sep { color: var(--tgs-text-muted); font-size: 0.75rem; }
.tgs-breadcrumb-current { color: var(--tgs-text-muted); font-weight: 500; }

/* === Game Detail - Legacy (keep for game-section below detail) === */

/* === Controls Guide Box === */
.tgs-controls-box {
    background: var(--tgs-card); border-radius: var(--tgs-radius);
    padding: 22px; box-shadow: var(--tgs-shadow);
    border-left: 4px solid var(--tgs-accent);
}
.tgs-controls-box-title {
    font-size: 0.92rem; font-weight: 800; color: var(--tgs-text);
    margin-bottom: 14px;
}
.tgs-control-row {
    display: flex; align-items: center; gap: 10px;
    padding: 6px 0; font-size: 0.82rem;
}
.tgs-control-key {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 32px; height: 28px; padding: 0 8px;
    background: var(--tgs-bg-section); border: 1.5px solid var(--tgs-border);
    border-radius: 6px; font-size: 0.72rem; font-weight: 700;
    color: var(--tgs-text); box-shadow: 0 2px 0 var(--tgs-border);
}
.tgs-control-desc { color: var(--tgs-text-secondary); font-size: 0.8rem; }

/* === Expanded Content Sections === */
.tgs-walkthrough-section,
.tgs-tips-section,
.tgs-review-section,
.tgs-game-faq-section {
    background: var(--tgs-card);
    border-radius: var(--tgs-radius-lg);
    padding: 24px;
    box-shadow: var(--tgs-shadow-md);
    margin-bottom: 20px;
}
.tgs-walkthrough-section { border-left: 5px solid var(--tgs-primary); }
.tgs-tips-section { border-left: 5px solid var(--tgs-accent); }
.tgs-review-section { border-left: 5px solid var(--tgs-primary-light); }
.tgs-game-faq-section { border-left: 5px solid var(--tgs-dark-light); }

.tgs-content-section-title {
    font-size: 1.2rem; font-weight: 700;
    color: var(--tgs-dark); margin-bottom: 16px;
    display: flex; align-items: center; gap: 8px;
}
.tgs-walkthrough-step {
    display: flex; gap: 14px; margin-bottom: 16px;
    padding: 14px; background: var(--tgs-bg-section);
    border-radius: var(--tgs-radius); transition: background 0.2s;
}
.tgs-walkthrough-step:hover { background: var(--tgs-primary-bg); }
.tgs-walkthrough-step:last-child { margin-bottom: 0; }
.tgs-step-number {
    flex-shrink: 0; width: 32px; height: 32px;
    background: var(--tgs-primary); color: #fff;
    border-radius: 50%; display: flex; align-items: center;
    justify-content: center; font-weight: 700; font-size: 0.85rem;
}
.tgs-step-body h4 {
    font-size: 0.95rem; font-weight: 600;
    color: var(--tgs-dark); margin-bottom: 4px;
}
.tgs-step-body p {
    font-size: 0.88rem; color: var(--tgs-text-secondary);
    line-height: 1.6;
}
.tgs-tips-list { list-style: none; padding: 0; }
.tgs-tips-list li {
    position: relative; padding: 10px 0 10px 28px;
    font-size: 0.88rem; color: var(--tgs-text-secondary);
    line-height: 1.6; border-bottom: 1px solid var(--tgs-border-light);
}
.tgs-tips-list li:last-child { border-bottom: none; }
.tgs-tips-list li::before {
    content: "\2714"; position: absolute; left: 0; top: 10px;
    color: var(--tgs-accent); font-weight: 700; font-size: 0.9rem;
}
.tgs-review-content p {
    font-size: 0.88rem; color: var(--tgs-text-secondary);
    line-height: 1.7; margin-bottom: 12px;
}
.tgs-review-content p:last-child { margin-bottom: 0; }
.tgs-faq-item {
    margin-bottom: 14px; padding-bottom: 14px;
    border-bottom: 1px solid var(--tgs-border-light);
}
.tgs-faq-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.tgs-faq-item h4 {
    font-size: 0.92rem; font-weight: 600;
    color: var(--tgs-dark); margin-bottom: 6px;
}
.tgs-faq-item p {
    font-size: 0.85rem; color: var(--tgs-text-secondary);
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .tgs-walkthrough-section,
    .tgs-tips-section,
    .tgs-review-section,
    .tgs-game-faq-section { padding: 18px; }
}
@media (max-width: 640px) {
    .tgs-walkthrough-section,
    .tgs-tips-section,
    .tgs-review-section,
    .tgs-game-faq-section { padding: 14px; }
    .tgs-content-section-title { font-size: 1.05rem; }
    .tgs-walkthrough-step { padding: 10px; gap: 10px; }
    .tgs-step-number { width: 28px; height: 28px; font-size: 0.75rem; }
}

/* === Animations === */
@keyframes tgs-fade-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.tgs-fade-in { animation: tgs-fade-in 0.45s ease-out; }
