/* Shared styles for MANU888 inner pages */
:root{
  --red:#b81d21;
  --red-dark:#8e1316;
  --gold:#f2c14e;
  --page:#d9d9d9;
  --panel:#ffffff;
  --text:#1a1a1a;
  --muted:#666;
  --line:#e2e2e2;
}
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:Arial,Helvetica,sans-serif;background:var(--page);color:var(--text);min-width:320px;min-height:100vh;display:flex;flex-direction:column}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%;height:auto}
a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid var(--gold);outline-offset:2px}

/* Header */
.site-header{background:#fff;height:64px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;position:sticky;top:0;z-index:20;box-shadow:0 1px 3px rgba(0,0,0,.12)}
.site-header .back{display:flex;align-items:center;gap:4px;font-weight:bold;color:var(--red);font-size:15px;min-width:80px}
.site-header .back svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.site-header .brand{position:absolute;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:8px}
.site-header .brand img{width:52px;height:52px}
.site-header .brand span{font-family:Georgia,"Times New Roman",serif;font-weight:bold;font-size:24px;letter-spacing:1px;color:var(--red);white-space:nowrap}
.site-header .head-right{display:flex;align-items:center;gap:12px}
.site-header .auth-links{display:flex;gap:8px}
.site-header .auth-links a{padding:8px 14px;border-radius:4px;font-weight:bold;font-size:14px;border:2px solid var(--red);color:var(--red)}
.site-header .auth-links a.solid{background:var(--red);color:#fff}
.strip{height:6px;background:#000}
.main-nav{background:#111;position:sticky;top:64px;z-index:19;border-top:6px solid #000}
.main-nav ul{list-style:none;display:flex;gap:2px;max-width:1100px;margin:0 auto;padding:0 8px;overflow-x:auto;scrollbar-width:none}
.main-nav ul::-webkit-scrollbar{display:none}
.main-nav a{display:block;padding:11px 14px;color:#eee;font-size:14px;font-weight:bold;white-space:nowrap;border-bottom:3px solid transparent}
.main-nav a:hover{color:var(--gold)}
.main-nav a[aria-current=page]{color:var(--gold);border-bottom-color:var(--gold)}

/* Page */
main{flex:1;width:100%;max-width:1100px;margin:0 auto;padding:24px 16px 40px}
.page-title{font-size:26px;margin-bottom:6px}
.page-sub{color:var(--muted);font-size:15px;margin-bottom:22px;line-height:1.5}
.card{background:var(--panel);border:2px solid var(--red);border-radius:10px;padding:22px;margin-bottom:20px}
.card h2{font-size:19px;margin-bottom:12px}
.card p{line-height:1.6;color:#333}
.card p+p{margin-top:10px}
.hero{border-radius:10px;overflow:hidden;margin-bottom:20px;box-shadow:0 2px 8px rgba(0,0,0,.15);background:#fff}
.hero img{width:100%}
.narrow{max-width:460px;margin-left:auto;margin-right:auto}
.center{text-align:center}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 22px;border-radius:6px;border:2px solid var(--red);
  color:var(--red);font-weight:bold;font-size:15px;letter-spacing:.5px;background:#fff;cursor:pointer;font-family:inherit}
.btn.primary{background:linear-gradient(135deg,#e53935,var(--red) 60%,var(--red-dark));color:#fff;border-color:var(--gold)}
.btn.gold{background:linear-gradient(#ffe39a,#e9b54a);color:var(--red-dark);border-color:#e9b54a}
.btn.block{width:100%}
.btn:hover{filter:brightness(1.08)}
.btn[disabled]{opacity:.6;cursor:wait}
.actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:18px}
.actions.center{justify-content:center}

/* Forms */
.form{display:flex;flex-direction:column;gap:16px}
.field label{display:block;font-weight:bold;font-size:14px;margin-bottom:6px}
.field .hint{font-size:12px;color:var(--muted);margin-top:4px}
.input{display:flex;align-items:center;border:2px solid var(--line);border-radius:6px;background:#fff;transition:border-color .15s}
.input:focus-within{border-color:var(--red)}
.input .prefix{padding:0 0 0 12px;color:var(--muted);font-weight:bold}
.input input{flex:1;min-width:0;border:0;background:none;padding:12px;font-size:16px;font-family:inherit;outline:none}
.input .toggle{border:0;background:none;padding:0 12px;color:var(--muted);cursor:pointer;font-size:13px;font-weight:bold}
.field.invalid .input{border-color:#d32f2f}
.field .error{display:none;color:#d32f2f;font-size:13px;margin-top:4px}
.field.invalid .error{display:block}
.check{display:flex;gap:10px;align-items:flex-start;font-size:14px;line-height:1.4}
.check input{width:18px;height:18px;margin-top:1px;accent-color:var(--red);flex:none}
.form-msg{display:none;padding:12px 14px;border-radius:6px;font-size:14px;line-height:1.5}
.form-msg.show{display:block}
.form-msg.err{background:#fdecea;color:#a3191e;border:1px solid #f5c2c0}
.form-msg.ok{background:#edf7ed;color:#1e4620;border:1px solid #c3e6c3}
.form-foot{text-align:center;font-size:14px;color:var(--muted)}
.form-foot a{color:var(--red);font-weight:bold}

/* Grids */
.grid{display:grid;gap:16px}
.grid.banners{grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}
.grid.tiles{grid-template-columns:repeat(auto-fill,minmax(120px,1fr))}
.promo{background:#fff;border-radius:10px;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,.12);display:flex;flex-direction:column}
.promo img{width:100%;aspect-ratio:16/7.5;object-fit:cover}
.promo .body{padding:12px 14px;display:flex;justify-content:space-between;align-items:center;gap:10px}
.promo .body b{font-size:15px}
.promo .body .btn{min-height:36px;padding:0 14px;font-size:13px;white-space:nowrap;flex:none}
.tiles a{transition:transform .15s}
.tiles a:hover{transform:scale(1.04)}
.tiles img{border-radius:10px;box-shadow:0 2px 6px rgba(0,0,0,.15)}

/* Info list */
.facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}
.fact{background:#fff5f5;border:1px solid #f3c9ca;border-radius:8px;padding:14px}
.fact span{display:block;font-size:13px;color:var(--muted)}
.fact b{display:block;font-size:20px;color:var(--red);margin-top:4px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chips span{background:#fff5f5;border:1px solid #f3c9ca;color:var(--red-dark);border-radius:999px;padding:6px 12px;font-size:13px;font-weight:bold}
.steps{counter-reset:s;list-style:none;display:flex;flex-direction:column;gap:12px}
.steps li{counter-increment:s;display:flex;gap:12px;align-items:flex-start;line-height:1.5}
.steps li::before{content:counter(s);flex:none;width:28px;height:28px;border-radius:50%;background:var(--red);color:#fff;font-weight:bold;display:grid;place-items:center;font-size:14px}

/* Check-in table */
.days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}
.day{background:linear-gradient(135deg,#e53935,var(--red) 60%,var(--red-dark));color:#fff;border-radius:8px;padding:12px 4px;text-align:center}
.day span{display:block;font-size:12px;opacity:.85}
.day b{display:block;font-size:16px;margin-top:4px;color:var(--gold)}

/* Locked / login-required panel */
.locked{background:linear-gradient(135deg,#e53935,var(--red) 60%,var(--red-dark));color:#fff;border-radius:10px;padding:28px 22px;text-align:center;margin-bottom:20px}
.locked h2{font-size:21px;margin-bottom:8px}
.locked p{opacity:.92;line-height:1.5}
.locked .actions{justify-content:center}
.locked .btn{min-width:140px}
.locked .btn:not(.gold){background:transparent;color:#fff;border-color:var(--gold)}

/* Game page */
.game{display:grid;grid-template-columns:220px 1fr;gap:24px;align-items:center}
.game img{border-radius:14px;box-shadow:0 4px 14px rgba(0,0,0,.2)}

/* Footer */
.site-footer{background:#111;color:#bbb;font-size:13px;padding:28px 16px 22px;line-height:1.7}
.foot-cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:18px;max-width:1100px;margin:0 auto 18px}
.foot-cols h2{color:#fff;font-size:14px;margin-bottom:6px;text-transform:uppercase;letter-spacing:.5px}
.foot-cols ul{list-style:none}
.foot-cols a,.foot-social a{color:#ddd}
.foot-cols a:hover,.foot-social a:hover{color:var(--gold)}
.foot-bottom{text-align:center;border-top:1px solid #333;padding-top:16px}
.foot-bottom .age{display:inline-block;border:2px solid #e53935;color:#fff;border-radius:50%;width:34px;height:34px;line-height:30px;font-weight:bold;margin-bottom:6px}
.foot-social{display:flex;flex-wrap:wrap;gap:6px 16px;justify-content:center;margin:6px 0}
.foot-bottom .lang-switch{border-color:#e53935}
.foot-bottom .lang-switch a{color:#fff}

/* Language switch */
.lang-switch{display:inline-flex;border:2px solid var(--red);border-radius:999px;overflow:hidden;font-weight:bold;font-size:13px;line-height:1}
.lang-switch a{padding:7px 10px;color:var(--red)}
.lang-switch a[aria-current="true"]{background:var(--red);color:#fff}

/* Breadcrumb */
.breadcrumb{margin-bottom:14px;font-size:13px}
.breadcrumb ol{list-style:none;display:flex;flex-wrap:wrap;gap:4px}
.breadcrumb li{color:var(--muted)}
.breadcrumb li+li::before{content:'›';margin-right:4px;color:#999}
.breadcrumb a{color:var(--red);font-weight:bold}
.updated{font-size:13px;color:var(--muted);margin:-2px 0 16px}

/* Long-form content */
.prose{background:#fff;border-radius:10px;padding:22px;margin-bottom:20px;line-height:1.7;color:#333}
.prose p+p{margin-top:12px}
.prose h2{font-size:19px;margin:22px 0 8px;color:var(--text)}
.prose h2:first-child{margin-top:0}
.prose a,.card a:not(.btn),.note a{color:var(--red);font-weight:bold}
.bullets{padding-left:20px;display:flex;flex-direction:column;gap:6px;margin:8px 0}
.note{margin-top:14px;font-size:14px;color:#444}
.section-title{font-size:20px;margin:6px 0 14px}
.hub-meta{font-size:13px;color:var(--muted);margin:0 0 12px;font-weight:bold}
.opt{font-weight:normal;color:var(--muted)}
.form-foot.small{font-size:12px;margin-top:8px}
.page-sub.center{text-align:center}

/* Category cards (games hub) */
.grid.cats{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));margin-bottom:24px}
.cat-card{display:flex;gap:14px;align-items:center;background:#fff;border:2px solid transparent;border-radius:10px;padding:12px;box-shadow:0 2px 6px rgba(0,0,0,.08)}
.cat-card:hover{border-color:var(--red)}
.cat-card img{width:84px;flex:none}
.cat-card b{display:block;font-size:17px;color:var(--red)}
.cat-card small{display:block;font-size:12px;color:var(--muted);font-weight:bold;margin-bottom:4px}
.cat-card em{font-style:normal;font-size:13px;color:#444;line-height:1.4}

/* Related pages */
.related{margin-top:28px}
.related h2{font-size:18px;margin-bottom:12px}
.related-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}
.rel{display:block;background:#fff;border:1px solid #f0c4c5;border-radius:8px;padding:12px 14px}
.rel:hover{border-color:var(--red)}
.rel b{display:block;color:var(--red);font-size:15px;margin-bottom:2px}
.rel span{font-size:13px;color:#555;line-height:1.4}

/* FAQ */
.faq{display:flex;flex-direction:column;gap:10px}
.faq details{background:#fff;border:1px solid var(--line);border-radius:8px}
.faq details[open]{border-color:var(--red)}
.faq summary{cursor:pointer;padding:14px 16px;font-weight:bold;list-style:none;display:flex;justify-content:space-between;gap:12px}
.faq summary::after{content:'+';color:var(--red);font-size:20px;line-height:1}
.faq details[open] summary::after{content:'–'}
.faq summary::-webkit-details-marker{display:none}
.faq details div{padding:0 16px 16px;line-height:1.6;color:#333}
.faq details a{color:var(--red);font-weight:bold}

/* Contact */
.contact-main{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;background:linear-gradient(135deg,#e53935,var(--red) 60%,var(--red-dark));color:#fff;border-radius:10px;padding:22px;margin-bottom:20px}
.contact-main h2{font-size:20px;margin-bottom:4px}
.contact-main .btn{background:#fff;color:var(--red);border-color:var(--gold)}
.social{display:flex;flex-wrap:wrap;gap:10px}
.social a{border:2px solid var(--red);color:var(--red) !important;border-radius:999px;padding:8px 16px;font-weight:bold}

/* Mobile bottom navigation */
.bottom-nav{display:none}

@media (max-width:700px){
  .site-header .auth-links{display:none}
  .foot-cols{grid-template-columns:1fr 1fr}
  .prose{padding:18px 16px}
  .site-header .back span{display:none}
  .site-header .back{min-width:0}
  .game{grid-template-columns:1fr;text-align:center}
  .game img{max-width:180px;margin:0 auto}
  .game .actions{justify-content:center}
}
@media (max-width:600px){
  body{padding-bottom:calc(60px + env(safe-area-inset-bottom))}
  .site-header{height:56px;padding:0 12px}
  .main-nav{top:56px}
  .main-nav a{padding:10px 11px;font-size:13px}
  .site-header .brand img{width:44px;height:44px}
  .site-header .brand span{font-size:20px}
  main{padding:18px 12px 32px}
  .page-title{font-size:22px}
  .site-header .head-right{gap:6px}
  .card{padding:18px 16px}
  .grid.banners{grid-template-columns:1fr}
  .grid.tiles{grid-template-columns:repeat(3,1fr);gap:10px}
  .days{gap:6px;grid-template-columns:repeat(4,minmax(0,1fr))}
  .day{padding:10px 2px}
  .day b{font-size:14px}
  .actions .btn{flex:1 1 100%}
  .bottom-nav{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;left:0;right:0;bottom:0;z-index:30;
    height:calc(60px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);
    background:linear-gradient(#c62828,var(--red-dark));box-shadow:0 -2px 8px rgba(0,0,0,.25)}
  .bottom-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#fff;font-size:11px}
  .bottom-nav a.active{color:var(--gold)}
  .bottom-nav svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
}
@media (max-width:400px){
  .site-header .brand img{width:38px;height:38px}
  .site-header .brand span{font-size:16px;letter-spacing:0}
}
