/* =====================================================================
   皮肤布局：arcade —— 像素街机（机台大厅 + HIGH SCORES + CREDIT）
   ---------------------------------------------------------------------
   骨架特征：等宽字体、3px 硬边框 + 4px 无模糊投影、方括号导航、
   闪烁的「INSERT COIN」、机台式卡片（屏幕 + 名牌 + 投币价）。
   ===================================================================== */

.ac-header {
    background: var(--bg);
    border-bottom: 3px solid var(--text);
}
.ac-topline {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 6px 18px;
    font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
    color: var(--muted); border-bottom: 1px dashed var(--line-soft);
}
.ac-blink { color: var(--accent); animation: ac-blink 1.1s steps(1, end) infinite; }
@keyframes ac-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: .15; } }
.ac-coin { color: var(--accent-2); }

.ac-nav {
    max-width: 1320px; margin: 0 auto;
    display: flex; align-items: center; gap: 10px;
    padding: 12px 18px;
}
.ac-logo {
    font-size: 18px; font-weight: 700; letter-spacing: .1em;
    color: var(--accent); text-shadow: 3px 3px 0 #000;
    background: none; -webkit-text-fill-color: currentColor;
}
.ac-logo:hover { color: var(--accent-2); }
.ac-navlinks { display: flex; gap: 8px; flex: 1; flex-wrap: wrap; }
.ac-navlinks a {
    padding: 5px 10px; border: 2px solid var(--line);
    background: var(--panel); color: var(--text-soft);
    font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
    border-radius: 0; box-shadow: 3px 3px 0 #000;
    transition: transform .1s, box-shadow .1s, color .1s, border-color .1s;
}
.ac-navlinks a::after { display: none; }
.ac-navlinks a:hover {
    color: var(--bg); background: var(--accent); border-color: var(--accent);
    transform: translate(-1px, -1px); box-shadow: 4px 4px 0 #000;
}
.ac-account { gap: 10px; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.ac-account a { color: var(--text-soft); }
.ac-account a:hover { color: var(--accent); }
.ac-account .lang-switch { background: var(--panel); border: 2px solid var(--line); border-radius: 0; }
.ac-account .lang-switch a { border-radius: 0; padding: 2px 8px; font-size: 10px; }
.ac-account .lang-switch a.is-current { background: var(--accent); color: var(--bg); }

.ac-main { max-width: 1320px; padding: 0 18px 60px; }

/* 首屏：机台屏幕 */
.ac-hero {
    margin: 18px 0 22px;
    border: 3px solid var(--text);
    box-shadow: 6px 6px 0 #000;
    min-height: 340px;
    border-radius: 0;
}
.ac-hero-content { padding: 26px 28px; gap: 10px; max-width: 620px; }
.ac-hero-content h1 { font-size: 40px; text-shadow: 3px 3px 0 #000; }
.ac-hero .hero-description { font-size: 13px; color: var(--text-soft); }

/* 状态条：PRESS START 搜索 + 投币统计 */
.ac-strip {
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px; margin-bottom: 18px;
}
.ac-search {
    display: flex; align-items: center; gap: 10px;
    border: 2px solid var(--text); box-shadow: 4px 4px 0 #000;
    background: var(--panel); padding: 0 12px; height: 44px;
}
.ac-search span { color: var(--accent); font-size: 11px; letter-spacing: .1em; }
.ac-search input {
    flex: 1; min-width: 0; border: 0; background: transparent;
    color: var(--text); font: inherit; font-size: 13px;
}
.ac-search input:focus { outline: none; }
.ac-search button {
    border: 2px solid var(--line); background: var(--panel-2); color: var(--text);
    font: inherit; font-size: 11px; letter-spacing: .1em; padding: 4px 10px;
    box-shadow: 3px 3px 0 #000; cursor: pointer;
}
.ac-search button:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.ac-credits { display: flex; gap: 8px; }
.ac-credit {
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    min-width: 82px; padding: 4px 10px;
    border: 2px solid var(--line); box-shadow: 3px 3px 0 #000;
    background: var(--panel);
}
.ac-credit b { font-size: 15px; color: var(--accent); line-height: 1.1; }
.ac-credit span { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.ac-credit:hover { border-color: var(--accent); }

/* 机台大厅 */
.ac-hall-title {
    display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
    margin: 26px 0 14px;
    font-size: 13px; letter-spacing: .2em; text-transform: uppercase;
    border-bottom: 2px solid var(--line);
    padding-bottom: 8px;
}
.ac-hall-title h2 { margin: 0; font-size: 13px; letter-spacing: .2em; }
.ac-hall-title a { font-size: 10px; letter-spacing: .14em; color: var(--accent); }

.ac-cabs {
    display: grid; gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
}
.ac-cab {
    display: flex; flex-direction: column;
    background: var(--panel); border: 2px solid var(--line);
    box-shadow: 4px 4px 0 #000;
    transition: transform .1s, box-shadow .1s, border-color .1s;
}
.ac-cab:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #000; border-color: var(--accent); }
.ac-screen {
    position: relative; display: block; aspect-ratio: 1 / 1;
    overflow: hidden; background: #000;
    border-bottom: 2px solid var(--line);
}
.ac-screen img { width: 100%; height: 100%; object-fit: cover; image-rendering: auto; }
.ac-screen::after {
    content: ""; position: absolute; inset: 0;
    background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px);
    pointer-events: none;
}
.ac-fallback {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%; color: var(--accent); font-size: 34px; font-weight: 700;
}
.ac-flag {
    position: absolute; left: 6px; top: 6px; z-index: 2;
    background: var(--accent-2); color: #fff;
    font-size: 9px; letter-spacing: .08em; padding: 2px 6px;
    box-shadow: 2px 2px 0 #000;
}
.ac-cabname {
    padding: 8px 10px 4px; font-size: 12.5px; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ac-cabmeta {
    padding: 0 10px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
    color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ac-cabfoot {
    margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 6px;
    padding: 8px 10px; border-top: 2px dashed var(--line-soft);
    font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
}
.ac-cabprice { color: var(--accent); }
.ac-cabprice.is-free { color: var(--success); }
.ac-cabscore { color: var(--muted); }

/* HIGH SCORES */
.ac-scores { border: 2px solid var(--line); box-shadow: 4px 4px 0 #000; background: var(--panel); }
.ac-score {
    display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto;
    gap: 12px; align-items: center;
    padding: 9px 12px; border-bottom: 2px dashed var(--line-soft);
    color: var(--text);
}
.ac-score:last-child { border-bottom: 0; }
.ac-score:hover { background: var(--panel-2); }
.ac-score-no { color: var(--accent); font-size: 12px; }
.ac-score-name { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-score-pts { color: var(--accent-2); font-size: 12.5px; }
.ac-score-art {
    width: 34px; height: 34px; border: 2px solid var(--line); overflow: hidden; background: #000;
}
.ac-score-art img { width: 100%; height: 100%; object-fit: cover; }

/* 底部 CREDIT */
.ac-footer { border-top: 3px solid var(--text); background: var(--bg); }
.ac-footer-in {
    max-width: 1320px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 12px 18px; flex-wrap: wrap;
    font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.ac-footer-links { display: flex; gap: 14px; }
.ac-footer-links a { color: var(--muted); }
.ac-footer-links a:hover { color: var(--accent); }

/* 内页：机台化 */
.skin-arcade .section { padding: 22px 0; }
.skin-arcade .section-heading {
    align-items: baseline; border-bottom: 2px solid var(--line);
    padding-bottom: 8px; margin-bottom: 16px;
}
.skin-arcade .section-heading h1,
.skin-arcade .section-heading h2 { font-size: 16px; letter-spacing: .14em; text-transform: uppercase; }
.skin-arcade .section-kicker { font-size: 10px; color: var(--accent-2); }
.skin-arcade .game-grid { grid-template-columns: repeat(auto-fill, minmax(188px, 1fr)); gap: 14px; }
.skin-arcade .game-card {
    display: flex; flex-direction: column; gap: 6px; padding: 8px;
    border: 2px solid var(--line); box-shadow: 3px 3px 0 #000;
}
.skin-arcade .game-card:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 #000; }
.skin-arcade .game-card-icon,
.skin-arcade .rank-item .game-card-icon { width: 100%; border-radius: 0; }
.skin-arcade .game-card-body { padding: 0; }
.skin-arcade .game-card-price { background: transparent; border: 0; padding: 0; color: var(--accent); font-size: 11px; }
.skin-arcade .game-card-price.is-free { color: var(--success); background: transparent; }
.skin-arcade .filter-bar { border: 2px solid var(--line); border-radius: 0; box-shadow: 4px 4px 0 #000; }
.skin-arcade .filter-option { border-radius: 0; border-width: 2px; }
.skin-arcade .content-page, .skin-arcade .auth-card, .skin-arcade .detail-hero { border-radius: 0; border-width: 2px; }
.skin-arcade .btn { border-radius: 0; box-shadow: 3px 3px 0 #000; }
.skin-arcade .rank-item { padding-left: 0; }
.skin-arcade .rank-no { top: 6px; left: 6px; transform: none; font-size: 22px; text-shadow: 2px 2px 0 #000; }

@media (max-width: 720px) {
    .ac-topline { font-size: 9px; }
    .ac-nav { flex-wrap: wrap; }
    .ac-toggle { display: inline-block; }
    .ac-navlinks {
        display: none; position: absolute; z-index: 2;
        top: calc(100% + 4px); left: 10px; right: 10px;
        flex-direction: column;
        background: var(--panel); border: 2px solid var(--text);
        box-shadow: 4px 4px 0 #000; padding: 8px;
    }
    .ac-navlinks.is-open { display: flex; }
    .ac-navlinks a { box-shadow: none; }
    .ac-header { position: relative; }
    .ac-main { padding: 0 12px 40px; }
    .ac-hero { min-height: 240px; }
    .ac-hero-content { padding: 18px; }
    .ac-hero-content h1 { font-size: 26px; }
    .ac-strip { grid-template-columns: 1fr; }
    .ac-credits { flex-wrap: wrap; }
    .ac-cabs, .skin-arcade .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ac-score { grid-template-columns: 32px minmax(0, 1fr) auto; }
    .ac-score-art { display: none; }
}
