:root {
  --navy: #001f3f;
  --navy-2: #052b53;
  --ink: #17233a;
  --paper: #faf3e0;
  --paper-2: #fffaf0;
  --gold: #c9a227;
  --gold-2: #e3c35a;
  --line: rgba(23, 35, 58, 0.16);
  --shadow: 0 20px 55px rgba(0, 31, 63, 0.18);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(0, 31, 63, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(201, 162, 39, 0.08), rgba(255, 250, 240, 0.5)),
    var(--paper);
  background-size: 72px 72px, auto, auto;
  font-family: Inter, "Noto Sans JP", system-ui, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 78px;
  padding: 14px clamp(18px, 4vw, 56px);
  color: #fff;
  background: rgba(0, 31, 63, 0.96);
  border-bottom: 4px double var(--gold);
  box-shadow: 0 12px 30px rgba(0, 31, 63, 0.24);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--gold-2);
  border: 2px solid var(--gold);
}

.brand strong {
  display: block;
  font-family: "EB Garamond", serif;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
}

.brand small {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  padding: 12px 2px;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.portal-link,
.button,
.chat-form button,
.simulator-panel button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid var(--gold);
  border-radius: 0;
  cursor: pointer;
  font-weight: 900;
  letter-spacing: 0;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.portal-link,
.button.primary,
.chat-form button,
.simulator-panel button {
  color: var(--navy);
  background: var(--gold);
}

.button.secondary {
  color: #fff;
  background: transparent;
}

.portal-link:hover,
.button:hover,
.chat-form button:hover,
.simulator-panel button:hover {
  transform: translateY(-2px);
  background: var(--gold-2);
  border-color: var(--gold-2);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #fff;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.8fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 78px);
  padding: clamp(64px, 8vw, 104px) clamp(18px, 6vw, 82px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(0, 31, 63, 0.97), rgba(0, 31, 63, 0.88)),
    url("https://images.unsplash.com/photo-1518709268805-4e9042af2176?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
  border-bottom: 5px double var(--gold);
}

.hero-copy {
  max-width: 780px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin: 0 0 18px;
  padding: 0 16px;
  color: var(--gold-2);
  border: 1px solid rgba(201, 162, 39, 0.45);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.hero h1,
.section h2 {
  margin: 0;
  font-family: "EB Garamond", "Noto Sans JP", serif;
  font-weight: 800;
  line-height: 1.08;
}

.hero h1 {
  font-size: clamp(2.55rem, 5.4vw, 5rem);
}

.hero h1 span {
  color: var(--gold-2);
}

.hero-lead {
  max-width: 670px;
  margin: 26px 0 34px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.7vw, 1.16rem);
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-art {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border: 5px double rgba(201, 162, 39, 0.72);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.cyber-siege-scene {
  background:
    radial-gradient(circle at 68% 42%, rgba(227, 195, 90, 0.22), transparent 28%),
    linear-gradient(125deg, rgba(0, 31, 63, 0.95), rgba(7, 55, 83, 0.86)),
    url("https://images.unsplash.com/photo-1550751827-4bd374c3f58b?auto=format&fit=crop&w=1200&q=85");
  background-position: center;
  background-size: cover;
}

.cyber-siege-scene::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background-image:
    linear-gradient(rgba(85, 224, 225, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(85, 224, 225, 0.12) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
  animation: gridDrift 10s linear infinite;
}

.hero-art::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(0, 31, 63, 0.66));
  pointer-events: none;
}

.protected-site,
.medieval-shield,
.impact-ring,
.spark-field,
.attack-layer {
  position: absolute;
}

.protected-site {
  right: 24px;
  bottom: 28px;
  z-index: 2;
  width: min(62%, 360px);
  min-height: 250px;
  overflow: hidden;
  color: #dff7ec;
  background: rgba(0, 19, 35, 0.82);
  border: 2px solid rgba(201, 162, 39, 0.72);
  box-shadow:
    inset 0 0 32px rgba(85, 224, 225, 0.16),
    0 22px 48px rgba(0, 0, 0, 0.32);
  transform: perspective(900px) rotateY(-9deg) rotateX(3deg);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(0, 31, 63, 0.95);
  border-bottom: 1px solid rgba(201, 162, 39, 0.42);
  font-size: 0.72rem;
  font-weight: 800;
}

.browser-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
}

.browser-bar strong {
  margin-left: 8px;
  font-size: 0.76rem;
}

.site-lines {
  display: grid;
  gap: 14px;
  padding: 38px 28px;
}

.site-lines i {
  display: block;
  height: 12px;
  background: linear-gradient(90deg, rgba(85, 224, 225, 0.88), rgba(227, 195, 90, 0.22));
  box-shadow: 0 0 18px rgba(85, 224, 225, 0.24);
}

.site-lines i:nth-child(1) {
  width: 74%;
}

.site-lines i:nth-child(2) {
  width: 92%;
}

.site-lines i:nth-child(3) {
  width: 58%;
}

.site-lines i:nth-child(4) {
  width: 82%;
}

.site-status {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 8px 12px;
  color: var(--navy);
  background: var(--gold-2);
  font-size: 0.66rem;
  font-weight: 900;
}

.medieval-shield {
  left: 50%;
  top: 50%;
  z-index: 5;
  width: 210px;
  height: 260px;
  transform: translate(-50%, -46%);
  filter: drop-shadow(0 26px 28px rgba(0, 0, 0, 0.34));
  animation: shieldGuard 3.6s ease-in-out infinite;
}

.shield-rim,
.shield-face {
  position: absolute;
  inset: 0;
  clip-path: polygon(50% 0, 92% 15%, 86% 69%, 50% 100%, 14% 69%, 8% 15%);
}

.shield-rim {
  background:
    linear-gradient(135deg, #fff0a8, var(--gold) 34%, #6f5710 67%, #fff4bc);
}

.shield-face {
  inset: 11px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: var(--navy);
  background:
    linear-gradient(145deg, rgba(255, 250, 240, 0.96), rgba(215, 187, 94, 0.82)),
    repeating-linear-gradient(90deg, transparent 0 12px, rgba(0, 31, 63, 0.08) 12px 14px);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.shield-face::before,
.shield-face::after {
  position: absolute;
  content: "";
  background: rgba(0, 31, 63, 0.15);
}

.shield-face::before {
  top: 16px;
  bottom: 22px;
  left: 50%;
  width: 2px;
}

.shield-face::after {
  top: 45%;
  right: 22px;
  left: 22px;
  height: 2px;
}

.shield-face .crest {
  z-index: 1;
  color: var(--gold);
  font-size: 2.6rem;
  text-shadow: 0 2px 0 rgba(0, 31, 63, 0.18);
}

.shield-face strong {
  z-index: 1;
  font-family: "EB Garamond", serif;
  font-size: 2rem;
}

.shield-face small {
  z-index: 1;
  font-weight: 900;
}

.attack-layer {
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.attack {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  height: 24px;
  color: #dff7ec;
  background: rgba(0, 31, 63, 0.86);
  border: 1px solid rgba(85, 224, 225, 0.72);
  box-shadow: 0 0 16px rgba(85, 224, 225, 0.42);
  font-size: 0.7rem;
  font-weight: 900;
}

.attack::before {
  position: absolute;
  right: -44px;
  width: 42px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, rgba(85, 224, 225, 0.9), transparent);
}

.attack-a {
  top: 16%;
  left: -92px;
  animation: attackLeft 2.8s linear -0.8s infinite;
}

.attack-b {
  top: 32%;
  left: -112px;
  animation: attackLeft 3.4s linear -1.7s infinite;
}

.attack-c {
  bottom: 22%;
  left: -100px;
  animation: attackLeft 3s linear -2.2s infinite;
}

.attack-d,
.attack-e {
  right: -105px;
}

.attack-d::before,
.attack-e::before {
  right: auto;
  left: -44px;
  background: linear-gradient(270deg, rgba(85, 224, 225, 0.9), transparent);
}

.attack-d {
  top: 22%;
  animation: attackRight 3.2s linear -1.1s infinite;
}

.attack-e {
  bottom: 35%;
  animation: attackRight 3.7s linear -2.6s infinite;
}

.impact-ring {
  left: 50%;
  top: 48%;
  z-index: 3;
  width: 245px;
  height: 245px;
  border: 2px solid rgba(227, 195, 90, 0.64);
  border-radius: 50%;
  box-shadow:
    0 0 34px rgba(227, 195, 90, 0.45),
    inset 0 0 40px rgba(85, 224, 225, 0.16);
  transform: translate(-50%, -50%);
  animation: pulseRing 1.9s ease-out infinite;
}

.spark-field {
  left: 50%;
  top: 49%;
  z-index: 6;
  width: 290px;
  height: 220px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.spark-field span {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--gold-2);
  box-shadow: 0 0 16px var(--gold-2);
  transform: rotate(45deg);
  animation: sparkBurst 1.6s ease-out infinite;
}

.spark-field span:nth-child(1) {
  left: 16px;
  top: 72px;
}

.spark-field span:nth-child(2) {
  right: 20px;
  top: 54px;
  animation-delay: 0.35s;
}

.spark-field span:nth-child(3) {
  right: 54px;
  bottom: 44px;
  animation-delay: 0.72s;
}

.spark-field span:nth-child(4) {
  left: 44px;
  bottom: 30px;
  animation-delay: 1s;
}

.section {
  padding: clamp(58px, 9vw, 110px) clamp(18px, 6vw, 82px);
}

.section-heading {
  max-width: 850px;
  margin: 0 auto 42px;
  text-align: center;
}

.section h2 {
  color: var(--navy);
  font-size: clamp(2.1rem, 4.8vw, 4.4rem);
}

.section-heading p:not(.eyebrow),
.comparison-copy p,
.counselor-section p {
  color: rgba(23, 35, 58, 0.74);
  line-height: 1.9;
}

.simulation-note {
  display: block;
  margin-top: 10px;
  color: rgba(23, 35, 58, 0.56);
  font-size: 0.78rem;
  font-weight: 700;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(190px, 1fr));
  gap: 18px;
}

.module-card {
  display: grid;
  gap: 14px;
  align-content: start;
  min-height: 360px;
  padding: 24px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-top: 5px solid var(--gold);
  box-shadow: 0 12px 32px rgba(23, 35, 58, 0.08);
}

.module-card img {
  width: 44px;
  height: 44px;
}

.module-card span {
  color: rgba(0, 31, 63, 0.18);
  font-size: 3.1rem;
  font-weight: 900;
  line-height: 1;
}

.module-card h3,
.case-grid h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.22rem;
}

.module-card p {
  margin: 0;
  color: rgba(23, 35, 58, 0.72);
  line-height: 1.75;
}

.module-card button {
  justify-self: start;
  margin-top: auto;
  padding: 0;
  color: var(--navy);
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 5px;
}

.comparison-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(480px, 1.2fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  color: #fff;
  background: var(--navy);
}

.comparison-section h2,
.comparison-section .comparison-copy p {
  color: #fff;
}

.comparison-copy .button {
  margin-top: 18px;
}

.table-wrap {
  overflow-x: auto;
  background: #fffaf0;
  border: 5px double var(--gold);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  color: var(--ink);
}

th,
td {
  padding: 20px;
  border: 1px solid var(--line);
  text-align: left;
}

th {
  color: #fff;
  background: var(--navy-2);
}

td.win {
  color: var(--navy);
  background: rgba(201, 162, 39, 0.18);
  font-weight: 900;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.case-grid article {
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(23, 35, 58, 0.08);
}

.case-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.case-grid article > *:not(img) {
  margin-right: 24px;
  margin-left: 24px;
}

.case-grid p {
  margin-top: 24px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
}

blockquote {
  margin-top: 16px;
  color: rgba(23, 35, 58, 0.78);
  line-height: 1.8;
}

.case-grid span {
  display: block;
  margin-top: 18px;
  margin-bottom: 26px;
  font-weight: 800;
}

.portal-section {
  background: linear-gradient(180deg, #fffaf0, #f7ecd1);
}

.portal-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(360px, 1fr);
  gap: 24px;
  max-width: 1160px;
  margin: 0 auto;
}

.scan-summary {
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 1160px;
  margin: 22px auto 0;
}

.scan-summary.is-visible {
  display: grid;
}

.scan-card {
  min-height: 118px;
  padding: 18px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  box-shadow: 0 12px 30px rgba(23, 35, 58, 0.08);
}

.scan-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 0.92rem;
}

.scan-card span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 10px;
  color: #fff;
  background: var(--navy);
  font-size: 0.72rem;
  font-weight: 900;
}

.scan-card span.ok {
  color: var(--navy);
  background: var(--gold-2);
}

.scan-card span.warn {
  background: #7b2d20;
}

.scan-card p {
  margin: 10px 0 0;
  color: rgba(23, 35, 58, 0.68);
  font-size: 0.84rem;
  line-height: 1.6;
}

.simulator-panel,
.terminal,
.chat-panel {
  background: var(--paper-2);
  border: 1px solid var(--line);
  box-shadow: 0 18px 45px rgba(23, 35, 58, 0.12);
}

.simulator-panel {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 26px;
}

.simulator-panel label {
  font-weight: 800;
}

.simulator-panel input[type="url"],
.chat-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(23, 35, 58, 0.25);
  border-radius: 0;
}

.threats {
  display: grid;
  gap: 12px;
}

.threats label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  background: rgba(250, 243, 224, 0.72);
}

.terminal {
  overflow: hidden;
  color: #dff7ec;
  background: #081a2f;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  color: #fff;
  background: #001323;
  border-bottom: 1px solid rgba(201, 162, 39, 0.4);
  font-size: 0.78rem;
  font-weight: 900;
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
}

.terminal pre {
  min-height: 330px;
  margin: 0;
  padding: 22px;
  overflow: auto;
  white-space: pre-wrap;
  font: 500 0.92rem/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.counselor-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(360px, 1fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: start;
}

.chat-panel {
  padding: 22px;
}

.quick-questions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.quick-questions button {
  min-height: 38px;
  padding: 0 14px;
  color: var(--navy);
  border: 1px solid var(--gold);
  background: rgba(201, 162, 39, 0.14);
  cursor: pointer;
  font-weight: 800;
}

.messages {
  display: grid;
  gap: 12px;
  max-height: 330px;
  min-height: 190px;
  overflow: auto;
  padding: 16px;
  background: rgba(250, 243, 224, 0.64);
  border: 1px solid var(--line);
}

.messages p {
  width: fit-content;
  max-width: min(84%, 560px);
  margin: 0;
  padding: 12px 14px;
  line-height: 1.75;
}

.messages .bot {
  color: #fff;
  background: var(--navy);
}

.messages .user {
  justify-self: end;
  color: var(--navy);
  background: var(--gold-2);
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 14px;
}

dialog {
  width: min(560px, calc(100vw - 34px));
  padding: 34px;
  color: var(--ink);
  background: var(--paper-2);
  border: 5px double var(--gold);
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(0, 31, 63, 0.62);
}

dialog h3 {
  margin: 0 38px 14px 0;
  color: var(--navy);
  font-size: 1.6rem;
}

dialog p {
  margin: 0;
  line-height: 1.9;
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  color: var(--navy);
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  font-size: 1.5rem;
}

footer {
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 42px 18px;
  color: #fff;
  background: #001323;
  text-align: center;
}

footer strong {
  color: var(--gold-2);
  font-family: "EB Garamond", serif;
  font-size: 1.4rem;
}

footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

footer div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  font-size: 0.9rem;
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .menu-button {
    display: block;
    justify-self: end;
  }

  .site-nav,
  .portal-link {
    display: none;
  }

  .site-header.nav-open .site-nav {
    grid-column: 1 / -1;
    display: grid;
    justify-content: stretch;
    gap: 0;
  }

  .site-header.nav-open .site-nav a {
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .site-header.nav-open .portal-link {
    grid-column: 1 / -1;
    display: flex;
  }

  .hero,
  .comparison-section,
  .portal-layout,
  .counselor-section,
  .scan-summary {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-art {
    min-height: 460px;
  }

  .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 68px;
    padding: 12px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand strong {
    font-size: 1.1rem;
  }

  .brand small {
    font-size: 0.52rem;
  }

  .hero {
    padding: 48px 18px 58px;
  }

  .hero-art {
    min-height: 390px;
  }

  .protected-site {
    right: 12px;
    bottom: 16px;
    width: 74%;
    min-height: 205px;
  }

  .medieval-shield {
    width: 156px;
    height: 195px;
  }

  .impact-ring {
    width: 185px;
    height: 185px;
  }

  .attack {
    min-width: 50px;
    height: 22px;
    font-size: 0.62rem;
  }

  .attack-a,
  .attack-b,
  .attack-c {
    left: -78px;
  }

  .attack-d,
  .attack-e {
    right: -78px;
  }

  .hero-actions,
  .chat-form {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button,
  .chat-form button,
  .simulator-panel button {
    width: 100%;
  }

  .module-grid,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .module-card {
    min-height: auto;
  }

  th,
  td {
    padding: 14px;
  }
}

@keyframes gridDrift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 38px 38px, 38px 38px;
  }
}

@keyframes shieldGuard {
  0%,
  100% {
    transform: translate(-50%, -46%) scale(1);
  }
  50% {
    transform: translate(-50%, -48%) scale(1.035);
  }
}

@keyframes attackLeft {
  0% {
    opacity: 0;
    transform: translateX(0) skewX(-12deg);
  }
  12% {
    opacity: 1;
  }
  64% {
    opacity: 1;
    transform: translateX(360px) skewX(-12deg);
  }
  72%,
  100% {
    opacity: 0;
    transform: translateX(405px) translateY(-10px) skewX(-12deg) scale(0.72);
  }
}

@keyframes attackRight {
  0% {
    opacity: 0;
    transform: translateX(0) skewX(12deg);
  }
  12% {
    opacity: 1;
  }
  64% {
    opacity: 1;
    transform: translateX(-360px) skewX(12deg);
  }
  72%,
  100% {
    opacity: 0;
    transform: translateX(-405px) translateY(10px) skewX(12deg) scale(0.72);
  }
}

@keyframes pulseRing {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.74);
  }
  22% {
    opacity: 0.92;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.22);
  }
}

@keyframes sparkBurst {
  0% {
    opacity: 0;
    transform: translate(0, 0) rotate(45deg) scale(0.4);
  }
  24% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(22px, -18px) rotate(45deg) scale(1);
  }
}
