/* Akvízitor – responsive, accountant-focused game rules */
.akv-rules-body{
  min-height:100vh;margin:0;color:#173766;
  background:
    linear-gradient(rgba(244,249,255,.80),rgba(239,247,255,.92)),
    url("/akvizitor/jakarta.faces.resource/akvizitor-scene.webp.xhtml?ln=images") center/cover fixed no-repeat;
  font-family:Inter,"Segoe UI Variable","Segoe UI",Arial,sans-serif;
}
.akv-rules-app{min-height:100vh}
.akv-rules-shell{width:min(1760px,calc(100% - 32px));margin:0 auto;padding:12px 0 38px}

/* top navigation */
.akv-rules-topbar{
  position:sticky;top:10px;z-index:70;
  display:grid;grid-template-columns:230px minmax(520px,1fr) auto;align-items:center;gap:14px;
  min-height:66px;padding:8px 10px 8px 16px;
  border:1px solid rgba(255,255,255,.94);border-radius:20px;
  background:rgba(255,255,255,.94);box-shadow:0 14px 38px rgba(27,72,136,.14);
  backdrop-filter:blur(16px) saturate(120%);
}
.akv-rules-brand{display:inline-flex;align-items:center;text-decoration:none}.akv-rules-brand-logo{width:auto;height:44px;max-width:220px}
.akv-rules-nav{display:flex;align-items:center;justify-content:center;gap:4px;min-width:0}
.akv-rules-nav-item{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 15px;border-radius:12px;color:#173b77;text-decoration:none;font-size:.84rem;font-weight:800;white-space:nowrap;transition:.16s ease}
.akv-rules-nav-item:hover,.akv-rules-nav-item:focus-visible{color:#174b91;background:#edf5ff;outline:none}
.akv-rules-nav-item.is-active{color:#fff;background:linear-gradient(100deg,#7547ff,#13bdf7);box-shadow:0 10px 24px rgba(91,78,238,.18)}
.akv-rules-userbar{display:flex;align-items:center;justify-content:flex-end;gap:8px}.akv-rules-player-chip{display:grid;padding:7px 11px;border-radius:12px;background:#f1f7ff}.akv-rules-player-chip span,.akv-rules-player-chip small{color:#7184a1;font-size:.68rem}.akv-rules-player-chip strong{color:#173a76}.akv-rules-logout-form{margin:0}
.akv-rules-nav-logout,.akv-rules-auth-link{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 13px;border:1px solid #cadef3;border-radius:11px;color:#17509a;background:#fff;text-decoration:none;font-weight:800;cursor:pointer}.akv-rules-nav-logout:hover,.akv-rules-auth-link:hover{color:#17457f;background:#eef6ff}.akv-rules-auth-link.is-primary{color:#fff;border:0;background:linear-gradient(100deg,#7547ff,#13bdf7)}

.akv-rules-main{display:grid;gap:18px;margin-top:18px}
.akv-rules-hero,.akv-rules-flow,.akv-rules-modes,.akv-rules-cheatsheet,.akv-rules-cta{
  border:1px solid rgba(195,218,243,.94);border-radius:28px;background:rgba(255,255,255,.94);
  box-shadow:0 20px 52px rgba(29,75,137,.11);backdrop-filter:blur(12px);
}

/* hero */
.akv-rules-hero{position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,1.08fr) minmax(360px,.92fr);gap:34px;align-items:center;min-height:380px;padding:42px 44px}
.akv-rules-hero::before{content:"";position:absolute;right:-130px;top:-190px;width:520px;height:520px;border-radius:50%;background:radial-gradient(circle,rgba(33,190,255,.14),rgba(112,70,255,.08) 46%,transparent 70%);pointer-events:none}
.akv-rules-hero-copy,.akv-rules-hero-visual{position:relative;z-index:1}
.akv-rules-eyebrow{display:inline-flex;align-items:center;gap:7px;padding:6px 10px;border-radius:999px;color:#6841ec;background:#f1edff;font-size:.7rem;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
.akv-rules-hero h1{margin:12px 0 14px;color:#102f67;font-size:clamp(2.65rem,4.2vw,4.9rem);line-height:.94;letter-spacing:-.055em}.akv-rules-hero h1 em{color:transparent;background:linear-gradient(100deg,#7847ff,#138ee9,#13bdd2);background-clip:text;-webkit-background-clip:text;font-style:normal}
.akv-rules-hero p{max-width:780px;margin:0;color:#60799d;font-size:1.02rem;line-height:1.62}
.akv-rules-hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}.akv-rules-primary,.akv-rules-hero-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 17px;border-radius:13px;text-decoration:none;font-weight:850;transition:.16s ease}.akv-rules-primary{border:0;color:#fff;background:linear-gradient(100deg,#7547ff,#13bdf7);box-shadow:0 12px 26px rgba(88,81,230,.18);cursor:pointer}.akv-rules-primary:hover,.akv-rules-primary:focus-visible{color:#fff;transform:translateY(-1px);box-shadow:0 16px 30px rgba(88,81,230,.24);outline:none}.akv-rules-secondary{color:#174b91!important;border:1px solid #cfe1f4;background:#fff}.akv-rules-secondary:hover,.akv-rules-secondary:focus-visible{color:#174b91!important;background:#f0f7ff;outline:none}
.akv-rules-hero-visual{display:grid;place-items:center;min-height:290px;padding:18px;border:1px solid #d4e5f6;border-radius:24px;background:linear-gradient(145deg,#edf7ff,#ffffff);box-shadow:inset 0 1px #fff,0 14px 34px rgba(35,88,154,.08)}.akv-rules-hero-visual svg{display:block;width:min(100%,560px);height:auto;filter:drop-shadow(0 12px 20px rgba(37,82,143,.08))}

/* step selector */
.akv-rules-stepper{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:8px;padding:9px;border:1px solid #cfe1f4;border-radius:20px;background:rgba(255,255,255,.90);box-shadow:0 12px 32px rgba(29,75,137,.08)}
.akv-rules-stepper button{position:relative;display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:8px;min-width:0;min-height:52px;padding:7px 9px;border:1px solid transparent;border-radius:14px;color:#47688f;background:transparent;font:inherit;text-align:left;cursor:pointer;transition:.16s ease}.akv-rules-stepper button span{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;color:#3f68a0;background:#edf5ff;font-size:.72rem;font-weight:900}.akv-rules-stepper button strong{overflow:hidden;font-size:.76rem;white-space:nowrap;text-overflow:ellipsis}.akv-rules-stepper button:hover,.akv-rules-stepper button:focus-visible{border-color:#d3e5f5;background:#f7fbff;outline:none}.akv-rules-stepper button.is-active{color:#fff;border-color:transparent;background:linear-gradient(100deg,#7048f7,#188ff0)}.akv-rules-stepper button.is-active span{color:#6240db;background:#fff}.akv-rules-stepper button.is-active strong{color:#fff}

/* active walkthrough card */
.akv-rules-flow{padding:20px}.akv-rule-step{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(330px,.95fr);gap:26px;align-items:stretch;min-height:390px;padding:24px;border:1px solid #d7e6f5;border-radius:24px;background:linear-gradient(135deg,#ffffff,#f6faff)}.akv-rule-step[hidden]{display:none!important}.akv-rule-step.is-entering{animation:akvRuleIn .22s ease-out both}@keyframes akvRuleIn{from{opacity:.45;transform:translateY(6px)}to{opacity:1;transform:none}}
.akv-rule-copy{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-width:0;padding:8px 10px}.akv-rule-number{display:grid;place-items:center;width:48px;height:48px;border-radius:16px;color:#fff;background:linear-gradient(145deg,#7248ff,#15bdf8);box-shadow:0 12px 24px rgba(83,87,231,.18);font-size:.86rem;font-weight:900}.akv-rule-copy>small{margin-top:12px;color:#6080a8;font-size:.68rem;font-weight:900;letter-spacing:.12em}.akv-rule-copy h2{max-width:760px;margin:9px 0 9px;color:#14356e;font-size:clamp(1.75rem,2.2vw,2.55rem);line-height:1.08;letter-spacing:-.03em}.akv-rule-copy p{max-width:780px;margin:0;color:#637b9d;line-height:1.55}.akv-rule-copy ul{display:grid;gap:8px;margin:18px 0 0;padding:0;list-style:none}.akv-rule-copy li{position:relative;padding-left:29px;color:#35577f;line-height:1.45}.akv-rule-copy li::before{content:"✓";position:absolute;left:0;top:0;display:grid;place-items:center;width:20px;height:20px;border-radius:7px;color:#fff;background:linear-gradient(145deg,#5b7cff,#18b9e8);font-size:.68rem;font-weight:900}
.akv-rule-visual{display:grid;place-items:center;min-height:300px;margin:0;padding:22px;border:1px solid #d7e6f4;border-radius:22px;background:radial-gradient(circle at 50% 20%,#ffffff,#edf7ff 72%);overflow:hidden}.akv-rule-visual svg{display:block;width:min(100%,520px);height:auto;max-height:310px}

/* svg visual system */
.akv-svg-card{fill:#fff;stroke:#cfe1f4;stroke-width:3}.akv-svg-line{fill:#5a7fb0}.akv-svg-line.is-soft{fill:#c4d7ea}.akv-svg-button{fill:#6f4cff}.akv-svg-accent{fill:#7b4cf5}.akv-svg-cyan{fill:#1fc8e9}.akv-svg-blue{fill:#287ee8}.akv-svg-stroke{fill:none;stroke:#8ba5c3;stroke-width:8;stroke-linecap:round}.akv-svg-arrow,.akv-svg-route,.akv-svg-attack-line,.akv-svg-repair-route{color:#397bd0}.akv-svg-map-mini{fill:#dcecff;stroke:#7ca7d2;stroke-width:3}.akv-svg-region{fill:#f2e7c8;stroke:#c0a77b;stroke-width:3}.akv-svg-region.is-owned{fill:#56cb83}.akv-svg-region.is-target{fill:#4da8f1}.akv-svg-castle{fill:#2f86de}.akv-svg-castle.is-second{fill:#874eea}.akv-svg-ring{color:#20a8e7}.akv-svg-answer rect{fill:#edf5ff;stroke:#c5dbef;stroke-width:2}.akv-svg-answer text{fill:#436892;font-weight:900}.akv-svg-answer.is-right rect{fill:#e2f8eb;stroke:#57c884}.akv-svg-answer.is-right text{fill:#26764a}.akv-svg-timer{color:#7a4cf2}.akv-svg-pen-small rect,.akv-svg-pen rect{fill:#174b8f}.akv-svg-pen-small path,.akv-svg-pen path{fill:#22c5e9}.akv-svg-notebook rect{fill:#fff;stroke:#bcd5ec;stroke-width:3}.akv-svg-repair,.akv-svg-trophy,.akv-svg-door{color:#477fd0}.akv-svg-impact,.akv-svg-win-pulse{color:#764cf1}.akv-svg-confetti{fill:#24b9e9}.akv-svg-confetti.c2{fill:#7a4cf3}.akv-svg-confetti.c3{fill:#49c97c}.akv-svg-confetti.c4{fill:#efbf4e}

/* previous/next controls */
.akv-rules-controls{display:grid;grid-template-columns:auto minmax(90px,1fr) auto;align-items:center;gap:10px;padding:0 8px}.akv-rules-control{min-height:44px;padding:0 14px;border:1px solid #cde0f3;border-radius:12px;color:#174b91;background:#fff;font-weight:800;cursor:pointer}.akv-rules-control:hover:not(:disabled){background:#eef6ff}.akv-rules-control:disabled{opacity:.48;cursor:not-allowed}.akv-rules-control.is-primary{color:#fff;border:0;background:linear-gradient(100deg,#7547ff,#13bdf7)}.akv-rules-progress{justify-self:center;display:grid;place-items:center;min-width:80px;min-height:38px;padding:0 14px;border-radius:999px;color:#516f96;background:#eef6ff;font-size:.75rem;font-weight:900}

/* game modes + quick reference */
.akv-rules-modes,.akv-rules-cheatsheet{padding:28px}.akv-rules-section-head{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:18px}.akv-rules-section-head small{color:#6945ec;font-size:.68rem;font-weight:900;letter-spacing:.12em}.akv-rules-section-head h2{margin:5px 0 0;color:#14366f;font-size:clamp(1.6rem,2vw,2.2rem);letter-spacing:-.025em}.akv-rules-section-head p{margin:0;color:#7082a0}
.akv-rules-mode-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.akv-rules-mode-grid>article{position:relative;overflow:hidden;min-height:190px;padding:22px;border:1px solid #d2e3f4;border-radius:20px;background:linear-gradient(145deg,#fff,#f5f9ff);box-shadow:0 12px 30px rgba(25,73,136,.06)}.akv-rules-mode-grid>article::after{content:"";position:absolute;right:-35px;bottom:-45px;width:125px;height:125px;border-radius:50%;background:radial-gradient(circle,rgba(37,179,245,.16),transparent 70%)}.akv-rules-mode-grid>article>span{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;color:#fff;background:linear-gradient(145deg,#7248ff,#17baf4);font-size:1.3rem;box-shadow:0 10px 20px rgba(82,89,225,.16)}.akv-rules-mode-grid h3{margin:16px 0 7px;color:#173b76;font-size:1.15rem}.akv-rules-mode-grid p{margin:0;color:#687f9f;line-height:1.5}
.akv-rules-cheat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.akv-rules-cheat-grid>article{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;gap:11px;padding:15px;border:1px solid #d5e4f3;border-radius:16px;background:#f8fbff}.akv-rules-cheat-grid strong{display:grid;place-items:center;width:40px;height:40px;border-radius:13px;color:#fff;background:linear-gradient(145deg,#245ec1,#27b9e7)}.akv-rules-cheat-grid span{color:#60799c;font-size:.84rem;line-height:1.4}
.akv-rules-cta{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:26px 30px;background:linear-gradient(110deg,rgba(255,255,255,.96),rgba(239,247,255,.96))}.akv-rules-cta small{color:#6945ec;font-size:.68rem;font-weight:900;letter-spacing:.1em}.akv-rules-cta h2{margin:5px 0 0;color:#11366f}.akv-rules-cta p{margin:5px 0 0;color:#6e82a1}
.akv-site-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:20px;padding:14px 18px;border:1px solid #cadff4;border-radius:16px;color:#71839f;background:rgba(255,255,255,.86)}.akv-site-footer-brand{display:inline-flex;align-items:center;gap:7px;color:#1b4b8f;font-weight:850}.akv-site-footer-dot{width:8px;height:8px;border-radius:50%;background:linear-gradient(90deg,#7547ff,#13bdf7)}

/* laptop */
@media(max-width:1366px){
 .akv-rules-shell{width:min(1280px,calc(100% - 24px))}
 .akv-rules-topbar{grid-template-columns:200px minmax(470px,1fr) auto}.akv-rules-brand-logo{height:40px}.akv-rules-nav-item{padding:0 11px;font-size:.79rem}
 .akv-rules-hero{grid-template-columns:minmax(0,1.12fr) minmax(310px,.88fr);min-height:340px;padding:32px}.akv-rules-hero-visual{min-height:250px}
 .akv-rules-stepper{grid-template-columns:repeat(4,1fr)}
 .akv-rule-step{min-height:350px}.akv-rule-visual{min-height:260px}
}
/* tablet */
@media(max-width:1024px){
 .akv-rules-shell{width:calc(100% - 20px)}
 .akv-rules-topbar{grid-template-columns:1fr auto;gap:9px}.akv-rules-nav{grid-column:1/-1;order:3;justify-content:flex-start;overflow-x:auto;padding-bottom:2px}.akv-rules-nav-item{flex:0 0 auto}
 .akv-rules-player-chip{display:none}.akv-rules-hero{grid-template-columns:1fr;padding:28px}.akv-rules-hero-copy{max-width:820px}.akv-rules-hero-visual{min-height:230px}.akv-rules-hero-visual svg{max-height:260px}
 .akv-rules-stepper{display:flex;overflow-x:auto;scroll-snap-type:x proximity}.akv-rules-stepper button{flex:0 0 150px;scroll-snap-align:start}
 .akv-rule-step{grid-template-columns:1fr;min-height:0}.akv-rule-visual{min-height:235px}.akv-rule-visual svg{max-height:245px}
 .akv-rules-mode-grid{grid-template-columns:1fr 1fr}.akv-rules-mode-grid>article:last-child{grid-column:1/-1}.akv-rules-cheat-grid{grid-template-columns:1fr 1fr}
}
/* mobile */
@media(max-width:680px){
 .akv-rules-body{background-attachment:scroll}.akv-rules-shell{width:calc(100% - 12px);padding-top:6px}.akv-rules-main{gap:12px;margin-top:10px}
 .akv-rules-topbar{top:4px;min-height:54px;padding:7px 8px;border-radius:15px}.akv-rules-brand-logo{height:34px;max-width:170px}.akv-rules-userbar{gap:5px}.akv-rules-nav-logout,.akv-rules-auth-link{min-height:38px;padding:0 10px;font-size:.74rem}.akv-rules-nav{gap:3px}.akv-rules-nav-item{min-height:36px;padding:0 10px;font-size:.7rem}
 .akv-rules-hero{min-height:0;padding:21px 18px;border-radius:22px}.akv-rules-eyebrow{font-size:.58rem}.akv-rules-hero h1{font-size:clamp(2.05rem,12vw,3.1rem)}.akv-rules-hero p{font-size:.9rem}.akv-rules-hero-actions{display:grid;grid-template-columns:1fr}.akv-rules-primary,.akv-rules-hero-actions a{width:100%;box-sizing:border-box}.akv-rules-hero-visual{min-height:180px;padding:8px}.akv-rules-hero-visual svg{max-height:190px}
 .akv-rules-stepper{padding:6px;border-radius:15px}.akv-rules-stepper button{flex-basis:128px;min-height:44px;grid-template-columns:28px 1fr;padding:5px}.akv-rules-stepper button span{width:27px;height:27px}.akv-rules-stepper button strong{font-size:.68rem}
 .akv-rules-flow{padding:8px;border-radius:20px}.akv-rule-step{gap:13px;padding:16px;border-radius:17px}.akv-rule-copy{padding:0}.akv-rule-number{width:40px;height:40px;border-radius:13px}.akv-rule-copy h2{font-size:1.55rem}.akv-rule-copy p,.akv-rule-copy li{font-size:.86rem}.akv-rule-copy ul{gap:6px;margin-top:13px}.akv-rule-visual{min-height:165px;padding:8px;border-radius:15px}.akv-rule-visual svg{max-height:180px}
 .akv-rules-controls{grid-template-columns:1fr auto 1fr;padding:0}.akv-rules-control{min-width:0;padding:0 9px;font-size:.72rem}.akv-rules-progress{min-width:62px;padding:0 8px}
 .akv-rules-modes,.akv-rules-cheatsheet{padding:18px 14px;border-radius:22px}.akv-rules-section-head{display:block}.akv-rules-mode-grid,.akv-rules-cheat-grid{grid-template-columns:1fr}.akv-rules-mode-grid>article:last-child{grid-column:auto}.akv-rules-mode-grid>article{min-height:0}.akv-rules-cheat-grid>article{grid-template-columns:36px 1fr}.akv-rules-cheat-grid strong{width:34px;height:34px}
 .akv-rules-cta{align-items:stretch;flex-direction:column;padding:20px;border-radius:22px}.akv-rules-cta .akv-rules-primary{width:100%}.akv-site-footer{align-items:flex-start;flex-direction:column}
}
@media(max-width:390px){.akv-rules-userbar{display:none}.akv-rules-topbar{grid-template-columns:1fr}.akv-rules-nav{grid-column:1}.akv-rules-hero h1{font-size:1.95rem}}
@media(prefers-reduced-motion:reduce){.akv-rule-step.is-entering{animation:none}.akv-rules-primary,.akv-rules-nav-item,.akv-rules-stepper button{transition:none}}
