@import url('/assets/css/fonts-local.css');

body[data-theme="playtesting"] {
    --font-body: 'Manrope', 'Space Grotesk', sans-serif;
    --font-heading: 'Space Grotesk', 'Manrope', sans-serif;
    --pt-bg: #f4efe6;
    --pt-bg-deep: #fbf7ef;
    --pt-ink: #111827;
    --pt-ink-soft: rgba(17, 24, 39, 0.72);
    --pt-surface: rgba(255, 251, 245, 0.92);
    --pt-surface-strong: rgba(255, 255, 255, 0.98);
    --pt-line: rgba(17, 24, 39, 0.1);
    --pt-shadow: 0 24px 64px rgba(17, 24, 39, 0.12);
    --pt-shadow-soft: 0 16px 34px rgba(17, 24, 39, 0.08);
    --pt-primary: #ea580c;
    --pt-primary-deep: #c2410c;
    --pt-secondary: #0f766e;
    --pt-secondary-deep: #115e59;
    --pt-chip: rgba(234, 88, 12, 0.1);
    --pt-chip-ghost: rgba(15, 118, 110, 0.1);
    --pt-ok: #166534;
    --pt-ok-bg: rgba(22, 101, 52, 0.12);
    --pt-error: #b91c1c;
    --pt-error-bg: rgba(185, 28, 28, 0.1);
    color: var(--pt-ink);
    font-family: var(--font-body);
    background:
        radial-gradient(circle at top left, rgba(234, 88, 12, 0.16), transparent 38%),
        radial-gradient(circle at top right, rgba(15, 118, 110, 0.18), transparent 42%),
        linear-gradient(180deg, #fffaf1 0%, #f5efe3 44%, #efe6d8 100%);
    min-height: 100vh;
}

body[data-theme="playtesting"]::before,
body[data-theme="playtesting"]::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

body[data-theme="playtesting"]::before {
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(17, 24, 39, 0.03) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 92%);
}

body[data-theme="playtesting"]::after {
    background:
        radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.56), transparent 18%),
        radial-gradient(circle at 82% 8%, rgba(255, 255, 255, 0.36), transparent 20%);
}

body[data-theme="playtesting"] .site-header {
    background: rgba(16, 23, 40, 0.84);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(16, 23, 40, 0.26);
    backdrop-filter: blur(18px);
}

body[data-theme="playtesting"] .site-header__inner {
    gap: 1.5rem;
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
}

body[data-theme="playtesting"] .logo,
body[data-theme="playtesting"] .logo a {
    color: #fff8ef;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body[data-theme="playtesting"] .site-nav {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.2rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body[data-theme="playtesting"] .site-nav__list {
    gap: 0.55rem 0.8rem;
}

body[data-theme="playtesting"] .nav-link {
    color: rgba(255, 248, 239, 0.9);
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: none;
    font-variant-caps: normal;
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

body[data-theme="playtesting"] .nav-link:hover,
body[data-theme="playtesting"] .nav-link.is-active {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    transform: translateY(-1px);
}

body[data-theme="playtesting"] .site-nav__submenu {
    background: rgba(17, 24, 39, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px rgba(17, 24, 39, 0.35);
}

body[data-theme="playtesting"] .site-nav__submenu .nav-link {
    color: rgba(255, 248, 239, 0.92);
}

body[data-theme="playtesting"] .language-switch a {
    color: rgba(255, 248, 239, 0.82);
    border-color: rgba(255, 255, 255, 0.12);
}

body[data-theme="playtesting"] .language-switch a.is-active {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

body[data-theme="playtesting"] .portal-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem;
}

body[data-theme="playtesting"] .portal-header__link,
body[data-theme="playtesting"] .portal-header__profile {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    color: #fff8ef;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease;
}

body[data-theme="playtesting"] .portal-header__link:hover,
body[data-theme="playtesting"] .portal-header__profile:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.14);
}

body[data-theme="playtesting"] .portal-header__link--ghost {
    background: transparent;
}

body[data-theme="playtesting"] .portal-header__link--primary {
    background: linear-gradient(135deg, var(--pt-primary), #fb923c);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 14px 30px rgba(234, 88, 12, 0.28);
}

body[data-theme="playtesting"] .portal-header__avatar {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pt-primary), var(--pt-secondary));
    color: #fff;
    font-size: 0.9rem;
}

body[data-theme="playtesting"] .portal-header__badge {
    min-width: 1.35rem;
    height: 1.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #fff8ef;
    color: var(--pt-primary-deep);
    font-size: 0.76rem;
    font-weight: 800;
}

body[data-theme="playtesting"] main.content-area {
    padding-bottom: 4rem;
}

body[data-theme="playtesting"] .portal-flash {
    width: min(1180px, calc(100% - 2rem));
    margin: 1.5rem auto 0;
    border-radius: 1.2rem;
    box-shadow: var(--pt-shadow-soft);
}

body[data-theme="playtesting"] .portal-flash__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border-radius: inherit;
    border: 1px solid var(--pt-line);
    background: var(--pt-surface-strong);
}

body[data-theme="playtesting"] .portal-flash--ok .portal-flash__inner {
    background: linear-gradient(135deg, rgba(22, 101, 52, 0.11), rgba(255, 255, 255, 0.98));
    border-color: rgba(22, 101, 52, 0.18);
}

body[data-theme="playtesting"] .portal-flash--error .portal-flash__inner {
    background: linear-gradient(135deg, rgba(185, 28, 28, 0.08), rgba(255, 255, 255, 0.98));
    border-color: rgba(185, 28, 28, 0.18);
}

body[data-theme="playtesting"] .portal-flash__secret {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0.8rem;
    border-radius: 0.9rem;
    background: rgba(17, 24, 39, 0.06);
}

body[data-theme="playtesting"] .portal-flash__secret code,
body[data-theme="playtesting"] .portal-secret-box code {
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

body[data-theme="playtesting"] .content-shell,
body[data-theme="playtesting"] .content-block,
body[data-theme="playtesting"] .bb-article,
body[data-theme="playtesting"] .listing-card,
body[data-theme="playtesting"] .news-card {
    background: var(--pt-surface);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: var(--pt-shadow);
    backdrop-filter: blur(10px);
}

body[data-theme="playtesting"] .portal-hero,
body[data-theme="playtesting"] .portal-listing-hero,
body[data-theme="playtesting"] .portal-copy-page,
body[data-theme="playtesting"] .portal-dashboard,
body[data-theme="playtesting"] .portal-profile,
body[data-theme="playtesting"] .portal-detail {
    animation: portal-rise 0.5s ease-out;
}

body[data-theme="playtesting"] .portal-hero,
body[data-theme="playtesting"] .portal-listing-hero {
    display: grid;
    gap: 1.6rem;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: 1.8rem;
    background:
        linear-gradient(140deg, rgba(255, 255, 255, 0.9), rgba(255, 248, 239, 0.76)),
        radial-gradient(circle at top right, rgba(15, 118, 110, 0.14), transparent 38%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--pt-shadow);
}

body[data-theme="playtesting"] .portal-listing-hero {
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.9fr);
}

body[data-theme="playtesting"] .portal-eyebrow {
    margin: 0 0 0.6rem;
    color: var(--pt-primary-deep);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 800;
    font-size: 0.8rem;
}

body[data-theme="playtesting"] .portal-hero h1,
body[data-theme="playtesting"] .portal-listing-hero h1,
body[data-theme="playtesting"] .portal-copy-page h1,
body[data-theme="playtesting"] .portal-detail h1,
body[data-theme="playtesting"] .portal-dashboard h1,
body[data-theme="playtesting"] .portal-profile h1,
body[data-theme="playtesting"] .portal-auth-card h1 {
    margin: 0;
    color: #0f172a;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.8rem);
    line-height: 0.95;
}

body[data-theme="playtesting"] .portal-hero p,
body[data-theme="playtesting"] .portal-listing-hero p,
body[data-theme="playtesting"] .portal-copy-page p,
body[data-theme="playtesting"] .portal-card p,
body[data-theme="playtesting"] .portal-admin-card p {
    color: var(--pt-ink-soft);
}

body[data-theme="playtesting"] .portal-hero__actions,
body[data-theme="playtesting"] .portal-detail__actions,
body[data-theme="playtesting"] .portal-card__actions,
body[data-theme="playtesting"] .portal-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

body[data-theme="playtesting"] .portal-button,
body[data-theme="playtesting"] .portal-download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 2.9rem;
    padding: 0.78rem 1.1rem;
    border: 1px solid transparent;
    border-radius: 1rem;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

body[data-theme="playtesting"] .portal-button:hover,
body[data-theme="playtesting"] .portal-download-button:hover {
    transform: translateY(-1px);
}

body[data-theme="playtesting"] .portal-button--primary,
body[data-theme="playtesting"] .portal-download-button {
    background: linear-gradient(135deg, var(--pt-primary), #fb923c);
    color: #fff;
    box-shadow: 0 14px 30px rgba(234, 88, 12, 0.22);
}

body[data-theme="playtesting"] .portal-button--secondary {
    background: linear-gradient(135deg, var(--pt-secondary), #14b8a6);
    color: #fff;
    box-shadow: 0 14px 30px rgba(15, 118, 110, 0.2);
}

body[data-theme="playtesting"] .portal-button--ghost {
    background: rgba(17, 24, 39, 0.04);
    color: var(--pt-ink);
    border-color: rgba(17, 24, 39, 0.08);
}

body[data-theme="playtesting"] .portal-hero__stats,
body[data-theme="playtesting"] .portal-stat-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-theme="playtesting"] .portal-hero__stats article,
body[data-theme="playtesting"] .portal-stat-grid article {
    padding: 1.1rem;
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(17, 24, 39, 0.08);
    box-shadow: var(--pt-shadow-soft);
}

body[data-theme="playtesting"] .portal-hero__stats strong,
body[data-theme="playtesting"] .portal-stat-grid strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.6rem;
}

body[data-theme="playtesting"] .portal-section {
    margin-top: 2.2rem;
}

body[data-theme="playtesting"] .portal-section__header,
body[data-theme="playtesting"] .portal-section__intro {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

body[data-theme="playtesting"] .portal-section__header h2,
body[data-theme="playtesting"] .portal-section__intro h2,
body[data-theme="playtesting"] .portal-panel-card h3,
body[data-theme="playtesting"] .portal-meta-card h3 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 2vw, 1.6rem);
}

body[data-theme="playtesting"] .portal-section--split,
body[data-theme="playtesting"] .portal-detail__grid,
body[data-theme="playtesting"] .portal-dashboard__columns {
    display: grid;
    gap: 1.3rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-theme="playtesting"] .portal-feature-grid,
body[data-theme="playtesting"] .portal-card-grid {
    display: grid;
    gap: 1.15rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

body[data-theme="playtesting"] .portal-card-grid--profiles {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

body[data-theme="playtesting"] .portal-feature-card,
body[data-theme="playtesting"] .portal-card,
body[data-theme="playtesting"] .portal-panel-card,
body[data-theme="playtesting"] .portal-admin-card,
body[data-theme="playtesting"] .portal-meta-card,
body[data-theme="playtesting"] .portal-version-card,
body[data-theme="playtesting"] .portal-status-card,
body[data-theme="playtesting"] .portal-auth-card {
    border-radius: 1.4rem;
    border: 1px solid rgba(17, 24, 39, 0.08);
    background: var(--pt-surface-strong);
    box-shadow: var(--pt-shadow-soft);
}

body[data-theme="playtesting"] .portal-feature-card,
body[data-theme="playtesting"] .portal-panel-card,
body[data-theme="playtesting"] .portal-meta-card,
body[data-theme="playtesting"] .portal-version-card,
body[data-theme="playtesting"] .portal-status-card,
body[data-theme="playtesting"] .portal-auth-card,
body[data-theme="playtesting"] .portal-admin-card {
    padding: 1.2rem;
}

body[data-theme="playtesting"] .portal-card {
    overflow: hidden;
}

body[data-theme="playtesting"] .portal-card img {
    width: 100%;
    height: 210px;
    display: block;
    object-fit: cover;
}

body[data-theme="playtesting"] .portal-card__body {
    padding: 1.15rem;
}

body[data-theme="playtesting"] .portal-card__body h3,
body[data-theme="playtesting"] .portal-card__body h3 a {
    color: var(--pt-ink);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.35rem;
}

body[data-theme="playtesting"] .portal-card__subtitle {
    margin-top: 0.2rem;
    font-weight: 700;
    color: var(--pt-primary-deep);
}

body[data-theme="playtesting"] .portal-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 0.9rem;
    color: var(--pt-ink-soft);
    font-size: 0.92rem;
}

body[data-theme="playtesting"] .portal-card--profile {
    text-align: center;
}

body[data-theme="playtesting"] .portal-card__avatar,
body[data-theme="playtesting"] .portal-profile__avatar {
    width: 4rem;
    height: 4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pt-primary), var(--pt-secondary));
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
}

body[data-theme="playtesting"] .portal-detail__hero,
body[data-theme="playtesting"] .portal-profile__hero {
    display: grid;
    gap: 1.4rem;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr);
    margin-bottom: 1.5rem;
}

body[data-theme="playtesting"] .portal-detail__subtitle {
    margin: 0.6rem 0 0;
    font-size: 1.1rem;
    color: var(--pt-primary-deep);
    font-weight: 700;
}

body[data-theme="playtesting"] .portal-detail__lead {
    margin: 0.8rem 0 0;
    font-size: 1.05rem;
    color: var(--pt-ink-soft);
}

body[data-theme="playtesting"] .portal-detail__media,
body[data-theme="playtesting"] .portal-detail__copy,
body[data-theme="playtesting"] .portal-prose,
body[data-theme="playtesting"] .portal-aside {
    display: grid;
    gap: 1rem;
}

body[data-theme="playtesting"] .portal-detail__cover,
body[data-theme="playtesting"] .portal-gallery img {
    width: 100%;
    display: block;
    border-radius: 1.3rem;
    object-fit: cover;
}

body[data-theme="playtesting"] .portal-gallery {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body[data-theme="playtesting"] .portal-prose,
body[data-theme="playtesting"] .portal-copy-page {
    padding: 1.4rem;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(17, 24, 39, 0.08);
}

body[data-theme="playtesting"] .portal-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

body[data-theme="playtesting"] .portal-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    background: var(--pt-chip);
    color: var(--pt-primary-deep);
    font-size: 0.86rem;
    font-weight: 800;
}

body[data-theme="playtesting"] .portal-chip--ghost {
    background: var(--pt-chip-ghost);
    color: var(--pt-secondary-deep);
}

body[data-theme="playtesting"] .portal-link-list,
body[data-theme="playtesting"] .portal-attachment-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

body[data-theme="playtesting"] .portal-link-list a,
body[data-theme="playtesting"] .portal-attachment-list a,
body[data-theme="playtesting"] .portal-section__header a {
    color: var(--pt-secondary-deep);
    font-weight: 700;
    text-decoration: none;
}

body[data-theme="playtesting"] .portal-vote-stats {
    display: inline-flex;
    align-items: baseline;
    gap: 0.7rem;
    font-family: var(--font-heading);
}

body[data-theme="playtesting"] .portal-vote-stats strong {
    font-size: 2rem;
}

body[data-theme="playtesting"] .portal-vote-form,
body[data-theme="playtesting"] .portal-inline-form,
body[data-theme="playtesting"] .portal-inline-report {
    display: grid;
    gap: 0.8rem;
}

body[data-theme="playtesting"] .portal-status-card {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    width: fit-content;
}

body[data-theme="playtesting"] .portal-status-card span {
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.06);
    font-size: 0.85rem;
    font-weight: 800;
}

body[data-theme="playtesting"] .portal-form {
    display: grid;
    gap: 0.9rem;
}

body[data-theme="playtesting"] .portal-form--two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-theme="playtesting"] .portal-form__full,
body[data-theme="playtesting"] .portal-checkbox-group,
body[data-theme="playtesting"] .portal-checkbox {
    grid-column: 1 / -1;
}

body[data-theme="playtesting"] .portal-form label,
body[data-theme="playtesting"] .portal-form fieldset {
    display: grid;
    gap: 0.45rem;
    margin: 0;
}

body[data-theme="playtesting"] .portal-form span,
body[data-theme="playtesting"] .portal-form legend {
    font-size: 0.9rem;
    font-weight: 800;
    color: #0f172a;
}

body[data-theme="playtesting"] .portal-checkbox-group,
body[data-theme="playtesting"] .portal-checkbox {
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(17, 24, 39, 0.08);
    background: rgba(17, 24, 39, 0.03);
}

body[data-theme="playtesting"] input[type="text"],
body[data-theme="playtesting"] input[type="email"],
body[data-theme="playtesting"] input[type="password"],
body[data-theme="playtesting"] input[type="url"],
body[data-theme="playtesting"] input[type="number"],
body[data-theme="playtesting"] input[type="datetime-local"],
body[data-theme="playtesting"] input[type="file"],
body[data-theme="playtesting"] select,
body[data-theme="playtesting"] textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(17, 24, 39, 0.12);
    background: rgba(255, 255, 255, 0.9);
    color: var(--pt-ink);
    font: inherit;
    box-shadow: inset 0 1px 1px rgba(17, 24, 39, 0.03);
}

body[data-theme="playtesting"] textarea {
    min-height: 9rem;
    resize: vertical;
}

body[data-theme="playtesting"] input:focus,
body[data-theme="playtesting"] select:focus,
body[data-theme="playtesting"] textarea:focus {
    outline: none;
    border-color: rgba(234, 88, 12, 0.5);
    box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.12);
}

body[data-theme="playtesting"] .portal-filter-bar {
    display: grid;
    gap: 0.8rem;
    align-content: start;
}

body[data-theme="playtesting"] .portal-dashboard {
    display: grid;
    gap: 1.4rem;
}

body[data-theme="playtesting"] .portal-dashboard__hero {
    display: grid;
    gap: 1rem;
    padding: 1.5rem 1.6rem;
    border-radius: 1.6rem;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.95), rgba(30, 41, 59, 0.9));
    color: #fff8ef;
    box-shadow: 0 20px 42px rgba(17, 24, 39, 0.22);
}

body[data-theme="playtesting"] .portal-dashboard__hero p,
body[data-theme="playtesting"] .portal-dashboard__hero .portal-eyebrow {
    color: rgba(255, 248, 239, 0.84);
}

body[data-theme="playtesting"] .portal-dashboard__hero h1 {
    color: #fff8ef;
    font-size: clamp(1.8rem, 4vw, 3.1rem);
}

body[data-theme="playtesting"] .portal-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

body[data-theme="playtesting"] .portal-subnav a {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    color: rgba(255, 248, 239, 0.86);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    font-weight: 700;
}

body[data-theme="playtesting"] .portal-subnav a.is-active {
    background: linear-gradient(135deg, var(--pt-primary), #fb923c);
    color: #fff;
    border-color: transparent;
}

body[data-theme="playtesting"] .portal-panel,
body[data-theme="playtesting"] .portal-panel--grid {
    display: grid;
    gap: 1.2rem;
}

body[data-theme="playtesting"] .portal-panel--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-theme="playtesting"] .portal-mini-list,
body[data-theme="playtesting"] .portal-notification-list,
body[data-theme="playtesting"] .portal-comment-list,
body[data-theme="playtesting"] .portal-thread-list {
    display: grid;
    gap: 0.8rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

body[data-theme="playtesting"] .portal-mini-list li,
body[data-theme="playtesting"] .portal-notification,
body[data-theme="playtesting"] .portal-comment,
body[data-theme="playtesting"] .portal-thread {
    display: grid;
    gap: 0.45rem;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(17, 24, 39, 0.08);
    background: rgba(17, 24, 39, 0.03);
}

body[data-theme="playtesting"] .portal-mini-list li {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

body[data-theme="playtesting"] .portal-thread__messages {
    display: grid;
    gap: 0.6rem;
}

body[data-theme="playtesting"] .portal-thread__message {
    padding: 0.8rem 0.9rem;
    border-radius: 0.95rem;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(17, 24, 39, 0.06);
}

body[data-theme="playtesting"] .portal-preference-grid,
body[data-theme="playtesting"] .portal-rule-grid {
    display: grid;
    gap: 0.85rem;
}

body[data-theme="playtesting"] .portal-preference-row,
body[data-theme="playtesting"] .portal-rule-grid article {
    display: grid;
    gap: 0.45rem;
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(17, 24, 39, 0.03);
    border: 1px solid rgba(17, 24, 39, 0.07);
}

body[data-theme="playtesting"] .portal-comments {
    margin-top: 1.4rem;
    display: grid;
    gap: 1rem;
}

body[data-theme="playtesting"] .portal-empty,
body[data-theme="playtesting"] .portal-placeholder-card {
    padding: 1.2rem;
    border-radius: 1.2rem;
    text-align: center;
    color: var(--pt-ink-soft);
    background: rgba(17, 24, 39, 0.04);
    border: 1px dashed rgba(17, 24, 39, 0.12);
}

body[data-theme="playtesting"] .portal-secret-box {
    display: inline-flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(255, 255, 255, 0.94));
    border: 1px solid rgba(15, 118, 110, 0.16);
}

body[data-theme="playtesting"] .portal-download-button {
    justify-content: space-between;
    width: 100%;
}

body[data-theme="playtesting"] .portal-download-button span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.88rem;
}

body[data-theme="playtesting"] .portal-auth-page {
    display: grid;
    place-items: center;
    padding: 2rem 0;
}

body[data-theme="playtesting"] .portal-auth-card {
    width: min(720px, 100%);
    padding: 1.6rem;
}

body[data-theme="playtesting"] .portal-auth-card--wide {
    width: min(900px, 100%);
}

body[data-theme="playtesting"] .portal-auth-card__meta {
    margin: 0.8rem 0 0;
}

body[data-theme="playtesting"] .legal-block {
    margin-bottom: 1.4rem;
    padding: 1.2rem;
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(17, 24, 39, 0.08);
}

body[data-theme="playtesting"] .footer-highlight {
    background: rgba(16, 23, 40, 0.94);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

body[data-theme="playtesting"] .footer-highlight__title,
body[data-theme="playtesting"] .footer-highlight__subtitle,
body[data-theme="playtesting"] .footer-highlight__legal {
    color: #fff8ef;
}

@keyframes portal-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1100px) {
    body[data-theme="playtesting"] .portal-hero,
    body[data-theme="playtesting"] .portal-listing-hero,
    body[data-theme="playtesting"] .portal-detail__hero,
    body[data-theme="playtesting"] .portal-section--split,
    body[data-theme="playtesting"] .portal-detail__grid,
    body[data-theme="playtesting"] .portal-panel--grid,
    body[data-theme="playtesting"] .portal-dashboard__columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    body[data-theme="playtesting"] .site-header__inner,
    body[data-theme="playtesting"] .portal-header {
        gap: 0.8rem;
    }

    body[data-theme="playtesting"] .portal-form--two-column,
    body[data-theme="playtesting"] .portal-hero__stats,
    body[data-theme="playtesting"] .portal-stat-grid,
    body[data-theme="playtesting"] .portal-gallery {
        grid-template-columns: 1fr;
    }

    body[data-theme="playtesting"] .portal-hero,
    body[data-theme="playtesting"] .portal-listing-hero,
    body[data-theme="playtesting"] .portal-dashboard__hero,
    body[data-theme="playtesting"] .portal-card__body,
    body[data-theme="playtesting"] .portal-panel-card,
    body[data-theme="playtesting"] .portal-admin-card,
    body[data-theme="playtesting"] .portal-auth-card {
        padding: 1.1rem;
    }

    body[data-theme="playtesting"] .portal-hero h1,
    body[data-theme="playtesting"] .portal-listing-hero h1,
    body[data-theme="playtesting"] .portal-detail h1,
    body[data-theme="playtesting"] .portal-dashboard h1,
    body[data-theme="playtesting"] .portal-profile h1,
    body[data-theme="playtesting"] .portal-auth-card h1 {
        font-size: clamp(1.8rem, 10vw, 2.7rem);
    }

    body[data-theme="playtesting"] .portal-flash__inner {
        align-items: flex-start;
        flex-direction: column;
    }

    body[data-theme="playtesting"] .portal-mini-list li {
        grid-template-columns: 1fr;
    }
}
