/**
 * 移动端专用样式（照抄 black-sword-offline）
 * 仅含 @media (max-width: …)，不影响 PC。
 * 图片路径仍走 site_image / site_image_mobile（public/images/site/pc|mobile）。
 */
/* ---- home (from black-sword-offline/index.html) ---- */
@media (max-width: 1024px) {
.features-grid { grid-template-columns: repeat(2, 1fr); }
.classes-showcase { height: 500px; }
.news-grid { grid-template-columns: 1fr; }
.banner-carousel { min-height: 360px; }
.footer-content { grid-template-columns: 1fr 1fr; }
.footer-social { align-items: flex-start; grid-column: 1 / -1; }
}

@media (max-width: 768px) {
/* ====================================================
GLOBAL / RESET
==================================================== */
* { -webkit-tap-highlight-color: transparent; }

/* Prevent horizontal scroll */
html, body { overflow-x: hidden; }

/* All images: full content, no cropping by default */
img {
max-width: 100%;
height: auto;
}

/* Force horizontal text layout — prevent vertical/one-char-per-line */
p, h1, h2, h3, h4, h5, h6, li, span, div, a, td, th {
writing-mode: horizontal-tb !important;
text-orientation: mixed !important;
}

/* Universal text wrapping for mobile card/paragraph containers */
.feature-card p,
.class-card p,
.news-item p,
.world-card p,
.system-card p,
.gallery-desc p,
.modal-content p,
.hero-text p,
.section-text p {
word-break: keep-all;
overflow-wrap: anywhere;
white-space: normal;
}

/* Disable hover effects on touch devices */
.feature-card:hover,
.class-card:hover,
.gallery-thumb:hover,
.news-item:hover,
.dl-btn:hover,
.shop-item-card:hover,
.world-card:hover,
.system-card:hover {
transform: none;
box-shadow: none;
}

/* ====================================================
NAVIGATION
==================================================== */
.nav {
padding: 10px 14px;
flex-wrap: wrap;
gap: 8px;
align-items: center;
}
.nav.scrolled {
padding: 8px 14px;
}
.nav-logo {
height: 32px;
gap: 8px;
flex: 1;
min-width: 0;
}
.nav-logo img { max-height: 32px; }
.nav-logo span { font-size: 13px; letter-spacing: 1px; }
.nav-actions { gap: 6px; flex-shrink: 0; }
.nav-auth-btn {
padding: 6px 12px;
font-size: 11px;
letter-spacing: 1px;
min-height: 32px;
}
.nav-menu {
order: 3;
display: flex;
flex-wrap: wrap;
justify-content: center;
width: 100%;
gap: 2px 14px;
padding: 10px 0 6px;
border-top: 1px solid var(--line-soft);
margin-top: 4px;
}
.nav-menu > li { flex-shrink: 0; }
.nav-menu a {
font-size: 12.5px;
padding: 6px 2px;
letter-spacing: 0.5px;
white-space: nowrap;
display: inline-flex;
align-items: center;
min-height: 36px;
}
.nav-dropdown > a { padding-right: 10px; }
.dropdown-menu { display: none !important; }
.nav-dropdown > a::before { display: none; }
.nav-menu a::after { bottom: 2px; }

/* ====================================================
SECTIONS
==================================================== */
.section { padding: 48px 16px; }
.section-title h2 { font-size: 24px; letter-spacing: 3px; }
.section-title .en {
font-size: 11px;
letter-spacing: 2px;
margin-bottom: 8px;
}
.section-title p {
font-size: 13px;
line-height: 1.6;
max-width: 100%;
padding: 0 10px;
}

/* ====================================================
HERO
==================================================== */
.hero {
min-height: 520px;
height: 85vh;
}
.hero-bg {
background-size: cover;
background-position: 50% 15%;
animation: none;
transform: scale(1);
}
.hero-content {
margin-top: 12vh;
padding: 0 20px;
}
.hero-logo { max-width: 260px; margin-bottom: 18px; }
.hero-slogan-cn {
font-size: 22px;
letter-spacing: 5px;
line-height: 1.4;
}
.hero-slogan-en {
font-size: 14px;
letter-spacing: 3px;
margin-bottom: 36px;
}
.hero-buttons {
flex-direction: column;
align-items: stretch;
gap: 12px;
padding: 0 20px;
max-width: 320px;
margin: 0 auto;
}
.btn-gold, .btn-hero-gold, .btn-outline, .btn-hero-outline {
width: 100%;
justify-content: center;
padding: 12px 20px;
font-size: 14px;
min-height: 44px;
}
.hero-scroll { display: none; }

/* ====================================================
FEATURES
==================================================== */
.features-grid {
grid-template-columns: 1fr;
gap: 14px;
}
.feature-card {
padding: 24px 20px;
display: flex;
flex-direction: column;
align-items: flex-start;
text-align: left;
gap: 12px;
}
.feature-icon {
width: 48px;
height: 48px;
margin: 0 0 4px 0;
flex-shrink: 0;
}
.feature-card h3 {
font-size: 17px;
letter-spacing: 2px;
margin-bottom: 4px;
}
.feature-card p {
font-size: 13.5px;
line-height: 1.7;
}

/* ====================================================
CLASSES SHOWCASE
==================================================== */
.classes-showcase {
flex-direction: column;
height: auto;
gap: 10px;
}
.class-card {
flex: none;
width: 100%;
height: auto;
min-height: 180px;
aspect-ratio: 16 / 7;
border-radius: 4px;
overflow: hidden;
}
.class-card .class-img {
background-size: cover;
background-position: center 20%;
}
.class-card[data-class="2"] .class-img {
background-position: center 35%;
}
.class-card[data-class="3"] .class-img {
background-position: center 35%;
}
.class-card .class-info {
position: absolute;
left: 0; right: 0; bottom: 0;
padding: 16px 20px;
transform: none;
opacity: 1;
background: linear-gradient(180deg, transparent 0%, rgba(5,3,10,0.85) 100%);
}
.class-card .class-info .class-cn {
font-size: 20px;
letter-spacing: 3px;
}
.class-card .class-info .class-en {
font-size: 10px;
letter-spacing: 2px;
}
.class-card .class-desc {
display: none;
}
.class-number {
top: 12px;
left: 16px;
font-size: 11px;
}
.class-card:hover, .class-card.active {
flex: none;
}
.class-card:hover .class-img,
.class-card.active .class-img {
filter: brightness(1);
}
.class-card:hover .class-info,
.class-card.active .class-info {
transform: none;
opacity: 1;
}

/* ====================================================
GALLERY / SCREENSHOTS
==================================================== */
.gallery-wrap {
padding: 0;
}
.gallery-main {
aspect-ratio: 16 / 9;
height: auto;
margin-bottom: 12px;
padding: 2px;
}
.gallery-main img {
width: 100%;
height: 100%;
object-fit: contain;
}
.gallery-label {
display: none;
}
.gallery-thumbs {
grid-template-columns: repeat(5, 1fr);
gap: 6px;
}
.gallery-thumb {
aspect-ratio: 16 / 10;
height: auto;
overflow: hidden;
}
.gallery-thumb img {
width: 100%;
height: 100%;
object-fit: cover;
}
.gallery-thumb .thumb-label {
font-size: 9px;
padding: 4px 6px;
}

/* ====================================================
NEWS / BANNER
==================================================== */
.news-grid {
grid-template-columns: 1fr;
gap: 20px;
}
.news-list {
order: 2;
}
.banner-carousel {
order: 1;
}
.news-item {
padding: 14px 16px;
gap: 14px;
flex-direction: row;
align-items: flex-start;
}
.news-date {
flex-shrink: 0;
width: 48px;
text-align: center;
}
.news-date .day { font-size: 22px; }
.news-date .month {
font-size: 10px;
letter-spacing: 1px;
}
.news-content { min-width: 0; flex: 1; }
.news-title {
font-size: 14px;
line-height: 1.5;
white-space: normal;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.news-meta {
font-size: 11px;
gap: 8px;
flex-wrap: wrap;
}
.news-summary { display: none; }
.news-tag { font-size: 10px; padding: 1px 6px; }

/* Banner carousel: full image, no cropping */
.banner-carousel {
min-height: auto;
height: auto;
aspect-ratio: 16 / 9;
box-shadow: 0 4px 20px rgba(0,0,0,0.4);
border-radius: 4px;
}
.banner-track { height: 100%; }
.banner-slide { height: 100%; }
.banner-slide img {
width: 100%;
height: 100%;
object-fit: cover;
}
.banner-dots { bottom: 10px; gap: 8px; }
.banner-dot { width: 20px; height: 3px; }
.banner-dot.active { width: 28px; }


/* ====================================================
DOWNLOAD SECTION
==================================================== */
.download-section {
padding: 60px 20px;
}
.download-content h2 {
font-size: 26px;
letter-spacing: 4px;
margin-bottom: 10px;
}
.download-content .sub {
font-size: 12px;
letter-spacing: 4px;
margin-bottom: 36px;
}
.download-buttons {
flex-direction: column;
align-items: stretch;
gap: 12px;
max-width: 280px;
margin: 0 auto;
}
.dl-btn {
width: 100%;
min-width: 0;
padding: 12px 20px;
font-size: 13px;
min-height: 44px;
justify-content: center;
}

/* ====================================================
FOOTER
==================================================== */
.footer { padding: 40px 20px 24px; }
.footer-content {
grid-template-columns: 1fr;
gap: 28px;
text-align: center;
}
.footer-logo { margin: 0 auto 12px; max-width: 140px; }
.footer-tagline { text-align: center; }
.footer-links {
grid-template-columns: repeat(2, 1fr);
gap: 20px 16px;
text-align: center;
}
.footer-col h4 { margin-bottom: 10px; font-size: 13px; }
.footer-col a { font-size: 12px; line-height: 2; }
.footer-social {
flex-direction: row;
justify-content: center;
gap: 12px;
}
.social-icon {
width: 36px;
height: 36px;
}
.footer-bottom {
flex-direction: column;
gap: 8px;
text-align: center;
padding-top: 20px;
font-size: 11px;
}

/* ====================================================
Download Guide Modal (dlg) — fullscreen mobile
==================================================== */
.dlg-modal {
padding: 0;
align-items: stretch;
}
.dlg-modal-content {
max-width: 100%;
width: 100%;
height: 100%;
border: none;
border-radius: 0;
display: flex;
flex-direction: column;
overflow: hidden;
}
.dlg-modal-close {
top: 10px;
right: 12px;
width: 32px;
height: 32px;
}
.dlg-modal-close svg { width: 14px; height: 14px; }
.dlg-header {
padding: 20px 16px 16px;
flex-shrink: 0;
gap: 6px;
}
.dlg-back {
font-size: 12px;
gap: 4px;
letter-spacing: 0.5px;
}
.dlg-back svg { width: 12px; height: 12px; }
.dlg-title {
font-size: 20px;
letter-spacing: 2px;
}
.dlg-subtitle {
font-size: 10px;
letter-spacing: 3px;
}
.dlg-body {
padding: 20px 16px 32px;
flex: 1;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
font-size: 13.5px;
line-height: 1.75;
}
.dlg-overview {
margin-bottom: 20px;
padding: 14px 16px;
font-size: 13px;
line-height: 1.8;
}
/* Platform cards: single column */
.dlg-platforms {
grid-template-columns: 1fr;
gap: 14px;
margin-bottom: 28px;
}
.dlg-platform-card {
padding: 18px 16px;
}
.dlg-platform-card:hover {
transform: none;
box-shadow: none;
}
.dlg-platform-head {
gap: 12px;
margin-bottom: 14px;
}
.dlg-platform-icon {
width: 42px;
height: 42px;
border-radius: 8px;
}
.dlg-platform-icon svg { width: 22px; height: 22px; }
.dlg-platform-name {
font-size: 17px;
letter-spacing: 1.5px;
}
.dlg-platform-sec {
margin-bottom: 12px;
}
.dlg-platform-sec h5 {
font-size: 12.5px;
letter-spacing: 1px;
margin-bottom: 6px;
}
.dlg-platform-sec ul,
.dlg-platform-sec ol {
padding-left: 14px;
font-size: 12.5px;
line-height: 1.7;
gap: 3px;
}
.dlg-platform-sec li {
word-break: keep-all;
overflow-wrap: anywhere;
}
.dlg-sec-title {
margin-bottom: 16px;
gap: 10px;
}
.dlg-sec-title h3 {
font-size: 17px;
letter-spacing: 2px;
}
/* Account grid: single column */
.dlg-account-grid {
grid-template-columns: 1fr;
gap: 12px;
}
.dlg-account-item {
padding: 16px;
}
.dlg-account-item h5 {
font-size: 14px;
letter-spacing: 1.5px;
margin-bottom: 10px;
}
.dlg-account-item ul {
padding-left: 14px;
font-size: 12.5px;
line-height: 1.7;
gap: 5px;
}
}

@media (max-width: 480px) {
/* Small phone optimizations */
.section { padding: 36px 14px; }
.section-title h2 { font-size: 20px; letter-spacing: 2px; }
.section-title .en { font-size: 10px; letter-spacing: 2px; }

.nav { padding: 8px 12px; gap: 6px; }
.nav-logo { height: 28px; }
.nav-logo span { font-size: 12px; }
.nav-auth-btn { padding: 5px 10px; font-size: 10px; min-height: 30px; }
.nav-menu { gap: 0 10px; padding: 8px 0 4px; }
.nav-menu a { font-size: 11.5px; padding: 4px 1px; min-height: 32px; }

.hero { min-height: 460px; height: 80vh; }
.hero-content { margin-top: 10vh; }
.hero-logo { max-width: 220px; }
.hero-slogan-cn { font-size: 18px; letter-spacing: 4px; }
.hero-slogan-en { font-size: 12px; letter-spacing: 2px; margin-bottom: 28px; }

.class-card { min-height: 140px; aspect-ratio: 16 / 6; }
.class-card .class-info { padding: 12px 16px; }
.class-card .class-info .class-cn { font-size: 17px; letter-spacing: 2px; }
.class-number { top: 8px; left: 12px; font-size: 10px; }

.gallery-main { aspect-ratio: 16 / 9; }
.gallery-thumbs { gap: 4px; }
.gallery-thumb .thumb-label { display: none; }

.banner-carousel {
aspect-ratio: 16 / 9;
height: auto;
min-height: unset;
}
.banner-track { height: 100%; }
.banner-slide { height: 100%; }
.banner-slide img {
width: 100%;
height: 100%;
object-fit: contain;
}
.banner-dots { bottom: 6px; gap: 6px; }
.banner-dot { width: 16px; height: 2px; }
.banner-dot.active { width: 22px; }

.news-item { padding: 12px 14px; gap: 12px; }
.news-date .day { font-size: 20px; }
.news-title { font-size: 13px; }

.download-section { padding: 50px 16px; }
.download-content h2 { font-size: 22px; letter-spacing: 3px; }
.download-content .sub { font-size: 11px; letter-spacing: 3px; margin-bottom: 28px; }

.footer { padding: 32px 16px 20px; }
.footer-links { grid-template-columns: repeat(3, 1fr); gap: 16px 12px; }

/* Download guide modal small screen */
.dlg-header { padding: 16px 14px 12px; }
.dlg-title { font-size: 17px; letter-spacing: 1.5px; }
.dlg-subtitle { font-size: 9px; letter-spacing: 2px; }
.dlg-body { padding: 16px 14px 28px; font-size: 13px; }
.dlg-overview { padding: 12px 14px; font-size: 12.5px; margin-bottom: 16px; }
.dlg-platforms { gap: 12px; margin-bottom: 24px; }
.dlg-platform-card { padding: 14px 14px; }
.dlg-platform-head { gap: 10px; margin-bottom: 12px; }
.dlg-platform-icon { width: 36px; height: 36px; border-radius: 6px; }
.dlg-platform-icon svg { width: 18px; height: 18px; }
.dlg-platform-name { font-size: 15px; letter-spacing: 1px; }
.dlg-platform-sec h5 { font-size: 12px; }
.dlg-platform-sec ul,
.dlg-platform-sec ol { font-size: 12px; padding-left: 12px; }
.dlg-sec-title { margin-bottom: 14px; }
.dlg-sec-title h3 { font-size: 15px; letter-spacing: 1.5px; }
.dlg-account-grid { gap: 10px; }
.dlg-account-item { padding: 14px; }
.dlg-account-item h5 { font-size: 13px; letter-spacing: 1px; }
.dlg-account-item ul { font-size: 12px; gap: 4px; }
}



/* ---- pages (from black-sword-offline/css/pages.css) ---- */
@media (max-width: 1024px) {
.world-grid,
.three-col-grid,
.guide-grid,
.shop-grid-3,
.shop-info-grid,
.event-cards-grid {
grid-template-columns: repeat(2, 1fr);
}
.intro-classes-grid {
grid-template-columns: repeat(2, 1fr);
}
.growth-grid,
.skill-grid {
grid-template-columns: repeat(3, 1fr);
}
.wiki-grid {
grid-template-columns: repeat(3, 1fr);
}
.gallery-masonry {
column-count: 3;
}
}

@media (max-width: 768px) {
.page-hero { height: 300px; }
.page-hero-title { font-size: 32px; letter-spacing: 4px; }
.page-content { padding: 48px 20px; }
.world-grid,
.three-col-grid,
.guide-grid,
.shop-grid-3,
.shop-info-grid,
.event-cards-grid {
grid-template-columns: 1fr;
}
.intro-classes-grid {
grid-template-columns: 1fr;
}
.growth-grid,
.skill-grid {
grid-template-columns: repeat(2, 1fr);
}
.wiki-grid {
grid-template-columns: repeat(2, 1fr);
}
.gallery-masonry {
column-count: 2;
}
.sub-tabs { overflow-x: auto; }
.sub-tab { padding: 12px 20px; white-space: nowrap; }
}

@media (max-width: 768px) {
/* --- Global: no horizontal scroll, images safe --- */
html, body { overflow-x: hidden; }
* { -webkit-tap-highlight-color: transparent; }
img {
max-width: 100%;
height: auto;
}

/* --- Global text wrap: force horizontal, prevent vertical/one-char-per-line --- */
p, h1, h2, h3, h4, h5, h6, li, span, div, a, td, th {
writing-mode: horizontal-tb !important;
text-orientation: mixed !important;
}

/* Universal text container wrapping for mobile */
.world-card p,
.system-card-body p,
.feature-card p,
.news-card p,
.event-card-body p,
.wiki-card-body p,
.dungeon-card p,
.battle-card p,
.currency-card p,
.shop-item-desc,
.post-content p,
.detail-intro p,
.detail-section p,
.intro-class-desc p,
.guide-card p,
.qa-body p {
word-break: keep-all;
overflow-wrap: anywhere;
white-space: normal;
line-height: 1.7;
}

/* Disable hover effects on touch */
.world-card:hover,
.map-tl-content:hover,
.intro-class-card:hover,
.intro-duo-card:hover,
.shop-item-card:hover,
.system-card:hover,
.wiki-card:hover,
.event-card:hover,
.gallery-masonry-item:hover,
.dungeon-card:hover,
.battle-card:hover,
.currency-card:hover {
transform: none;
box-shadow: none;
}
.world-card:hover::before,
.system-card:hover::before {
transform: scaleX(0);
}
.system-card:hover .system-card-img img {
transform: none;
}

/* --- Page hero: shorter, focused content --- */
.page-hero {
height: 220px;
background-size: cover;
background-position: center 20%;
}
.page-hero-inner { gap: 10px; }
.page-hero-title {
font-size: 24px;
letter-spacing: 3px;
}
.page-hero-sub {
font-size: 10px;
letter-spacing: 2px;
}

/* --- Page content: tight padding, full width feel --- */
.page-content {
padding: 36px 16px;
max-width: 100%;
}
.page-section-title { margin-bottom: 32px; }
.page-section-title h2 {
font-size: 20px;
letter-spacing: 2px;
margin-bottom: 8px;
}
.page-section-title .subtitle {
font-size: 10px;
letter-spacing: 2px;
}
.page-section-title .deco-line::before,
.page-section-title .deco-line::after {
width: 40px;
}

/* Wiki page section title: allow wrap for long Korean labels */
#wikiContent .page-section-title {
width: 100%;
overflow: hidden;
}
#wikiContent .page-section-title h2 {
font-size: 18px;
white-space: normal;
word-break: keep-all;
overflow-wrap: anywhere;
line-height: 1.4;
padding: 0 4px;
margin-bottom: 6px;
}

/* --- Sub tabs: horizontal scroll --- */
.sub-tabs {
overflow-x: auto;
overflow-y: hidden;
-webkit-overflow-scrolling: touch;
justify-content: flex-start;
flex-wrap: nowrap;
margin: 0 -16px 32px;
padding: 0 16px;
border-bottom: 1px solid var(--line-soft);
scrollbar-width: none;
}
.sub-tabs.sub-tabs-center { justify-content: center; }
.sub-tabs::-webkit-scrollbar { display: none; }
.sub-tab {
padding: 12px 16px;
font-size: 13px;
white-space: nowrap;
flex-shrink: 0;
letter-spacing: 1px;
min-height: 44px;
display: inline-flex;
align-items: center;
}

/* --- World / feature cards: single column --- */
.world-grid,
.three-col-grid,
.guide-grid {
grid-template-columns: 1fr;
gap: 14px;
}

/* --- Game features page: main block + points grid --- */
.feature-wide-block {
padding: 24px 18px 24px;
margin-bottom: 28px;
}
.feature-wide-block::before {
left: 20px;
right: 20px;
}
.feature-wide-header {
flex-wrap: wrap;
gap: 8px 16px;
margin-bottom: 20px;
padding-bottom: 16px;
}
.feature-wide-header h2 {
font-size: 20px;
letter-spacing: 2px;
line-height: 1.3;
word-break: keep-all;
overflow-wrap: anywhere;
white-space: normal;
writing-mode: horizontal-tb;
}
.feature-wide-en {
font-size: 11px;
letter-spacing: 3px;
word-break: keep-all;
overflow-wrap: anywhere;
white-space: normal;
}
.feature-wide-line {
flex-basis: 100%;
order: 3;
}
.feature-points-grid {
grid-template-columns: 1fr;
gap: 20px;
}
.feature-point-item {
padding-left: 44px;
}
.feature-point-num {
font-size: 28px;
top: -2px;
}
.feature-point-item h4 {
font-size: 16px;
letter-spacing: 1px;
margin-bottom: 8px;
line-height: 1.4;
word-break: keep-all;
overflow-wrap: anywhere;
white-space: normal;
writing-mode: horizontal-tb;
}
.feature-point-item p {
font-size: 13px;
line-height: 1.8;
word-break: keep-all;
overflow-wrap: anywhere;
white-space: normal;
writing-mode: horizontal-tb;
}
.feature-bottom-row {
margin-bottom: 48px;
}

/* --- Two-column grids: single column on mobile --- */
.two-col-grid {
grid-template-columns: 1fr;
gap: 14px;
}

/* --- Daily overlay cards (play/mall entries) --- */
.daily-overlay-card {
min-height: 160px;
}
.daily-overlay-bar {
padding: 14px 16px;
}
.daily-overlay-bar h3 {
font-size: 16px;
letter-spacing: 1px;
line-height: 1.4;
word-break: keep-all;
overflow-wrap: anywhere;
white-space: normal;
writing-mode: horizontal-tb;
}
.daily-overlay-hint {
font-size: 11px;
letter-spacing: 1px;
}

/* --- Notice / News page: 공식공지 list --- */
.news-page-list {
margin-bottom: 36px;
}
.news-page-item {
flex-direction: column;
align-items: flex-start;
gap: 10px;
padding: 18px 16px;
}
.news-page-item:hover {
padding-left: 16px;
}
.news-page-date {
min-width: auto;
text-align: left;
display: flex;
align-items: baseline;
gap: 8px;
}
.news-page-date .day {
font-size: 20px;
}
.news-page-date .month {
font-size: 10px;
letter-spacing: 1px;
margin-top: 0;
}
.news-page-body {
width: 100%;
min-width: 0;
}
.news-page-title {
font-size: 15px;
margin-bottom: 6px;
line-height: 1.4;
word-break: keep-all;
overflow-wrap: anywhere;
white-space: normal;
writing-mode: horizontal-tb;
}
.news-page-summary {
font-size: 12.5px;
line-height: 1.7;
word-break: keep-all;
overflow-wrap: anywhere;
white-space: normal;
writing-mode: horizontal-tb;
}
.news-page-more {
display: none;
}

/* --- Notice / News page: 이벤트공지 cards --- */
.event-cards-grid {
gap: 14px;
margin-bottom: 36px;
}
.event-card {
display: flex;
flex-direction: row;
min-height: 140px;
}
.event-card-img {
width: 120px;
height: auto;
flex-shrink: 0;
object-fit: cover;
}
.event-card-body {
padding: 14px 16px;
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
}
.event-card-tag {
font-size: 10px;
padding: 2px 8px;
margin-bottom: 8px;
align-self: flex-start;
}
.event-card h3 {
font-size: 15px;
letter-spacing: 0.5px;
margin-bottom: 6px;
line-height: 1.35;
word-break: keep-all;
overflow-wrap: anywhere;
white-space: normal;
writing-mode: horizontal-tb;
}
.event-card-time {
font-size: 11px;
margin-bottom: 8px;
flex-shrink: 0;
}
.event-card-desc {
font-size: 12.5px;
line-height: 1.6;
margin-bottom: 10px;
word-break: keep-all;
overflow-wrap: anywhere;
white-space: normal;
writing-mode: horizontal-tb;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}
.event-card-rewards {
gap: 4px;
margin-bottom: 10px;
}
.event-card-rewards span {
padding: 2px 6px;
font-size: 10px;
}
.event-card-btn {
padding: 8px;
font-size: 12px;
letter-spacing: 1px;
margin-top: auto;
}
.event-card-status {
top: 8px;
right: 8px;
padding: 3px 10px;
font-size: 10px;
letter-spacing: 1px;
}

/* --- Notice / News page: 개발자노트 list --- */
.dev-list {
gap: 10px;
}
.dev-item {
flex-direction: column;
gap: 10px;
padding: 18px 16px;
}
.dev-item-date {
padding: 4px 12px;
font-size: 12px;
letter-spacing: 0.5px;
}
.dev-item-body {
width: 100%;
min-width: 0;
}
.dev-item-title {
font-size: 16px;
letter-spacing: 1px;
margin-bottom: 6px;
line-height: 1.4;
word-break: keep-all;
overflow-wrap: anywhere;
white-space: normal;
writing-mode: horizontal-tb;
}
.dev-item-desc {
font-size: 13px;
line-height: 1.8;
letter-spacing: 0;
word-break: keep-all;
overflow-wrap: anywhere;
white-space: normal;
writing-mode: horizontal-tb;
}

/* --- Notice / News page: 문제해결 list --- */
.issue-list {
gap: 10px;
}
.issue-item {
flex-direction: column;
gap: 10px;
padding: 18px 16px;
}
.issue-item-status {
padding: 4px 12px;
font-size: 11px;
letter-spacing: 1px;
}
.issue-item-body {
width: 100%;
min-width: 0;
}
.issue-item-title {
font-size: 15px;
letter-spacing: 1px;
margin-bottom: 6px;
line-height: 1.4;
word-break: keep-all;
overflow-wrap: anywhere;
white-space: normal;
writing-mode: horizontal-tb;
}
.issue-item-desc {
font-size: 13px;
line-height: 1.8;
letter-spacing: 0;
word-break: keep-all;
overflow-wrap: anywhere;
white-space: normal;
writing-mode: horizontal-tb;
}

/* --- Notice / News page: event public list --- */
.event-public {
padding: 20px 16px;
}
.event-public h3 {
font-size: 17px;
letter-spacing: 1px;
margin-bottom: 14px;
line-height: 1.4;
word-break: keep-all;
overflow-wrap: anywhere;
white-space: normal;
writing-mode: horizontal-tb;
}
.event-public h3::before {
width: 3px;
height: 16px;
}
.event-public li {
flex-direction: column;
align-items: flex-start;
gap: 4px;
padding: 10px 12px;
font-size: 13px;
line-height: 1.5;
word-break: keep-all;
overflow-wrap: anywhere;
white-space: normal;
writing-mode: horizontal-tb;
}
.event-public li .ep-date {
font-size: 11px;
flex-shrink: 0;
}
.world-card {
padding: 22px 20px;
}
.world-card-icon {
width: 40px;
height: 40px;
margin-bottom: 12px;
}
.world-card h3 {
font-size: 17px;
letter-spacing: 2px;
}
.world-card .world-en {
font-size: 10px;
letter-spacing: 2px;
margin-bottom: 12px;
}
.world-card p {
font-size: 13.5px;
line-height: 1.7;
}

/* --- Map timeline --- */
.world-section { margin-bottom: 48px; }

/* --- Story / main plot block --- */
.story-block {
padding: 24px 16px;
margin-bottom: 32px;
}
.story-title {
font-size: 18px;
letter-spacing: 2px;
line-height: 1.4;
word-break: keep-all;
overflow-wrap: anywhere;
white-space: normal;
writing-mode: horizontal-tb;
}
.story-title-en {
font-size: 10px;
letter-spacing: 2px;
margin-left: 6px;
display: inline-block;
}
.story-divider { width: 80px; }
.story-intro p {
font-size: 13px;
line-height: 1.8;
margin: 16px 0 24px 0;
text-indent: 2em;
word-break: keep-all;
overflow-wrap: anywhere;
white-space: normal;
}

/* --- Chapter timeline (accordion) --- */
.chapter-timeline { margin-bottom: 28px; }
.chapter-timeline::before { left: 16px; }
.chapter-item {
padding-left: 42px;
margin-bottom: 10px;
}
.chapter-marker {
left: 4px;
top: 12px;
width: 24px;
height: 24px;
}
.chapter-num { font-size: 10px; }
.chapter-header {
padding: 12px 14px 12px 10px;
gap: 10px;
}
.chapter-title-wrap {
flex-direction: column;
align-items: flex-start;
gap: 4px;
min-width: 0;
}
.chapter-title {
font-size: 15px;
letter-spacing: 1px;
line-height: 1.4;
word-break: keep-all;
overflow-wrap: anywhere;
white-space: normal;
writing-mode: horizontal-tb;
}
.chapter-en {
font-size: 10px;
letter-spacing: 1px;
word-break: keep-all;
overflow-wrap: anywhere;
white-space: normal;
}
.chapter-body { margin-left: 6px; }
.chapter-content {
padding: 14px 16px 16px;
font-size: 13px;
line-height: 1.8;
word-break: keep-all;
overflow-wrap: anywhere;
white-space: normal;
}

/* --- Story subtitle + task type grid --- */
.story-subtitle {
font-size: 15px;
letter-spacing: 2px;
margin-bottom: 20px;
line-height: 1.4;
word-break: keep-all;
overflow-wrap: anywhere;
white-space: normal;
writing-mode: horizontal-tb;
}
.story-subtitle span { padding: 0 14px; }
.story-subtitle span::before,
.story-subtitle span::after { width: 24px; }
.task-type-grid {
grid-template-columns: 1fr;
gap: 12px;
}
.task-type-card {
padding: 20px 18px;
text-align: center;
}
.task-type-icon {
width: 44px;
height: 44px;
margin: 0 auto 12px;
}
.task-type-icon svg {
width: 20px;
height: 20px;
}
.task-type-card h4 {
font-size: 16px;
letter-spacing: 1px;
margin: 0 0 8px 0;
line-height: 1.4;
word-break: keep-all;
overflow-wrap: anywhere;
white-space: normal;
writing-mode: horizontal-tb;
}
.task-type-card p {
font-size: 13px;
line-height: 1.7;
text-align: left;
word-break: keep-all;
overflow-wrap: anywhere;
white-space: normal;
}
.maps-overview {
padding: 16px 18px;
margin-bottom: 24px;
}
.maps-overview p {
font-size: 13px;
line-height: 1.8;
}
.map-timeline {
padding-left: 50px;
}
.map-timeline::before { left: 14px; }
.map-tl-dot {
width: 40px;
height: 40px;
left: -50px;
}
.map-tl-dot span { font-size: 12px; }
.map-tl-content {
padding: 14px 18px;
}
.map-tl-content h4 {
font-size: 16px;
letter-spacing: 2px;
}
.map-tl-content p {
font-size: 13px;
line-height: 1.8;
}

/* --- Intro / class cards: single column, full images --- */
.intro-classes-grid {
grid-template-columns: 1fr;
gap: 16px;
}
.intro-class-img-wrap {
height: 300px;
}
.intro-class-img {
width: 100%;
height: 100%;
object-fit: contain;
}
.intro-class-info {
padding: 20px;
}
.intro-class-name {
font-size: 18px;
letter-spacing: 2px;
}
.intro-class-role {
font-size: 11px;
letter-spacing: 1px;
margin-bottom: 12px;
padding-bottom: 10px;
}
.intro-class-desc {
font-size: 13px;
line-height: 1.7;
}
.intro-class-stats {
margin-top: 12px;
gap: 6px;
}
.intro-class-stats span {
padding: 3px 8px;
font-size: 11px;
}

/* Duo cards: single column */
.intro-classes-duo {
grid-template-columns: 1fr;
gap: 16px;
margin-bottom: 48px;
}

/* Character system */
.char-system-intro {
padding: 16px 18px;
}
.char-system-intro p {
font-size: 13px;
line-height: 1.8;
}
.char-part-title {
font-size: 18px;
letter-spacing: 2px;
margin: 28px 0 14px;
}

/* Character system: basic grid single column */
.char-basic-grid {
grid-template-columns: 1fr;
gap: 12px;
margin-bottom: 32px;
}
.char-basic-card {
padding: 18px 16px;
text-align: left;
display: flex;
gap: 14px;
align-items: flex-start;
}
.char-basic-icon {
width: 40px;
height: 40px;
margin: 0;
flex-shrink: 0;
}
.char-basic-icon svg {
width: 18px;
height: 18px;
}
.char-basic-card h5 {
font-size: 15px;
margin: 0 0 4px 0;
letter-spacing: 1px;
text-align: left;
}
.char-basic-card p {
font-size: 12.5px;
line-height: 1.6;
text-align: left;
}

/* Character system: growth blocks */
.char-growth-block {
margin-bottom: 16px;
}
.char-growth-header {
padding: 14px 16px;
flex-direction: column;
align-items: flex-start;
gap: 4px;
}
.char-growth-name {
font-size: 17px;
letter-spacing: 2px;
}
.char-growth-tag {
font-size: 10px;
letter-spacing: 1.5px;
}
.char-growth-body {
padding: 16px;
}
.char-growth-row {
flex-direction: column;
gap: 4px;
margin-bottom: 12px;
}
.char-growth-label {
width: auto;
padding-left: 10px;
font-size: 13px;
letter-spacing: 1px;
}
.char-growth-text {
font-size: 13px;
line-height: 1.7;
word-break: keep-all;
overflow-wrap: anywhere;
writing-mode: horizontal-tb;
white-space: normal;
}
.char-growth-items {
grid-template-columns: 1fr;
gap: 10px;
margin-top: 14px;
padding-top: 14px;
}
.char-growth-item {
padding: 12px 14px;
gap: 6px;
}
.char-item-name {
font-size: 14px;
}
.char-item-effect {
font-size: 12.5px;
line-height: 1.6;
word-break: keep-all;
overflow-wrap: anywhere;
writing-mode: horizontal-tb;
white-space: normal;
}

/* --- Shop / Mall: same card stack as PC (no icons), keep descriptions --- */
.shop-grid-3,
.shop-info-grid {
grid-template-columns: 1fr;
gap: 16px;
}
.shop-item-card {
padding: 28px 20px 20px;
text-align: center;
display: flex;
flex-direction: column;
align-items: stretch;
gap: 0;
position: relative;
overflow: hidden;
}
.shop-item-icon,
.shop-item-card > .shop-item-icon {
display: none !important;
}
.shop-item-body {
flex: none;
min-width: 0;
width: 100%;
}
.shop-item-name {
font-size: 17px;
letter-spacing: 1px;
margin-bottom: 8px;
text-align: center;
line-height: 1.4;
}
.shop-item-desc {
font-size: 13px;
margin-bottom: 16px;
min-height: 40px;
line-height: 1.6;
text-align: center;
color: var(--ink-dim);
white-space: pre-line;
word-break: keep-all;
overflow-wrap: anywhere;
}
.shop-item-price {
font-size: 24px;
text-align: center;
margin-bottom: 6px;
}
.shop-item-origin {
margin-bottom: 16px;
text-align: center;
}
.shop-item-btn,
a.shop-item-btn {
display: block;
width: 100%;
box-sizing: border-box;
text-align: center;
padding: 14px 12px;
font-size: 15px;
letter-spacing: 2px;
text-decoration: none;
margin-top: 8px;
}
.shop-item-price .currency {
font-size: 13px;
}

/* Currency grid: single column */
.currency-grid {
grid-template-columns: 1fr;
gap: 12px;
margin-bottom: 24px;
}
.currency-card {
padding: 18px 20px;
text-align: left;
display: flex;
align-items: center;
gap: 16px;
}
.currency-card h4 {
font-size: 16px;
letter-spacing: 2px;
}
.currency-card p {
font-size: 13px;
}

/* Mall overview */
.mall-overview {
padding: 16px 18px;
margin-bottom: 24px;
}
.mall-overview p {
font-size: 13px;
line-height: 1.8;
}

/* --- System cards: vertical stack, full image --- */
.systems-list { gap: 14px; }
.system-card {
flex-direction: column;
}
.system-card-img {
width: 100%;
height: 200px;
border-right: none;
border-bottom: 1px solid var(--line-gold);
}
.system-card-img img {
width: 100%;
height: 100%;
object-fit: contain;
object-position: center top;
}
.system-card-body {
padding: 18px 20px 20px;
}
.system-card-body h4 {
font-size: 17px;
letter-spacing: 2px;
}
.system-card-body p {
font-size: 13px;
line-height: 1.8;
}

/* Mall system cards: vertical */
.mall-systems-list .system-card {
min-height: auto;
}
.mall-systems-list .system-card-img {
width: 100%;
padding: 20px;
height: 260px;
}
.mall-systems-list .system-card-img img {
width: 100%;
height: 100%;
object-fit: contain;
}
.mall-systems-list .system-card-body {
width: 100%;
padding: 18px 20px 22px;
}
.mall-systems-list .system-card-body h4 {
font-size: 17px;
letter-spacing: 2px;
}
.mall-systems-list .system-card-body p {
font-size: 13px;
line-height: 1.8;
}

/* --- Community header --- */
.community-header {
margin-bottom: 24px;
gap: 12px;
flex-wrap: wrap;
}
.community-header h2 {
font-size: 20px;
letter-spacing: 2px;
}
.btn-post {
padding: 8px 16px;
font-size: 12px;
letter-spacing: 1px;
min-height: 36px;
}

/* --- Post list: single column, full text, no truncation --- */
.post-list {
gap: 0;
margin-bottom: 28px;
}
.post-item {
flex-direction: column;
align-items: flex-start;
gap: 10px;
padding: 16px 14px;
position: relative;
}
.post-avatar {
width: 36px;
height: 36px;
font-size: 14px;
position: absolute;
top: 16px;
left: 14px;
}
.post-main {
width: 100%;
padding-left: 48px;
min-width: 0;
}
.post-title {
font-size: 14.5px;
line-height: 1.55;
white-space: normal;
overflow: visible;
display: flex;
align-items: flex-start;
gap: 8px;
flex-wrap: wrap;
word-break: keep-all;
overflow-wrap: anywhere;
}
.post-tag {
padding: 1px 6px;
font-size: 10px;
letter-spacing: 0.5px;
flex-shrink: 0;
margin-top: 2px;
}
.post-meta {
font-size: 11.5px;
gap: 10px;
flex-wrap: wrap;
margin-top: 6px;
padding-left: 48px;
}
.post-stats {
gap: 14px;
font-size: 11.5px;
padding-left: 48px;
margin-top: 2px;
}
.post-item:hover {
background: none;
}
.post-item:hover .post-title { color: var(--ink); }

/* --- Q&A list: mobile --- */
.qa-list {
gap: 12px;
margin-bottom: 28px;
}
.qa-item {
flex-direction: row;
gap: 14px;
padding: 16px 14px;
align-items: flex-start;
}
.qa-item:hover {
border-color: var(--line-gold);
box-shadow: none;
}
.qa-votes {
min-width: 44px;
flex-shrink: 0;
}
.qa-votes .num {
font-size: 20px;
}
.qa-votes .label {
font-size: 9px;
letter-spacing: 1px;
}
.qa-main {
min-width: 0;
flex: 1;
}
.qa-question {
font-size: 14px;
line-height: 1.55;
margin-bottom: 8px;
word-break: keep-all;
overflow-wrap: anywhere;
}
.qa-item:hover .qa-question { color: var(--ink); }
.qa-tags {
flex-wrap: wrap;
gap: 5px;
margin-bottom: 8px;
}
.qa-tag {
padding: 2px 7px;
font-size: 10.5px;
}
.qa-meta {
font-size: 11px;
gap: 10px;
flex-wrap: wrap;
align-items: center;
}
.qa-status {
padding: 2px 7px;
font-size: 10px;
}

/* --- Community / gallery: 2 columns --- */  /* --- Community / gallery: 2 columns --- */
.gallery-masonry {
column-count: 2;
column-gap: 10px;
margin-bottom: 30px;
}
.gallery-masonry-item {
margin-bottom: 10px;
break-inside: avoid;
}
.gallery-masonry-item img {
width: 100%;
height: auto;
object-fit: contain;
}
.gallery-masonry-info {
padding: 10px;
}
.gallery-masonry-title {
font-size: 12px;
line-height: 1.4;
margin-bottom: 4px;
}
.gallery-masonry-meta {
font-size: 10px;
flex-direction: column;
gap: 2px;
}

/* Media tabs: horizontal scroll */
.media-tabs {
overflow-x: auto;
overflow-y: hidden;
-webkit-overflow-scrolling: touch;
flex-wrap: nowrap;
scrollbar-width: none;
gap: 4px;
}

/* --- Wiki page tabs: allow wrap for long Korean labels --- */
#wikiContent .sub-tabs {
flex-wrap: nowrap;
overflow-x: auto;
overflow-y: hidden;
-webkit-overflow-scrolling: touch;
justify-content: flex-start;
scrollbar-width: none;
}
#wikiContent .sub-tabs::-webkit-scrollbar { display: none; }
#wikiContent .sub-tab {
padding: 10px 14px;
font-size: 12.5px;
letter-spacing: 0.5px;
white-space: normal;
flex-shrink: 0;
min-height: 44px;
text-align: center;
line-height: 1.3;
word-break: keep-all;
overflow-wrap: anywhere;
writing-mode: horizontal-tb;
display: inline-flex;
align-items: center;
justify-content: center;
}
.media-tabs::-webkit-scrollbar { display: none; }
.media-tab {
padding: 10px 16px;
white-space: nowrap;
flex-shrink: 0;
font-size: 13px;
letter-spacing: 1px;
min-height: 40px;
}

/* --- Wiki / item grids: 2 columns, full images --- */
.wiki-grid {
grid-template-columns: repeat(2, 1fr);
gap: 12px;
}
.wiki-card-img {
height: 110px;
}
.wiki-card-img img {
width: 100%;
height: 100%;
object-fit: contain;
}
.wiki-card-body {
padding: 10px 12px;
}
.wiki-card-body h4 {
font-size: 13px;
letter-spacing: 1px;
word-break: keep-all;
overflow-wrap: anywhere;
white-space: normal;
}
.wiki-card-body p {
font-size: 11.5px;
line-height: 1.6;
word-break: keep-all;
overflow-wrap: anywhere;
white-space: normal;
}

/* --- Community gallery (사진동영상): force horizontal text on mobile --- */
#communityContent .media-panel,
#communityContent .media-section,
#communityContent .video-grid,
#communityContent .image-grid,
#communityContent .gallery-masonry {
writing-mode: horizontal-tb;
text-orientation: mixed;
}
#communityContent .video-title,
#communityContent .video-desc,
#communityContent .image-card-title,
#communityContent .image-card-meta,
#communityContent .media-sec-title,
#communityContent .media-sec-title span,
#communityContent .gallery-masonry-title,
#communityContent .gallery-masonry-meta,
#communityContent .gallery-masonry-meta span,
#communityContent .video-duration,
#communityContent .media-tab {
writing-mode: horizontal-tb !important;
white-space: normal;
word-break: keep-all;
overflow-wrap: anywhere;
text-orientation: mixed !important;
}
/* Video grid: 1 column on mobile */
#communityContent .video-grid {
grid-template-columns: 1fr;
gap: 16px;
}
#communityContent .video-info {
padding: 12px 14px 16px;
}
#communityContent .video-title {
font-size: 14px;
line-height: 1.5;
}
#communityContent .video-desc {
font-size: 12px;
line-height: 1.6;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
/* Image grid: 2 columns on mobile */
#communityContent .image-grid {
grid-template-columns: repeat(2, 1fr);
gap: 12px;
}
#communityContent .image-card-info {
padding: 8px 10px 10px;
text-align: center;
}
#communityContent .image-card-title {
font-size: 12.5px;
line-height: 1.4;
margin-bottom: 2px;
}
#communityContent .image-card-meta {
font-size: 11px;
line-height: 1.3;
}
/* Section titles: smaller, allow wrap */
#communityContent .media-sec-title {
font-size: 15px;
letter-spacing: 2px;
margin-bottom: 14px;
gap: 10px;
}
#communityContent .media-sec-title span {
flex-shrink: 0;
text-align: center;
}
/* Gallery masonry: 2 columns, horizontal text */
#communityContent .gallery-masonry {
column-count: 2;
column-gap: 10px;
}
#communityContent .gallery-masonry-item {
break-inside: avoid;
}
#communityContent .gallery-masonry-info {
padding: 8px 10px;
}
#communityContent .gallery-masonry-title {
font-size: 12px;
line-height: 1.4;
margin-bottom: 4px;
}
#communityContent .gallery-masonry-meta {
font-size: 10px;
flex-direction: column;
gap: 2px;
}

/* --- Event / news cards: single column --- */
.event-cards-grid {
grid-template-columns: 1fr;
gap: 14px;
}
.event-card {
display: flex;
gap: 14px;
align-items: center;
}
.event-card-img {
width: 120px;
height: 80px;
flex-shrink: 0;
}
.event-card-img img {
width: 100%;
height: 100%;
object-fit: cover;
}
.event-card-body {
padding: 12px 12px 12px 0;
flex: 1;
min-width: 0;
}
.event-card-body h4 {
font-size: 14px;
letter-spacing: 1px;
margin-bottom: 4px;
white-space: normal;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.event-card-body p {
font-size: 12px;
margin: 0;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}

/* --- Battle / dungeon grids: single column --- */
.battle-layout-grid {
grid-template-columns: 1fr;
gap: 14px;
}
.battle-card {
padding: 18px 16px;
}
.dungeon-grid {
grid-template-columns: 1fr;
gap: 12px;
}
.dungeon-grid.two-col { grid-template-columns: 1fr; }
.dungeon-grid.three-col { grid-template-columns: 1fr; }
.dungeon-card {
padding: 16px 14px;
}
.dungeon-card-head {
padding-bottom: 10px;
margin-bottom: 10px;
gap: 10px;
}
.dungeon-icon {
width: 36px;
height: 36px;
}
.dungeon-icon svg {
width: 18px;
height: 18px;
}
.dungeon-name {
font-size: 15px;
letter-spacing: 1px;
}
.dungeon-tag {
font-size: 9px;
padding: 2px 6px;
}
.dungeon-list li {
font-size: 12.5px;
padding: 3px 0 3px 14px;
line-height: 1.7;
}

/* --- Growth / skill grids: 2 columns --- */
.growth-grid,
.skill-grid {
grid-template-columns: repeat(2, 1fr);
gap: 12px;
}
.growth-card {
padding: 18px 12px;
}
.growth-card h3 {
font-size: 14px;
letter-spacing: 1px;
}
.growth-card p {
font-size: 11.5px;
line-height: 1.6;
word-break: keep-all;
overflow-wrap: anywhere;
white-space: normal;
}
.growth-icon {
width: 40px; height: 40px;
margin: 0 auto 10px;
}
.growth-icon svg {
width: 32px; height: 32px;
}
.growth-en {
font-size: 9px;
letter-spacing: 1px;
margin-bottom: 8px;
}

/* --- Skill system grid --- */
.skill-system-grid {
grid-template-columns: repeat(2, 1fr);
gap: 12px;
}
.skill-system-card {
padding: 18px 14px;
}
.skill-system-card h4 {
font-size: 14px;
letter-spacing: 1px;
}
.skill-system-card p {
font-size: 12px;
line-height: 1.6;
word-break: keep-all;
overflow-wrap: anywhere;
white-space: normal;
}
.skill-system-icon {
width: 40px;
height: 40px;
margin: 0 auto 10px;
}
.skill-system-icon svg {
width: 20px;
height: 20px;
}
.skill-system-intro p {
white-space: normal !important;
word-break: keep-all;
overflow-wrap: anywhere;
line-height: 1.8;
}

/* --- Detail modal: fullscreen, scrollable --- */
.detail-modal-inner {
border-radius: 0;
}
.detail-modal-header {
padding: 14px 16px;
}
.detail-modal-title {
font-size: 17px;
letter-spacing: 3px;
}
.detail-back-btn {
padding: 6px 12px;
font-size: 12px;
min-height: 32px;
}
.detail-modal-body {
padding: 24px 16px 40px;
}
.detail-section { margin-bottom: 32px; }
.detail-section-title {
font-size: 18px;
letter-spacing: 2px;
}
.detail-section-title em {
font-size: 10px;
letter-spacing: 2px;
}
.detail-section-title::after {
width: 50px;
margin: 10px auto 20px;
}
.detail-intro {
padding: 16px 18px;
margin-bottom: 24px;
}
.detail-intro p {
font-size: 13px;
line-height: 1.8;
text-indent: 2em;
}
.detail-sub-title {
font-size: 15px;
letter-spacing: 2px;
margin-bottom: 14px;
padding-left: 10px;
border-left-width: 2px;
}

/* --- Video modal: fullscreen --- */
.video-modal {
padding: 0;
}
.video-modal-content {
max-width: 100%;
width: 100%;
height: 100%;
border: none;
border-radius: 0;
display: flex;
flex-direction: column;
}
.video-modal-header {
padding: 14px 16px;
flex-shrink: 0;
}
.vm-title {
font-size: 15px;
letter-spacing: 1px;
}
.vm-duration {
font-size: 11px;
padding: 2px 8px;
}
.video-modal-close {
top: 10px;
right: 10px;
width: 34px;
height: 34px;
}
.video-modal-player {
flex: none;
aspect-ratio: 16 / 9;
width: 100%;
max-height: 50vh;
}
.video-modal-player img {
width: 100%;
height: 100%;
object-fit: cover;
}
.video-modal-desc {
padding: 14px 16px 20px;
font-size: 13px;
line-height: 1.7;
overflow-y: auto;
flex: 1;
}

/* --- World / intro text --- */
.world-intro {
padding: 16px 18px;
}
.world-intro p {
font-size: 13.5px;
line-height: 1.8;
}

/* --- Benefits lists --- */
.benefits-list {
padding-left: 20px;
}
.benefits-list li {
font-size: 13px;
padding-left: 20px;
line-height: 1.7;
}

/* --- News list items in sub pages --- */
.news-item {
padding: 14px 16px;
}
.news-title {
font-size: 14px;
line-height: 1.5;
}
.news-meta {
font-size: 11.5px;
}

/* --- Image cards (community) --- */
.image-cards-grid {
grid-template-columns: 1fr;
gap: 14px;
}
.image-card-img {
aspect-ratio: 16 / 9;
}
.image-card-img img {
width: 100%;
height: 100%;
object-fit: cover;
}

/* --- Screenshot showcase (sub pages) --- */
.screenshot-showcase {
grid-template-columns: 1fr;
gap: 12px;
}
.screenshot-item img {
width: 100%;
height: auto;
object-fit: contain;
}
}

@media (max-width: 480px) {
.page-hero { height: 180px; }
.page-hero-title { font-size: 20px; letter-spacing: 2px; }
.page-hero-sub { font-size: 9px; letter-spacing: 2px; }

.page-content { padding: 28px 14px; }
.page-section-title { margin-bottom: 24px; }
.page-section-title h2 { font-size: 18px; letter-spacing: 2px; }
.page-section-title .deco-line::before,
.page-section-title .deco-line::after { width: 30px; }

/* Wiki: 2 columns, smaller */
#wikiContent .page-section-title h2 {
font-size: 16px;
white-space: normal;
word-break: keep-all;
overflow-wrap: anywhere;
line-height: 1.4;
padding: 0 2px;
}
.wiki-grid { gap: 10px; }
.wiki-card-img { height: 90px; }
.wiki-card-body { padding: 8px 10px; }
.wiki-card-body h4 { font-size: 12px; word-break: keep-all; overflow-wrap: anywhere; white-space: normal; }
.wiki-card-body p { font-size: 11px; word-break: keep-all; overflow-wrap: anywhere; white-space: normal; line-height: 1.5; }

/* Growth/skill: 2 columns stay */
.growth-grid, .skill-grid { gap: 10px; }
.growth-card { padding: 14px 10px; }
.growth-card h3 { font-size: 13px; }
.growth-card p { font-size: 11px; line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; white-space: normal; }
.growth-icon { width: 36px; height: 36px; margin-bottom: 8px; }
.growth-icon svg { width: 28px; height: 28px; }
.growth-en { font-size: 8px; margin-bottom: 6px; letter-spacing: 1px; }

/* Class cards: shorter height */
.intro-class-img-wrap { height: 240px; }
.intro-class-info { padding: 16px; }
.intro-class-name { font-size: 16px; letter-spacing: 1px; }

/* Shop items: compact vertical cards (PC structure), no icons */
.shop-item-card { padding: 24px 16px 16px; }
.shop-item-icon { display: none !important; }
.shop-item-name { font-size: 16px; margin-bottom: 6px; }
.shop-item-desc { font-size: 12.5px; min-height: 36px; margin-bottom: 14px; }
.shop-item-price { font-size: 22px; margin-bottom: 4px; text-align: center; }
.shop-item-btn,
a.shop-item-btn { padding: 13px 12px; font-size: 14px; margin-top: 6px; }

.system-card-img { height: 160px; }
.mall-systems-list .system-card-img { height: 200px; padding: 16px; }

.gallery-masonry { column-count: 2; column-gap: 8px; }
.gallery-masonry-item { margin-bottom: 8px; }
.gallery-masonry-info { padding: 8px; }
.gallery-masonry-title { font-size: 11px; }

.map-timeline { padding-left: 42px; }
.map-timeline::before { left: 10px; }
.map-tl-dot { width: 34px; height: 34px; left: -42px; }
.map-tl-dot span { font-size: 11px; }
.map-tl-content { padding: 12px 14px; }
.map-tl-content h4 { font-size: 15px; letter-spacing: 1px; }
.map-tl-content p { font-size: 12.5px; }
}



/* ==========================================================================
   Laravel 适配（offline 无此项）：≤768 折行导航；职业图走 mobile 路径
   ========================================================================== */
@media (max-width: 768px) {
  .nav-toggle {
    display: none !important;
  }
  .nav-menu {
    display: flex !important;
    position: static !important;
    max-height: none !important;
    overflow: visible !important;
    background: transparent !important;
    border-bottom: none !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    order: 3;
    width: 100%;
  }
  .nav.open .nav-menu {
    display: flex !important;
  }
  .nav-locale {
    font-size: 11px;
    padding: 4px 8px;
  }
  .download-guide-link {
    margin-top: 14px;
    text-align: center;
  }
  .class-img {
    background-image: var(--class-img-m, var(--class-img-pc)) !important;
  }
  .form-input {
    font-size: 16px;
    max-width: 100%;
  }
}
