
.rules-shell { width: min(1180px, calc(100% - 28px)); margin: 14px auto 28px; }
.rules-hero {
    position: relative; overflow: hidden; min-height: 200px; padding: 24px 28px;
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
    border: 2px solid rgba(66,160,255,.58); border-radius: 18px;
    background: linear-gradient(90deg, rgba(4,18,45,.97), rgba(4,18,45,.55)), url('/assets/images/header-war.webp') center/cover;
    box-shadow: 0 14px 42px rgba(0,0,0,.48), inset 0 1px rgba(255,255,255,.09);
}
.rules-logo img { width: 150px; height: 145px; object-fit: contain; filter: drop-shadow(0 8px 12px rgba(0,0,0,.65)); }
.rules-kicker { color: #ffd400; font-size: 18px; letter-spacing: .04em; }
.rules-hero h1 { margin: 8px 0 5px; font-size: clamp(34px, 5vw, 66px); line-height: .95; text-shadow: 0 5px 0 #16233a, 0 10px 20px rgba(0,0,0,.65); }
.rules-hero p { max-width: 680px; margin: 10px 0 0; color: #dce8fa; font: 700 16px/1.5 "Segoe UI", Arial, sans-serif; }
.rules-home-top { align-self: start; padding: 13px 16px; border: 2px solid #70aef3; border-radius: 12px; color: #fff; text-decoration: none; background: linear-gradient(#2868ac,#123b70); box-shadow: 0 5px 0 rgba(0,0,0,.45); white-space: nowrap; }
.rules-intro, .rule-card, .rules-acceptance { border: 2px solid rgba(57,146,255,.56); border-radius: 16px; background: linear-gradient(180deg,rgba(8,35,78,.97),rgba(3,18,48,.98)); box-shadow: 0 12px 28px rgba(0,0,0,.38), inset 0 1px rgba(255,255,255,.07); }
.rules-intro { margin-top: 14px; padding: 22px 24px; text-align: center; }
.rules-intro h2, .rule-card h2, .rules-acceptance h2 { margin: 0 0 12px; color: #fff; }
.rules-intro p, .rule-card p, .rule-card li, .rules-acceptance p { color: #d8e5f7; font: 650 15px/1.55 "Segoe UI", Arial, sans-serif; }
.rules-intro p { margin: 7px 0; font-size: 17px; }
.rules-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.rule-card { padding: 21px 22px; }
.rule-card h2 { padding-bottom: 11px; border-bottom: 1px solid rgba(87,171,255,.35); color: #8ed7ff; font-size: 23px; }
.rule-card p { margin: 10px 0; }
.rule-card ul { margin: 8px 0 12px; padding-left: 22px; }
.rule-card li { margin: 6px 0; }
.rule-highlight { margin-top: 14px; padding: 13px 15px; border: 1px solid rgba(255,203,58,.7); border-radius: 11px; color: #fff2c7; background: rgba(94,61,5,.55); font: 700 14px/1.5 "Segoe UI",Arial,sans-serif; }
.rules-acceptance { margin-top: 14px; padding: 24px; display: grid; gap: 17px; border-color: rgba(255,196,37,.72); }
.rules-acceptance > div:first-child { display: flex; align-items: center; gap: 14px; }
.acceptance-icon { font-size: 40px; }
.rules-acceptance h2 { color: #ffd75a; font-size: 28px; }
.rules-acceptance p { margin: 0; }
.acceptance-check { padding: 15px; display: flex; align-items: center; gap: 12px; border: 1px solid rgba(111,194,255,.5); border-radius: 12px; background: rgba(6,42,87,.7); cursor: pointer; }
.acceptance-check input { width: 23px; height: 23px; accent-color: #21bd3c; }
.acceptance-check span { color: #fff; font: 800 16px/1.35 "Segoe UI",Arial,sans-serif; }
#acceptRulesButton { justify-self: start; padding: 15px 22px; border: 2px solid #7df18f; border-radius: 12px; color: #fff; background: linear-gradient(#2bd44a,#118326); box-shadow: inset 0 1px rgba(255,255,255,.3),0 5px 0 rgba(0,55,8,.75); cursor: pointer; }
#acceptRulesButton:disabled { opacity: .45; filter: grayscale(.7); cursor: not-allowed; box-shadow: none; }
.already-accepted { color: #87f39a !important; font-weight: 800 !important; }
.rules-footer { padding: 18px 4px 0; display: flex; justify-content: space-between; gap: 15px; color: #91a8c5; font-size: 14px; }
.rules-footer a { color: #78d5ff; text-decoration: none; }
@media (max-width: 850px) {
    .rules-hero { grid-template-columns: auto 1fr; }
    .rules-home-top { grid-column: 1 / -1; justify-self: stretch; text-align: center; }
    .rules-grid { grid-template-columns: 1fr; }
}
@media (max-width: 580px) {
    .rules-shell { width: min(100% - 14px,1180px); margin-top: 7px; }
    .rules-hero { padding: 18px 16px; grid-template-columns: 1fr; text-align: center; }
    .rules-logo img { width: 120px; height: 110px; }
    .rules-hero h1 { font-size: 38px; }
    .rules-intro, .rule-card, .rules-acceptance { padding: 17px; }
    .rules-footer { flex-direction: column; align-items: center; }
    #acceptRulesButton { justify-self: stretch; }
}
