@import url("../fonts.css");

:root {
  --bg: #121317;
  --panel: #191b21;
  --panel-2: #20232a;
  --line: #2b2d35;
  --ink: #e8e8e8;
  --soft: #cfd2cc;
  --muted: #9a9da6;
  --green: #79c34a;
  --diamond: #4aedd9;
  --gold: #f5d33d;
  --red: #e04b4b;
  --pixel: "Press Start 2P", monospace;
  --body: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  --max: 900px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--bg);
  background-image: url("../tex/darkstone.png");
  background-size: 160px 160px;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(1100px 620px at 50% 0%, rgba(0, 0, 0, 0), rgba(0, 0, 0, .35));
}
a { color: inherit; text-decoration: none; }
img { display: block; image-rendering: pixelated; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--green); color: #121317; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }

.page {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 30px 24px;
}

/* header */
.top { border-bottom: 2px solid #262830; background: rgba(18, 19, 23, .92); }
.top-in {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 30px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--pixel);
  font-size: 20px;
  letter-spacing: .02em;
}
.logo img { width: 26px; height: 26px; }
.top .right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.online { display: flex; align-items: center; gap: 8px; font-family: var(--pixel); font-size: 10px; color: #86ff2e; }
.online i { width: 8px; height: 8px; background: #86ff2e; }

.mc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 16px;
  font-family: var(--pixel);
  font-size: 14px;
  line-height: 1.2;
  color: #f2f2f2;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, .55);
  background: #5c8a3c;
  border: 2px solid #101010;
  box-shadow: inset 3px 3px 0 rgba(255, 255, 255, .22), inset -3px -3px 0 rgba(0, 0, 0, .32), 3px 3px 0 rgba(0, 0, 0, .38);
  cursor: pointer;
  transition: background .12s, transform .08s;
}
.mc-btn:hover { background: #6ea447; }
.mc-btn:active { transform: translate(2px, 2px); box-shadow: inset 3px 3px 0 rgba(255, 255, 255, .22), inset -3px -3px 0 rgba(0, 0, 0, .32), 1px 1px 0 rgba(0, 0, 0, .38); }

/* hero */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 0 2px;
}
.slot {
  display: grid;
  place-items: center;
  background: #8b8b8b;
  border: 2px solid #101010;
  box-shadow: inset 4px 4px 0 #bcbcbc, inset -4px -4px 0 #5c5c5c, 0 0 0 2px #262830;
}
.avatar-slot { width: 104px; height: 104px; flex: none; margin: 0 auto; }
.avatar-slot img { width: 78px; height: 78px; }
.hero h1 {
  margin: 14px 0 12px;
  font-family: var(--pixel);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: .02em;
  text-align: center;
}
.tagline { font-size: 18px; line-height: 1.55; color: var(--soft); text-align: center; }
.tagline span { display: block; }
.tagline b { color: var(--ink); font-weight: 700; }

/* stats */
.stats { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.hearts { display: flex; gap: 5px; }
.hearts img { width: 21px; height: 21px; }
.stat { font-family: var(--pixel); font-size: 10px; color: var(--muted); }
.lvl { padding: 5px 9px; border: 2px solid var(--line); color: var(--ink); }
.xp { width: 220px; height: 12px; padding: 2px; background: #0d0e11; border: 2px solid #000; }
.xp i { display: block; height: 100%; width: 78%; background: #86ff2e; }
.online-inline { display: flex; align-items: center; gap: 8px; font-family: var(--pixel); font-size: 10px; color: #86ff2e; }
.online-inline i { width: 8px; height: 8px; background: #86ff2e; }

/* sections */
.sec-head { display: flex; align-items: baseline; gap: 12px; margin: 28px 0 13px; }
.sec-head .num { font-family: var(--pixel); font-size: 11px; color: var(--green); }
.sec-head h2 { font-family: var(--pixel); font-size: 15px; font-weight: 400; letter-spacing: .04em; }
.sec-head .side { margin-left: auto; font-family: var(--pixel); font-size: 10px; color: var(--muted); }

.links { display: flex; flex-direction: column; gap: 8px; }
.link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  background: var(--panel);
  border: 2px solid var(--line);
  transition: border-color .12s, background .12s, transform .12s;
}
.link:hover { border-color: var(--green); background: var(--panel-2); transform: translateX(3px); }
.link .slot { width: 56px; height: 56px; flex: none; }
.link .slot img { width: 36px; height: 36px; }
.link h3 { font-size: 21px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.link p { margin-top: 4px; font-size: 17px; line-height: 1.45; color: var(--muted); }
.link .go {
  margin-left: auto;
  flex: none;
  text-align: right;
  font-family: var(--pixel);
  font-size: 11px;
  line-height: 1.7;
  color: var(--diamond);
  max-width: 190px;
}
.link .go em { display: block; font-style: normal; color: var(--gold); }

.gap { height: 28px; }

.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.contact {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--panel);
  border: 2px solid var(--line);
  transition: border-color .12s, background .12s;
}
.contact:hover { border-color: var(--green); background: var(--panel-2); }
.contact img { width: 26px; height: 26px; flex: none; }
.contact .k { font-family: var(--pixel); font-size: 10px; color: var(--muted); }
.contact .v { margin-top: 4px; font-size: 17px; color: var(--ink); }
.contact .arr { margin-left: auto; font-family: var(--pixel); font-size: 12px; color: var(--muted); }
.contact:hover .arr { color: var(--diamond); }

.note { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 17px; color: var(--muted); }
.note img { width: 20px; height: 20px; }

/* footer */
.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding-top: 12px;
  border-top: 2px dashed var(--line);
  font-family: var(--pixel);
  font-size: 9px;
  line-height: 1.9;
  color: var(--muted);
}

/* achievement toast */
.toast {
  position: fixed;
  right: 18px;
  top: 18px;
  z-index: 40;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 420px;
  padding: 16px 18px;
  background: #1b1d23;
  border: 2px solid #000;
  box-shadow: 0 0 0 2px #3a3d46, 6px 6px 0 rgba(0, 0, 0, .35);
}
.toast img { width: 38px; height: 38px; flex: none; }
.toast b {
  display: block;
  font-family: var(--pixel);
  font-size: 11px;
  line-height: 1.7;
  color: var(--gold);
  font-weight: 400;
}
.toast span { display: block; margin-top: 6px; font-size: 18px; color: var(--ink); }
.toast button {
  margin-left: 4px;
  padding: 2px 5px;
  font-family: var(--pixel);
  font-size: 10px;
  color: var(--muted);
  background: none;
  border: 0;
  cursor: pointer;
}
.toast button:hover { color: var(--red); }
.toast.hide { display: none; }


.foot a { color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; }
.foot a:hover { color: var(--green); }


/* contacts: two buttons + modal */
.contact-line { display: flex; align-items: center; justify-content: flex-start; gap: 14px; flex-wrap: wrap; }
.contact-btn {
  font-family: var(--pixel);
  font-size: 11px;
  letter-spacing: .05em;
  color: #fff;
  background: #5c8a3c;
  border: 2px solid #101010;
  padding: 13px 20px;
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, .22), inset -2px -2px 0 rgba(0, 0, 0, .32), 3px 3px 0 rgba(0, 0, 0, .35);
  cursor: pointer;
  transition: background .12s, transform .08s;
}
.contact-btn:hover { background: #6ea447; }
.contact-btn:active { transform: translate(2px, 2px); box-shadow: inset 3px 3px 0 rgba(255, 255, 255, .22), inset -3px -3px 0 rgba(0, 0, 0, .32), 1px 1px 0 rgba(0, 0, 0, .38); }
.contact-btn--mail { background: #2a2d35; color: var(--ink); }
.contact-btn--mail:hover { background: #343843; }

.modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-back { position: absolute; inset: 0; background: rgba(0, 0, 0, .68); }
.modal-box {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 20px 20px 18px;
  background: #14161b;
  border: 2px solid #2b2d35;
  box-shadow: 0 0 0 2px #000, 8px 8px 0 rgba(0, 0, 0, .35);
}
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.modal-title { font-family: var(--pixel); font-size: 13px; }
.modal-close {
  padding: 0 4px;
  font-family: var(--pixel);
  font-size: 12px;
  line-height: 1;
  color: var(--muted);
  background: none;
  border: 0;
  cursor: pointer;
}
.modal-close:hover { color: var(--red); }
.modal-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-top: 2px solid var(--line);
  color: inherit;
  text-decoration: none;
}
.modal-link:first-of-type { border-top: 0; }
.modal-link span { font-family: var(--pixel); font-size: 9px; color: var(--muted); }
.modal-link b { font-weight: 400; font-size: 16px; }
.modal-link:hover b { color: var(--green); }
.modal-note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 2px dashed var(--line);
  font-size: 14px;
  color: var(--muted);
}
body.modal-open { overflow: hidden; }





.foot-right { display: inline-flex; align-items: center; gap: 4px; }
.foot-sep { color: var(--muted); }

.avatar-slot img { transition: transform .18s ease; }
.avatar-slot:hover img { transform: translateY(-3px); }

.online-inline i { animation: blink-dot 2.2s steps(1) infinite; }
@keyframes blink-dot { 50% { opacity: .25; } }

.xp i { box-shadow: 0 0 10px rgba(134, 255, 46, .28); }

@media (max-width: 720px) {
  body { font-size: 16px; }
  .page { padding: 0 20px 24px; }
  .top-in { padding: 0 20px; height: 62px; }
  .logo { font-size: 16px; }
  .logo img { width: 22px; height: 22px; }
  .top .online { display: none; }
  .mc-btn { font-size: 12px; padding: 11px 13px; }
  .avatar-slot { width: 94px; height: 94px; }
  .avatar-slot img { width: 70px; height: 70px; }
  .hero { padding-top: 22px; }
  .hero h1 { font-size: 27px; margin: 14px 0 12px; }
  .tagline { font-size: 17px; }
  .stats { gap: 10px; }
  .xp { width: 130px; }
  .online-inline { display: none; }
  .sec-head { margin: 26px 0 12px; }
  .sec-head h2 { font-size: 12px; }
  .sec-head .side { display: none; }
  .link { gap: 12px; padding: 12px; }
  .link .slot { width: 48px; height: 48px; }
  .link .slot img { width: 30px; height: 30px; }
  .link h3 { font-size: 17px; }
  .link p { font-size: 15px; }
  .link .go { font-size: 9px; max-width: 90px; }
  .contacts { grid-template-columns: 1fr; }
  .contact { padding: 14px; }
  .contact .v { font-size: 16px; }
  .note { font-size: 15px; }
  .foot { flex-direction: column; gap: 8px; margin-top: 22px; }
  .toast { display: none; }
  .toast b { font-size: 10px; }
  .toast span { font-size: 16px; }
}
