@import url('https://cdn.staticdelivr.com/gfonts/css2?family=Fira+Code:wght@300..700&display=swap');

:root {
  --background: #05070c; 
  --background: #05070c; 
  --accent: #5ea5ee;     
  --foreground: #eceae5;
  --accent: #5ea5ee;       
  --radius: 0;
  --font-size: 1rem;
  --line-height: 1.54em;
}

a, .tag, h1, h2 {
  color: var(--accent);
}

button:hover {
  background: rgba(94,165,238,0.2);
}

.flex {
  display: flex;
  align-items: center;
}

html {
  box-sizing: border-box;
  padding: 10px;
}


html:before
{
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            rgba(255,255,255,0.02) 50%,
            transparent 50%
        );

    background-size: 100% 4px;
    opacity: 0.5;
    pointer-events: none;
}

*,
*:before,
*:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}

body {
  font-family:
    "Fira Code",
    "JetBrains Mono",
    Monaco,
    Consolas,
     "Ubuntu Mono",
    monospace;
  font-size: var(--font-size);
  font-weight: 400;
  line-height: var(--line-height);
  color: var(--foreground);
  text-rendering: optimizeLegibility;
  font-variant-ligatures: contextual;
  -webkit-overflow-scrolling: touch;
  -webkit-text-size-adjust: 100%;
  margin: 0;
  padding: 0;
  background:
  radial-gradient(circle at top, rgba(94,165,238,0.10), transparent 60%),
  var(--background);

  
}

h1 {
  font-size: calc(var(--font-size) * 1.45);
  letter-spacing: 0;
}

h2 {
  font-size: calc(var(--font-size) * 1.35);
  letter-spacing: 0;
}

h3 {
  font-size: calc(var(--font-size) * 1.15);
  letter-spacing: 0;
}

h4,
h5,
h6 {
  font-size: calc(var(--font-size) * 1);
  letter-spacing: 0;
}

h1, h2, h3, h4, h5, h6,
p, ul, ol,
img, figure, video,
table {
  margin: 25px 0;
}

a {
  color: var(--accent);
}

a:hover {
  color: #c7e6ff;
}

button {
  position: relative;
  font: inherit;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  background: transparent;
  color: var(--accent);
  padding: 5px 18px;
  border: 4px solid var(--accent);
  border-radius: var(--radius);
  transition: background 0.15s linear;
  appearance: none;
  cursor: pointer;
  outline: none;
}

button:hover {
  background: color-mix(in srgb, var(--accent) 15%, transparent);
}

button:focus-visible,
a:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}

fieldset {
  display: inline-block;
  border: 2px solid var(--foreground);
  border-radius: calc(var(--radius) * 1.6);
  padding: 10px;
}

fieldset *:first-child {
  margin-top: 0;
}

fieldset input,
fieldset select,
fieldset textarea,
fieldset label,
fieldset button {
  margin-top: calc(var(--line-height) * 0.5);
  width: 100%;
}

label {
  display: inline-block;
}

label input {
  margin-top: 0;
}

input,
textarea,
select {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--foreground);
  border-radius: var(--radius);
  padding: 10px;
  font: inherit;
  appearance: none;
}

input[type="checkbox"] {
  width: auto;
}

input:focus-visible,
input:active,
textarea:focus-visible,
textarea:active,
select:focus-visible,
select:active {
  border-color: var(--accent);
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}

input:active,
textarea:active,
select:active {
  box-shadow: none;
}

select {
  background-image: linear-gradient(
      45deg,
      transparent 50%,
      var(--foreground) 50%
    ),
    linear-gradient(135deg, var(--foreground) 50%, transparent 50%);
  background-position: calc(100% - 20px), calc(100% - 15px);
  background-size:
    5px 5px,
    5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

select option {
  background: var(--background);
}

input[type="checkbox"],
input[type="radio"] {
  vertical-align: middle;
  padding: 10px;
  box-shadow: inset 0 0 0 3px var(--background);
}

input[type="radio"] {
  display: inline-block;
  width: 10px !important;
  height: 10px !important;
  border-radius: 20px;
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
  background: var(--accent);
}

figure img,
figure video {
  margin-bottom: 0;
}

figure figcaption {
  background: var(--accent);
  color: var(--background);
  text-align: center;
  font-size: 1em;
  font-weight: normal;
  margin-top: -8px;
  border-radius: 0 0 var(--radius) var(--radius);
}

ul,
ol {
  margin-left: 4ch;
  padding: 0;
}

ul ul,
ul ol,
ol ul,
ol ol {
  margin-top: 0;
}

li::marker {
  color: var(--accent);
}

ul li,
ol li {
  position: relative;
}

code,
kbd {
  font-family:
    "Fira Code",
    "JetBrains Mono",
    Monaco,
    Consolas,
    Ubuntu Mono,
    monospace !important;
  font-feature-settings: normal;
  background: color-mix(in srgb, var(--foreground) 5%, transparent);
  color: color-mix(in srgb, var(--foreground) 5%, var(--accent));
  padding: 0 6px;
  margin: 0 2px;
  font-size: 0.95em;
}

code {
  border: 1px solid color-mix(in srgb, var(--foreground) 25%, transparent);
}

kbd {
  border-top: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-left: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
  border-bottom: 4px solid var(--accent);
  border-radius: 4px;
}

code code {
  background: transparent;
  padding: 0;
  margin: 0;
}



sup {
  line-height: 0;
}

abbr {
  position: relative;
  text-decoration-style: wavy;
  text-decoration-color: var(--accent);
  cursor: help;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.25em;
}

mark {
  background: color-mix(in srgb, var(--accent) 45%, transparent);
  color: var(--foreground);
}

blockquote {
  position: relative;
  border-top: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  margin: 0;
  padding: 25px;
}

blockquote:before {
  content: ">";
  display: block;
  position: absolute;
  left: 0;
  color: var(--accent);
}

blockquote p:first-child {
  margin-top: 0;
}

blockquote p:last-child {
  margin-bottom: 0;
}

table {
  table-layout: auto;
  border-collapse: collapse;
}

table,
th,
td {
  border: 2px solid var(--foreground);
  padding: 10px;
}

th {
  border-style: solid;
  color: var(--foreground);
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

hr {
  width: 100%;
  border: none;
  background: var(--accent);
  height: 2px;
}

/* Bold elements */

h1, h2, h3, h4, h5, h6,
b, strong,
th,
button {
  font-weight: 600;
}



/* CARD DISPLAY*/
.character-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 280px);
  gap: 20px;
  justify-content: center;
}

.character-card {
    width: 280px;
    display: flex;
    flex-direction: column;
}

.character-card:hover {
    transform: translateY(-3px);
    border-color: #7cc4ff;

    box-shadow:
        0 0 14px rgba(58, 160, 255, 0.4),
        inset 0 0 16px rgba(58, 160, 255, 0.12);
}



.character-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;

    margin: 0;
    border-bottom: 1px solid #3aa0ff;

    filter: contrast(1.05) saturate(0.9);
}

.character-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.character-name,
.character-description,
.character-tags {
    margin: 0;
}

.character-name {
    color: #8ed0ff;
    margin-bottom: 10px;

    font-size: 1.2rem;
    letter-spacing: 1px;

    text-shadow: 0 0 6px rgba(142, 208, 255, 0.35);
}

.character-description {
    color: #b9dfff;
    line-height: 1.5;
    font-size: 0.95rem;

    margin-bottom: 14px;
}

.character-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.tag {
    border: 1px solid #3aa0ff;
    background: rgba(58, 160, 255, 0.08);
    color: #8ed0ff;

    padding: 5px 10px;
    border-radius: 4px;

    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chat-button {
    display: block;
    width: 100%;

    margin-top: 16px;
    padding: 11px;

    border: 1px solid #3aa0ff;
    border-radius: 6px;

    text-align: center;
    text-decoration: none;

    color: #d8efff;
    background: rgba(58, 160, 255, 0.1);

    transition:
        background 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.chat-button:hover {
    background: rgba(58, 160, 255, 0.2);
    color: #ffffff;

    box-shadow: 0 0 10px rgba(58, 160, 255, 0.35);
}

.pagedoll {
  position: absolute;
  top:0;
  right:0;
}


/* MAIN TERMINAL PANEL */



.terminal-window {
  background: linear-gradient(
    180deg,
    rgba(94,165,238,0.18),
    rgba(21,52,137,0.35)
  );

  border: 1px solid rgba(94,165,238,0.5);

  box-shadow:
    0 0 35px rgba(94,165,238,0.25),
    inset 0 0 30px rgba(0,0,0,0.4);

  backdrop-filter: blur(4px);

  width: min(900px, 100%);
  margin: auto;
  padding: 32px;

}


/* HEADER */
.header-image {
  width: min(100%, 500px);

  image-rendering: auto;
  display: block;

  margin: 0 auto 20px auto;

  border: 1px solid rgba(94,165,238,0.4);

  box-shadow:
    0 0 18px rgba(94,165,238,0.2);
}


.head {
 text-align:center;
}

.head h1 {
  font-size: xx-large;
  margin-top:-1rem;
}


.head img {
  width: min(100%, 220px);
  height: auto;
}
/* DETAILS */

details {
  margin-bottom: 18px;

  border: 1px solid rgba(94,165,238,0.2);

  background: rgba(255,255,255,0.02);

  transition:
    border-color 0.2s ease,
    background 0.2s ease;

  padding:10px;
}

details:hover {
  border-color: rgba(94,165,238,0.5);
  background: rgba(255,255,255,0.035);
}

summary {
  cursor: pointer;
  padding: 12px 16px;

  color: #9fd1ff;
  font-weight: 600;
}

details[open] {
  padding-bottom: 12px;
}

details a {
  display: inline-block;
  padding: 4px 16px;
}


/* ASCII */

pre {
  margin-top: 50px;

  color: rgba(236,234,229,0.75);

  overflow-x: auto;

  font-size: 0.72rem;
  line-height: 1.05;

  text-align: center;
}

/*WEBRING*/
.webring-shell {
  border: 1px solid rgba(94,165,238,0.3);

  background:
    linear-gradient(
      rgba(255,255,255,0.015),
      rgba(255,255,255,0.03)
    );

  box-shadow:
    inset 0 0 12px rgba(255,255,255,0.015);
}

.shell-title {
  padding: 10px 14px;

  border-bottom: 1px solid rgba(94,165,238,0.2);

  color: #9fd1ff;

  font-size: 0.9rem;
  letter-spacing: 1px;

  background: rgba(94,165,238,0.06);

  text-transform: lowercase;
}

.widget-holder {
  margin-left: auto;
  align-items: center;
  position:fixed;
  bottom:0;

}

.chatbots-webring-widget img {
  opacity: 0.82;

  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    filter 0.2s ease;

  filter:
    saturate(0.3)
    brightness(0.95);
	

}

.chatbots-webring-widget img:hover {
  opacity: 1;

  transform: translateY(-2px);

  filter:
    saturate(1)
    brightness(1.05);
}


details.log summary {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    list-style: none;
}

details.log summary::-webkit-details-marker {
    display: none; 
}

details.log summary::before {
    content: ">";
    color: var(--accent);
    transition: transform 0.15s ease;
}

details.log[open] summary::before {
    transform: rotate(90deg);
}

.log-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-left: auto; 
}

.log .tag {
    padding: 2px 8px;      
    font-weight: 500;    
}