/* ==== THEME ==== */
:root{
    --bg:#ffffff;
    --text:#222;
    --muted:#6b7280;
    --card:#fff;
    --surface:#f4f6f8;
    --overlay:rgba(0,0,0,.55);
    --primary:#135dff;
    --shadow:0 10px 30px rgba(0,0,0,.12)
}
body.dark{
    --bg:#0f172a;
    --text:#e5e7eb;
    --muted:#94a3b8;
    --card:#111827;
    --surface:#0b1222;
    --overlay:rgba(0,0,0,.65);
    --primary:#06b6d4
}
*{
    box-sizing:border-box
}
html,body{
    height:100%
}
body{
    margin:0;
    background:var(--bg);
    color:var(--text);
    font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;
    display:flex;
    flex-direction:column
}
a{
    color:inherit;
    text-decoration:none
}
button{
    font:inherit
}

/* ==== HEADER ==== */
/*  .header{
    position:sticky;top:0;z-index:50;
    display:flex;align-items:center;justify-content:space-between;
    padding:14px 22px;background:var(--card);box-shadow:var(--shadow)
  }
  .brand{display:flex;gap:12px;align-items:center}
  .brand img{height:32px;width:auto}
  .brand .title{font-size:28px;font-weight:800}
  .actions{display:flex;gap:16px;align-items:center}
  .howto-btn{display:flex;gap:8px;align-items:center;padding:8px 12px;border-radius:999px;background:var(--surface);border:1px solid transparent;cursor:pointer}
  .howto-btn img{height:18px}
  .theme-toggle{background:none;border:none;cursor:pointer}
  .theme-toggle img{height:28px;width:auto}*/

.header{
    position:sticky;
    top:0;
    z-index:50;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:14px 22px;
    background:var(--card);
    box-shadow:var(--shadow)
}
.brand{
    display:flex;
    gap:12px;
    align-items:center
}
.brand img{
    height:4rem
}
.brand .title{
    font-size:28px;
    font-weight:800
}
.actions{
    display:flex;
    gap:16px;
    align-items:center
}
.howto-btn{
    display:flex;
    gap:8px;
    align-items:center;
    padding:8px 12px;
    border-radius:999px;
    background:var(--surface);
    border:1px solid transparent;
    cursor:pointer
}
.howto-btn img{
    height:2rem
}
.theme-toggle{
    background:none;
    border:none;
    cursor:pointer
}
.theme-toggle img{
    height:3rem
}

/* ==== PAGE WRAP ==== */
.wrap{
    max-width:1400px;
    margin:28px auto;
    padding:0 18px
}

/* Desktop-only big gold title; mobile unchanged */
.games-title{
    margin:36px 0 8px;
    font-weight:900;
    line-height:1
}
@media(min-width:1024px){
    .games-title{
        font-size:72px;
        color:#D9A24E;
        letter-spacing:.5px;
        margin-top:40px;
        margin-bottom:26px
    }
}
@media(max-width:1023px){
    .games-title{
        font-size:34px
    }
}

/* ==== SLOT GRID ==== */
.grid{
    display:grid;
    gap:26px;
    grid-template-columns:repeat(2,1fr)
}
@media(min-width:700px){
    .grid{
        grid-template-columns:repeat(3,1fr)
    }
}
@media(min-width:1280px){
    .grid{
        grid-template-columns:repeat(5,1fr)
    }
}
.card{
    position:relative;
    border-radius:18px;
    overflow:hidden;
    box-shadow:var(--shadow);
    background:var(--card)
}
.card img{
    display:block;
    width:100%;
    height:280px;
    object-fit:contain;
}
@media(min-width:1280px){
    .card img{
        height:340px
    }
}
.caption{
    padding:10px 6px 14px;
    text-align:center;
    font-weight:700;
    color:var(--muted);
    font-size:20px
}

/*.overlay{
    position:absolute;
    inset:0;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:10px;
    background:linear-gradient(180deg,rgba(0,0,0,.0),rgba(0,0,0,.35) 35%,rgba(0,0,0,.58));
    opacity:0;
    transition:opacity .25s
}

.card:hover .overlay{
    opacity:1
}*/

.overlay{
    position:absolute;
    inset:0;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:10px;
    background:linear-gradient(180deg,rgba(0,0,0,.0),rgba(0,0,0,.35) 35%,rgba(0,0,0,.58));
    opacity:0;
    visibility:hidden;         /* hide when not shown */
    pointer-events:none;       /* ignore taps/clicks when hidden */
    transition:opacity .25s, visibility .25s;
}

/* show & make clickable on hover/focus */
.card:hover .overlay,
.card:focus-within .overlay{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
}


.overlay .ghost{
    width:80%;
    max-width:210px;
    padding:12px 16px;
    border-radius:10px;
    background:rgba(255,255,255,.92);
    border:1px solid #e5e7eb;
    color:#111;
    font-weight:800;
    cursor:pointer;
    box-shadow:0 4px 10px rgba(0,0,0,.12);
    text-align: center;
}
body.dark .overlay .ghost{
    background:rgba(17,24,39,.93);
    color:#e5e7eb;
    border-color:#1f2937
}

/* ==== FORM MODAL ==== */
.modal{
    position:fixed;
    inset:0;
    z-index:60;
    display:none;
    align-items:center;
    justify-content:center;
    background:var(--overlay);
    backdrop-filter:blur(7px);
    padding:22px
}
.modal.open{
    display:flex
}
.sheet{
    width:min(940px,100%);
    background:var(--card);
    border-radius:18px;
    padding:20px 22px 24px;
    box-shadow:var(--shadow)
}
.sheet-head{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:18px
}
.chip{
    display:inline-flex;
    align-items:center;
    gap:8px;
    font-weight:800;
    font-size:14px;
    color:#fff;
    background:#111827;
    padding:8px 12px;
    border-radius:999px
}
.chip img{
    height:20px
}
.grid-form{
    display:grid;
    gap:16px;
    grid-template-columns:1fr 1fr
}
.field{
    display:flex;
    flex-direction:column;
    gap:6px
}
.label{
    font-weight:700
}
.input{
    display:flex;
    align-items:center;
    gap:8px;
    border:1px dashed #d1d5db;
    border-radius:10px;
    padding:12px;
    background:var(--surface)
}
body.dark .input{
    border-color:#263042
}
.input input,.input select{
    border:none;
    outline:none;
    background:transparent;
    width:100%;
    color:var(--text);
    font-size:15px
}
.sheet .cta{
    margin-top:18px;
    width:100%;
    padding:14px 18px;
    font-size:18px;
    font-weight:800;
    color:#fff;
    background:var(--primary);
    border:none;
    border-radius:10px;
    cursor:pointer;
    box-shadow:0 6px 0 rgba(0,0,0,.25)
}
.sheet .createnew{
    margin: 18px;
    padding: 14px 18px;
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    background: darkorange;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 6px 0 rgba(0, 0, 0, .25);
}
.x{
    position:absolute;
    top:16px;
    right:16px;
    background:transparent;
    border:none;
    color:#fff;
    font-size:28px;
    cursor:pointer
}
@media(max-width:720px){
    .grid-form{
        grid-template-columns:1fr
    }
    .brand .title{
        display:none
    }
}
@media(min-width:410px) and (max-width: 720px){
    .brand img{
        height: 5rem;
    }
    .howto-btn img{
        height: 1.5rem;
    }
    .howto-btn{
        font-size: 15px;
    }
    .theme-toggle img{
        height: 4rem;
    }
}
@media(max-width: 410px){
    .brand img{
        height: 4rem;
    }
    .howto-btn img{
        height: 1rem;
    }
    .howto-btn{
        font-size: 15px;
    }
    .theme-toggle img{
        height: 3.5rem;
    }
}

/* ==== FULLSCREEN IFRAME ==== */
.iframe-wrap{
    position:fixed;
    inset:0;
    z-index:80;
    display:none;
    background:#000
}
.iframe-wrap.open{
    display:block
}
.iframe-wrap iframe{
    position:absolute;
    inset:0;
    border:0;
    width:100%;
    height:100%
}
.iframe-close{
    position:fixed;
    top:10px;
    right:14px;
    z-index:90;
    background:rgba(0,0,0,.55);
    color:#fff;
    border:none;
    border-radius:10px;
    padding:8px 12px;
    font-weight:700;
    cursor:pointer
}

/* ==== HOW TO MODAL ==== */
.howto{
    position:fixed;
    inset:0;
    z-index:100;
    display:none;
    background:#000
}
.howto.open{
    display:grid;
    grid-template-rows:1fr auto
}
.howto .yt{
    width:100%;
    height:100%;
    border:0
}
.refs{
    display:flex;
    gap:14px;
    overflow:auto;
    padding:12px;
    background:#0b1222
}
.ref{
    min-width:230px;
    background:#111827;
    color:#fff;
    border-radius:12px;
    overflow:hidden
}
.ref img{
    width:100%;
    height:120px;
    object-fit:cover;
    display:block
}
.ref .name{
    padding:10px 12px;
    font-weight:800
}

/* ==== SINGLE-LINE FOOTER ==== */
.pm-mini-footer{
    background:#0B1222;
    color:#E6EDF5;
    text-align:center;
    padding:12px 16px;
    font-weight:600;
    font-size:15px;
    border-top:1px solid #141C2C;
    margin-top:auto
}


.btn-shop {
    background-color: #0d1321;
    color: #fff;
    font-weight: 700;
    border-radius: 999px;
    padding: 10px 24px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
    border: none;
    line-height: 1.1;
}
.btn-shop:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 19, 33, 0.25);
}

/* Orange CTA (right) */
.btn-orange {
    background-color: #ff9800;
    color: #fff;
    font-weight: 700;
    border-radius: 12px;
    /*padding: 14px 22px;*/
    border: none;
    box-shadow: 0 8px 0 #d58300, 0 10px 18px rgba(0,0,0,.16);
    line-height: 1.25;
    text-align: center;
}
.btn-orange:hover {
    background-color: #f28c00;
}
.btn-orange:active {
    transform: translateY(2px);
    box-shadow: 0 6px 0 #d58300, 0 8px 14px rgba(0,0,0,.14);
}
.btn-orange:focus {
    box-shadow: 0 0 0 0.2rem rgba(255,152,0,.35);
}

/* Mobile spacing so it looks like your second screenshot */
@media (max-width: 767.98px) {
    .btn-orange {
        width: 100%;
        margin-top: 14px;
    }
}