/* ============================================================================
   ADMIRAL NEON - tema bersama untuk tool PS3 (flash writer 4.82-4.93)
   ----------------------------------------------------------------------------
   Dipasang dari bundel sumber, jadi app (LAN) dan situs (admiralgame.my.id/ps3/)
   memakai tampilan yang sama.

   ATURAN YANG DIPEGANG:
   1. MURNI CSS. Tidak satu elemen pun ditambah/dipindah. Semua id (#init, #nand,
      #usbList, #result, #offsets, #trigger, #exploit) dan onclick inline milik
      halaman upstream TIDAK disentuh - jadi exploit, ROP chain, dan mesin
      statusnya tidak berisiko sama sekali.
   2. Halaman tetap berfungsi penuh tanpa JavaScript. Tema ini hanya lapisan
      tampilan; yang menambah stepper adalah theme.js, dan kalau gagal dimuat,
      halaman berjalan persis seperti aslinya.
   3. Kompatibel WebKit PS3 (531.x, ~2013): TIDAK ada var(), CSS Grid, calc(),
      atau :not(). Semua properti berprefiks -webkit- diikutkan.
   4. Warna semantik DIPERTAHANKAN. showResult() menulis inline
      style='color:red' (gagal) dan 'green' (sukses); theme.js menggesernya ke
      neon merah / neon hijau, bukan diseragamkan jadi satu aksen.

   Penanda versi tema: 1
   ============================================================================ */

/* ---------- latar: gelap + grid + cahaya tepi ---------- */
html {
  background-color: #05070c;
  background-image:
    -webkit-repeating-linear-gradient(0deg, rgba(34,211,238,.055) 0px, rgba(34,211,238,.055) 1px, transparent 1px, transparent 46px),
    -webkit-repeating-linear-gradient(90deg, rgba(34,211,238,.055) 0px, rgba(34,211,238,.055) 1px, transparent 1px, transparent 46px),
    -webkit-radial-gradient(50% 12%, ellipse farthest-corner, rgba(34,211,238,.10) 0%, rgba(0,0,0,0) 62%),
    -webkit-radial-gradient(50% 100%, ellipse farthest-corner, rgba(255,47,122,.08) 0%, rgba(0,0,0,0) 60%);
  background-attachment: fixed;
  background-repeat: repeat, repeat, no-repeat, no-repeat;
  min-height: 100%;
}
body {
  margin: 0;
  padding: 0 0 5vh;
  background: transparent;
  color: #dbe7f2;
  font: 16px/1.55 "Segoe UI", system-ui, Arial, sans-serif;
}

/* ---------- judul ---------- */
h1 {
  margin: .7em .2em .25em;
  font-size: 2.5em;
  font-weight: 800;
  letter-spacing: .05em;
  color: #eaf6ff;
  text-shadow: 0 0 6px #22d3ee, 0 0 20px rgba(34,211,238,.55), 0 0 48px rgba(34,211,238,.28);
}
/* Bagian merah pada judul upstream jadi neon magenta. <font color=red> dipakai
   di halaman 4.82/4.84/4.85, <span style='color:red'> di halaman lainnya. */
h1 span, h1 font {
  color: #ff2f7a !important;
  text-shadow: 0 0 8px rgba(255,47,122,.95), 0 0 28px rgba(255,47,122,.5);
}
h2 {
  margin: .35em .2em;
  font-size: 1.02em;
  font-weight: 600;
  letter-spacing: .07em;
  color: #7fd8ef;
  text-shadow: 0 0 12px rgba(34,211,238,.4);
}
h3 {
  margin: .8em .2em .4em;
  font-size: 1em;
  font-weight: 600;
  letter-spacing: .05em;
  color: #cfe9f7;
}
p, .fine { color: #9fb3c6; }

hr {
  border: 0;
  height: 1px;
  margin: 1.4em 6vw;
  background: -webkit-linear-gradient(left, rgba(34,211,238,0), #22d3ee, #ff2f7a, #22d3ee, rgba(34,211,238,0));
}

/* ---------- tombol: panel gelap + tepi neon ---------- */
input[type=button], input[type=submit], button, .btn {
  margin: .35em .3em;
  padding: .8em 1.7em;
  background: -webkit-linear-gradient(top, #0e1c28, #08121b);
  color: #d7f4ff;
  border: 1px solid #22d3ee;
  border-radius: 9px;
  font: inherit;
  font-size: .95em;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-box-shadow: 0 0 10px rgba(34,211,238,.32), inset 0 0 12px rgba(34,211,238,.10);
  -webkit-transition: color .16s linear, border-color .16s linear, -webkit-box-shadow .16s linear;
}
input[type=button]:hover, input[type=submit]:hover, button:hover, .btn:hover {
  color: #ffffff;
  border-color: #7ff0ff;
  -webkit-box-shadow: 0 0 20px rgba(34,211,238,.85), inset 0 0 18px rgba(34,211,238,.22);
}
input[type=button]:active, input[type=submit]:active, button:active, .btn:active {
  border-color: #ff6bb0;
  -webkit-box-shadow: 0 0 22px rgba(255,47,122,.9), inset 0 0 18px rgba(255,47,122,.25);
}
input[type=button][disabled], input[type=submit][disabled], button[disabled] {
  opacity: .4;
  -webkit-box-shadow: none;
  cursor: default;
}

/* ---------- halaman writer: NOR jadi tombol utama, NAND sekunder ---------- */
#init {
  min-width: 13em;
  padding: 1.1em 1.7em;
  font-size: 1.3em;
  letter-spacing: .24em;
  border-color: #39ff88;
  color: #eaffef;
  background: -webkit-linear-gradient(top, #0d2a20, #071a13);
  -webkit-box-shadow: 0 0 22px rgba(57,255,136,.45), inset 0 0 22px rgba(57,255,136,.12);
}
#init:hover {
  border-color: #8bffc4;
  -webkit-box-shadow: 0 0 34px rgba(57,255,136,.85), inset 0 0 26px rgba(57,255,136,.26);
}
#nand {
  padding: .75em 1.4em;
  letter-spacing: .18em;
}
#dropdown h3 { color: #8fa6b8; font-size: .9em; text-transform: uppercase; letter-spacing: .18em; }

select {
  background: #08121b;
  color: #d7f4ff;
  border: 1px solid #22d3ee;
  border-radius: 9px;
  padding: .55em .9em;
  font: inherit;
  -webkit-box-shadow: 0 0 10px rgba(34,211,238,.3);
}

/* ---------- #result: panel terminal ---------- */
#result {
  display: block;
  max-width: 940px;
  margin: 1.7em auto 0;
  padding: 1.2em 1.5em;
  min-height: 2.4em;
  text-align: center;
  background: rgba(5,11,18,.88);
  border: 1px solid rgba(34,211,238,.32);
  border-radius: 11px;
  font: 15px/1.65 Consolas, "Courier New", monospace;
  color: #c9e6f5;
  -webkit-box-shadow: 0 0 24px rgba(34,211,238,.16), inset 0 0 34px rgba(0,0,0,.65);
}
#result:empty { display: none; }
#result h3 { margin: .2em 0; font-weight: 600; letter-spacing: .03em; font-size: 1.05em; }
#result br + br { display: none; }

/* warna semantik versi neon - theme.js memindahkan style inline upstream
   (red/green) ke dua kelas ini, jadi merah tetap berarti gagal dan hijau tetap
   berarti sukses. Kalau JS mati, keduanya tetap terbaca di panel gelap ini. */
.neon-bad  { color: #ff6b9d !important; text-shadow: 0 0 10px rgba(255,47,122,.75); }
.neon-ok   { color: #6bffab !important; text-shadow: 0 0 10px rgba(57,255,136,.7); }
.neon-warn { color: #ffd873 !important; text-shadow: 0 0 10px rgba(255,216,115,.65); }

/* ---------- tabel offset (debug, biasanya disembunyikan upstream) ---------- */
#offsets table {
  margin: 1.2em auto;
  border-collapse: collapse;
  font: 13px/1.45 Consolas, "Courier New", monospace;
}
#offsets th, #offsets td {
  border: 1px solid rgba(34,211,238,.28);
  padding: .32em .7em;
  color: #9fe4f7;
}
#offsets th {
  background: rgba(34,211,238,.10);
  color: #dff6ff;
  letter-spacing: .1em;
}

/* ---------- stepper alur (dibuat theme.js, murni tampilan) ---------- */
#admiral-flow {
  max-width: 940px;
  margin: 1.5em auto .2em;
  padding: 0 1.2em;
  text-align: left;
}
#admiral-flow .steps { list-style: none; margin: 0; padding: 0; }
#admiral-flow .steps li {
  position: relative;
  margin: 0 0 .35em;
  padding: .5em .8em .5em .8em;
  border-left: 2px solid rgba(34,211,238,.18);
  color: #6f8397;
  font-size: .95em;
  letter-spacing: .04em;
  -webkit-transition: color .2s linear, border-color .2s linear, background .2s linear;
}
#admiral-flow .steps li.done {
  color: #8bffc4;
  border-left-color: #39ff88;
}
#admiral-flow .steps li.active {
  color: #eaf9ff;
  border-left-color: #22d3ee;
  background: -webkit-linear-gradient(left, rgba(34,211,238,.14), rgba(34,211,238,0));
  text-shadow: 0 0 12px rgba(34,211,238,.55);
}
#admiral-flow .steps li.bad {
  color: #ff8fb5;
  border-left-color: #ff2f7a;
  text-shadow: 0 0 12px rgba(255,47,122,.5);
}
#admiral-flow .note {
  margin: .5em 0 0;
  font-size: .85em;
  letter-spacing: .06em;
  color: #6f8397;
}
