/* PocketLabWorks faithful restore — theme-slot DOM replica, own skin.
   Capture 20250327105337 (theme-slot shell), palette: deep navy + sky blue + amber. */
:root {
    --accent: #1f8ef1;
    --accent-dark: #0e6ec2;
    --amber: #ffb020;
    --header-bg: #0b1a2e;
    --footer-bg: #081222;
    --ink: #16222e;
    --muted: #5b6b7a;
    --paper: #ffffff;
    --cloud: #f1f6fb;
    --line: #dbe6f0;
}

*, :after, :before { box-sizing: border-box; }

body, h1, h2, h3, h4, p, ul, ol, li, blockquote, figure, figcaption { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }

body {
    background: var(--paper);
    color: var(--ink);
    font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    min-height: 100vh;
    text-rendering: optimizeSpeed;
}

a { text-decoration: none; color: var(--accent-dark); }
a:hover { color: var(--accent); }
img { display: block; max-width: 100%; height: auto; }
button { border: none; font: inherit; cursor: pointer; }

.container {
    margin-left: auto;
    margin-right: auto;
    max-width: 1180px;
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
}

/* ---------- header (~56px) ---------- */
.header {
    background: var(--header-bg);
    border-bottom: 2px solid var(--accent);
    padding: 6px 0;
    position: sticky;
    top: 0;
    z-index: 50;
}
.header-wrap {
    align-items: center;
    display: grid;
    grid-template-columns: max-content 1fr max-content;
    gap: 18px;
    min-height: 44px;
}
.header-logo__img { height: 40px; width: auto; }
.menu-wrap {
    align-items: center;
    display: grid;
    grid-template-columns: 1fr max-content;
    gap: 18px;
}
.main-nav { text-align: right; }
.main-nav__list { display: inline-flex; flex-wrap: wrap; gap: 26px; }
.nav-item { font-size: 15px; font-weight: 600; position: relative; }
.nav-item__link { color: #eaf2fa; letter-spacing: .2px; }
.nav-item__link:hover, .nav-item--active .nav-item__link { color: var(--amber); }
.btn a {
    background: linear-gradient(180deg, var(--amber), #f59e0b);
    border-radius: 999px;
    color: #231a04;
    display: block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .3px;
    padding: 9px 26px;
}
.btn a:hover { filter: brightness(1.06); color: #231a04; }
.menu-mob-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 8px;
    display: none;
    height: 38px;
    position: relative;
    width: 42px;
}
.menu-mob-btn:before, .menu-mob-btn:after,
.menu-mob-btn span {
    background: #fff;
    border-radius: 2px;
    content: "";
    height: 2px;
    left: 10px;
    position: absolute;
    right: 10px;
}
.menu-mob-btn:before { top: 11px; }
.menu-mob-btn span { top: 18px; }
.menu-mob-btn:after { top: 25px; }

@media (max-width: 820px) {
    .header-wrap { grid-template-columns: max-content 1fr max-content; }
    .menu-mob-btn { display: block; justify-self: end; }
    .menu-wrap {
        background: var(--header-bg);
        border-top: 1px solid rgba(255,255,255,.12);
        display: none;
        left: 0;
        padding: 18px 20px 22px;
        position: absolute;
        right: 0;
        top: 100%;
    }
    .menu-wrap.-toggle { display: block; }
    .menu-wrap .main-nav { text-align: left; }
    .menu-wrap .main-nav__list { display: block; }
    .menu-wrap .nav-item { padding: 9px 0; }
    .menu-wrap .btn { margin-top: 12px; width: fit-content; }
}

/* ---------- main / article ---------- */
.main { padding: 34px 0 44px; }
.post-entry { max-width: 880px; margin: 0 auto; }
.post-entry h1 {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 22px;
}
.post-entry h2 {
    border-left: 4px solid var(--accent);
    font-size: 24px;
    line-height: 1.25;
    margin: 34px 0 14px;
    padding-left: 12px;
}
.post-entry h3 { font-size: 20px; margin: 24px 0 10px; }
.post-entry h4 { font-size: 17px; margin: 20px 0 8px; }
.post-entry p { margin: 0 0 14px; }
.post-entry ul:not([class]), .post-entry ol:not([class]), .post-entry ul.list {
    margin: 0 0 16px;
    padding-left: 22px;
}
.post-entry ul:not([class]) li, .post-entry ul.list li { list-style: disc; margin-bottom: 8px; }
.post-entry ol:not([class]) li { list-style: decimal; margin-bottom: 8px; }
.post-entry blockquote {
    background: var(--cloud);
    border-left: 4px solid var(--amber);
    border-radius: 0 10px 10px 0;
    margin: 0 0 16px;
    padding: 14px 18px;
}
.post-entry figure { margin: 20px 0; }
.post-entry figcaption {
    color: var(--muted);
    font-size: 13px;
    margin-top: 8px;
    text-align: center;
}
.post-entry figure img, .wp-block-image img { border-radius: 12px; }
.wp-block-image { margin: 20px 0; }

/* ---------- game box (capture component) ---------- */
.game-wrapper { margin: 6px 0 26px; }
.box__game-main { position: relative; }
.box__game-main img { border-radius: 14px; width: 100%; }
.play-btn {
    background: rgba(11,26,46,.55);
    border: 2px solid rgba(255,255,255,.85);
    border-radius: 50%;
    display: block;
    height: 84px;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 84px;
}
.play-btn:after {
    border-bottom: 16px solid transparent;
    border-left: 26px solid #fff;
    border-top: 16px solid transparent;
    content: "";
    left: 32px;
    position: absolute;
    top: 24px;
}
.play-btn:hover { background: rgba(31,142,241,.75); }

/* ---------- tables ---------- */
.article-table-wrap { margin: 18px 0 22px; overflow-x: auto; }
.article-table {
    border-collapse: collapse;
    font-size: 15px;
    min-width: 560px;
    width: 100%;
}
.article-table th {
    background: var(--header-bg);
    color: #fff;
    font-weight: 600;
    padding: 11px 14px;
    text-align: left;
}
.article-table td {
    border-bottom: 1px solid var(--line);
    padding: 10px 14px;
    vertical-align: top;
}
.article-table tr:nth-child(even) td { background: var(--cloud); }
.article-table td a { font-weight: 600; }

/* ---------- notes / rg ---------- */
.note {
    background: var(--cloud);
    border: 1px solid var(--line);
    border-radius: 10px;
    margin: 22px 0;
    padding: 14px 18px;
}
.note ul { margin: 8px 0 0; padding-left: 20px; }
.note ul li { list-style: disc; margin-bottom: 6px; }
.rgblock {
    background: #0e2233;
    border-radius: 12px;
    color: #dcebf7;
    margin: 26px 0;
    padding: 18px 20px;
}
.rgblock strong { color: var(--amber); }
.rgblock a { color: #8fc7f7; font-weight: 600; }
.rgblock p { margin: 0 0 8px; }
.rgblock p:last-child { margin-bottom: 0; }

/* ---------- crumbs ---------- */
.crumbs {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 16px;
}
.crumbs a { color: var(--accent-dark); }

/* ---------- cards hub ---------- */
.cards {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(3, 1fr);
    margin: 22px 0;
}
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow .15s ease;
}
.card:hover { box-shadow: 0 10px 26px rgba(11,26,46,.12); }
.card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.card-body { padding: 16px 18px 18px; }
.card-body h2 {
    border: none;
    font-size: 17px;
    line-height: 1.3;
    margin: 0 0 8px;
    padding: 0;
}
.card-body h2 a { color: var(--ink); }
.card-body h2 a:hover { color: var(--accent-dark); }
.card-body p { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.card-more { font-size: 14px; font-weight: 700; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

/* ---------- faq (details/summary, capture classes) ---------- */
.faq-block { margin: 30px 0 10px; }
.faq-block--title { border-left: 4px solid var(--accent); font-size: 24px; margin-bottom: 16px; padding-left: 12px; }
.faq-block--items__item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-bottom: 10px;
}
.faq-block--items__item--header {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    padding: 14px 46px 14px 16px;
    position: relative;
}
.faq-block--items__item--header::-webkit-details-marker { display: none; }
.faq-block--items__item--header:after {
    color: var(--accent-dark);
    content: "+";
    font-size: 22px;
    font-weight: 700;
    position: absolute;
    right: 16px;
    top: 10px;
}
.faq-block--items__item[open] .faq-block--items__item--header:after { content: "–"; }
.faq-block--items__item--content { padding: 0 16px 14px; color: #2a3947; }

/* ---------- rg bar + footer ---------- */
.rg-bar {
    background: #10202f;
    color: #cfe3f2;
    font-size: 14px;
    padding: 12px 0;
}
.rg-bar strong { color: var(--amber); }
.rg-bar a { color: #8fc7f7; font-weight: 600; }
.footer { background: var(--footer-bg); color: #b9cbdc; padding: 34px 0 22px; }
.footer-wrap {
    display: grid;
    gap: 26px;
    grid-template-columns: 1fr 1fr;
}
.footer-logo { height: 44px; width: auto; }
.footer-left__text { font-size: 14px; margin-top: 14px; max-width: 460px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: flex-end; }
.footer-nav a { color: #dcebf7; font-size: 15px; font-weight: 600; }
.footer-nav a:hover { color: var(--amber); }
.footer-info {
    align-items: center;
    border-top: 1px solid rgba(255,255,255,.12);
    display: flex;
    gap: 14px;
    margin-top: 24px;
    padding-top: 18px;
}
.badge18 {
    background: var(--amber);
    border-radius: 8px;
    color: #231a04;
    flex: none;
    font-size: 15px;
    font-weight: 800;
    padding: 5px 10px;
}
.footer-info__txt { font-size: 13px; }
@media (max-width: 820px) {
    .footer-wrap { grid-template-columns: 1fr; }
    .footer-nav { justify-content: flex-start; }
    .post-entry h1 { font-size: 26px; }
}

/* home orientation table links */
.article-table td:first-child { font-weight: 600; }
