/* ══════════════════════════════════════════════════════════════
   style.css — vvvs.uk   premium redesign
   ══════════════════════════════════════════════════════════════ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0; padding: 0; border: 0;
    font-family: 'Inconsolata', monospace !important;
}

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar            { width: 4px; }
::-webkit-scrollbar-track      { background: #050a16; }
::-webkit-scrollbar-thumb      { background: rgba(94,234,212,.22); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover{ background: rgba(94,234,212,.42); }

/* ── Root / body ───────────────────────────────────────────── */
html, body {
    min-height: 100%;
    min-width: 100%;
    color: #d6e4ff;
    background: #050a16;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Preload: freeze all transitions so first paint doesn't flash */
@media (scripting: enabled) {
    .preload * { transition: none !important; animation: none !important; }
}

/* ── Animated sky gradient  (base layer under canvas) ──────── */
body::before {
    content: '';
    position: fixed; inset: 0;
    background:
        /* horizon atmospheric haze */
        radial-gradient(ellipse 80% 40% at 50% 100%, rgba(12,24,58,.55) 0%, transparent 100%),
        /* deep-sky gradient */
        linear-gradient(180deg,
            #040810  0%,
            #060c1c 30%,
            #091428 60%,
            #0d1a38 100%
        );
    z-index: 0;
    pointer-events: none;
    animation: sky-breathe 20s ease-in-out infinite alternate;
}
@keyframes sky-breathe {
    0%   { opacity: .85; }
    100% { opacity: 1;   }
}

/* ── HOMEPAGE ──────────────────────────────────────────────── */
.home-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.2rem 1rem;
    position: relative;
    z-index: 3;
}

/* Header */
.home-header {
    text-align: center;
    margin-bottom: 2rem;
}

.wordmark {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -.01em;
    color: #d6e4ff;
    text-decoration: none;
    display: inline-block;
    line-height: 1;
    position: relative;
    /* layered text glow */
    text-shadow:
        0 0 20px rgba(94,234,212,.18),
        0 0 50px rgba(94,234,212,.08),
        0 0 90px rgba(94,234,212,.04);
    transition: text-shadow .45s ease;
}
.wordmark:hover {
    text-shadow:
        0 0 25px rgba(94,234,212,.35),
        0 0 60px rgba(94,234,212,.18),
        0 0 110px rgba(94,234,212,.08);
}
.wordmark::after {
    content: '_';
    color: #5eead4;
    animation: blink 1.1s step-end infinite;
    text-shadow:
        0 0 10px rgba(94,234,212,.9),
        0 0 22px rgba(94,234,212,.5);
}
@keyframes blink { 50% { opacity: 0; } }

.home-header p {
    margin-top: .55rem;
    font-size: .67rem;
    letter-spacing: .26em;
    text-transform: uppercase;
    font-weight: 600;
    /* shimmer gradient text */
    background: linear-gradient(90deg,
        #1c2e5a 0%,
        #2d4778 25%,
        #5eead4 50%,
        #2d4778 75%,
        #1c2e5a 100%);
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: text-shimmer 5s linear infinite;
}
@keyframes text-shimmer {
    to { background-position: 220% center; }
}

/* ── Platform grid ─────────────────────────────────────────── */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    max-width: 395px;
    width: 100%;
    perspective: 900px;
}
.platform-grid a { text-decoration: none; }

/* ── Platform card ─────────────────────────────────────────── */
.platform-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 6px 11px;

    /* glass base */
    background: rgba(6,11,26,.72);
    border: 1px solid rgba(255,255,255,.07);
    border-top: 2px solid transparent;
    border-radius: 8px;
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);

    /* depth shadows */
    box-shadow:
        inset 0  1px 0 rgba(255,255,255,.045),
        inset 0 -1px 0 rgba(0,0,0,.22),
        0 2px 10px rgba(0,0,0,.45);

    position: relative;
    overflow: hidden;
    cursor: pointer;
    will-change: transform;
    transform-style: preserve-3d;

    /* only non-transform properties transition via CSS;
       transform is handled by atmosphere.js for 3D tilt */
    transition:
        border-color   .2s ease,
        box-shadow     .2s ease,
        background     .2s ease;
}

/* ── Shimmer sweep (top-left → bottom-right on hover) ──────── */
.platform-card::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(
        110deg,
        transparent          20%,
        rgba(255,255,255,.03) 50%,
        transparent          80%
    );
    transform: translateX(-130%) skewX(-12deg);
    transition: transform .65s cubic-bezier(.23,1,.32,1);
    z-index: 1;
    pointer-events: none;
}

/* ── Top glow line ──────────────────────────────────────────── */
.platform-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(94,234,212,.7) 40%,
        rgba(94,234,212,.9) 50%,
        rgba(94,234,212,.7) 60%,
        transparent
    );
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
    filter: blur(.4px);
}

/* hover state */
.platform-card:hover {
    border-top-color: rgba(94,234,212,.75);
    border-color:     rgba(94,234,212,.14);
    background: rgba(8,15,34,.78);
    box-shadow:
        inset 0  1px 0 rgba(94,234,212,.07),
        inset 0 -1px 0 rgba(0,0,0,.2),
        0  8px 28px rgba(0,0,0,.55),
        0  0   0 1px rgba(94,234,212,.07),
        0  0  24px   rgba(94,234,212,.05);
}
.platform-card:hover::before { transform: translateX(130%) skewX(-12deg); }
.platform-card:hover::after  { opacity: 1; }

/* card icon */
.platform-card img {
    width: 26px; height: 26px;
    object-fit: contain;
    position: relative; z-index: 2;
    transition:
        transform .32s cubic-bezier(.23,1,.32,1),
        filter    .32s ease;
    filter: drop-shadow(0 0 0px rgba(94,234,212,0));
}
.platform-card:hover img {
    transform: scale(1.12) translateY(-1.5px);
    filter: drop-shadow(0 0 7px rgba(94,234,212,.32));
}

/* card label */
.platform-card span {
    font-size: 8.5px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #263b5e;
    transition: color .2s ease, text-shadow .2s ease;
    position: relative; z-index: 2;
}
.platform-card:hover span {
    color: #7aabcf;
    text-shadow: 0 0 9px rgba(122,171,207,.4);
}

/* 2FA special card */
.platform-card.tfa {
    font-size: 13px;
    font-weight: 800;
    color: #5eead4;
    letter-spacing: .05em;
    text-shadow:
        0 0 10px rgba(94,234,212,.4),
        0 0 22px rgba(94,234,212,.18);
}
.platform-card.tfa:hover {
    text-shadow:
        0 0 14px rgba(94,234,212,.75),
        0 0 32px rgba(94,234,212,.3);
}

/* ── GUIDE PAGES ───────────────────────────────────────────── */
.guide-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.6rem 1rem;
    position: relative;
    z-index: 3;
}

/* ── Nav bar ───────────────────────────────────────────────── */
.guide-nav {
    width: 100%;
    max-width: 440px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.back-link {
    font-size: .69rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: #2a4068;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color .22s ease, gap .22s ease;
}
.back-link::before {
    content: '←';
    font-size: .88rem;
    display: inline-block;
    transition: transform .32s cubic-bezier(.23,1,.32,1);
}
.back-link:hover        { color: #5eead4; gap: 9px; }
.back-link:hover::before{ transform: translateX(-4px); }

.breadcrumb {
    margin-left: auto;
    font-size: .67rem;
    color: #1b2d50;
    letter-spacing: .06em;
}
.breadcrumb span {
    color: #5eead4;
    text-shadow: 0 0 8px rgba(94,234,212,.3);
}

/* ── Step card ─────────────────────────────────────────────── */
.step-card {
    width: 100%;
    max-width: 440px;
    background: rgba(6,11,26,.76);
    border: 1px solid rgba(255,255,255,.08);
    border-top: 2px solid #5eead4;
    border-radius: 10px;
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    box-shadow:
        0  4px 36px rgba(0,0,0,.62),
        0  0   0  1px rgba(94,234,212,.04),
        inset 0 1px 0  rgba(255,255,255,.04),
        0  0  50px    rgba(94,234,212,.04);
    overflow: hidden;
    position: relative;
}

/* animated scanning line on top border */
.step-card::before {
    content: '';
    position: absolute;
    top: 0; left: -50%; right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(94,234,212,.0) 20%,
        rgba(94,234,212,.85) 50%,
        rgba(94,234,212,.0) 80%,
        transparent 100%
    );
    animation: scan-line 4s ease-in-out infinite;
    filter: blur(.3px);
}
@keyframes scan-line {
    0%   { left: -50%; }
    100% { left:  100%; }
}

/* inner top sheen */
.step-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(94,234,212,.025) 0%,
        transparent 18%
    );
    pointer-events: none;
}

.step-card-header {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 14px 18px 12px;
    border-bottom: 1px solid rgba(255,255,255,.055);
    background: rgba(94,234,212,.018);
    position: relative; z-index: 1;
}
.step-card-header img {
    width: 28px; height: 28px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(94,234,212,.22));
}
.step-card-header .platform-name {
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .17em;
    text-transform: uppercase;
    color: #6692be;
    text-shadow: 0 0 14px rgba(102,146,190,.3);
}

.step-card-body {
    padding: 18px 20px 20px;
    min-height: 108px;
    position: relative; z-index: 1;
}

/* ── Info / list ───────────────────────────────────────────── */
.info {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: #b5caec;
    width: 100%;
    -webkit-font-smoothing: antialiased;
}
.info img { display: none; }
.info ul, ul {
    list-style: none;
    text-align: left;
    padding: 0;
}
ul > li {
    padding: 3px 0;
    line-height: 1.65;
    color: #b5caec;
}
ul > li::before {
    content: "›  ";
    color: #5eead4;
    font-weight: 700;
    text-shadow: 0 0 7px rgba(94,234,212,.5);
}
ul > li a {
    color: #5eead4;
    text-decoration: none;
    border-bottom: 1px solid rgba(94,234,212,.22);
    padding-bottom: 1px;
    transition: border-color .2s ease, text-shadow .2s ease;
}
ul > li a:hover {
    border-bottom-color: rgba(94,234,212,.6);
    text-shadow: 0 0 9px rgba(94,234,212,.42);
}

/* ── Options box ───────────────────────────────────────────── */
.options {
    background: rgba(6,11,26,.65);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 500;
    color: #b5caec;
    width: 100%;
    max-width: 440px;
    margin-bottom: 10px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow:
        0 2px 14px rgba(0,0,0,.32),
        inset 0 1px 0 rgba(255,255,255,.04);
}

/* ── Pagination ────────────────────────────────────────────── */
.paginate {
    max-width: 440px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    user-select: none;
}

.paginate a {
    text-decoration: none;
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #2a4068;
    padding: 8px 16px;
    border: 1px solid rgba(255,255,255,.065);
    border-radius: 6px;
    background: rgba(6,11,26,.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: color .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
    position: relative;
    overflow: hidden;
}
.paginate a::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(110deg,
        transparent 25%,
        rgba(94,234,212,.04) 50%,
        transparent 75%);
    transform: translateX(-110%);
    transition: transform .5s ease;
}
.paginate a:not([disabled]):hover {
    color: #5eead4;
    border-color: rgba(94,234,212,.28);
    background: rgba(94,234,212,.05);
    box-shadow: 0 0 14px rgba(94,234,212,.07);
}
.paginate a:not([disabled]):hover::before { transform: translateX(110%); }

a[disabled] { pointer-events: none; opacity: .14; }

#stepDisplay {
    font-size: .67rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #273d62;
}

/* ── Input ─────────────────────────────────────────────────── */
input {
    background: rgba(6,11,26,.82);
    border: 1px solid rgba(94,234,212,.16);
    padding: 10px 14px;
    border-radius: 7px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    width: 100%;
    color: #d6e4ff;
    -webkit-font-smoothing: antialiased;
    outline: none;
    transition: border-color .22s ease, box-shadow .22s ease;
}
input:focus {
    border-color: rgba(94,234,212,.52);
    box-shadow:
        0 0 0 3px rgba(94,234,212,.07),
        0 0 22px rgba(94,234,212,.05);
}

/* ── Steam ID page ─────────────────────────────────────────── */
.container {
    position: relative; z-index: 3;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}
.container h1 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #d6e4ff;
    margin-bottom: 1.2rem;
    text-shadow: 0 0 20px rgba(94,234,212,.14);
}
.container h1 a {
    color: #d6e4ff;
    text-decoration: none;
}
.container h1 i {
    color: #5eead4;
    font-style: normal;
    text-shadow: 0 0 10px rgba(94,234,212,.5);
}

layflags-rolling-number {
    font-family: 'Inconsolata', monospace;
    font-size: 36px;
    font-weight: 700;
    display: block;
    padding: 7px;
    border-radius: 6px;
    color: #5eead4;
    opacity: .16;
    margin-top: .4rem;
    line-height: 1.25em;
    --roll-duration: 0.8s;
    transition-duration: 0.8s;
    text-shadow: 0 0 18px rgba(94,234,212,.25);
}
.steamOuter {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 440px;
}

/* ── Global link / p ───────────────────────────────────────── */
p { font-size: .78rem; color: #2a4068; font-weight: 500; }
a { color: #d6e4ff; }

/* ── Tippy ─────────────────────────────────────────────────── */
.tippy-box[data-theme~=translucent] {
    background-color: rgba(6,11,26,.96);
    border: 1px solid rgba(94,234,212,.15);
    border-radius: 10px;
    padding: .75rem;
    backdrop-filter: blur(14px);
}
.tippy-box[data-theme~=translucent]>.tippy-arrow{width:14px;height:14px}
.tippy-box[data-theme~=translucent][data-placement^=top]>.tippy-arrow:before{border-width:7px 7px 0;border-top-color:rgba(6,11,26,.96)}
.tippy-box[data-theme~=translucent][data-placement^=bottom]>.tippy-arrow:before{border-width:0 7px 7px;border-bottom-color:rgba(6,11,26,.96)}
.tippy-box[data-theme~=translucent][data-placement^=left]>.tippy-arrow:before{border-width:7px 0 7px 7px;border-left-color:rgba(6,11,26,.96)}
.tippy-box[data-theme~=translucent][data-placement^=right]>.tippy-arrow:before{border-width:7px 7px 7px 0;border-right-color:rgba(6,11,26,.96)}
.tippy-box[data-theme~=translucent]>.tippy-svg-arrow{fill:rgba(6,11,26,.96)}
.tippy-box canvas{filter:drop-shadow(0 0 4px #000)}

/* ── List animation (generate.js) ─────────────────────────── */
@keyframes fadeInAndOut {
    0%,100% { opacity: 1; }
    50%      { opacity: .08; }
}

/* ── Mobile ────────────────────────────────────────────────── */
@media screen and (max-width: 480px) {
    .platform-grid          { max-width: 100%; gap: 6px; }
    .platform-card img      { width: 22px; height: 22px; }
    .step-card, .options    { max-width: 100%; }
    input                   { width: 100% !important; }
}
@media screen and (max-width: 360px) {
    .platform-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Firefox ───────────────────────────────────────────────── */
@-moz-document url-prefix() {
    input{padding:12px;padding-top:9px;padding-bottom:9px}
    code{padding:5px}
    ::placeholder{font-weight:300}
}
