/* =========================================================
 * okada login app - layout stylesheet (layout-5630.css)
 * All custom classes use the w5630- prefix.
 * Palette: #262626 bg, #FFFACD light text, #FFB347 accent,
 *          #FF8C00 brand orange, #808080 muted grey.
 * ========================================================= */

:root {
    --w5630-bg:        #262626;
    --w5630-bg-2:      #1c1c1c;
    --w5630-card:      #2f2f2f;
    --w5630-text:      #FFFACD;
    --w5630-muted:     #808080;
    --w5630-accent:    #FFB347;
    --w5630-brand:     #FF8C00;
    --w5630-shadow:    0 6px 18px rgba(0, 0, 0, 0.45);
    --w5630-radius:    16px;
    --w5630-header-h:  58px;
    --w5630-bottomnav-h: 62px;
    --w5630-max:       430px;
}

* { box-sizing: border-box; }

html {
    font-size: 62.5%;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: radial-gradient(circle at 25% 0%, #3a2a14 0%, var(--w5630-bg) 55%, var(--w5630-bg-2) 100%);
    color: var(--w5630-text);
    font-family: "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif;
    font-size: 1.5rem;
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: var(--w5630-accent); text-decoration: none; }
a:hover, a:focus { color: var(--w5630-brand); }
img { max-width: 100%; display: block; }

/* ---------- Header ---------- */
.w5630-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--w5630-header-h);
    background: linear-gradient(90deg, #1f1f1f 0%, #2b2b2b 100%);
    border-bottom: 2px solid var(--w5630-brand);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    z-index: 1000;
    box-shadow: var(--w5630-shadow);
}

.w5630-brand {
    display: flex; align-items: center; gap: 8px;
    color: var(--w5630-text); font-weight: 700; font-size: 1.6rem;
    letter-spacing: 0.3px;
}
.w5630-brand .w5630-logo {
    width: 34px; height: 34px; border-radius: 8px;
    background: linear-gradient(135deg, var(--w5630-brand), var(--w5630-accent));
    display: flex; align-items: center; justify-content: center;
    color: #262626; font-weight: 800;
}
.w5630-brand .w5630-logo i { font-size: 20px; }

.w5630-header-actions { display: flex; align-items: center; gap: 8px; }

.w5630-icon-btn {
    background: transparent; border: none; color: var(--w5630-text);
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 20px;
}
.w5630-icon-btn:hover { background: rgba(255, 179, 71, 0.12); color: var(--w5630-accent); }

.w5630-btn {
    border: none; border-radius: 999px;
    padding: 9px 16px; font-size: 1.3rem; font-weight: 700;
    cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
    transition: transform .15s ease, box-shadow .15s ease;
    text-decoration: none; line-height: 1;
}
.w5630-btn:hover { transform: translateY(-1px); }
.w5630-btn-register {
    background: linear-gradient(135deg, var(--w5630-brand), #ff6a00);
    color: #1c1c1c;
    box-shadow: 0 4px 10px rgba(255, 140, 0, 0.35);
}
.w5630-btn-login {
    background: transparent;
    color: var(--w5630-text);
    border: 1.5px solid var(--w5630-accent);
}
.w5630-btn-login:hover { background: rgba(255, 179, 71, 0.12); }

/* ---------- Mobile slide-down menu ---------- */
.w5630-mobilemenu {
    position: fixed;
    top: var(--w5630-header-h);
    left: 0; right: 0;
    background: var(--w5630-bg-2);
    border-bottom: 1px solid #3a3a3a;
    max-height: 0; overflow: hidden;
    transition: max-height .28s ease;
    z-index: 9999;
}
.w5630-mobilemenu.w5630-open { max-height: 420px; box-shadow: var(--w5630-shadow); }
.w5630-mobilemenu ul { list-style: none; margin: 0; padding: 8px 0; }
.w5630-mobilemenu li a {
    display: block; padding: 12px 18px;
    color: var(--w5630-text); font-size: 1.45rem;
    border-bottom: 1px solid #303030;
}
.w5630-mobilemenu li a:hover { background: rgba(255, 179, 71, 0.08); color: var(--w5630-accent); }

/* ---------- Hero ---------- */
.w5630-main { padding-top: calc(var(--w5630-header-h) + 10px); }

.w5630-hero {
    position: relative;
    padding: 20px 16px 26px;
    overflow: hidden;
}
.w5630-hero h1 {
    margin: 0 0 10px;
    font-size: 2.5rem;
    line-height: 1.2;
    color: var(--w5630-text);
    text-shadow: 0 2px 10px rgba(0,0,0,.55);
}
.w5630-hero h1 span { color: var(--w5630-brand); }
.w5630-hero p {
    margin: 0 0 16px;
    color: #e9e4c7;
    font-size: 1.45rem;
    line-height: 1.55;
}
.w5630-hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.w5630-hero-cta .w5630-btn { padding: 12px 20px; font-size: 1.4rem; }

.w5630-banner {
    margin: 6px 0 0;
    border-radius: var(--w5630-radius);
    overflow: hidden;
    box-shadow: var(--w5630-shadow);
    border: 1px solid #3a3a3a;
}
.w5630-banner img { width: 100%; height: auto; }

/* ---------- Marquee strip ---------- */
.w5630-marquee {
    background: linear-gradient(90deg, var(--w5630-brand), var(--w5630-accent));
    color: #262626; font-weight: 700;
    padding: 7px 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: 1.3rem;
}
.w5630-marquee span {
    display: inline-block;
    padding-left: 100%;
    animation: w5630scroll 22s linear infinite;
}
@keyframes w5630scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* ---------- Section ---------- */
.w5630-container,
.w5630-wrapper,
.w5630-wrap {
    width: 100%;
    max-width: var(--w5630-max);
    margin-left: auto;
    margin-right: auto;
}

.w5630-section {
    padding: 22px 14px 10px;
}
.w5630-section-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px;
}
.w5630-section-head h2 {
    font-size: 1.8rem; margin: 0; color: var(--w5630-accent);
    display: flex; align-items: center; gap: 8px;
}
.w5630-section-head h2 i { color: var(--w5630-brand); }
.w5630-section-head a { font-size: 1.25rem; color: var(--w5630-muted); }

/* ---------- Game grid ---------- */
.w5630-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.w5630-card {
    background: var(--w5630-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #3a3a3a;
    position: relative;
    transition: transform .15s ease, border-color .15s ease;
}
.w5630-card:hover, .w5630-card:focus-within {
    transform: translateY(-2px);
    border-color: var(--w5630-accent);
}
.w5630-card .w5630-thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #1d1d1d;
}
.w5630-card .w5630-thumb img { width: 100%; height: 100%; object-fit: cover; }
.w5630-card .w5630-play {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.35);
    color: var(--w5630-text);
    opacity: 0; transition: opacity .15s ease;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
}
.w5630-card:hover .w5630-play, .w5630-card:focus-within .w5630-play { opacity: 1; }
.w5630-card .w5630-title {
    padding: 8px 10px;
    font-size: 1.2rem;
    color: var(--w5630-text);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.w5630-badge {
    position: absolute; top: 6px; left: 6px;
    background: var(--w5630-brand);
    color: #262626; font-size: 1rem; font-weight: 700;
    padding: 2px 6px; border-radius: 6px;
}

/* ---------- Promo band ---------- */
.w5630-promo {
    margin: 18px 14px;
    padding: 18px 16px;
    border-radius: var(--w5630-radius);
    background: linear-gradient(135deg, #3a2a10, #2a1f10);
    border: 1px solid var(--w5630-brand);
    text-align: center;
    box-shadow: var(--w5630-shadow);
}
.w5630-promo h3 { margin: 0 0 6px; font-size: 1.7rem; color: var(--w5630-accent); }
.w5630-promo p { margin: 0 0 12px; color: #e9e4c7; font-size: 1.35rem; }

/* ---------- Feature list ---------- */
.w5630-features {
    display: grid; gap: 10px; grid-template-columns: 1fr;
}
.w5630-feature {
    display: flex; gap: 12px; align-items: flex-start;
    background: var(--w5630-card);
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #3a3a3a;
}
.w5630-feature .w5630-ic {
    width: 40px; height: 40px; min-width: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--w5630-brand), var(--w5630-accent));
    color: #262626;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
}
.w5630-feature h4 { margin: 0 0 4px; font-size: 1.4rem; color: var(--w5630-accent); }
.w5630-feature p { margin: 0; font-size: 1.3rem; color: #d7d2b2; }

/* ---------- FAQ ---------- */
.w5630-faq { display: grid; gap: 8px; }
.w5630-faq details {
    background: var(--w5630-card);
    border: 1px solid #3a3a3a;
    border-radius: 12px;
    padding: 12px 14px;
}
.w5630-faq summary {
    cursor: pointer; font-size: 1.4rem; color: var(--w5630-accent);
    list-style: none;
}
.w5630-faq summary::-webkit-details-marker { display: none; }
.w5630-faq summary::before { content: "+ "; color: var(--w5630-brand); font-weight: 800; }
.w5630-faq details[open] summary::before { content: "- "; }
.w5630-faq details p { margin: 8px 0 0; color: #d7d2b2; font-size: 1.3rem; }

/* ---------- SEO content ---------- */
.w5630-seo {
    padding: 10px 14px 20px;
    color: #d7d2b2;
    font-size: 1.35rem;
    line-height: 1.6;
}
.w5630-seo h2 { color: var(--w5630-accent); font-size: 1.7rem; margin: 18px 0 8px; }
.w5630-seo h3 { color: var(--w5630-brand); font-size: 1.45rem; margin: 14px 0 6px; }
.w5630-seo p { margin: 0 0 10px; }
.w5630-seo a { color: var(--w5630-accent); border-bottom: 1px dotted var(--w5630-accent); }

/* ---------- Bottom nav ---------- */
.w5630-bottomnav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: var(--w5630-bottomnav-h);
    background: linear-gradient(180deg, #1f1f1f 0%, #161616 100%);
    border-top: 2px solid var(--w5630-brand);
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    z-index: 1000;
    box-shadow: 0 -4px 14px rgba(0,0,0,.5);
}
.w5630-navbtn {
    flex: 1 1 0; min-width: 0; min-height: 60px;
    background: transparent; border: none; color: var(--w5630-muted);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px;
    font-size: 1.05rem;
    cursor: pointer;
    padding: 6px 2px;
    transition: color .15s ease, transform .15s ease;
    text-decoration: none;
    position: relative;
    z-index: 1;
}
.w5630-navbtn i, .w5630-navbtn .material-icons-outlined,
.w5630-navbtn .ion { font-size: 22px; pointer-events: none; }
.w5630-navbtn:hover { color: var(--w5630-accent); transform: translateY(-1px); }
.w5630-navbtn.w5630-active { color: var(--w5630-brand); }
.w5630-navbtn.w5630-cta {
    color: #262626;
    background: linear-gradient(135deg, var(--w5630-brand), var(--w5630-accent));
    border-radius: 999px;
    height: 50px; margin: 6px 4px 0;
    box-shadow: 0 4px 10px rgba(255, 140, 0, 0.45);
    z-index: 3;
}
.w5630-navbtn.w5630-cta i { font-size: 24px; }

/* ---------- Footer ---------- */
.w5630-footer {
    background: var(--w5630-bg-2);
    border-top: 1px solid #3a3a3a;
    padding: 22px 14px calc(var(--w5630-bottomnav-h) + 22px);
    color: var(--w5630-muted);
    font-size: 1.25rem;
}
.w5630-footer h4 { color: var(--w5630-accent); font-size: 1.4rem; margin: 0 0 8px; }
.w5630-footer a { color: #c8c2a3; display: inline-block; padding: 3px 0; }
.w5630-footer a:hover { color: var(--w5630-accent); }
.w5630-footer-grid {
    display: grid; gap: 14px;
    grid-template-columns: repeat(2, 1fr);
}
.w5630-footer-bottom {
    margin-top: 14px; padding-top: 12px; border-top: 1px solid #303030;
    text-align: center; font-size: 1.15rem;
}

/* ---------- Reveal animation ---------- */
.w5630-reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.w5630-reveal.w5630-visible { opacity: 1; transform: none; }

/* ---------- Back-to-top FAB ---------- */
.w5630-totop {
    position: fixed; right: 14px;
    bottom: calc(var(--w5630-bottomnav-h) + 12px);
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--w5630-brand); color: #262626;
    border: none; cursor: pointer; z-index: 900;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--w5630-shadow);
}

/* ---------- Mobile media queries ---------- */
@media (max-width: 430px) {
    .w5630-hero h1 { font-size: 2.1rem; }
    .w5630-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .w5630-section-head h2 { font-size: 1.6rem; }
    .w5630-footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
    .w5630-grid { grid-template-columns: repeat(2, 1fr); }
    .w5630-hero p { font-size: 1.35rem; }
}

/* Mobile content clearance so bottom nav never hides content. */
@media (max-width: 768px) {
    main { padding-bottom: calc(var(--w5630-bottomnav-h) + 12px); }
}

/* ---------- Desktop: hide bottom nav, expand layout ---------- */
@media (min-width: 769px) {
    .w5630-bottomnav { display: none; }
    .w5630-totop { bottom: 22px; }
    .w5630-footer { padding-bottom: 22px; }
    .w5630-wrap {
        max-width: 960px; margin: 0 auto;
    }
    .w5630-grid { grid-template-columns: repeat(5, 1fr); }
    .w5630-features { grid-template-columns: repeat(2, 1fr); }
    .w5630-footer-grid { grid-template-columns: repeat(4, 1fr); }
    main { padding-bottom: 0; }
}
