:root {
    --text: #191919;
    --muted: #5d646b;
    --line: #b8b8b8;
    --panel: rgba(255, 255, 255, 0.95);
    --green: #00b259;
    --green-dark: #008f46;
    --blue: #00a2ff;
    --red: #d86868;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--text);
    font-family: "Source Sans 3", "Source Sans Pro", Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 300;
    background: #f2f2f2;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.landing-navbar {
    position: fixed;
    z-index: 10;
    top: 0;
    right: 0;
    left: 0;
    min-height: 66px;
    color: #fff;
    background: rgba(0, 0, 0, 0.42);
}

.navbar-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: center;
    width: min(1140px, calc(100% - 24px));
    min-height: 66px;
    margin: 0 auto;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.navbar-logo {
    display: block;
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.top-links {
    display: flex;
    gap: 4px;
    align-items: center;
}

.top-links a {
    padding: 20px 15px 16px;
    border-bottom: 2px solid transparent;
    font-size: 18px;
}

.top-links a:hover,
.top-links a:focus {
    border-bottom-color: #fff;
}

.login-strip,
.account-strip {
    display: grid;
    grid-template-columns: 138px 138px 72px;
    gap: 8px;
    align-items: center;
}

.account-strip {
    grid-template-columns: auto 86px;
}

.nav-input,
.login-button {
    width: 100%;
    height: 34px;
    border-radius: 3px;
    font-size: 14px;
}

.nav-input {
    padding: 6px 10px;
    color: #333;
    border: 1px solid #ccc;
    background: #fff;
}

.login-button {
    color: #fff;
    border: 1px solid transparent;
    background: var(--green);
    font-weight: 400;
}

.login-button:hover,
.login-button:focus,
.signup-button:hover,
.signup-button:focus,
.primary-action:hover,
.primary-action:focus {
    background: var(--green-dark);
}

.system-alert {
    position: fixed;
    z-index: 11;
    top: 66px;
    right: 0;
    left: 0;
    min-height: 48px;
    padding: 13px 16px;
    color: #fff;
    text-align: center;
    background: var(--red);
}

.system-alert.success {
    background: var(--green);
}

.roller-section {
    position: relative;
    min-height: 840px;
    overflow: hidden;
    background: #2f3944;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(23, 30, 38, 0.25), rgba(23, 30, 38, 0.22)),
        url("/assets/diddyblox_home_hero.jpg") center / cover no-repeat;
    transform: scale(1.02);
}

.hero-content {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 435px;
    gap: 48px;
    align-items: center;
    width: min(1140px, calc(100% - 32px));
    min-height: 840px;
    margin: 0 auto;
    padding-top: 66px;
}

.hero-branding {
    position: relative;
    justify-self: end;
    width: min(100%, 640px);
    min-height: 160px;
    text-align: center;
}

.main-logo-crop {
    position: relative;
    width: min(100%, 620px);
    height: 128px;
    margin: 0 auto;
    overflow: hidden;
}

.main-logo {
    position: absolute;
    top: -142px;
    left: -8px;
    display: block;
    width: 637px;
    max-width: none;
    height: auto;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35));
}

.hero-branding h1 {
    position: absolute;
    z-index: 2;
    top: 94px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-block;
    width: max-content;
    white-space: nowrap;
    margin: 0;
    padding: 10px 25px;
    color: #fff;
    font-size: 35px;
    font-weight: 300;
    line-height: 1.3;
    background: rgba(0, 0, 0, 0.72);
}

.signup-panel,
.welcome-panel {
    width: min(100%, 435px);
    padding: 20px 25px 25px;
    background: var(--panel);
}

.signup-panel h2,
.welcome-panel h2 {
    margin: 0 10px 16px;
    font-size: 24px;
    font-weight: 300;
    line-height: 1.2;
    text-transform: uppercase;
}

.welcome-panel h2 {
    margin-right: 0;
    margin-left: 0;
}

.welcome-panel p {
    margin: 0 0 20px;
    color: #424b54;
    font-size: 18px;
    line-height: 1.4;
}

.input-field,
.fake-input {
    width: 100%;
    min-height: 46px;
    margin: 0 0 15px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
}

.input-field {
    display: block;
    padding: 8px 12px;
    color: #333;
    font-size: 20px;
    line-height: 1.33;
}

.input-field::placeholder {
    color: #777;
}

.input-field:focus,
.fake-input:focus-within,
.nav-input:focus {
    border-color: #66afe9;
    outline: 0;
    box-shadow: 0 0 8px rgba(102, 175, 233, 0.6);
}

.fake-input {
    display: flex;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
}

.field-label {
    display: flex;
    flex: 0 0 24%;
    align-items: center;
    width: 24%;
    height: 44px;
    margin: 0;
    padding: 0 10px;
    color: #333;
    font-size: 18px;
    font-weight: 300;
}

.fake-input select {
    flex: 1 1 0;
    min-width: 72px;
    height: 44px;
    padding: 0 8px;
    color: #555;
    border: 0;
    border-left: 1px solid var(--line);
    background: #fff;
    font-size: 18px;
}

.fake-input select[name="birthday_month"] {
    flex-basis: 33%;
}

.fake-input select[name="birthday_day"] {
    flex-basis: 20%;
}

.fake-input select[name="birthday_year"] {
    flex-basis: 23%;
}

.gender-field {
    align-items: center;
    height: 46px;
    padding: 0;
}

.gender-field .field-label {
    flex-basis: 75px;
    width: 75px;
}

.gender-choice {
    display: flex;
    flex: 1 1 0;
    justify-content: center;
    align-items: center;
    height: 44px;
    margin: 0;
}

.gender-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.gender-icon {
    position: relative;
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
}

.gender-icon::before,
.gender-icon::after {
    content: none;
}

.gender-icon.female {
    background-image: url("/assets/diddyblox_home_gender_female.png");
    background-repeat: no-repeat;
    background-position: 6px 3px;
}

.gender-icon.male {
    background-image: url("/assets/diddyblox_home_gender_male.png");
    background-repeat: no-repeat;
    background-position: 8px 3px;
}

.gender-choice input:checked + .gender-icon.female {
    border-color: var(--red);
    background-position: -24px 3px;
}

.gender-choice input:checked + .gender-icon.male {
    border-color: var(--blue);
    background-position: -22px 3px;
}

.signup-button,
.primary-action,
.secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 6px;
    color: #fff;
    background: var(--green);
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
}

.secondary-action {
    color: #333;
    border: 1px solid #a7adb3;
    background: #fff;
}

.secondary-action:hover,
.secondary-action:focus {
    background: #e9edf0;
}

.welcome-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-error {
    min-height: 42px;
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 3px;
    color: #fff;
    background: var(--red);
    font-weight: 400;
    text-align: center;
}

.archive-section {
    background: #fff;
}

.what-section {
    min-height: 840px;
}

.what-hero {
    position: relative;
    min-height: 588px;
    color: #fff;
    background:
        linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.08)),
        url("/assets/diddyblox_home_what.jpg") 30% center / cover no-repeat;
}

.what-copy {
    position: absolute;
    top: 25%;
    right: 7%;
    width: min(50%, 560px);
    padding: 22px 26px;
    color: #fff;
    background: rgba(0, 0, 0, 0.7);
}

.what-copy h2,
.device-copy h2 {
    margin: 0 0 12px;
    font-size: 48px;
    font-weight: 300;
    line-height: 1.3;
    text-align: center;
}

.what-copy p,
.device-copy p {
    margin: 0;
    font-size: 24px;
    line-height: 1.4;
}

.game-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    min-height: 252px;
    margin-top: 5px;
    overflow: hidden;
}

.game-image {
    min-height: 252px;
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
}

.game-image-one {
    background-image: url("/assets/diddyblox_home_game_1.jpg");
}

.game-image-two {
    background-image: url("/assets/diddyblox_home_game_2.jpg");
}

.game-image-three {
    background-image: url("/assets/diddyblox_home_game_3.jpg");
}

.device-section {
    padding: 110px 16px 0;
    overflow: hidden;
    background: #fff;
}

.device-copy {
    width: min(760px, 100%);
    margin: 0 auto;
    color: var(--text);
    text-align: center;
}

.device-copy p {
    color: #474747;
}

.device-image-wrap {
    width: min(1140px, 100%);
    margin: 34px auto 0;
    text-align: center;
}

.device-image {
    display: block;
    width: min(100%, 970px);
    height: auto;
    margin: 0 auto -52px;
}

.store-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
    align-items: center;
    width: min(970px, 100%);
    margin: 50px auto 0;
    padding: 0;
    list-style: none;
}

.store-badges li {
    display: inline-flex;
    width: 136px;
}

.store-badges a,
.store-badges img {
    display: block;
    width: 136px;
    height: 47px;
}

.site-footer {
    padding: 100px 16px 32px;
    color: #b8b8b8;
    background: #fff;
    font-size: 12px;
    font-weight: 400;
    text-align: center;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    width: min(970px, 100%);
    margin: 0 auto 16px;
}

.footer-links a {
    color: #b8b8b8;
    font-size: 21px;
    font-weight: 300;
}

.footer-links a:hover,
.footer-links a:focus {
    color: #191919;
}

.site-footer p {
    width: min(760px, 100%);
    margin: 12px auto 0;
    line-height: 1.4;
    text-align: left;
}

@media (max-width: 991px) {
    .navbar-inner {
        grid-template-columns: auto 1fr;
    }

    .top-links {
        display: none;
    }

    .login-strip {
        grid-template-columns: 1fr 1fr 72px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
        align-content: center;
        padding-top: 96px;
        padding-bottom: 36px;
    }

    .hero-branding {
        justify-self: center;
    }

    .signup-panel,
    .welcome-panel {
        justify-self: center;
    }

    .what-copy {
        top: 10%;
        right: 5%;
        width: 58%;
    }
}

@media (max-width: 720px) {
    .landing-navbar {
        position: absolute;
        background: rgba(0, 0, 0, 0.58);
    }

    .navbar-inner {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px 0;
    }

    .navbar-brand {
        justify-self: center;
    }

    .login-strip,
    .account-strip {
        grid-template-columns: 1fr;
        width: min(390px, 100%);
        justify-self: center;
    }

    .system-alert {
        position: static;
        margin-top: 0;
    }

    .roller-section,
    .hero-content {
        min-height: 920px;
    }

    .hero-content {
        padding-top: 188px;
    }

    .hero-branding h1 {
        font-size: 28px;
    }

    .signup-panel,
    .welcome-panel {
        padding: 16px;
    }

    .what-section {
        min-height: auto;
    }

    .what-hero {
        min-height: 620px;
        background-position: 20% center;
    }

    .what-copy {
        top: auto;
        right: auto;
        bottom: 32px;
        left: 50%;
        width: min(88%, 420px);
        transform: translateX(-50%);
    }

    .what-copy h2,
    .device-copy h2 {
        font-size: 34px;
    }

    .what-copy p,
    .device-copy p {
        font-size: 19px;
    }

    .game-strip {
        grid-template-columns: 1fr;
    }

    .game-image-two,
    .game-image-three {
        display: none;
    }

    .device-section {
        padding-top: 70px;
    }

    .store-badges li,
    .store-badges a,
    .store-badges img {
        width: 136px;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-links a {
        font-size: 18px;
    }

    .fake-input {
        flex-wrap: wrap;
    }

    .field-label {
        flex-basis: 100%;
        width: 100%;
        height: 34px;
    }

    .fake-input select {
        flex-basis: 33.333%;
    }

    .gender-field {
        flex-wrap: nowrap;
    }

    .gender-field .field-label {
        flex-basis: 75px;
        width: 75px;
        height: 44px;
    }
}
