@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --bg: #07120f;
  --panel: #0d1d18;
  --panel2: #10251e;
  --line: #233d32;
  --text: #eaf4ee;
  --muted: #849b8e;
  --green: #74f0ae;
  --green-dark: #163c2a;
  --blue: #82c8ff;
  --amber: #f4c76d;
  --red: #ff8585
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at 12% 0%, #12372b 0, transparent 35%), radial-gradient(ellipse at 90% 28%, #102a20 0, transparent 35%), var(--bg);
  color: var(--text);
  font-family: Manrope, system-ui, sans-serif
}

button {
  font: inherit
}

.app {
  max-width: 1220px;
  padding: 0 30px;
  margin: 0 auto;
  position: relative;
  z-index: 1
}

.ambient {
  position: fixed;
  width: 270px;
  height: 270px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .08;
  pointer-events: none
}

.ambient-one {
  background: #49ffa0;
  top: 28%;
  left: -170px
}

.ambient-two {
  background: #36b9a4;
  right: -150px;
  bottom: 5%
}

.topbar {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #20392f
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: inherit
}

.brand-icon {
  width: 41px;
  height: 41px;
  display: grid;
  place-items: center;
  background: #123b2a;
  border: 1px solid #2c7851;
  border-radius: 10px
}

.brand-icon svg {
  width: 26px;
  fill: none;
  stroke: var(--green);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round
}

.brand-text strong {
  display: block;
  font-size: 15px;
  letter-spacing: 1.8px
}

.brand-text strong span {
  color: var(--green)
}

.brand-text small {
  display: block;
  font: 8px 'DM Mono', monospace;
  color: var(--muted);
  letter-spacing: 1.2px;
  margin-top: 4px
}

.connection {
  display: flex;
  align-items: center;
  gap: 9px;
  font: 9px 'DM Mono', monospace;
  color: #a2b9ab;
  letter-spacing: .8px
}

.pulse,
.connection .pulse {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 10px #74f0ae;
  animation: pulse 2s infinite
}

.connection-divider {
  height: 14px;
  width: 1px;
  background: #2a4337;
  margin: 0 4px
}

.mono {
  color: #637e6e
}

@keyframes pulse {
  50% {
    opacity: .45;
    box-shadow: 0 0 2px #74f0ae
  }
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 244px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden
}

.hero-content {
  padding: 33px 0 29px;
  max-width: 630px;
  position: relative;
  z-index: 1
}

.eyebrow {
  font: 9px 'DM Mono', monospace;
  color: var(--green);
  letter-spacing: 1.7px;
  margin: 0 0 12px
}

.eyebrow-line {
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--green);
  vertical-align: middle;
  margin-right: 6px
}

h1 {
  font-size: clamp(42px, 5.5vw, 62px);
  letter-spacing: -3.2px;
  line-height: 1.1;
  margin: 0 0 13px;
  font-weight: 800
}

h1 span {
  color: var(--green)
}

.hero-description {
  font-size: 12px;
  line-height: 1.9;
  color: #a0b5a8;
  max-width: 570px;
  margin: 0
}

.hero-meta {
  display: flex;
  gap: 21px;
  flex-wrap: wrap;
  margin-top: 20px
}

.hero-meta span {
  font: 9px 'DM Mono', monospace;
  color: #8fa99a
}

.meta-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  margin: 0 7px 1px 0
}

.hero-graphic {
  width: 245px;
  height: 210px;
  position: relative;
  flex-shrink: 0;
  margin-right: 45px;
  display: grid;
  place-items: center
}

.orbit {
  position: absolute;
  border: 1px solid #2d6a4b;
  border-radius: 50%;
  transform: rotate(-25deg)
}

.orbit-a {
  width: 190px;
  height: 150px
}

.orbit-b {
  width: 148px;
  height: 194px;
  transform: rotate(35deg);
  border-color: #244b39
}

.orbit-c {
  width: 125px;
  height: 125px;
  border-style: dashed;
  border-color: #36654c
}

.shield-core {
  width: 73px;
  height: 83px;
  background: linear-gradient(145deg, #153e2c, #0c2118);
  border: 1px solid #4ca96d;
  display: grid;
  place-items: center;
  clip-path: polygon(50% 0, 95% 15%, 90% 67%, 50% 100%, 10% 67%, 5% 15%);
  filter: drop-shadow(0 0 14px #54f29b30)
}

.shield-core svg {
  width: 44px;
  fill: none;
  stroke: var(--green);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round
}

.graphic-cross {
  position: absolute;
  width: 7px;
  height: 7px;
  border: 1px solid var(--green);
  transform: rotate(45deg);
  background: var(--bg)
}

.cross-a {
  top: 29px;
  left: 61px
}

.cross-b {
  bottom: 29px;
  right: 31px
}

.orbit-label {
  position: absolute;
  font: 7px 'DM Mono', monospace;
  letter-spacing: .7px;
  color: #6eae88;
  background: var(--bg);
  padding: 4px
}

.label-a {
  top: 28px;
  right: -1px
}

.label-b {
  bottom: 38px;
  left: -16px;
  color: var(--amber)
}

.label-c {
  bottom: 8px;
  right: 19px
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  padding: 20px 0
}

.stat {
  padding: 16px 19px 15px;
  background: linear-gradient(140deg, #10231a, #0b1914);
  border: 1px solid var(--line);
  border-radius: 9px;
  min-width: 0
}

.stat-top {
  display: flex;
  justify-content: space-between;
  align-items: center
}

.stat-label {
  font: 8px 'DM Mono', monospace;
  color: var(--muted);
  letter-spacing: 1.3px
}

.stat-icon {
  color: var(--green);
  font-size: 17px
}

.stat-icon.trophy {
  color: var(--amber)
}

.stat-value {
  display: block;
  font: 500 29px 'DM Mono', monospace;
  letter-spacing: -1px;
  margin: 11px 0 5px
}

.stat-caption {
  font-size: 9px;
  color: #728b7b
}

.stat-total {
  font-size: 14px;
  color: #6d8777
}

.round-track {
  height: 3px;
  background: #233b2e;
  border-radius: 4px;
  margin-top: 11px;
  overflow: hidden
}

.round-track span {
  display: block;
  width: 10%;
  height: 100%;
  background: var(--green);
  transition: width .2s
}

.main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, .85fr);
  gap: 15px;
  padding-bottom: 27px
}

.game-panel,
.side-card {
  background: linear-gradient(145deg, #0e2018, #0a1712);
  border: 1px solid var(--line);
  border-radius: 11px
}

.game-panel {
  padding: 24px;
  min-width: 0
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px
}

.panel-header h2 {
  font-size: 22px;
  letter-spacing: -.7px;
  margin: 0
}

.live-badge {
  font: 8px 'DM Mono', monospace;
  letter-spacing: .6px;
  color: var(--green);
  border: 1px solid #2c6043;
  background: #102c1e;
  border-radius: 5px;
  padding: 7px 8px;
  white-space: nowrap
}

.live-badge i,
.log-live i {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--green);
  border-radius: 50%;
  margin-right: 5px
}

.panel-description {
  font-size: 11px;
  line-height: 1.8;
  color: #91a99a;
  margin: 10px 0 22px;
  max-width: 620px
}

.slots-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font: 8px 'DM Mono', monospace;
  letter-spacing: 1px;
  color: #829b8b;
  margin-bottom: 10px
}

.slots-heading span:last-child {
  color: var(--green)
}

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

.slot {
  height: 95px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px dashed #34503f;
  border-radius: 8px;
  background: #0b1a13;
  overflow: hidden
}

.slot.empty {
  color: #627a69
}

.slot-number {
  position: absolute;
  top: 7px;
  left: 8px;
  font: 8px 'DM Mono', monospace;
  color: #597261
}

.slot-placeholder {
  font-size: 9px;
  text-align: center;
  line-height: 1.6
}

.slot.filled {
  border-style: solid;
  border-color: #34744e;
  background: linear-gradient(135deg, #133723, #0d2418);
  animation: slotIn .2s ease-out
}

.slot-symbol {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #1c4930;
  color: var(--green);
  font-size: 19px
}

.slot-label {
  font-size: 9px;
  font-weight: 800
}

.slot-label small {
  display: block;
  font: 7px 'DM Mono', monospace;
  color: #7da78b;
  margin-top: 4px
}

.slot.filled .slot-number {
  color: var(--green)
}

@keyframes slotIn {
  from {
    transform: scale(.97);
    opacity: .6
  }

  to {
    transform: scale(1);
    opacity: 1
  }
}

.tools-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 10px;
  margin: 24px 0 12px
}

.tools-heading h3 {
  font-size: 14px;
  margin: 0
}

.tools-heading p {
  font-size: 9px;
  color: var(--muted);
  margin: 5px 0 0
}

.tools-count {
  font: 9px 'DM Mono', monospace;
  color: var(--green)
}

.tools-count span {
  color: #637c6c
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px
}

.tool-button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  min-width: 0;
  min-height: 120px;
  padding: 10px 9px 9px;
  border: 1px solid #294233;
  border-radius: 8px;
  background: #102219;
  color: var(--text);
  cursor: pointer;
  transition: transform .15s, border-color .15s, background .15s
}

.tool-button:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: #5bb87b;
  background: #143021
}

.tool-button:focus-visible,
.reset-button:focus-visible,
.clear-button:focus-visible,
.play-again:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px
}

.tool-button:disabled {
  opacity: .35;
  cursor: not-allowed
}

.tool-art {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #1b3b29;
  color: var(--green);
  margin-bottom: 11px
}

.tool-art svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round
}

.antivirus-art {
  color: #8bd8ff;
  background: #173442
}

.encryption-art {
  color: #d2a2ff;
  background: #322742
}

.backup-art {
  color: #f3c775;
  background: #3a3020
}

.twofa-art {
  color: #ff9c9c;
  background: #3a2527
}

.tool-name {
  font-size: 9px;
  font-weight: 800;
  line-height: 1.4
}

.tool-subtitle {
  font: 6px 'DM Mono', monospace;
  letter-spacing: .3px;
  color: #789281;
  margin-top: 5px;
  line-height: 1.4
}

.tool-add {
  position: absolute;
  right: 7px;
  top: 7px;
  font-size: 13px;
  color: #688a74
}

.round-result {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 16px;
  padding: 12px 13px;
  border: 1px solid #294334;
  border-radius: 8px;
  background: #0b1b13;
  min-height: 65px
}

.result-mark {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 29px;
  height: 29px;
  background: #173d28;
  border-radius: 7px;
  color: var(--green);
  font-size: 18px
}

.round-result strong {
  font-size: 10px
}

.round-result p {
  font-size: 9px;
  color: #89a291;
  line-height: 1.5;
  margin: 4px 0 0
}

.result-points {
  margin-left: auto;
  white-space: nowrap;
  font: 500 18px 'DM Mono', monospace;
  color: var(--green)
}

.round-result.success {
  border-color: #367c50;
  background: #10291a
}

.round-result.success .result-mark {
  background: #1e4c30
}

.round-result.zero .result-points {
  color: var(--amber)
}

.panel-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px
}

.reset-button,
.clear-button {
  font-size: 9px;
  padding: 8px 10px;
  border-radius: 5px;
  background: transparent;
  border: 1px solid #294334;
  color: #90a897;
  cursor: pointer
}

.reset-button:disabled,
.clear-button:disabled {
  opacity: .3;
  cursor: not-allowed
}

.reset-button:hover:not(:disabled),
.clear-button:hover:not(:disabled) {
  border-color: #6b8b75;
  color: var(--text)
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 13px;
  min-width: 0
}

.side-card {
  padding: 19px
}

.side-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px
}

.side-title .eyebrow {
  margin-bottom: 8px
}

.side-title h3 {
  font-size: 14px;
  letter-spacing: -.3px;
  margin: 0
}

.info-icon {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 1px solid #3c5745;
  border-radius: 50%;
  font: italic 10px Georgia;
  color: #8aa18f
}

.side-intro {
  font-size: 9px;
  line-height: 1.7;
  color: #879e8c;
  margin: 11px 0 14px
}

.combo-table {
  border-top: 1px solid #243d2f
}

.combo-row {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #20372a
}

.combo-symbol {
  display: flex;
  gap: 3px;
  align-items: center
}

.combo-symbol i {
  display: block;
  width: 7px;
  height: 7px;
  border: 1px solid #85cfa0;
  border-radius: 2px;
  background: #254e34
}

.full-combo .combo-symbol i {
  background: var(--green);
  border-color: var(--green)
}

.triple-symbol i {
  border-color: #83c9ff;
  background: #254057
}

.pair-symbol i:nth-child(-n+2) {
  background: #f0c56c;
  border-color: #f0c56c
}

.pair-symbol i:last-child {
  background: transparent;
  border-color: #8c7850
}

.single-symbol i {
  background: #485d4b;
  border-color: #485d4b
}

.combo-description strong {
  display: block;
  font-size: 9px;
  line-height: 1.4
}

.combo-description small {
  display: block;
  font-size: 8px;
  color: #809887;
  line-height: 1.5;
  margin-top: 4px
}

.combo-row b {
  font: 500 12px 'DM Mono', monospace;
  color: var(--green)
}

.combo-row b.zero {
  color: var(--amber)
}

.tip {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  padding: 11px;
  background: #10291a;
  border: 1px solid #234c31;
  border-radius: 7px
}

.tip>span {
  font-size: 16px;
  color: var(--green)
}

.tip p {
  font-size: 8px;
  line-height: 1.7;
  color: #8ba895;
  margin: 0
}

.tip strong {
  color: #b9d8c1;
  font-size: 9px
}

.log-card .side-title {
  align-items: center
}

.log-live {
  font: 8px 'DM Mono', monospace;
  color: var(--green)
}

.event-log {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px
}

.event-log li {
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: start
}

.log-indicator {
  width: 6px;
  height: 6px;
  background: #3e7250;
  border-radius: 50%;
  margin-top: 4px
}

.event-log li:first-child .log-indicator {
  background: var(--green);
  box-shadow: 0 0 8px #74f0ae66
}

.event-log strong {
  display: block;
  font-size: 9px;
  font-weight: 700
}

.event-log small {
  display: block;
  font-size: 8px;
  color: #7e9786;
  margin-top: 4px;
  line-height: 1.5
}

.event-log time {
  font: 7px 'DM Mono', monospace;
  color: #587363
}

.privacy-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 4px;
  color: #8da594
}

.privacy-icon {
  font-size: 20px;
  color: var(--green)
}

.privacy-note strong {
  display: block;
  font-size: 9px;
  font-weight: 700
}

.privacy-note small {
  display: block;
  font-size: 8px;
  color: #718978;
  margin-top: 4px
}

.privacy-lock {
  margin-left: auto;
  color: #4f8e62;
  font-size: 9px
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 0 25px;
  border-top: 1px solid #20372a;
  font: 8px 'DM Mono', monospace;
  letter-spacing: .8px;
  color: #5e7868
}

footer b {
  color: #3e5e4a;
  margin: 0 5px
}

footer span:last-child {
  display: flex;
  align-items: center;
  gap: 6px
}

footer span:last-child i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green)
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 20px;
  background: #020906d9;
  backdrop-filter: blur(8px)
}

.modal-backdrop[hidden] {
  display: none
}

.end-modal {
  width: min(410px, 100%);
  padding: 32px;
  border: 1px solid #326244;
  border-radius: 15px;
  background: linear-gradient(145deg, #12291d, #0a1811);
  box-shadow: 0 30px 100px #0009;
  text-align: center
}

.end-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  border-radius: 16px;
  background: #17432a;
  border: 1px solid #347b4c
}

.end-icon svg {
  width: 38px;
  fill: none;
  stroke: var(--green);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round
}

.end-modal h2 {
  font-size: 26px;
  letter-spacing: -.8px;
  margin: 0 0 9px
}

.end-description {
  font-size: 10px;
  color: #91aa99;
  line-height: 1.7
}

.final-score {
  margin: 23px 0 13px;
  padding: 17px;
  border: 1px solid #294734;
  background: #0a1b11;
  border-radius: 9px
}

.final-score span,
.final-score small {
  display: block;
  font: 8px 'DM Mono', monospace;
  letter-spacing: 1px;
  color: #7f9987
}

.final-score strong {
  display: block;
  font: 500 42px 'DM Mono', monospace;
  color: var(--green);
  margin: 7px 0
}

.final-score small {
  letter-spacing: 0
}

.record-message {
  font-size: 10px;
  color: var(--amber);
  margin: 12px 0 20px
}

.play-again {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--green);
  border-radius: 7px;
  padding: 13px 15px;
  background: var(--green);
  color: #07180d;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer
}

.play-again:hover {
  filter: brightness(1.08)
}

@media(max-width:920px) {
  .hero-graphic {
    margin-right: 0;
    transform: scale(.85)
  }

  .main-layout {
    grid-template-columns: minmax(0, 1fr)
  }

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

  .privacy-note {
    grid-column: 1/-1
  }

  .combo-card {
    grid-row: span 2
  }
}

@media(max-width:620px) {
  .app {
    padding: 0 14px
  }

  .topbar {
    height: 68px
  }

  .connection {
    font-size: 7px;
    gap: 6px
  }

  .connection-divider,
  .mono {
    display: none
  }

  .hero {
    min-height: unset
  }

  .hero-content {
    padding: 32px 0
  }

  .hero-graphic {
    display: none
  }

  h1 {
    font-size: 44px;
    letter-spacing: -2.5px
  }

  .hero-description {
    font-size: 11px
  }

  .hero-meta {
    gap: 12px
  }

  .hero-meta span {
    font-size: 8px
  }

  .stats {
    gap: 7px;
    padding: 13px 0
  }

  .stat {
    padding: 12px
  }

  .stat-label {
    font-size: 7px;
    letter-spacing: .7px
  }

  .stat-value {
    font-size: 23px;
    margin-top: 9px
  }

  .stat-caption {
    font-size: 8px
  }

  .main-layout {
    padding-bottom: 20px
  }

  .game-panel {
    padding: 15px
  }

  .panel-header h2 {
    font-size: 19px
  }

  .live-badge {
    font-size: 7px;
    padding: 6px
  }

  .panel-description {
    font-size: 10px
  }

  .slots {
    gap: 6px
  }

  .slot {
    height: 82px;
    flex-direction: column;
    gap: 3px
  }

  .slot-symbol {
    width: 25px;
    height: 25px;
    font-size: 15px
  }

  .slot-label {
    font-size: 8px
  }

  .slot-label small {
    font-size: 6px
  }

  .slot-placeholder {
    font-size: 8px
  }

  .tools-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }

  .tool-button {
    min-height: 112px
  }

  .tool-name {
    font-size: 9px
  }

  .tool-subtitle {
    font-size: 6px
  }

  .sidebar {
    display: flex
  }

  .side-card {
    padding: 16px
  }

  .combo-row {
    grid-template-columns: 32px minmax(0, 1fr) auto
  }

  .combo-description small {
    font-size: 7px
  }

  .panel-actions {
    flex-wrap: wrap
  }

  .reset-button,
  .clear-button {
    flex: 1
  }

  footer {
    flex-direction: column;
    font-size: 7px;
    line-height: 1.7
  }

  .end-modal {
    padding: 25px
  }

  .end-modal h2 {
    font-size: 23px
  }
}

@media(prefers-reduced-motion:reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important
  }
}