/* KelpShrine — Deep Sea Dark Fantasy theme */
:root {
    --abyss: #03060d;
    --deep: #071223;
    --tide: #0b2036;
    --kelp: #0f3d3a;
    --glow: #4fd1c5;
    --glow-2: #7ce7ff;
    --coral: #ff5b7a;
    --gold: #f2c14e;
    --ink: #e6f2ff;
    --muted: #8aa6c1;
    --border: rgba(124, 231, 255, .15);
}

* {
    box-sizing: border-box
}

html, body {
    margin: 0;
    padding: 0
}

body {
    font-family: "Cinzel", "Cormorant Garamond", Georgia, serif;
    color: var(--ink);
    background: radial-gradient(1200px 800px at 20% -10%, rgba(79, 209, 197, .15), transparent 60%),
    radial-gradient(900px 700px at 90% 20%, rgba(124, 231, 255, .08), transparent 60%),
    radial-gradient(700px 900px at 50% 120%, rgba(255, 91, 122, .08), transparent 60%),
    linear-gradient(180deg, #02040a 0%, #03080f 40%, #050e1b 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--glow-2);
    text-decoration: none
}

a:hover {
    color: var(--glow);
    text-shadow: 0 0 8px rgba(79, 209, 197, .5)
}

img {
    max-width: 100%;
    display: block
}

h1, h2, h3, h4 {
    font-family: "Cinzel", serif;
    letter-spacing: .06em;
    margin: 0 0 .6em;
    color: #dff6ff;
    text-shadow: 0 0 24px rgba(79, 209, 197, .25)
}

h1 {
    font-size: 2.4rem
}

h2 {
    font-size: 1.8rem
}

p {
    line-height: 1.7;
    color: #c8dbee
}

/* floating bubbles */
.bubbles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden
}

.bubbles span {
    position: absolute;
    bottom: -40px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .7), rgba(124, 231, 255, .1) 60%, transparent 70%);
    box-shadow: 0 0 12px rgba(124, 231, 255, .25);
    animation: rise linear infinite;
    opacity: .6;
}

@keyframes rise {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0
    }
    10% {
        opacity: .7
    }
    100% {
        transform: translateY(-110vh) translateX(40px);
        opacity: 0
    }
}

/* layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2
}

/* header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
    background: linear-gradient(180deg, rgba(3, 6, 13, .85), rgba(3, 6, 13, .55));
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 78px
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: "Cinzel", serif;
    color: #eafaff;
    font-size: 1.4rem;
    letter-spacing: .14em
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #7ce7ff, #0b2036 60%, #03060d);
    box-shadow: 0 0 24px rgba(124, 231, 255, .5), inset 0 0 12px rgba(0, 0, 0, .6);
    position: relative;
}

.brand-mark::after {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    border: 1px solid rgba(124, 231, 255, .35);
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 22px;
    margin: 0;
    padding: 0
}

.nav ul a {
    color: #c9e0f2;
    font-family: inherit;
    letter-spacing: .14em;
    font-size: .85rem;
    text-transform: uppercase
}

.nav ul a.active, .nav ul a:hover {
    color: #7ce7ff
}

.nav-cta {
    padding: 10px 18px;
    border: 1px solid var(--glow);
    color: #eafaff;
    border-radius: 2px;
    letter-spacing: .2em;
    font-size: .75rem;
    text-transform: uppercase;
    background: linear-gradient(180deg, rgba(79, 209, 197, .15), rgba(79, 209, 197, .05));
    box-shadow: 0 0 20px rgba(79, 209, 197, .25), inset 0 0 12px rgba(79, 209, 197, .15);
    transition: all .25s;
}

.nav-cta:hover {
    background: rgba(79, 209, 197, .25);
    color: #fff;
    box-shadow: 0 0 26px rgba(79, 209, 197, .55)
}

/* hero */
.hero {
    position: relative;
    padding: 120px 0 100px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(600px 400px at 50% 40%, rgba(79, 209, 197, .18), transparent 70%),
    radial-gradient(900px 500px at 50% 100%, rgba(11, 32, 54, .9), transparent 80%);
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1
}

.hero .eyebrow {
    color: #7ce7ff;
    letter-spacing: .4em;
    font-size: .75rem;
    text-transform: uppercase;
    margin-bottom: 20px
}

.hero h1 {
    font-size: 3.6rem;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 0 40px rgba(79, 209, 197, .4)
}

.hero p {
    max-width: 640px;
    margin: 0 auto 34px;
    color: #a9c4dc;
    font-size: 1.05rem
}

.btn {
    display: inline-block;
    padding: 14px 30px;
    letter-spacing: .24em;
    text-transform: uppercase;
    font-size: .8rem;
    border: 1px solid var(--glow);
    color: #eafaff;
    border-radius: 2px;
    background: linear-gradient(180deg, rgba(79, 209, 197, .18), rgba(79, 209, 197, .04));
    box-shadow: 0 0 24px rgba(79, 209, 197, .28), inset 0 0 12px rgba(79, 209, 197, .18);
    cursor: pointer;
    transition: all .25s;
    font-family: inherit;
}

.btn:hover {
    background: rgba(79, 209, 197, .3);
    box-shadow: 0 0 32px rgba(79, 209, 197, .6);
    color: #fff
}

.btn.coral {
    border-color: var(--coral);
    box-shadow: 0 0 24px rgba(255, 91, 122, .35), inset 0 0 12px rgba(255, 91, 122, .18);
    background: linear-gradient(180deg, rgba(255, 91, 122, .2), rgba(255, 91, 122, .05))
}

.btn.coral:hover {
    background: rgba(255, 91, 122, .35);
    box-shadow: 0 0 32px rgba(255, 91, 122, .6)
}

.btn.gold {
    border-color: var(--gold);
    color: #fff8dc;
    box-shadow: 0 0 24px rgba(242, 193, 78, .3), inset 0 0 12px rgba(242, 193, 78, .18);
    background: linear-gradient(180deg, rgba(242, 193, 78, .15), rgba(242, 193, 78, .04))
}

.btn.gold:hover {
    background: rgba(242, 193, 78, .28)
}

/* sections */
section.slab {
    padding: 80px 0;
    position: relative
}

.section-title {
    text-align: center;
    margin-bottom: 14px
}

.section-sub {
    text-align: center;
    color: var(--muted);
    max-width: 640px;
    margin: 0 auto 50px
}

/* game grid */
.games {
    display: grid;
    grid-template-columns:repeat(auto-fill, minmax(220px, 1fr));
    gap: 22px
}

.game {
    position: relative;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    /*background:linear-gradient(180deg,rgba(11,32,54,.85),rgba(3,8,15,.85));*/
    transition: transform .3s, box-shadow .3s, border-color .3s;
    cursor: pointer;
}

.game:hover {
    transform: translateY(-6px);
    border-color: var(--glow);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .5), 0 0 30px rgba(79, 209, 197, .35)
}

.game .thumb {
    aspect-ratio: 4/5;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.game .thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(3, 6, 13, .95));
}

.game .meta {
    /*padding: 16px 16px 20px;*/
    position: relative;
    z-index: 2;
    /*margin-top: -40px*/
    text-align: center;
}

.game .meta h3 {
    font-size: .98rem;
    margin-bottom: 6px;
    letter-spacing: .05em
}

.game .meta .tag {
    font-size: .7rem;
    letter-spacing: .2em;
    color: var(--glow);
    text-transform: uppercase
}

.game .badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    font-size: .65rem;
    letter-spacing: .18em;
    padding: 4px 8px;
    background: rgba(255, 91, 122, .85);
    color: #fff;
    border-radius: 2px;
    text-transform: uppercase
}

/* thumb palettes */
.t1 {
    background: linear-gradient(160deg, #08324a, #0a1424 60%, #000)
}

.t2 {
    background: linear-gradient(160deg, #2a0a3a, #0a1424 60%, #000)
}

.t3 {
    background: linear-gradient(160deg, #0a3a2c, #031c1c 60%, #000)
}

.t4 {
    background: linear-gradient(160deg, #3a2a0a, #1a0e00 60%, #000)
}

.t5 {
    background: linear-gradient(160deg, #3a0a1e, #1a0009 60%, #000)
}

.t6 {
    background: linear-gradient(160deg, #0a223a, #03101c 60%, #000)
}

.t7 {
    background: linear-gradient(160deg, #1a3a3a, #020e0e 60%, #000)
}

.t8 {
    background: linear-gradient(160deg, #3a1a2a, #100510 60%, #000)
}

/* recharge */
.recharge-wrap {
    display: grid;
    grid-template-columns:1.2fr 1fr;
    gap: 40px;
    align-items: start
}

@media (max-width: 900px) {
    .recharge-wrap {
        grid-template-columns:1fr
    }
}

.card {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 30px;
    background: linear-gradient(180deg, rgba(11, 32, 54, .75), rgba(3, 8, 15, .85));
    box-shadow: 0 0 30px rgba(0, 0, 0, .5), inset 0 0 40px rgba(79, 209, 197, .05);
}

.ladder {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px
}

.ladder th, .ladder td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.05rem
}

.ladder th {
    color: var(--glow);
    letter-spacing: .15em;
    text-transform: uppercase;
    font-size: .75rem
}

.ladder tr:hover td {
    background: rgba(79, 209, 197, .05)
}

.ladder td:last-child {
    color: var(--gold);
    text-align: right;
    font-weight: 600
}

.tier-preset {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 20px
}

.tier-preset button {
    padding: 8px 12px;
    border: 1px solid var(--border);
    background: rgba(11, 32, 54, .7);
    color: #dff6ff;
    font-family: inherit;
    letter-spacing: .14em;
    font-size: .7rem;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 2px;
    transition: all .2s;
}

.tier-preset button:hover, .tier-preset button.on {
    border-color: var(--glow);
    color: #fff;
    box-shadow: 0 0 12px rgba(79, 209, 197, .35)
}

.field {
    display: block;
    margin-bottom: 16px
}

.field label {
    display: block;
    font-size: .75rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px
}

.field input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(3, 8, 15, .8);
    border: 1px solid var(--border);
    color: #eafaff;
    font-family: inherit;
    font-size: 1.1rem;
    border-radius: 2px;
    outline: none;
}

.field input:focus {
    border-color: var(--glow);
    box-shadow: 0 0 16px rgba(79, 209, 197, .3)
}

.receipt {
    margin-top: 20px;
    padding: 20px;
    background: rgba(3, 8, 15, .7);
    border: 1px dashed var(--border);
    border-radius: 4px
}

.receipt .row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.05rem;
    color: #c9e0f2
}

.receipt .row.total {
    border-top: 1px solid var(--border);
    margin-top: 10px;
    padding-top: 14px;
    color: var(--gold);
    font-size: 1.3rem;
    font-weight: 700
}

.lifetime {
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(242, 193, 78, .4);
    background: rgba(242, 193, 78, .06);
    color: var(--gold);
    border-radius: 2px;
    font-size: .85rem;
    letter-spacing: .06em
}

/* legal / long-form */
.prose {
    max-width: 820px;
    margin: 0 auto
}

.prose h2 {
    margin-top: 40px
}

.prose ul {
    color: #c8dbee;
    line-height: 1.9
}

.prose .edit-hint {
    display: inline-block;
    margin-bottom: 24px;
    padding: 6px 12px;
    font-size: .7rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--glow);
    border: 1px dashed var(--border);
    border-radius: 2px;
}

/* footer */
.site-footer {
    margin-top: 80px;
    padding: 50px 0 30px;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(3, 6, 13, 0), rgba(3, 6, 13, .9));
}

.foot-grid {
    display: grid;
    grid-template-columns:2fr 1fr 1fr 1fr;
    gap: 30px
}

@media (max-width: 800px) {
    .foot-grid {
        grid-template-columns:1fr 1fr
    }
}

.foot-grid h4 {
    font-size: .8rem;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--glow)
}

.foot-grid ul {
    list-style: none;
    padding: 0;
    margin: 0
}

.foot-grid li {
    margin: 8px 0
}

.foot-grid a {
    color: #a9c4dc;
    font-size: .9rem
}

.copyright {
    margin-top: 34px;
    text-align: center;
    color: var(--muted);
    font-size: .8rem;
    letter-spacing: .14em
}

/* contact form */
.form-grid {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 16px
}

@media (max-width: 700px) {
    .form-grid {
        grid-template-columns:1fr
    }
}

textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(3, 8, 15, .8);
    border: 1px solid var(--border);
    color: #eafaff;
    font-family: inherit;
    font-size: 1rem;
    border-radius: 2px;
    outline: none;
    min-height: 150px;
    resize: vertical;
}

textarea:focus {
    border-color: var(--glow);
    box-shadow: 0 0 16px rgba(79, 209, 197, .3)
}

/* ---------- user dropdown ---------- */
.user-menu {
    position: relative
}

.user-menu .user-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    padding: 10px 16px;
    border: 1px solid var(--glow);
    border-radius: 2px;
    background: linear-gradient(180deg, rgba(79, 209, 197, .15), rgba(79, 209, 197, .05));
    box-shadow: 0 0 20px rgba(79, 209, 197, .25), inset 0 0 12px rgba(79, 209, 197, .15);
    color: #eafaff;
    font-family: inherit;
    letter-spacing: .2em;
    font-size: .75rem;
    text-transform: uppercase;
    transition: all .25s;
}

.user-menu .user-trigger:hover {
    background: rgba(79, 209, 197, .25);
    color: #fff
}

.user-menu .user-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #7ce7ff, #0b2036 60%, #03060d);
    box-shadow: 0 0 10px rgba(124, 231, 255, .5), inset 0 0 6px rgba(0, 0, 0, .6);
    display: inline-block;
}

.user-menu .caret {
    font-size: .6rem;
    opacity: .7;
    transition: transform .2s
}

.user-menu.open .caret {
    transform: rotate(180deg)
}

.user-menu .dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 230px;
    background: linear-gradient(180deg, rgba(11, 32, 54, .98), rgba(3, 8, 15, .98));
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .6), 0 0 24px rgba(79, 209, 197, .2);
    padding: 8px 0;
    display: none;
    z-index: 50;
}

.user-menu.open .dropdown {
    display: block
}

.user-menu .dropdown .head {
    padding: 12px 18px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    font-size: .7rem;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.user-menu .dropdown .head strong {
    display: block;
    color: #eafaff;
    font-family: "Cinzel", serif;
    font-size: .9rem;
    letter-spacing: .14em;
    margin-top: 4px
}

.user-menu .dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    color: #c9e0f2;
    font-size: .8rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-family: inherit;
    border-left: 2px solid transparent;
}

.user-menu .dropdown a:hover {
    background: rgba(79, 209, 197, .08);
    color: #7ce7ff;
    border-left-color: var(--glow)
}

.user-menu .dropdown .sep {
    height: 1px;
    background: var(--border);
    margin: 6px 0
}

.user-menu .dropdown a .ico {
    width: 16px;
    text-align: center;
    opacity: .85
}

/* ---------- user center layout ---------- */
.uc-wrap {
    display: grid;
    grid-template-columns:260px 1fr;
    gap: 30px;
    align-items: start
}

@media (max-width: 820px) {
    .uc-wrap {
        grid-template-columns:1fr
    }
}

.uc-side {
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(11, 32, 54, .75), rgba(3, 8, 15, .85));
}

.uc-side .uc-user {
    padding: 22px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 14px;
    align-items: center;
}

.uc-side .uc-user .av {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #7ce7ff, #0b2036 60%, #03060d);
    box-shadow: 0 0 14px rgba(124, 231, 255, .5), inset 0 0 8px rgba(0, 0, 0, .6);
}

.uc-side .uc-user .who strong {
    display: block;
    color: #eafaff;
    font-family: "Cinzel", serif;
    letter-spacing: .1em;
    font-size: .95rem
}

.uc-side .uc-user .who span {
    color: var(--muted);
    font-size: .75rem
}

.uc-side nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: #c9e0f2;
    font-size: .8rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    border-left: 3px solid transparent;
}

.uc-side nav a:hover {
    background: rgba(79, 209, 197, .06);
    color: #7ce7ff
}

.uc-side nav a.on {
    background: rgba(79, 209, 197, .1);
    color: #7ce7ff;
    border-left-color: var(--glow)
}

.uc-side nav a .ico {
    width: 18px;
    text-align: center;
    opacity: .85
}

.uc-panel {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 34px;
    background: linear-gradient(180deg, rgba(11, 32, 54, .75), rgba(3, 8, 15, .85));
    box-shadow: 0 0 30px rgba(0, 0, 0, .5), inset 0 0 40px rgba(79, 209, 197, .04);
    min-height: 420px;
}

.uc-panel h2 {
    margin-top: 0
}

.uc-tab {
    display: none
}

.uc-tab.on {
    display: block
}

/* orders table */
.orders {
    width: 100%;
    border-collapse: collapse;
    margin-top: 14px;
    font-family: "Cormorant Garamond", serif
}

.orders th, .orders td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 1rem
}

.orders th {
    color: var(--glow);
    letter-spacing: .15em;
    text-transform: uppercase;
    font-size: .72rem;
    font-family: "Cinzel", serif
}

.orders tr:hover td {
    background: rgba(79, 209, 197, .04)
}

.orders .status.ok {
    color: var(--glow)
}

.orders .status.fail {
    color: var(--coral)
}

.orders-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--muted);
    border: 1px dashed var(--border);
    border-radius: 4px;
    margin-top: 14px
}

/* select styling */
select {
    width: 100%;
    padding: 14px 16px;
    background: rgba(3, 8, 15, .8);
    border: 1px solid var(--border);
    color: #eafaff;
    font-family: inherit;
    font-size: 1rem;
    border-radius: 2px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--glow) 50%), linear-gradient(135deg, var(--glow) 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

select:focus {
    border-color: var(--glow);
    box-shadow: 0 0 16px rgba(79, 209, 197, .3)
}
