/* /first-steps (SiteController::firstSteps): the way into the game and the guides for a newcomer. */

.first-steps-page {
    display: grid;
    gap: 18px;
}

.first-steps {
    display: grid;
    gap: 14px;
    padding: 22px 24px;
    border: 1px solid rgba(240, 198, 116, .45);
    background: radial-gradient(60% 80% at 0% 0%, rgba(240, 180, 90, .12), transparent 70%), rgba(10, 12, 16, .92);
}

.first-steps__head h1 {
    margin: 4px 0 0;
    color: #fff;
    font-size: 26px;
}

.first-steps__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.first-steps__step {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    background: rgba(20, 17, 13, .8);
}

.first-steps__num {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(180deg, #f6d48a, #c9952f);
    color: #1a1206;
    font-size: 17px;
}

.first-steps__step h2 {
    margin: 4px 0 6px;
    color: #fff;
    font-size: 18px;
}

.first-steps__step p {
    margin: 0 0 10px;
    color: rgba(238, 242, 255, .72);
    font-size: 14px;
    line-height: 1.5;
}

.first-steps__platforms {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.first-steps__platform {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px 6px 6px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 10px;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.first-steps__platform .download-platform__icon {
    width: 30px;
    height: 30px;
}

.first-steps__platform:hover,
.first-steps__platform.is-mine {
    border-color: #f0c674;
    background: rgba(240, 198, 116, .1);
}

.first-steps__more {
    display: inline-block;
    margin-top: 10px;
    color: #f0c674;
    font-size: 14px;
    text-decoration: none;
}

.first-steps__login {
    display: flex;
    gap: 8px;
}

.first-steps__login code {
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    border: 1px solid rgba(240, 198, 116, .4);
    border-radius: 8px;
    background: rgba(0, 0, 0, .4);
    color: #f0c674;
    font-size: 16px;
    font-weight: 800;
}

.first-steps__login button {
    padding: 8px 14px;
    border: 1px solid rgba(240, 198, 116, .5);
    border-radius: 8px;
    background: transparent;
    color: #f0c674;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.first-steps__help {
    margin: 0;
    font-size: 14px;
}

.first-steps__help a {
    color: rgba(238, 242, 255, .75);
}

@media (max-width: 900px) {
    .first-steps__list {
        grid-template-columns: minmax(0, 1fr);
    }
}

.first-steps__button {
    display: inline-block;
    padding: 9px 18px;
    border-radius: 8px;
    background: linear-gradient(180deg, #f6d48a, #c9952f);
    color: #1a1206;
    font-weight: 800;
    text-decoration: none;
}

.first-steps-read {
    display: grid;
    gap: 12px;
}

.first-steps-read__head h2 {
    margin: 0;
    color: #fff;
    font-size: 22px;
}

.first-steps-read__head p {
    margin: 4px 0 0;
    color: rgba(238, 242, 255, .7);
    font-size: 14px;
}

.first-steps-read__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.first-steps-read__card {
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
    background: rgba(10, 12, 16, .88);
    color: inherit;
    text-decoration: none;
}

.first-steps-read__card:hover {
    border-color: rgba(240, 198, 116, .55);
}

.first-steps-read__pic {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: radial-gradient(60% 70% at 50% 40%, rgba(240, 180, 90, .2), transparent 75%), #14110d;
}

.first-steps-read__pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .25s;
}

.first-steps-read__pic img[src*="item_images"] {
    padding: 18px;
    object-fit: scale-down;
}

.first-steps-read__pic img[src*="classes/art"] {
    padding: 8px;
    object-fit: contain;
    object-position: center;
}

.first-steps-read__card:hover .first-steps-read__pic img {
    transform: scale(1.04);
}

.first-steps-read__pic b {
    position: absolute;
    top: 8px;
    left: 8px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(180deg, #f6d48a, #c9952f);
    color: #1a1206;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .6);
}

.first-steps-read__text {
    padding: 10px 12px 12px;
    display: grid;
    align-content: start;
    gap: 4px;
    min-width: 0;
}

.first-steps-read__text strong {
    color: #fff;
    font-size: 15px;
}

.first-steps-read__text small {
    color: rgba(238, 242, 255, .62);
    font-size: 12px;
    line-height: 1.4;
}

@media (max-width: 1000px) {
    .first-steps-read__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .first-steps-read__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Step 1 at work: the system's size under its name, the steps after the download, done and next. */

.first-steps__platform > span:last-child {
    display: grid;
    line-height: 1.15;
}

.first-steps__platform small {
    color: rgba(238, 242, 255, .55);
    font-size: 11px;
    font-weight: 600;
}

.first-steps__platform.is-off {
    opacity: .45;
    cursor: default;
}

.first-steps__after {
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(74, 222, 128, .4);
    border-radius: 10px;
    background: rgba(74, 222, 128, .06);
}

.first-steps__after strong {
    color: #7ee08a;
    font-size: 14px;
}

.first-steps__after ol {
    display: grid;
    gap: 6px;
    margin: 8px 0 0;
    padding-left: 18px;
    color: rgba(238, 242, 255, .8);
    font-size: 13px;
    line-height: 1.5;
}

.first-steps__after pre {
    margin: 6px 0 0;
    padding: 8px 10px;
    overflow-x: auto;
    border-radius: 6px;
    background: rgba(0, 0, 0, .5);
    color: #f0c674;
    font-size: 12px;
}

.first-steps__step.is-done .first-steps__num {
    background: linear-gradient(180deg, #8ef0a0, #3fae5a);
    font-size: 0;
}

.first-steps__step.is-done .first-steps__num::before {
    content: "\2713";
    font-size: 18px;
}

.first-steps__step.is-next {
    border-color: rgba(240, 198, 116, .7);
    box-shadow: 0 0 0 1px rgba(240, 198, 116, .25), 0 0 24px rgba(240, 198, 116, .12);
}

.first-steps__list {
    align-items: start;
}

/* A guide whose cover is not drawn yet: its number alone, large, in a slim band. */
.first-steps-read__card.is-plain .first-steps-read__pic {
    display: grid;
    place-items: center;
    aspect-ratio: auto;
    height: 64px;
}

.first-steps-read__card.is-plain .first-steps-read__pic b {
    position: static;
    width: 40px;
    height: 40px;
    font-size: 19px;
}

/* The client chooser: tiles switch the client, one gold button under them downloads it. */
button.first-steps__platform {
    width: 100%;
    background: transparent;
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.first-steps__platform.is-mine {
    box-shadow: inset 0 0 0 1px #f0c674;
}

.first-steps__client {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.first-steps__client[hidden],
.first-steps__after strong[hidden] {
    display: none;
}

.first-steps__get {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px 8px 8px;
    border-radius: 10px;
    background: linear-gradient(180deg, #f6d48a, #c9952f);
    color: #1a1206;
    font-weight: 800;
    text-decoration: none;
}

.first-steps__get:hover {
    filter: brightness(1.08);
}

.first-steps__get .download-platform__icon {
    width: 32px;
    height: 32px;
}

.first-steps__get > span:last-child {
    display: grid;
    line-height: 1.15;
}

.first-steps__get small {
    color: rgba(26, 18, 6, .7);
    font-size: 11px;
    font-weight: 700;
}

.first-steps__client .first-steps__after {
    margin-top: 0;
    border-color: rgba(255, 255, 255, .1);
    background: rgba(0, 0, 0, .25);
}

.first-steps__client .first-steps__after strong {
    color: rgba(238, 242, 255, .85);
}

.is-done .first-steps__client .first-steps__after {
    border-color: rgba(74, 222, 128, .4);
    background: rgba(74, 222, 128, .06);
}

.is-done .first-steps__client .first-steps__after strong {
    color: #7ee08a;
}

/* What to do with the file shows once it is downloading, so the chooser stays as small as the other two steps. */
.first-steps__chooser:not(.is-done) .first-steps__client .first-steps__after {
    display: none;
}

/* The page is the chooser alone (owner, 2026-10-25): four tiles in a row, the button under them. */
.first-steps__head p {
    margin: 6px 0 0;
    color: rgba(238, 242, 255, .72);
    font-size: 14px;
}

.first-steps__chooser {
    display: grid;
    max-width: 760px;
}

.first-steps__chooser .first-steps__platforms {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.first-steps__chooser .first-steps__platform {
    padding: 10px 12px 10px 10px;
}

.first-steps__chooser .first-steps__get {
    justify-self: start;
    min-width: 280px;
}

@media (max-width: 640px) {
    .first-steps__chooser .first-steps__platforms {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .first-steps__chooser .first-steps__get {
        justify-self: stretch;
        min-width: 0;
    }
}

/* The guide's name sits on its cover, large, over a dark fade: the picture reads as that guide's
   title card instead of a picture with a small caption somewhere under it. */
.first-steps-read__pic {
    aspect-ratio: 16 / 7;
}

.first-steps-read__pic::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(5, 6, 9, .55) 62%, rgba(5, 6, 9, .95) 100%);
    pointer-events: none;
}

.first-steps-read__pic strong {
    position: absolute;
    z-index: 1;
    left: 14px;
    right: 14px;
    bottom: 10px;
    color: #fff;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.15;
    text-shadow: 0 2px 6px rgba(0, 0, 0, .9);
}

.first-steps-read__pic b {
    z-index: 1;
}

.first-steps-read__card.is-plain .first-steps-read__pic::after {
    display: none;
}

.first-steps-read__card.is-plain .first-steps-read__pic strong {
    position: static;
    font-size: 17px;
}

/* The chooser as a cell of the guides grid: middle column, rows 2-3 (owner, 2026-10-25). */
.first-steps-read__grid > .first-steps {
    grid-column: 2;
    grid-row: 2 / span 2;
    align-content: center;
    gap: 10px;
    padding: 18px;
    border-radius: 10px;
}

.first-steps-read__grid .first-steps__head h2 {
    margin: 0;
    color: #fff;
    font-size: 21px;
}

.first-steps-read__grid .first-steps__chooser .first-steps__platforms {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.first-steps-read__grid .first-steps__chooser .first-steps__get {
    justify-self: stretch;
    min-width: 0;
}

.first-steps-read__head h1 {
    margin: 4px 0 0;
    color: #fff;
    font-size: 26px;
}

@media (max-width: 1000px) {
    .first-steps-read__grid > .first-steps {
        grid-column: 1 / -1;
        grid-row: 1;
    }
}

/* Six narrow columns, every cell two wide: a short last row can then start half a card in and sit centred. */
@media (min-width: 1001px) {
    .first-steps-read__grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .first-steps-read__card {
        grid-column: span 2;
    }

    .first-steps-read__grid > .first-steps {
        grid-column: 3 / span 2;
    }

    .first-steps-read__card.is-tail-2 {
        grid-column: 2 / span 2;
    }

    .first-steps-read__card.is-tail-1 {
        grid-column: 3 / span 2;
    }
}

/* The chooser's own cover, like the guides beside it: the four systems from the cross-platform art,
   the block's title on it. */
.first-steps-read__grid > .first-steps {
    align-content: start;
    padding: 0 0 16px;
    overflow: hidden;
}

.first-steps-read__grid > .first-steps > :not(.first-steps__head),
.first-steps-read__grid .first-steps__head p {
    margin-left: 16px;
    margin-right: 16px;
}

.first-steps__cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 8;
    overflow: hidden;
}

.first-steps__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 62%;
    transform: scale(1.25);
    transform-origin: center 62%;
}

.first-steps__cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(5, 6, 9, .6) 68%, rgba(5, 6, 9, .97) 100%);
}

.first-steps-read__grid .first-steps__cover h2 {
    position: absolute;
    z-index: 1;
    left: 16px;
    right: 16px;
    bottom: 10px;
    font-size: 23px;
    font-weight: 800;
    text-shadow: 0 2px 6px rgba(0, 0, 0, .9);
}

.first-steps-read__grid .first-steps__head p {
    margin-top: 10px;
}
