:root{
  --asg-bg:#061f33;
  --asg-bg2:#031523;
  --asg-fluo:#dfff00;
  --asg-text:#ffffff;
  --asg-card:#ffffff;
  --asg-muted:#53616d;
  --asg-dark:#061f33;
  --asg-border:rgba(223,255,0,.45);
  --asg-soft:#f4f8fa;
  --asg-line:#dce5ea;
  --asg-good:#147a38;
  --asg-bad:#b3261e;
}

*{
  box-sizing:border-box;
}

[hidden]{
  display:none !important;
}

body{
  margin:0;
  font-family:Arial, Helvetica, sans-serif;
  background:linear-gradient(180deg,var(--asg-bg) 0%,var(--asg-bg2) 100%);
  color:var(--asg-text);
  min-height:100vh;
}

.asg-page{
  max-width:980px;
  margin:0 auto;
  padding:32px 16px 54px;
}

.asg-top{
  margin-bottom:24px;
}

.asg-back{
  display:inline-block;
  color:var(--asg-fluo);
  text-decoration:none;
  font-weight:800;
  margin-bottom:22px;
}

.asg-back:visited{
  color:var(--asg-fluo);
}

.asg-back:hover{
  color:#ffffff;
}

.asg-hero{
  border:1px solid var(--asg-border);
  background:rgba(223,255,0,.08);
  border-radius:24px;
  padding:28px;
  box-shadow:0 12px 30px rgba(0,0,0,.28);
}

.asg-badge{
  display:inline-block;
  background:var(--asg-fluo);
  color:var(--asg-dark);
  padding:7px 14px;
  border-radius:999px;
  font-size:13px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.4px;
  margin-bottom:14px;
}

h1{
  margin:0 0 12px;
  font-size:38px;
  line-height:1.1;
  color:var(--asg-fluo);
  text-transform:uppercase;
}

.asg-hero p{
  margin:0;
  color:#ffffff;
  font-size:18px;
  line-height:1.55;
  font-weight:600;
}

.asg-intro{
  margin-top:24px;
  padding:20px;
  border-radius:18px;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(223,255,0,.30);
  color:#ffffff;
  line-height:1.65;
}

.asg-intro strong{
  color:var(--asg-fluo);
  font-size:17px;
}

.asg-intro p{
  margin:8px 0 0;
  color:#ffffff;
}

.asg-tool{
  margin-top:24px;
  background:var(--asg-card);
  color:var(--asg-dark);
  border-radius:24px;
  padding:26px;
  box-shadow:0 14px 34px rgba(0,0,0,.30);
  border-top:7px solid var(--asg-fluo);
}

.asg-warning{
  border-left:6px solid var(--asg-fluo);
  background:#fffbe8;
  padding:14px;
  border-radius:12px;
  line-height:1.55;
  color:var(--asg-dark);
}

.asg-capture-area{
  margin-top:20px;
  padding:18px;
  border:3px dashed #afbec7;
  border-radius:18px;
  background:var(--asg-soft);
  outline:none;
  transition:border-color .2s ease,background-color .2s ease,box-shadow .2s ease;
}

.asg-capture-area:focus,
.asg-capture-area.is-active{
  border-color:var(--asg-fluo);
  background:#fbfdea;
  box-shadow:0 0 0 5px rgba(223,255,0,.22);
}

.asg-capture-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.asg-capture-head strong,
.asg-capture-head span{
  display:block;
}

.asg-capture-head strong{
  color:var(--asg-dark);
  font-size:20px;
}

.asg-capture-head span{
  margin-top:5px;
  color:var(--asg-muted);
  font-size:13px;
  font-weight:800;
}

.asg-live-key{
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:100px;
  min-height:72px;
  padding:10px 16px;
  border:2px solid var(--asg-dark);
  border-bottom-width:6px;
  border-radius:14px;
  background:#ffffff;
  color:var(--asg-dark);
  font-size:24px;
  font-weight:900;
  text-align:center;
  word-break:break-word;
}

.asg-live-key.is-pressed{
  transform:translateY(3px);
  border-bottom-width:3px;
  background:var(--asg-fluo);
}

.asg-live-details{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
  margin-top:16px;
}

.asg-live-details span{
  min-width:0;
  padding:11px;
  border:1px solid var(--asg-line);
  border-radius:12px;
  background:#ffffff;
  color:var(--asg-muted);
  font-size:11px;
  font-weight:900;
}

.asg-live-details strong{
  display:block;
  overflow:hidden;
  margin-bottom:4px;
  color:var(--asg-dark);
  font-size:14px;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.asg-settings{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-top:18px;
}

.asg-check{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:54px;
  margin:0;
  padding:12px 14px;
  border:1px solid var(--asg-line);
  border-radius:14px;
  background:var(--asg-soft);
  cursor:pointer;
}

.asg-check:hover{
  border-color:var(--asg-fluo);
  background:#fbfdea;
}

.asg-check input{
  width:18px;
  height:18px;
  margin:0;
  accent-color:var(--asg-dark);
  flex:0 0 auto;
}

.asg-check span{
  color:var(--asg-dark);
  font-weight:900;
  line-height:1.4;
}

.asg-stats{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
  margin-top:18px;
}

.asg-stat-card{
  padding:15px;
  border:1px solid var(--asg-line);
  border-radius:15px;
  background:var(--asg-soft);
}

.asg-stat-card strong,
.asg-stat-card span{
  display:block;
}

.asg-stat-card strong{
  color:var(--asg-dark);
  font-size:22px;
}

.asg-stat-card span{
  margin-top:5px;
  color:var(--asg-muted);
  font-size:12px;
  font-weight:900;
}

.asg-modifiers{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  margin-top:16px;
}

.asg-modifiers span{
  padding:8px 12px;
  border:1px solid var(--asg-line);
  border-radius:999px;
  background:var(--asg-soft);
  color:var(--asg-muted);
  font-size:12px;
  font-weight:900;
}

.asg-modifiers span.is-active{
  border-color:var(--asg-fluo);
  background:var(--asg-dark);
  color:var(--asg-fluo);
}

.asg-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:20px;
}

button{
  border:0;
  cursor:pointer;
  background:var(--asg-dark);
  color:var(--asg-fluo);
  padding:13px 18px;
  border-radius:999px;
  font-size:15px;
  font-weight:900;
  text-decoration:none;
  display:inline-block;
  transition:filter .2s ease,transform .2s ease;
}

button.secondary{
  background:#e9eef2;
  color:var(--asg-dark);
}

button:hover{
  filter:brightness(1.05);
  transform:translateY(-1px);
}

button:disabled{
  opacity:.5;
  cursor:not-allowed;
  transform:none;
}

.asg-message{
  margin-top:16px;
  padding:14px;
  border-left:6px solid var(--asg-good);
  border-radius:12px;
  background:var(--asg-soft);
  color:var(--asg-good);
  font-weight:900;
  white-space:pre-wrap;
}

.asg-keyboard-shell{
  margin-top:22px;
  padding:14px;
  overflow:hidden;
  border:1px solid var(--asg-line);
  border-radius:18px;
  background:#dce5ea;
}

.asg-keyboard-scroll{
  overflow-x:auto;
  padding-bottom:5px;
}

.asg-keyboard{
  display:flex;
  gap:12px;
  width:max-content;
  min-width:100%;
}

.asg-keyboard-main{
  min-width:690px;
}

.asg-keyboard-nav{
  min-width:166px;
}

.asg-keyboard-numpad{
  min-width:220px;
}

.asg-key-row,
.asg-nav-row{
  display:flex;
  gap:5px;
  margin-bottom:5px;
}

.asg-key{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  flex:0 0 42px;
  width:42px;
  height:42px;
  min-width:42px;
  padding:3px;
  border:1px solid #8b9ba5;
  border-bottom:4px solid #52626d;
  border-radius:7px;
  background:#ffffff;
  color:var(--asg-dark);
  font-size:11px;
  line-height:1.05;
  text-align:center;
  transition:transform .06s ease,border-color .06s ease,background-color .06s ease;
}

.asg-key span{
  font-weight:900;
}

.asg-key small{
  margin-top:2px;
  color:#6b7881;
  font-size:9px;
  font-weight:800;
}

.asg-key.is-down{
  transform:translateY(3px);
  border-color:#9ab000;
  border-bottom-width:1px;
  background:var(--asg-fluo);
  color:var(--asg-dark);
  box-shadow:0 0 12px rgba(223,255,0,.55);
}

.asg-key.is-tested:not(.is-down){
  border-color:#92a500;
  background:#f6ffd0;
}

.asg-key-spacer{
  flex:0 0 24px;
}

.asg-key-spacer.small{
  flex-basis:10px;
}

.key-wide-12{
  flex-basis:52px;
  width:52px;
}

.key-wide-15{
  flex-basis:64px;
  width:64px;
}

.key-wide-18{
  flex-basis:76px;
  width:76px;
}

.key-wide-2{
  flex-basis:89px;
  width:89px;
}

.key-wide-24{
  flex-basis:101px;
  width:101px;
}

.key-space{
  flex-basis:270px;
  width:270px;
}

.asg-nav-row{
  justify-content:center;
}

.asg-nav-row .asg-key{
  flex-basis:52px;
  width:52px;
  font-size:9px;
}

.asg-arrows{
  display:grid;
  grid-template-columns:repeat(3,52px);
  gap:5px;
  margin-top:48px;
}

.asg-arrows .asg-key{
  width:52px;
  min-width:52px;
}

.asg-numpad-grid{
  display:grid;
  grid-template-columns:repeat(4,48px);
  grid-auto-rows:42px;
  gap:5px;
}

.asg-numpad-grid .asg-key{
  width:48px;
  min-width:48px;
  height:42px;
}

.asg-numpad-grid .key-wide-2{
  grid-column:span 2;
  width:auto;
}

.asg-numpad-grid .key-tall{
  grid-row:span 2;
  height:auto;
}

.asg-log-section{
  margin-top:22px;
}

.asg-log-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px;
  border:1px solid var(--asg-line);
  border-radius:15px;
  background:var(--asg-soft);
}

.asg-log-head strong,
.asg-log-head span{
  display:block;
}

.asg-log-head strong{
  color:var(--asg-dark);
  font-size:19px;
}

.asg-log-head span{
  margin-top:4px;
  color:var(--asg-muted);
  font-size:12px;
  font-weight:800;
}

.asg-log-head button{
  flex:0 0 auto;
  padding:10px 14px;
}

.asg-table-wrap{
  margin-top:12px;
  overflow-x:auto;
  border:1px solid var(--asg-line);
  border-radius:14px;
}

table{
  width:100%;
  min-width:680px;
  border-collapse:collapse;
  background:#ffffff;
  color:var(--asg-dark);
}

th,
td{
  padding:11px 12px;
  border-bottom:1px solid var(--asg-line);
  text-align:left;
  font-size:12px;
}

th{
  background:#edf2f5;
  font-weight:900;
}

td{
  font-weight:700;
}

tbody tr:last-child td{
  border-bottom:0;
}

.asg-empty-row td{
  padding:20px;
  color:var(--asg-muted);
  text-align:center;
}

.asg-small{
  color:var(--asg-muted);
  font-size:14px;
  line-height:1.5;
}

.asg-note{
  margin-top:24px;
  padding:22px;
  border-radius:18px;
  background:rgba(223,255,0,.10);
  border:1px solid rgba(223,255,0,.35);
  color:#ffffff;
  line-height:1.6;
}

.asg-note > strong{
  color:var(--asg-fluo);
}

.asg-social-buttons{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:12px;
  margin-top:18px;
}

.asg-social-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  width:fit-content;
  max-width:100%;
  padding:13px 18px;
  border-radius:14px;
  background:#dfff00;
  color:#06131d !important;
  font-weight:800;
  line-height:1;
  text-decoration:none !important;
  border:1px solid rgba(223,255,0,.8);
  box-shadow:0 0 18px rgba(223,255,0,.25);
  transition:background-color .2s ease,color .2s ease,box-shadow .2s ease,transform .2s ease;
}

.asg-social-btn svg{
  width:22px;
  height:22px;
  fill:currentColor;
  flex:0 0 auto;
}

.asg-social-btn:visited{
  color:#06131d !important;
}

.asg-social-btn:hover{
  background:#ffffff;
  color:#06131d !important;
  box-shadow:0 0 22px rgba(255,255,255,.25);
  transform:translateY(-1px);
}

.asg-review-box{
  margin-top:28px;
  padding-top:24px;
  border-top:1px solid rgba(223,255,0,.25);
}

.asg-review-text{
  margin:0 0 14px;
  color:#ffffff;
  line-height:1.6;
}

.asg-review-text strong{
  color:#deff00;
}

.asg-review-stars{
  display:flex;
  align-items:center;
  flex-wrap:nowrap;
  gap:6px;
  margin:0 0 18px;
}

.asg-review-stars span{
  display:inline-block;
  color:#deff00;
  font-size:23px;
  line-height:1;
  text-shadow:0 0 8px rgba(222,255,0,.22);
}

.google-review-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  width:fit-content;
  max-width:100%;
  padding:12px 18px;
  border-radius:14px;
  background:#ffffff;
  color:#d93025 !important;
  font-size:15px;
  font-weight:800;
  line-height:1.25;
  text-align:center;
  text-decoration:none !important;
  border:1px solid #d8d8d8;
  box-shadow:0 4px 14px rgba(0,0,0,.16);
  transition:background-color .2s ease,color .2s ease,border-color .2s ease,box-shadow .2s ease,transform .2s ease;
}

.google-review-btn:visited{
  color:#d93025 !important;
}

.google-review-btn:hover{
  background:#f5f5f5;
  color:#c5221f !important;
  border-color:#cfcfcf;
  box-shadow:0 6px 18px rgba(0,0,0,.20);
  transform:translateY(-1px);
}

.google-review-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
}

.google-review-icon svg{
  display:block;
  width:21px;
  height:21px;
}

.asg-assistance{
  margin-top:24px;
  padding:20px;
  border-radius:18px;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.16);
  color:#ffffff;
  line-height:1.6;
}

.asg-assistance strong{
  color:var(--asg-fluo);
}

:fullscreen .asg-tool{
  max-width:none;
  min-height:100vh;
  margin:0;
  border-radius:0;
}

:fullscreen .asg-keyboard-shell{
  margin-top:14px;
}

@media(max-width:760px){
  .asg-page{
    padding:22px 13px 44px;
  }

  .asg-hero,
  .asg-tool{
    padding:20px;
  }

  h1{
    font-size:29px;
  }

  .asg-hero p{
    font-size:16px;
  }

  .asg-capture-head{
    align-items:flex-start;
    flex-direction:column;
  }

  .asg-live-key{
    width:100%;
  }

  .asg-live-details,
  .asg-settings,
  .asg-stats{
    grid-template-columns:1fr 1fr;
  }

  .asg-actions button{
    width:100%;
    text-align:center;
  }

  .asg-log-head{
    align-items:flex-start;
    flex-direction:column;
  }
}

@media(max-width:600px){
  .asg-social-buttons{
    align-items:stretch;
  }

  .asg-social-btn,
  .google-review-btn{
    width:100%;
  }

  .asg-live-details,
  .asg-settings,
  .asg-stats{
    grid-template-columns:1fr;
  }
}
