/* ================================================================
   PHYNARIA THEME v3 — Accueil et pages internes
   ================================================================ */

/* ══════════════════════════════════════════════════════════════
   ACCUEIL
══════════════════════════════════════════════════════════════ */
.ph-home-hero {
    position: relative;
    padding: 5.5rem 0 4.5rem;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    isolation: isolate;
}
/* Grille fine, estompée */
.ph-home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 20%, #000 10%, transparent 75%);
    mask-image: radial-gradient(ellipse 80% 70% at 30% 20%, #000 10%, transparent 75%);
}
/* Image de fond facultative (paramètre « background » d'Azuriom) */
.ph-home-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -3;
    background-size: cover;
    background-position: center;
    opacity: .16;
    filter: grayscale(.3);
    -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent);
    mask-image: linear-gradient(180deg, #000 40%, transparent);
}

.ph-home-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3.5rem; align-items: center; }

.ph-badge {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .3rem .75rem .3rem .35rem;
    margin-bottom: 1.6rem;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    font-size: .8rem;
    color: var(--muted);
    background: rgba(255, 255, 255, .02);
}
.ph-badge img { height: 20px; width: auto; }
.ph-badge strong { color: var(--white); font-weight: 600; }

.ph-home-title {
    font-weight: 600;
    font-size: clamp(2.5rem, 6vw, 4.4rem);
    line-height: 1.02;
    letter-spacing: -.05em;
    margin: 0 0 1.3rem;
    text-wrap: balance;
}
.ph-home-title .mc { color: var(--minecraft); }
.ph-home-title .dl { color: var(--dauntless); }
.ph-home-sub { color: var(--muted); font-size: 1.08rem; line-height: 1.65; max-width: 520px; margin: 0 0 2rem; text-wrap: pretty; }
.ph-home-actions { display: flex; flex-wrap: wrap; gap: .7rem; }

/* Statut en direct des deux serveurs */
.ph-live { display: grid; gap: .75rem; }
.ph-live-row {
    --accent: var(--minecraft);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--white);
    transition: border-color .25s, background .25s;
}
a.ph-live-row:hover { color: var(--white); border-color: var(--border-strong); background: var(--surface-2); }
.ph-live-row.dauntless { --accent: var(--dauntless); }
.ph-live-icon {
    width: 42px; height: 42px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    font-size: 1.1rem;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}
.ph-live-name { font-weight: 600; font-size: .95rem; letter-spacing: -.01em; }
.ph-live-meta { display: flex; align-items: center; gap: .45rem; font-size: .8rem; color: var(--muted); margin-top: .15rem; }
.ph-live-count { text-align: right; font-weight: 600; font-size: 1.5rem; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.ph-live-count small { display: block; font-size: .7rem; font-weight: 500; color: var(--faint); letter-spacing: 0; margin-top: .25rem; }
.ph-live-total { display: flex; justify-content: space-between; padding: .2rem .25rem 0; font-family: var(--font-mono); font-size: .75rem; color: var(--faint); }

/* IP copiable */
.ph-ip {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .35rem .35rem .35rem .85rem;
    border-radius: 10px;
    border: 1px solid var(--border-strong);
    background: var(--bg-2);
    color: var(--white);
    font-family: var(--font-mono);
    font-size: .85rem;
    cursor: pointer;
    transition: border-color .2s;
}
.ph-ip:hover { border-color: rgba(255, 255, 255, .25); }
.ph-ip-btn { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .6rem; border-radius: 7px; background: var(--surface-3); color: var(--muted); font-family: var(--font); font-size: .75rem; }
.ph-ip.is-copied { border-color: var(--minecraft); }
.ph-ip.is-copied .ph-ip-btn { color: var(--minecraft); }

/* Les deux univers */
.ph-worlds { --worlds: 2; display: grid; grid-template-columns: repeat(var(--worlds), minmax(0, 1fr)); gap: 1.25rem; }
.ph-world {
    --accent: var(--minecraft);
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-radius: 20px;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid var(--border);
    background: var(--surface);
    transition: border-color .3s, transform .4s var(--ease-out);
}
.ph-world.dauntless { --accent: var(--dauntless); }
.ph-world:hover { border-color: color-mix(in srgb, var(--accent) 35%, transparent); transform: translateY(-3px); }

.ph-world-media { position: relative; height: 128px; overflow: hidden; border-bottom: 1px solid var(--border); }
.ph-world-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.ph-world:hover .ph-world-media img { transform: scale(1.04); }
.ph-world-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(18, 19, 23, .85)); }
/* Motif par défaut quand aucune image n'est choisie */
.ph-world-media.is-pattern { background: var(--surface-2); }
.ph-world.minecraft .ph-world-media.is-pattern {
    background-image:
        linear-gradient(color-mix(in srgb, var(--minecraft) 14%, transparent) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--minecraft) 14%, transparent) 1px, transparent 1px),
        radial-gradient(ellipse at 70% 120%, color-mix(in srgb, var(--minecraft) 30%, transparent), transparent 60%);
    background-size: 22px 22px, 22px 22px, 100% 100%;
}
.ph-world.dauntless .ph-world-media.is-pattern {
    background-image:
        radial-gradient(circle at 75% 110%, color-mix(in srgb, var(--dauntless) 35%, transparent), transparent 55%),
        repeating-radial-gradient(circle at 75% 110%, transparent 0 28px, color-mix(in srgb, var(--dauntless) 10%, transparent) 28px 29px);
}
.ph-world-media .ph-world-glyph {
    position: absolute;
    right: 1.5rem; bottom: 1.25rem;
    z-index: 1;
    font-size: 2.6rem;
    color: color-mix(in srgb, var(--accent) 55%, transparent);
    transition: transform .6s var(--ease-out);
}
.ph-world:hover .ph-world-glyph { transform: translateY(-4px); }

.ph-world-body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem 1.35rem 1.35rem; }
.ph-world-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .9rem; }
.ph-world-tag { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.ph-world-status { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; color: var(--muted); }
.ph-world-name { font-weight: 600; font-size: 1.3rem; letter-spacing: -.035em; line-height: 1.15; margin: 0 0 .5rem; }
.ph-world-desc { color: var(--muted); font-size: .9rem; line-height: 1.6; margin: 0 0 1.1rem; max-width: 46ch; }
.ph-world-stats { display: flex; align-items: flex-end; gap: 2rem; margin-top: auto; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.ph-world-stat-label { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin-bottom: .35rem; }
.ph-world-stat-value { font-weight: 600; font-size: 1.6rem; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.ph-world-stat-value small { font-size: .55em; color: var(--muted); font-weight: 500; }
.ph-world-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.25rem; }

/* Discord */
.ph-discord {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
}
.ph-discord-intro { padding: 2.25rem; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--border); }
.ph-discord-logo { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; font-size: 1.35rem; color: #fff; background: #5865f2; margin-bottom: 1.25rem; }
.ph-discord-intro h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -.035em; margin: 0 0 .6rem; }
.ph-discord-intro p { color: var(--muted); margin: 0 0 1.5rem; max-width: 44ch; }
.ph-discord-widget { padding: 1.5rem; display: flex; flex-direction: column; min-height: 320px; background: var(--bg-2); }
.ph-discord-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.ph-discord-name { font-weight: 600; font-size: .95rem; }
.ph-discord-online { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; color: var(--muted); }
.ph-discord-online .ph-online-dot { background: #3ba55d; }
.ph-discord-members { display: grid; gap: .15rem; align-content: start; overflow: hidden; flex: 1; max-height: 300px; -webkit-mask-image: linear-gradient(180deg, #000 75%, transparent); mask-image: linear-gradient(180deg, #000 75%, transparent); }
.ph-discord-member { display: flex; align-items: center; gap: .65rem; padding: .4rem .5rem; border-radius: 8px; font-size: .88rem; color: var(--muted); }
.ph-discord-member:hover { background: rgba(255, 255, 255, .03); color: var(--white); }
.ph-discord-avatar { position: relative; flex-shrink: 0; }
.ph-discord-avatar img { width: 28px; height: 28px; border-radius: 50%; display: block; background: var(--surface-3); }
.ph-discord-avatar::after { content: ''; position: absolute; right: -2px; bottom: -2px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--bg-2); background: #3ba55d; }
.ph-discord-avatar.idle::after { background: #faa61a; }
.ph-discord-avatar.dnd::after { background: #ed4245; }
.ph-discord-member .game { margin-left: auto; font-size: .74rem; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.ph-discord-iframe { width: 100%; flex: 1; min-height: 360px; border: 0; border-radius: 12px; }

/* ══════════════════════════════════════════════════════════════
   CONTENEUR GÉNÉRIQUE & EN-TÊTE DE PAGE
══════════════════════════════════════════════════════════════ */
.ph-content { padding-top: 3rem; padding-bottom: 2rem; }
.ph-content > h1 { font-weight: 600; font-size: clamp(1.9rem, 4.5vw, 2.8rem); letter-spacing: -.04em; margin: .5rem 0 2rem; }

.ph-page-hero {
    --accent: var(--white);
    position: relative;
    padding: 3.5rem 0 2.5rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
    isolation: isolate;
}
.ph-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse 60% 100% at 15% 0%, #000 10%, transparent 70%);
    mask-image: radial-gradient(ellipse 60% 100% at 15% 0%, #000 10%, transparent 70%);
}
.ph-page-hero-inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.ph-page-hero-text { min-width: 0; flex: 1 1 420px; }
.ph-page-hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.ph-page-icon {
    flex-shrink: 0;
    width: 46px; height: 46px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    font-size: 1.2rem;
    color: var(--accent);
    background: var(--surface);
    border: 1px solid var(--border-strong);
}
.ph-page-title { font-weight: 600; font-size: clamp(1.9rem, 4.5vw, 2.8rem); line-height: 1.05; letter-spacing: -.045em; margin: 0; text-wrap: balance; }
.ph-page-sub { color: var(--muted); font-size: 1rem; line-height: 1.6; max-width: 620px; margin: .9rem 0 0; }
.ph-page-sub :last-child { margin-bottom: 0; }

.ph-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-bottom: 1rem; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .04em; }
.ph-crumbs a, .ph-crumbs span { color: var(--faint); }
.ph-crumbs a:hover { color: var(--white); }
.ph-crumbs > * + *::before { content: '/'; margin-right: .4rem; color: var(--faint); opacity: .6; }
.ph-crumbs [aria-current] { color: var(--muted); }

/* ── Panneaux ───────────────────────────────────────────────── */
.ph-panel { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.ph-panel.p-0 { padding: 0; }
.ph-panel-head { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.3rem; }
.ph-panel-icon {
    --accent: var(--white);
    flex-shrink: 0;
    width: 38px; height: 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    font-size: 1rem;
    color: var(--accent);
    background: var(--surface-2);
    border: 1px solid var(--border);
}
.ph-panel-title { font-size: 1rem; font-weight: 600; margin: 0; letter-spacing: -.015em; }
.ph-panel-desc { margin: .1rem 0 0; font-size: .84rem; color: var(--muted); }
.ph-sticky { position: sticky; top: 90px; }
.ph-divider { height: 1px; background: var(--border); margin: 1.25rem 0; border: 0; opacity: 1; }

.ph-chip {
    --accent: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .22rem .6rem;
    border-radius: 6px;
    font-size: .74rem;
    font-weight: 500;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 9%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
    white-space: nowrap;
}
.ph-chip.orange { --accent: var(--brand); }
.ph-chip.green  { --accent: var(--minecraft); }
.ph-chip.pink   { --accent: var(--pink); }
.ph-chip.blue   { --accent: var(--dauntless); }
.ph-chip.danger { --accent: var(--danger); }

.ph-mono { font-family: var(--font-mono); }
.ph-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(var(--min, 260px), 1fr)); }
.ph-cycle > * { --accent: var(--white); }

/* ── Formulaires enrichis ───────────────────────────────────── */
.ph-field { margin-bottom: 1.1rem; }
.ph-field-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; font-size: .88rem; }
.ph-field-row a { color: var(--muted); }
.ph-field-row a:hover { color: var(--white); }
.ph-input-icon { position: relative; }
.ph-input-icon > i:first-child { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; font-size: .95rem; }
.ph-input-icon > .form-control { padding-left: 2.5rem; }
.ph-input-icon .ph-eye { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: var(--faint); }
.ph-input-icon .ph-eye:hover { color: var(--white); background: rgba(255, 255, 255, .05); }
.ph-input-icon:has(.ph-eye) > .form-control { padding-right: 2.8rem; }

.ph-strength { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .06); overflow: hidden; margin-top: .5rem; }
.ph-strength > span { display: block; height: 100%; width: 0; transition: width .35s var(--ease-out), background .3s; }
.ph-strength-label { font-size: .75rem; margin-top: .3rem; color: var(--faint); min-height: 1em; }

.ph-drop {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: 1.4rem;
    text-align: center;
    border: 1px dashed var(--border-strong);
    border-radius: 12px;
    background: var(--bg-2);
    color: var(--muted);
    cursor: pointer;
    transition: border-color .2s, background .2s;
}
.ph-drop:hover, .ph-drop.is-over { border-color: rgba(255, 255, 255, .3); background: var(--surface-2); }
.ph-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ph-drop i { font-size: 1.35rem; color: var(--muted); }
.ph-drop strong { color: var(--white); font-weight: 500; font-size: .9rem; }
.ph-drop small { font-size: .76rem; color: var(--faint); }

.ph-checker {
    display: grid;
    place-items: center;
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background-color: var(--bg-2);
    background-image:
        linear-gradient(45deg, rgba(255, 255, 255, .025) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, .025) 75%),
        linear-gradient(45deg, rgba(255, 255, 255, .025) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, .025) 75%);
    background-size: 18px 18px;
    background-position: 0 0, 9px 9px;
}
.ph-pixel { image-rendering: pixelated; image-rendering: crisp-edges; }

/* ── Prose ──────────────────────────────────────────────────── */
.ph-prose { color: #cfd0d6; font-size: 1rem; line-height: 1.8; overflow-wrap: anywhere; }
.ph-prose > :first-child { margin-top: 0; }
.ph-prose > :last-child { margin-bottom: 0; }
.ph-prose h1, .ph-prose h2, .ph-prose h3, .ph-prose h4 { color: var(--white); margin: 2rem 0 .75rem; line-height: 1.25; }
.ph-prose h1 { font-size: 1.8rem; } .ph-prose h2 { font-size: 1.45rem; } .ph-prose h3 { font-size: 1.18rem; } .ph-prose h4 { font-size: 1.02rem; }
.ph-prose p { margin: 0 0 1.1rem; }
.ph-prose a { color: var(--white); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 3px; }
.ph-prose a:hover { text-decoration-color: currentColor; }
.ph-prose img { border-radius: 12px; margin: .5rem 0; }
.ph-prose ul, .ph-prose ol { padding-left: 1.3rem; margin-bottom: 1.1rem; }
.ph-prose li { margin-bottom: .3rem; }
.ph-prose li::marker { color: var(--faint); }
.ph-prose blockquote { margin: 1.5rem 0; padding: .9rem 1.2rem; border-left: 2px solid var(--border-strong); background: var(--surface-2); border-radius: 0 10px 10px 0; color: var(--white); }
.ph-prose code { font-family: var(--font-mono); font-size: .87em; padding: .12em .4em; border-radius: 5px; background: var(--surface-3); color: var(--white); }
.ph-prose pre { padding: 1rem 1.2rem; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); overflow-x: auto; }
.ph-prose pre code { background: none; padding: 0; }
.ph-prose table { width: 100%; margin: 1.25rem 0; border-collapse: collapse; font-size: .93rem; }
.ph-prose th, .ph-prose td { padding: .6rem .75rem; border-bottom: 1px solid var(--border); text-align: left; }
.ph-prose th { color: var(--faint); font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; }
.ph-prose hr { border: 0; height: 1px; background: var(--border); margin: 2rem 0; opacity: 1; }
.ph-prose iframe, .ph-prose video { max-width: 100%; border-radius: 12px; }

/* ══════════════════════════════════════════════════════════════
   BOUTIQUE
══════════════════════════════════════════════════════════════ */
.ph-subnav {
    display: flex;
    align-items: center;
    gap: .25rem;
    padding: .3rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    overflow-x: auto;
    scrollbar-width: none;
}
.ph-subnav::-webkit-scrollbar { display: none; }
.ph-subnav-link { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .85rem; border-radius: 9px; color: var(--muted); font-weight: 500; font-size: .88rem; white-space: nowrap; transition: color .2s, background .2s; }
.ph-subnav-link:hover { color: var(--white); background: rgba(255, 255, 255, .04); }
.ph-subnav-link.active { color: var(--white); background: var(--surface-3); }
.ph-subnav-end { margin-left: auto; display: flex; align-items: center; gap: .25rem; }
.ph-balance { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .8rem; border-radius: 9px; font-family: var(--font-mono); font-size: .82rem; color: var(--white); background: var(--surface-2); border: 1px solid var(--border); white-space: nowrap; }
.ph-balance:hover { color: var(--white); border-color: var(--border-strong); }
.ph-balance i { color: var(--brand); }
.ph-cart-count { min-width: 18px; height: 18px; display: inline-grid; place-items: center; padding: 0 .3rem; border-radius: 5px; background: var(--white); color: #0a0b0d; font-size: .68rem; font-weight: 700; }

.ph-goal { max-width: 460px; }
.ph-goal-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .55rem; font-size: .85rem; color: var(--muted); }
.ph-goal-top strong { font-family: var(--font-mono); font-weight: 500; color: var(--white); }
.ph-goal-bar { position: relative; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.ph-goal-bar > span, .ph-goal-bar > .progress-bar { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--brand); transform-origin: left; animation: bar-grow 1.2s var(--ease-out) both; transition: width .6s var(--ease-out); }

.ph-donor { display: flex; align-items: center; gap: .85rem; padding: .55rem 1rem .55rem .55rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.ph-donor img { width: 40px; height: 40px; border-radius: 9px; }
.ph-donor-label { font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); }
.ph-donor-name { font-weight: 600; font-size: .95rem; }

.ph-cat-tile { min-height: 180px; }
.ph-cat-subs { display: flex; flex-wrap: wrap; gap: .35rem; position: relative; z-index: 2; }
.ph-cat-subs a { padding: .25rem .6rem; border-radius: 6px; font-size: .78rem; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); }
.ph-cat-subs a:hover { color: var(--white); border-color: var(--border-strong); }

.ph-products { --min: 230px; }
.ph-product {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    overflow: hidden;
    cursor: pointer;
    transition: border-color .25s, transform .3s var(--ease-out);
}
.ph-product:hover, .ph-product:focus-visible { border-color: var(--border-strong); transform: translateY(-3px); outline: none; }
.ph-product-media { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; background: var(--bg-2); border-bottom: 1px solid var(--border); }
.ph-product-media img { max-width: 72%; max-height: 72%; object-fit: contain; transition: transform .6s var(--ease-out); }
.ph-product:hover .ph-product-media img { transform: scale(1.05); }
.ph-product-media > i { font-size: 2.6rem; color: var(--faint); }
.ph-product-badges { position: absolute; top: .7rem; left: .7rem; display: flex; flex-wrap: wrap; gap: .3rem; }
.ph-product-badges .ph-chip { background: rgba(10, 11, 13, .8); }
.ph-product-body { display: flex; flex-direction: column; flex: 1; padding: 1rem 1.15rem 1.15rem; }
.ph-product-title { font-size: .98rem; font-weight: 600; letter-spacing: -.015em; margin: 0 0 .35rem; }
.ph-product-desc { font-size: .84rem; color: var(--muted); line-height: 1.5; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ph-product-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: .75rem; margin-top: auto; padding-top: 1rem; }
.ph-price { font-weight: 600; font-size: 1.2rem; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.ph-price-old { font-size: .78rem; color: var(--faint); text-decoration: line-through; margin-bottom: .2rem; }
.ph-product-cta { width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center; border-radius: 9px; color: var(--muted); border: 1px solid var(--border-strong); transition: background .2s, color .2s, border-color .2s; }
.ph-product:hover .ph-product-cta { background: var(--white); border-color: var(--white); color: #0a0b0d; }

.ph-pkg-modal .modal-content { overflow: hidden; }
.ph-pkg-visual { height: 100%; min-height: 260px; display: flex; flex-direction: column; justify-content: flex-end; gap: 1rem; padding: 1.5rem; background: var(--bg-2); border-right: 1px solid var(--border); }
.ph-pkg-visual-media { flex: 1; display: grid; place-items: center; padding: 1rem 0; }
.ph-pkg-visual-media img { max-height: 250px; max-width: 100%; object-fit: contain; }
.ph-pkg-visual-media > i { font-size: 4rem; color: var(--faint); }
.ph-pkg-price { font-weight: 600; font-size: 1.9rem; letter-spacing: -.04em; line-height: 1; }
.ph-pkg-body { display: flex; flex-direction: column; height: 100%; padding: 1.6rem; }
.ph-pkg-desc { max-height: 42vh; overflow-y: auto; padding-right: .5rem; margin: 1rem 0 1.5rem; font-size: .94rem; }
.ph-pkg-actions { margin-top: auto; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.ph-pkg-status { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem; border-radius: 10px; background: var(--surface-2); color: var(--muted); font-size: .9rem; }
.ph-pkg-status.danger { color: #f58d9b; background: rgba(242, 104, 122, .07); }
.ph-icon-btn { width: 36px; height: 36px; flex-shrink: 0; display: inline-grid; place-items: center; border-radius: 9px; border: 1px solid var(--border-strong); background: transparent; color: var(--muted); transition: color .2s, border-color .2s, background .2s; }
.ph-icon-btn:hover { color: var(--white); background: rgba(255, 255, 255, .05); }
.ph-icon-btn.danger:hover { color: #f58d9b; border-color: rgba(242, 104, 122, .5); }

.ph-cart-item { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 1.25rem; padding: .9rem 1rem; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-2); }
.ph-cart-item + .ph-cart-item { margin-top: .5rem; }
.ph-cart-name { font-weight: 500; }
.ph-cart-unit { font-size: .78rem; color: var(--faint); font-family: var(--font-mono); }
.ph-cart-total { font-weight: 600; min-width: 90px; text-align: right; font-variant-numeric: tabular-nums; }
.ph-qty { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: 9px; background: var(--bg-2); padding: 2px; }
.ph-qty button { width: 28px; height: 28px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); }
.ph-qty button:hover { background: rgba(255, 255, 255, .06); color: var(--white); }
.ph-qty input { width: 40px; border: 0; background: transparent; color: var(--white); text-align: center; font-family: var(--font-mono); -moz-appearance: textfield; }
.ph-qty input::-webkit-inner-spin-button, .ph-qty input::-webkit-outer-spin-button { -webkit-appearance: none; }
.ph-qty input:focus { outline: none; }

.ph-summary-row { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; color: var(--muted); font-size: .9rem; }
.ph-summary-total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-top: 1rem; margin-top: .6rem; border-top: 1px solid var(--border); }
.ph-summary-total span:first-child { font-weight: 500; }
.ph-summary-total .ph-price { font-size: 1.8rem; }
.ph-code-form { display: flex; gap: .45rem; }
.ph-code-form .form-control { font-family: var(--font-mono); text-transform: uppercase; }
.ph-code-form .form-control::placeholder { text-transform: none; font-family: var(--font); }
.ph-terms { font-size: .82rem; color: var(--muted); }

.ph-gateway { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem; min-height: 180px; width: 100%; padding: 1.5rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); color: var(--white); text-align: center; cursor: pointer; transition: border-color .25s, transform .3s var(--ease-out); }
.ph-gateway:hover { color: var(--white); border-color: var(--border-strong); transform: translateY(-2px); }
.ph-gateway-logo { height: 64px; display: grid; place-items: center; padding: .7rem 1.1rem; border-radius: 10px; background: #f4f4f5; }
.ph-gateway-logo img { max-height: 42px; max-width: 140px; object-fit: contain; }
.ph-gateway-name { font-weight: 600; }
.ph-gateway-go { font-size: .8rem; color: var(--muted); display: inline-flex; gap: .3rem; align-items: center; }
.ph-offer-amount { font-weight: 600; font-size: 1.7rem; letter-spacing: -.04em; color: var(--white); line-height: 1; }

.ph-table { margin: 0; }
.ph-table > :not(caption) > * > * { padding: .85rem 1rem; border-bottom-color: var(--border); vertical-align: middle; }

/* ══════════════════════════════════════════════════════════════
   VOTE
══════════════════════════════════════════════════════════════ */
#vote-card { overflow: hidden; }
#vote-card .spinner-parent { display: none; }
#vote-card.voting .spinner-parent { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; background: rgba(18, 19, 23, .85); border-radius: inherit; }
#vote-card .spinner-border { color: var(--white); width: 2.4rem; height: 2.4rem; }
#server-select { display: flex; flex-wrap: wrap; gap: .5rem; }

.ph-vote-sites { display: grid; gap: .5rem; }
.ph-vote-site { display: flex; align-items: center; gap: .9rem; padding: .8rem .9rem; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); color: var(--white); transition: border-color .2s, background .2s; }
.ph-vote-site:hover { color: var(--white); border-color: var(--border-strong); background: var(--surface-2); }
.ph-vote-site.disabled { opacity: .5; pointer-events: none; }
.ph-vote-site-num { width: 32px; height: 32px; flex-shrink: 0; display: grid; place-items: center; border-radius: 8px; font-family: var(--font-mono); font-size: .82rem; color: var(--muted); background: var(--surface-3); }
.ph-vote-site-name { flex: 1; font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-vote-site .vote-timer:empty::before { content: 'Voter'; }
.ph-vote-site .vote-timer { flex-shrink: 0; padding: .25rem .6rem; border-radius: 6px; font-family: var(--font-mono); font-size: .76rem; color: var(--minecraft); background: rgba(95, 207, 134, .08); border: 1px solid rgba(95, 207, 134, .22); }
.ph-vote-site.disabled .vote-timer { color: var(--muted); background: transparent; border-color: var(--border); }
.ph-vote-success { font-size: 3rem; color: var(--minecraft); display: inline-block; animation: enter .5s var(--ease-out); }

.ph-podium { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: end; gap: .6rem; margin-bottom: 1rem; }
.ph-podium-place { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.ph-podium-place img { width: 44px; height: 44px; border-radius: 10px; margin-bottom: .45rem; }
.ph-podium-place.first img { width: 54px; height: 54px; }
.ph-podium-name { font-weight: 500; font-size: .84rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-podium-votes { font-family: var(--font-mono); font-size: .72rem; color: var(--faint); margin-bottom: .45rem; }
.ph-podium-block { width: 100%; display: grid; place-items: center; border-radius: 8px 8px 0 0; font-family: var(--font-mono); font-size: 1rem; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); border-bottom: 0; transform-origin: bottom; animation: bar-grow-y .9s var(--ease-out) both; }
.ph-podium-place.first .ph-podium-block { height: 86px; color: var(--brand); }
.ph-podium-place.second .ph-podium-block { height: 62px; }
.ph-podium-place.third .ph-podium-block { height: 46px; }
@keyframes bar-grow-y { from { transform: scaleY(0); } }

.ph-rewards { --min: 160px; }
.ph-reward { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1.1rem .9rem; text-align: center; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); }
.ph-reward-img { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 12px; background: var(--surface-2); }
.ph-reward-img img { max-width: 40px; max-height: 40px; image-rendering: pixelated; }
.ph-reward-img i { font-size: 1.3rem; color: var(--muted); }
.ph-reward-name { font-weight: 500; font-size: .88rem; }
.ph-reward-chance { width: 100%; }
.ph-reward-chance .bar { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .07); overflow: hidden; margin-top: .35rem; }
.ph-reward-chance .bar span { display: block; height: 100%; background: var(--minecraft); transform-origin: left; animation: bar-grow 1s var(--ease-out) both; }
.ph-reward-chance small { font-family: var(--font-mono); font-size: .7rem; color: var(--faint); }

/* ══════════════════════════════════════════════════════════════
   WIKI
══════════════════════════════════════════════════════════════ */
.ph-search { display: flex; align-items: center; gap: .4rem; width: min(100%, 360px); padding: .25rem .25rem .25rem .9rem; border-radius: 11px; border: 1px solid var(--border-strong); background: var(--bg-2); transition: border-color .2s, box-shadow .2s; }
.ph-search:focus-within { border-color: rgba(255, 255, 255, .3); box-shadow: 0 0 0 3px rgba(255, 255, 255, .06); }
.ph-search > i { color: var(--faint); }
.ph-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--white); padding: .45rem .2rem; font-size: .92rem; }
.ph-search input:focus { outline: none; }
.ph-search input::placeholder { color: var(--faint); }
.ph-search button { flex-shrink: 0; }

.ph-sidenav { display: flex; flex-direction: column; gap: .1rem; }
.ph-sidenav-title { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: .4rem 0 .5rem .65rem; }
.ph-sidenav a { display: flex; align-items: center; gap: .55rem; padding: .5rem .65rem; border-radius: 8px; color: var(--muted); font-size: .9rem; transition: color .2s, background .2s; }
.ph-sidenav a:hover { color: var(--white); background: rgba(255, 255, 255, .04); }
.ph-sidenav a.active { color: var(--white); background: var(--surface-3); }

.ph-result { display: block; padding: 1.25rem 1.4rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); color: var(--white); transition: border-color .2s; }
.ph-result + .ph-result { margin-top: .75rem; }
.ph-result:hover { color: var(--white); border-color: var(--border-strong); }
.ph-result h2 { font-size: 1.05rem; margin: .6rem 0 .4rem; }
.ph-result p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.6; }

/* ══════════════════════════════════════════════════════════════
   ARTICLES
══════════════════════════════════════════════════════════════ */
.ph-article-hero { position: relative; padding: 3.5rem 0 2.5rem; overflow: hidden; isolation: isolate; }
.ph-article-hero-bg { position: absolute; inset: -30px; z-index: -2; background-size: cover; background-position: center; filter: blur(40px); opacity: .18; -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 95%); mask-image: linear-gradient(180deg, #000 30%, transparent 95%); }
.ph-article-title { font-weight: 600; font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.045em; line-height: 1.08; max-width: 24ch; margin: 0 0 1.25rem; text-wrap: balance; }
.ph-article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; color: var(--muted); font-size: .88rem; }
.ph-article-meta img { width: 26px; height: 26px; border-radius: 7px; }
.ph-article-meta i { color: var(--faint) !important; }
.ph-article-cover { width: 100%; max-height: 500px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); margin-bottom: 2rem; }
.ph-article { max-width: 820px; margin: 0 auto; }
.ph-article-body { padding: clamp(1.4rem, 4vw, 2.5rem); }
.ph-article-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }

.ph-like { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1rem; border-radius: 10px; border: 1px solid var(--border-strong); background: transparent; color: var(--white); font-weight: 500; font-size: .9rem; transition: border-color .2s, background .2s; }
.ph-like:hover:not(:disabled) { background: rgba(255, 255, 255, .05); }
.ph-like .bi-heart-fill { color: #f2687a; }
.ph-like.active { border-color: rgba(242, 104, 122, .45); background: rgba(242, 104, 122, .08); }
.ph-like:disabled { opacity: .6; }

.ph-comment { display: flex; gap: .9rem; padding: 1.1rem 1.15rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.ph-comment + .ph-comment { margin-top: .6rem; }
.ph-comment-avatar { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; }
.ph-comment-author { font-weight: 600; font-size: .9rem; }
.ph-comment-date { font-size: .76rem; color: var(--faint); }
.ph-comment-body { margin-top: .4rem; color: #cfd0d6; font-size: .94rem; line-height: 1.6; overflow-wrap: anywhere; }
.ph-comment-body p:last-child { margin: 0; }

/* ══════════════════════════════════════════════════════════════
   AUTHENTIFICATION
══════════════════════════════════════════════════════════════ */
.ph-auth { padding: 3rem 0 1rem; }
.ph-auth-shell { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; border-radius: 20px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.ph-auth-shell.is-narrow { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; min-height: 0; }
.ph-auth-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    padding: 2.25rem;
    background: var(--bg-2);
    border-right: 1px solid var(--border);
    isolation: isolate;
}
.ph-auth-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 40px 40px;
    -webkit-mask-image: radial-gradient(ellipse at 30% 0%, #000 10%, transparent 70%);
    mask-image: radial-gradient(ellipse at 30% 0%, #000 10%, transparent 70%);
}
.ph-auth-brand { display: flex; align-items: center; gap: .6rem; font-weight: 600; color: var(--white); }
.ph-auth-brand img { height: 30px; width: auto; }
.ph-auth-visual h2 { font-weight: 600; font-size: clamp(1.5rem, 2.8vw, 2rem); letter-spacing: -.04em; line-height: 1.1; margin: 0 0 .7rem; }
.ph-auth-visual p { color: var(--muted); margin: 0; max-width: 360px; font-size: .94rem; }
.ph-auth-visual .ph-live { margin-top: 1.5rem; }
.ph-auth-visual .ph-live-row { background: var(--surface); padding: .8rem .95rem; }
.ph-auth-visual .ph-live-icon { width: 36px; height: 36px; font-size: .95rem; }
.ph-auth-visual .ph-live-count { font-size: 1.2rem; }

.ph-auth-form { display: flex; flex-direction: column; justify-content: center; padding: clamp(1.75rem, 5vw, 3rem); }
.ph-auth-form-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; font-size: 1.15rem; margin-bottom: 1.25rem; color: var(--accent, var(--white)); background: var(--surface-2); border: 1px solid var(--border-strong); }
.ph-auth-title { font-weight: 600; font-size: clamp(1.6rem, 3.2vw, 2rem); letter-spacing: -.04em; margin: 0 0 .35rem; }
.ph-auth-sub { color: var(--muted); margin: 0 0 1.75rem; font-size: .94rem; }
.ph-auth-switch { text-align: center; margin: 1.5rem 0 0; color: var(--muted); font-size: .9rem; }
.ph-auth-switch a { font-weight: 600; color: var(--white); }
.ph-codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: .4rem; padding: .9rem; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); font-family: var(--font-mono); font-size: .9rem; text-align: center; }
.ph-codes > div { padding: .3rem; border-radius: 6px; background: var(--surface-2); }
.ph-qr { display: inline-block; padding: 12px; border-radius: 12px; background: #fff; }
.ph-secret { display: block; padding: .65rem .9rem; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--border); font-family: var(--font-mono); color: var(--white); text-align: center; letter-spacing: .06em; word-break: break-all; }
.ph-otp { text-align: center; font-family: var(--font-mono); font-size: 1.3rem !important; letter-spacing: .45em; }
.ph-step-list { display: grid; gap: 1rem; }
.ph-step-item { display: flex; gap: .9rem; }
.ph-step-item > span { width: 28px; height: 28px; flex-shrink: 0; display: grid; place-items: center; border-radius: 8px; font-family: var(--font-mono); font-size: .8rem; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); }

/* ══════════════════════════════════════════════════════════════
   PROFIL
══════════════════════════════════════════════════════════════ */
.ph-profile-card { overflow: hidden; padding: 0; margin-bottom: 1.5rem; }
.ph-profile-banner {
    height: 120px;
    background:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 28px 28px,
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 28px 28px,
        linear-gradient(110deg, color-mix(in srgb, var(--minecraft) 22%, var(--surface-2)), var(--surface-2) 50%, color-mix(in srgb, var(--dauntless) 22%, var(--surface-2)));
    border-bottom: 1px solid var(--border);
}
.ph-profile-main { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1.25rem; padding: 0 1.6rem 1.5rem; margin-top: -48px; }
.ph-profile-avatar { width: 104px; height: 104px; border-radius: 20px; border: 3px solid var(--surface); background: var(--surface-2); }
.ph-profile-name { font-weight: 600; font-size: clamp(1.5rem, 3.5vw, 2rem); letter-spacing: -.04em; margin: 0 0 .45rem; }
.ph-profile-info { flex: 1; min-width: 240px; }
.ph-profile-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.ph-profile-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .6rem; padding: 0 1.6rem 1.6rem; }
.ph-stat { padding: .9rem 1rem; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); }
.ph-stat-label { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin-bottom: .35rem; display: flex; align-items: center; gap: .4rem; }
.ph-stat-value { font-weight: 600; font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ══════════════════════════════════════════════════════════════
   LAUNCHER
══════════════════════════════════════════════════════════════ */
.ph-steps { position: relative; max-width: 820px; margin: 0 auto; display: grid; gap: 1rem; }
.ph-steps::before { content: ''; position: absolute; left: 21px; top: 30px; bottom: 30px; width: 1px; background: var(--border-strong); }
.ph-step { position: relative; display: flex; gap: 1.25rem; align-items: flex-start; }
.ph-step-num { --accent: var(--white); position: relative; z-index: 1; width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; font-family: var(--font-mono); font-size: .95rem; color: var(--accent); background: var(--bg); border: 1px solid var(--border-strong); }
.ph-step .ph-panel { flex: 1; min-width: 0; }
.ph-step-title { font-size: 1.15rem; font-weight: 600; letter-spacing: -.025em; margin: 0 0 .45rem; }
.ph-step-desc { color: var(--muted); margin: 0 0 1.2rem; line-height: 1.6; font-size: .94rem; }
.ph-step-desc:last-child { margin-bottom: 0; }
.ph-os-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .6rem; }
.ph-os { --accent: var(--white); display: flex; align-items: center; gap: .85rem; padding: .9rem 1rem; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); color: var(--white); transition: border-color .2s, background .2s; }
.ph-os:hover { color: var(--white); border-color: var(--border-strong); background: var(--surface-2); }
.ph-os > i:first-child { font-size: 1.5rem; color: var(--white); }
.ph-os small { display: block; font-size: .72rem; color: var(--faint); white-space: nowrap; }
.ph-os strong { font-weight: 600; }
.ph-os .bi-download { margin-left: auto; color: var(--faint); }
.ph-os:hover .bi-download { color: var(--white); }

/* ══════════════════════════════════════════════════════════════
   SKINS
══════════════════════════════════════════════════════════════ */
.ph-skin-preview { width: 100%; max-width: 240px; height: auto; }
.ph-skin3d-stage { position: relative; display: flex; justify-content: center; align-items: center; min-height: 520px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: radial-gradient(circle at 50% 75%, rgba(255, 255, 255, .06), transparent 60%), var(--bg-2); }
.ph-skin3d-stage canvas { position: relative; z-index: 1; max-width: 100%; }
.ph-skin3d-stage .canvas-container { flex: 0 0 100%; max-width: 100%; }
.ph-skin3d-stage canvas.border-skin { border: 0 !important; }

/* ══════════════════════════════════════════════════════════════
   ERREURS
══════════════════════════════════════════════════════════════ */
.ph-error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 3rem 0; }
.ph-error-code { font-family: var(--font-mono); font-weight: 500; font-size: clamp(4.5rem, 16vw, 9rem); line-height: 1; letter-spacing: -.06em; color: var(--faint); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .ph-home-hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .ph-discord { grid-template-columns: 1fr; }
    .ph-discord-intro { border-right: 0; border-bottom: 1px solid var(--border); }
    .ph-auth-shell { grid-template-columns: 1fr; }
    .ph-auth-visual { border-right: 0; border-bottom: 1px solid var(--border); padding: 1.75rem; }
    .ph-sticky { position: static; }
}
@media (max-width: 767.98px) {
    .ph-home-hero { padding: 3.5rem 0 3rem; }
    .ph-page-hero { padding: 2.5rem 0 2rem; margin-bottom: 1.75rem; }
    .ph-worlds { grid-template-columns: 1fr; }
    .ph-world { min-height: 0; }
    .ph-cart-item { grid-template-columns: 1fr auto; }
    .ph-cart-item .ph-cart-total { grid-column: 1; text-align: left; }
    .ph-profile-main { justify-content: center; text-align: center; }
    .ph-profile-actions, .ph-profile-info .d-flex { justify-content: center; }
}

/* ══════════════════════════════════════════════════════════════
   ONGLETS (profil)
══════════════════════════════════════════════════════════════ */
.ph-tabs { display: flex; gap: .3rem; margin: 2.5rem 0 1.5rem; padding: .3rem; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); overflow-x: auto; scrollbar-width: none; }
.ph-tabs::-webkit-scrollbar { display: none; }
.ph-tab { --accent: var(--white); display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1.1rem; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 500; font-size: .92rem; white-space: nowrap; transition: color .2s, background .2s; }
.ph-tab i { color: var(--accent); }
.ph-tab:hover { color: var(--white); background: rgba(255, 255, 255, .04); }
.ph-tab.active { color: var(--white); background: var(--surface-3); }


/* Univers sur une seule ligne (jusqu'à 3) ; 2 colonnes sur tablette, 1 sur mobile */
@media (max-width: 991.98px) { .ph-worlds { --worlds: 2 !important; } }
@media (max-width: 767.98px) { .ph-worlds { --worlds: 1 !important; } }
