:root {
  --bg: #020c17;
  --bg-deep: #01070d;
  --surface: #071625;
  --surface-2: #0a1c2f;
  --surface-3: #0e2438;
  --text: #f4f8fc;
  --muted: #8da1b7;
  --muted-2: #60758c;
  --line: rgba(105, 162, 211, .22);
  --line-strong: rgba(73, 164, 242, .42);
  --blue: #1688ff;
  --blue-2: #0c65dc;
  --cyan: #3cc4ff;
  --green: #31dc73;
  --gold: #d5a85a;
  --danger: #ff6777;
  --shadow: 0 22px 70px rgba(0, 0, 0, .32);
  --radius: 16px;
  --page: min(1440px, calc(100vw - 64px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -20%, rgba(20, 91, 151, .18), transparent 32%),
    linear-gradient(180deg, #03111f 0%, var(--bg) 50%, var(--bg-deep) 100%);
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
a { color: inherit; }
.page-width { width: var(--page); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 92px;
  background: rgba(2, 12, 23, .94);
  border-bottom: 1px solid rgba(70, 142, 204, .18);
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 35px rgba(0, 0, 0, .18);
}
.header-inner {
  width: min(1510px, calc(100vw - 42px));
  height: 100%;
  margin: auto;
  display: grid;
  grid-template-columns: 250px 1fr auto;
  align-items: center;
  gap: 22px;
}
.header-brand { display: flex; align-items: center; min-width: 0; }
.header-brand img { width: 240px; max-height: 80px; object-fit: contain; object-position: left center; filter: drop-shadow(0 5px 18px rgba(0, 132, 255, .12)); }
.main-nav { display: flex; justify-content: center; align-items: stretch; height: 100%; gap: 4px; }
.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 17px;
  text-decoration: none;
  text-transform: uppercase;
  color: #d2deea;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .035em;
  transition: color .18s ease, background .18s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 18px; right: 18px; bottom: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  box-shadow: 0 0 12px rgba(22, 136, 255, .8);
  transition: transform .18s ease;
}
.nav-link:hover, .nav-link.active { color: white; background: rgba(22, 136, 255, .035); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.nav-toggle { display: none; }

/* Buttons */
.btn {
  min-height: 46px;
  padding: 0 20px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .015em;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  color: white;
  border-color: rgba(66, 174, 255, .65);
  background: linear-gradient(180deg, #1c92ff 0%, #0866df 100%);
  box-shadow: inset 0 1px rgba(255, 255, 255, .16), 0 8px 26px rgba(5, 106, 227, .22);
}
.btn-primary:hover { box-shadow: inset 0 1px rgba(255,255,255,.18), 0 10px 32px rgba(5,106,227,.34), 0 0 0 1px rgba(54,177,255,.12); }
.btn-outline {
  color: #e9f2fb;
  border-color: rgba(116, 157, 193, .38);
  background: rgba(4, 17, 30, .66);
}
.btn-outline:hover { border-color: rgba(66, 172, 255, .65); background: rgba(14, 45, 73, .55); }
.btn-large { min-height: 56px; padding-inline: 28px; font-size: 14px; }
.btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.account-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(49,220,115,.75); }

/* Hero */
.hero-section {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-bottom: 1px solid rgba(67, 134, 192, .16);
}
.hero-media { position: absolute; inset: 0; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(1, 11, 21, .97) 0%, rgba(1, 11, 21, .89) 21%, rgba(2, 14, 27, .54) 45%, rgba(2, 14, 27, .08) 72%),
    linear-gradient(0deg, rgba(2, 12, 23, .44), transparent 36%);
}
.hero-content { position: relative; z-index: 2; min-height: 560px; display: flex; align-items: center; }
.hero-copy { width: min(560px, 48vw); padding-bottom: 6px; }
.section-kicker { color: #3bbaff; text-transform: uppercase; font-size: 15px; letter-spacing: .04em; font-weight: 700; margin-bottom: 10px; }
.hero-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(72px, 7vw, 112px);
  line-height: .88;
  font-weight: 500;
  letter-spacing: .02em;
  color: #f8fbff;
  text-shadow: 0 4px 18px rgba(0,0,0,.28);
}
.hero-launcher { display: flex; align-items: center; gap: 18px; width: fit-content; margin: 14px 0 30px; color: #a6dcff; font-family: Georgia, serif; letter-spacing: .42em; font-size: 15px; }
.hero-launcher span { width: 42px; height: 1px; background: linear-gradient(90deg, transparent, #31adff); position: relative; }
.hero-launcher span:last-child { transform: scaleX(-1); }
.hero-copy p { margin: 0; color: #adbdcc; font-size: 18px; line-height: 1.55; }
.hero-actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }

/* Placeholder media */
.placeholder-media {
  background:
    linear-gradient(rgba(19, 55, 85, .32), rgba(3, 15, 27, .42)),
    radial-gradient(circle at 76% 42%, rgba(65, 119, 166, .26), transparent 25%),
    linear-gradient(135deg, #102437 0%, #192c3e 45%, #0c1a29 100%);
}
.placeholder-media::before {
  content: "";
  position: absolute; inset: auto 0 0 40%; height: 45%;
  opacity: .3;
  background:
    linear-gradient(135deg, transparent 44%, #0b1b2a 45% 56%, transparent 57%) 0 100%/28% 100%,
    linear-gradient(45deg, transparent 44%, #0b1b2a 45% 56%, transparent 57%) 20% 100%/35% 80%;
}
.placeholder-cross::before, .placeholder-cross::after {
  content: ""; position: absolute; left: 52%; top: 50%; width: 72%; height: 1px; background: rgba(130, 174, 210, .12); transform-origin: center;
}
.placeholder-cross::before { transform: translate(-50%,-50%) rotate(30deg); }
.placeholder-cross::after { transform: translate(-50%,-50%) rotate(-30deg); }
.placeholder-label { position: absolute; left: 70%; top: 50%; transform: translate(-50%,-50%); display: grid; gap: 7px; color: #6f8498; text-align: center; text-transform: uppercase; letter-spacing: .03em; }
.placeholder-label strong { font-size: 18px; font-weight: 500; color: #70859a; }

/* Feature strip */
.feature-strip {
  position: relative;
  z-index: 4;
  margin-top: -1px;
  min-height: 84px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(6, 23, 39, .96), rgba(3, 16, 29, .96));
  box-shadow: var(--shadow);
  transform: translateY(22px);
}
.feature-item { min-width: 0; padding: 0 28px; display: flex; gap: 17px; align-items: center; border-right: 1px solid rgba(80, 146, 200, .18); }
.feature-item:last-child { border-right: 0; }
.feature-icon { width: 42px; flex: 0 0 42px; color: #22a9ff; font-size: 31px; line-height: 1; text-align: center; text-shadow: 0 0 20px rgba(32,171,255,.35); }
.feature-item div { display: grid; gap: 4px; min-width: 0; }
.feature-item strong { font-size: 12px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feature-item small { color: var(--muted); font-size: 11px; }

/* Worlds */
.worlds-section { padding: 100px 0 44px; }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-heading-row h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 38px; font-weight: 500; }
.section-heading-row.compact h2 { font-size: 30px; }
.carousel-controls { display: flex; gap: 12px; }
.square-button {
  width: 45px; height: 45px; border-radius: 9px; border: 1px solid rgba(97, 154, 202, .32); color: #e8f3fd; background: rgba(4, 17, 29, .72); font-size: 28px; cursor: pointer; transition: .15s ease;
}
.square-button:hover { border-color: rgba(45, 171, 255, .7); background: rgba(16, 54, 86, .55); }
.world-carousel { position: relative; min-height: 470px; }
.world-slide {
  display: none;
  min-height: 470px;
  grid-template-columns: 360px 1fr;
  overflow: hidden;
  border: 1px solid rgba(70, 143, 202, .28);
  border-radius: 20px;
  background: #071626;
  box-shadow: var(--shadow);
}
.world-slide.active { display: grid; animation: worldIn .24s ease both; }
@keyframes worldIn { from { opacity: .45; transform: translateX(8px); } to { opacity: 1; transform: none; } }
.world-info { position: relative; z-index: 2; padding: 42px 38px; background: linear-gradient(120deg, #061524 0%, #07182a 78%, rgba(7, 24, 42, .86)); }
.world-badge { display: inline-flex; padding: 7px 13px; border-radius: 7px; background: linear-gradient(180deg, #116fda, #0b54a9); color: white; font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
.world-badge.secondary { background: #27384a; color: #a8bdcf; }
.world-info h3 { margin: 15px 0 8px; font-family: Georgia, "Times New Roman", serif; font-weight: 500; font-size: 55px; line-height: 1; }
.world-tags { color: #f2f7fb; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.world-tags i { width: 5px; height: 5px; border-radius: 50%; background: #1c9cff; }
.world-info p { color: #9eb0c2; font-size: 14px; line-height: 1.65; margin: 26px 0 26px; }
.world-stats { display: flex; gap: 10px; margin-bottom: 26px; }
.world-stats > div { min-width: 108px; padding: 10px 13px; display: grid; grid-template-columns: auto 1fr; gap: 1px 8px; align-items: center; border: 1px solid rgba(76, 143, 198, .25); border-radius: 9px; background: rgba(2, 13, 24, .62); }
.world-stats small { grid-column: 2; color: #71879c; font-size: 9px; text-transform: uppercase; }
.world-stats strong { grid-column: 2; color: #dce9f5; font-size: 11px; font-weight: 650; }
.status-dot { grid-row: 1 / 3; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 9px rgba(49,220,115,.5); }
.status-dot.offline { background: #718297; box-shadow: none; }
.world-actions { display: flex; gap: 12px; }
.world-actions .btn { min-width: 145px; }
.world-media { position: relative; min-height: 470px; }
.world-media .placeholder-label { left: 55%; }
.future-placeholder { filter: saturate(.35); }
.carousel-dots { display: flex; justify-content: center; gap: 12px; margin-top: 22px; }
.carousel-dots button { border: 0; width: 16px; height: 7px; border-radius: 10px; background: #30445a; padding: 0; cursor: pointer; transition: .15s ease; }
.carousel-dots button.active { width: 30px; background: #1494ff; box-shadow: 0 0 12px rgba(20,148,255,.28); }

/* News */
.news-section { padding: 42px 0 80px; }
.text-button, .news-link { border: 0; padding: 0; background: none; color: #38b4ff; text-transform: uppercase; font-size: 11px; font-weight: 750; cursor: pointer; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card { overflow: hidden; border: 1px solid rgba(77, 142, 196, .25); border-radius: 11px; background: linear-gradient(180deg, #071727, #04101d); }
.news-image { height: 130px; border-bottom: 1px solid rgba(72,138,193,.16); background: linear-gradient(135deg, #10283e, #091929); display: grid; place-items: center; color: #73899e; }
.news-image span { font-size: 30px; opacity: .7; }
.news-body { padding: 20px; }
.news-body time { color: #6e8398; font-size: 10px; }
.news-body h3 { margin: 8px 0 10px; font-size: 17px; line-height: 1.3; }
.news-body p { min-height: 58px; margin: 0 0 18px; color: #8ea2b5; font-size: 12px; line-height: 1.55; }

/* Forms / profile */
.auth-wrap { min-height: calc(100vh - 92px); display: grid; place-items: center; padding: 70px 20px; }
.panel { border: 1px solid rgba(84, 149, 204, .27); border-radius: 18px; background: linear-gradient(180deg, rgba(8,25,42,.97), rgba(4,15,27,.98)); box-shadow: var(--shadow); }
.form { width: min(520px, 94vw); padding: 42px; }
.form h1, .account-card h1 { margin: 5px 0 16px; font-family: Georgia, serif; font-weight: 500; font-size: 44px; }
.form label, .skin-form label { display: grid; gap: 8px; margin: 17px 0; color: #a9bbcb; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.form input, .skin-form input, .skin-form select { width: 100%; min-height: 51px; padding: 0 15px; border: 1px solid rgba(96,153,200,.28); border-radius: 10px; background: #03101c; color: white; outline: none; }
.form input:focus, .skin-form input:focus, .skin-form select:focus { border-color: #1688ff; box-shadow: 0 0 0 3px rgba(22,136,255,.10); }
.form .btn { width: 100%; margin-top: 8px; }
.eyebrow { color: #37b7ff; text-transform: uppercase; font-size: 11px; letter-spacing: .18em; font-weight: 750; }
.muted { color: var(--muted); }
.split-links { margin-top: 20px; display: flex; justify-content: space-between; gap: 20px; font-size: 12px; }
.split-links a, .text-link { color: #6dc8ff; text-decoration: none; }
.error, .notice { margin: 15px 0; padding: 12px 14px; border-radius: 9px; font-size: 13px; }
.error { background: rgba(112, 26, 39, .42); color: #ffb5be; border: 1px solid rgba(255,100,120,.18); }
.notice { background: rgba(16, 91, 73, .34); color: #a6f1dc; border: 1px solid rgba(67,215,173,.18); }
.profile-grid { width: var(--page); margin: auto; padding: 76px 0; display: grid; grid-template-columns: .8fr 1.2fr; gap: 22px; }
.account-card, .skin-card { padding: 32px; }
.account-card p { color: var(--muted); }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 11px; word-break: break-all; }
.skin-card { display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; align-items: center; }
.skin-preview { width: 190px; max-height: 300px; object-fit: contain; image-rendering: pixelated; border-radius: 12px; background: #020a12; padding: 12px; }
.skin-empty { height: 180px; display: grid; place-items: center; color: var(--muted); border: 1px dashed rgba(95,151,197,.35); border-radius: 12px; }
.danger { color: #ff9ba6; border-color: rgba(255,103,119,.32); background: rgba(88,22,30,.25); }

/* Footer */
.site-footer { border-top: 1px solid rgba(71, 139, 196, .2); background: #020b14; }
.footer-inner { width: min(1480px, calc(100vw - 52px)); margin: auto; padding: 34px 0 38px; display: grid; grid-template-columns: 1.7fr .6fr .75fr .75fr; gap: 56px; }
.footer-brand img { width: 240px; max-height: 80px; object-fit: contain; object-position: left; }
.footer-brand p { margin: 8px 0 5px; color: #7e92a6; font-size: 12px; }
.footer-brand small { color: #50677b; }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-column h3 { margin: 5px 0 7px; color: #6aaedc; text-transform: uppercase; font-size: 11px; letter-spacing: .08em; }
.footer-column a, .footer-placeholder { color: #8298ad; text-decoration: none; font-size: 11px; }
.footer-column a:hover { color: #35b4ff; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.social { width: 40px; height: 40px; border-radius: 8px; border: 1px solid rgba(75,145,203,.24); background: #07192a; color: #53bfff; font-size: 10px; font-weight: 800; cursor: pointer; }

.toast { position: fixed; left: 50%; bottom: 30px; z-index: 100; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 12px 17px; border: 1px solid rgba(70,158,228,.36); border-radius: 10px; background: rgba(4,20,34,.96); color: #d8eafd; box-shadow: 0 12px 35px rgba(0,0,0,.35); transition: .2s ease; font-size: 13px; }
.toast.show { transform: translate(-50%,0); opacity: 1; }

@media (max-width: 1180px) {
  .header-inner { grid-template-columns: 210px 1fr auto; }
  .header-brand img { width: 200px; }
  .nav-link { padding-inline: 9px; font-size: 11px; }
  .download-button { padding-inline: 14px; font-size: 11px; }
  .feature-item { padding-inline: 17px; }
  .world-slide { grid-template-columns: 330px 1fr; }
}
@media (max-width: 960px) {
  :root { --page: min(100% - 32px, 780px); }
  .site-header { height: 76px; }
  .header-inner { width: calc(100vw - 28px); grid-template-columns: 190px 1fr auto; }
  .header-brand img { width: 180px; }
  .nav-toggle { justify-self: end; display: grid; width: 38px; height: 38px; place-content: center; gap: 4px; border: 1px solid var(--line); background: #061728; border-radius: 8px; }
  .nav-toggle span { width: 18px; height: 1px; background: #cde3f5; }
  .main-nav { position: fixed; top: 76px; left: 14px; right: 14px; height: auto; padding: 10px; display: none; flex-direction: column; align-items: stretch; background: rgba(3,15,27,.98); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .nav-link { min-height: 44px; }
  .nav-link::after { display: none; }
  .header-actions .btn-outline { display: none; }
  .header-actions { grid-column: 3; grid-row: 1; }
  .download-button { display: none; }
  .hero-section, .hero-content { min-height: 520px; }
  .hero-copy { width: 70%; }
  .placeholder-label { left: 68%; }
  .feature-strip { grid-template-columns: 1fr 1fr; transform: none; margin-top: 14px; }
  .feature-item { min-height: 76px; border-bottom: 1px solid rgba(80,146,200,.18); }
  .feature-item:nth-child(2) { border-right: 0; }
  .worlds-section { padding-top: 65px; }
  .world-slide, .world-slide.active { grid-template-columns: 1fr; }
  .world-media { min-height: 340px; order: -1; }
  .world-media .placeholder-label { left: 50%; }
  .news-grid { grid-template-columns: 1fr; }
  .profile-grid, .skin-card { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  :root { --page: calc(100vw - 24px); }
  .header-inner { grid-template-columns: 150px 1fr 40px; }
  .header-brand img { width: 145px; }
  .header-actions { display: none; }
  .nav-toggle { grid-column: 3; }
  .hero-section, .hero-content { min-height: 560px; }
  .hero-copy { width: 100%; padding-top: 90px; }
  .hero-title { font-size: 62px; }
  .hero-launcher { font-size: 11px; }
  .hero-copy p { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: stretch; max-width: 330px; }
  .hero-media .placeholder-label { display: none; }
  .hero-shade { background: linear-gradient(90deg, rgba(1,11,21,.96), rgba(1,11,21,.68)), linear-gradient(0deg, rgba(2,12,23,.6), transparent); }
  .feature-strip { grid-template-columns: 1fr; }
  .feature-item { border-right: 0; }
  .world-info { padding: 28px 22px; }
  .world-info h3 { font-size: 43px; }
  .world-actions { flex-direction: column; }
  .section-heading-row h2 { font-size: 30px; }
  .carousel-controls { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
  .form { padding: 30px 22px; }
}

/* Otteria v0.3 refinements */
.hero-copy { width: min(650px, 52vw); }
.hero-wordmark {
  display: block;
  width: min(620px, 100%);
  max-height: 230px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 12px 32px rgba(0, 110, 255, .12));
  margin: 5px 0 18px;
}
.hero-actions { margin-top: 24px; }
.worlds-section { padding-top: 68px; }
.header-brand img { width: 245px; max-height: 74px; }
.footer-brand img { width: 255px; max-height: 84px; }

@media (max-width: 960px) {
  .hero-copy { width: min(620px, 74vw); }
  .hero-wordmark { width: min(560px, 100%); }
}
@media (max-width: 620px) {
  .hero-copy { width: 100%; }
  .hero-wordmark { width: min(460px, 100%); max-height: 180px; }
}


/* Otteria v0.3.2 — hero button alignment + footer cleanup */
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-wordmark {
  width: min(620px, 100%);
  object-position: center center;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  width: min(620px, 100%);
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.hero-actions .btn {
  width: 100%;
}

@media (max-width: 620px) {
  .hero-copy {
    align-items: center;
  }

  .hero-actions {
    width: min(360px, 100%);
    grid-template-columns: 1fr;
    gap: 12px;
  }
}


/* Otteria v0.3.3 — support center */
.support-wrap {
  padding: 72px 0 90px;
}

.support-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: 28px;
}

.support-heading h1 {
  margin: 7px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 48px;
  font-weight: 500;
}

.support-heading p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.support-user {
  min-width: 190px;
  padding: 13px 16px;
  display: grid;
  gap: 3px;
  border: 1px solid rgba(75, 145, 203, .24);
  border-radius: 10px;
  background: rgba(4, 18, 31, .74);
}

.support-user span {
  color: #71879c;
  font-size: 10px;
  text-transform: uppercase;
}

.support-user strong {
  color: #e4f1fb;
  font-size: 14px;
}

.support-notice {
  margin: 0 0 22px;
}

.support-grid {
  display: grid;
  grid-template-columns: minmax(360px, .8fr) minmax(0, 1.2fr);
  gap: 22px;
  align-items: start;
}

.support-form {
  padding: 30px;
}

.support-form h2,
.support-history h2 {
  margin: 7px 0 20px;
  font-size: 27px;
  font-weight: 600;
}

.support-form label {
  display: grid;
  gap: 8px;
  margin: 17px 0;
  color: #a9bbcb;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.support-form input,
.support-form select,
.support-form textarea {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid rgba(96, 153, 200, .28);
  border-radius: 10px;
  background: #03101c;
  color: #f5f9fc;
  font: inherit;
  outline: none;
}

.support-form input,
.support-form select {
  min-height: 51px;
}

.support-form textarea {
  min-height: 190px;
  resize: vertical;
  line-height: 1.55;
}

.support-form input:focus,
.support-form select:focus,
.support-form textarea:focus {
  border-color: #1688ff;
  box-shadow: 0 0 0 3px rgba(22,136,255,.10);
}

.support-form .btn {
  width: 100%;
  margin-top: 6px;
}

.support-hint {
  margin: 14px 0 0;
  color: #6d8498;
  font-size: 11px;
  line-height: 1.55;
}

.support-history-head {
  min-height: 73px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.support-history-head h2 {
  margin-bottom: 0;
}

.support-history-head > span {
  min-width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(66, 155, 225, .28);
  border-radius: 9px;
  color: #65c5ff;
  background: #061829;
  font-size: 12px;
}

.ticket-list {
  display: grid;
  gap: 14px;
}

.ticket-card {
  padding: 22px;
}

.ticket-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
}

.ticket-category {
  color: #3bb8ff;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: .08em;
  font-weight: 750;
}

.ticket-card h3 {
  margin: 6px 0 0;
  font-size: 17px;
}

.ticket-status {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 7px;
  font-size: 9px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: .05em;
}

.status-open {
  color: #8fd1ff;
  background: rgba(17, 107, 189, .18);
  border: 1px solid rgba(39, 144, 228, .24);
}

.status-answered {
  color: #a8f3cd;
  background: rgba(24, 139, 92, .18);
  border: 1px solid rgba(58, 200, 137, .22);
}

.status-closed {
  color: #9bacbd;
  background: rgba(84, 102, 120, .18);
  border: 1px solid rgba(120, 142, 163, .18);
}

.ticket-message {
  margin: 17px 0 12px;
  color: #9eb1c3;
  line-height: 1.65;
  white-space: pre-wrap;
}

.ticket-card time {
  color: #627b90;
  font-size: 10px;
}

.admin-reply {
  margin-top: 17px;
  padding: 15px 17px;
  border-left: 3px solid #21a5ff;
  border-radius: 0 9px 9px 0;
  background: rgba(10, 54, 88, .32);
}

.admin-reply strong {
  color: #64c8ff;
  font-size: 11px;
  text-transform: uppercase;
}

.admin-reply p {
  margin: 7px 0 0;
  color: #c4d6e5;
  line-height: 1.55;
  white-space: pre-wrap;
}

.support-empty {
  min-height: 210px;
  padding: 34px;
  display: grid;
  place-content: center;
  text-align: center;
}

.support-empty strong {
  font-size: 18px;
}

.support-empty p {
  max-width: 460px;
  margin: 10px auto 0;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 960px) {
  .support-grid {
    grid-template-columns: 1fr;
  }

  .support-heading {
    align-items: start;
  }
}

@media (max-width: 620px) {
  .support-wrap {
    padding-top: 46px;
  }

  .support-heading {
    display: grid;
  }

  .support-user {
    min-width: 0;
  }

  .support-form {
    padding: 22px;
  }

  .ticket-top {
    display: grid;
  }

  .ticket-status {
    justify-self: start;
  }
}


/* Otteria v0.3.4 — registration in header + consistent auth buttons */
.header-auth-button {
  min-width: 112px;
  padding-inline: 16px;
}

.header-auth-button + .header-auth-button {
  min-width: 146px;
}

.register-icon {
  font-size: 18px;
  line-height: 1;
  transform: translateY(-1px);
}

.auth-submit {
  width: 100%;
  margin-top: 8px;
}

.btn-danger {
  min-height: 46px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(255,103,119,.32);
  color: #ffabb5;
  background: rgba(88,22,30,.28);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .015em;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}

.btn-danger:hover {
  transform: translateY(-1px);
  border-color: rgba(255,113,129,.58);
  background: rgba(111,28,39,.40);
  box-shadow: 0 8px 24px rgba(92,20,31,.22);
}

@media (max-width: 1320px) and (min-width: 961px) {
  .header-auth-button {
    min-width: 0;
    padding-inline: 12px;
    font-size: 11px;
  }

  .header-auth-button + .header-auth-button {
    min-width: 0;
  }

  .header-actions {
    gap: 8px;
  }
}


/* Otteria v0.4.0 — profile security, public news, admin panel */
.profile-wrap { padding: 76px 0 90px; }
.profile-wrap .profile-grid { width: 100%; padding: 0; }

.account-card .mono { display: none; }

.account-actions { margin-top: 22px; }
.admin-badge-link {
  display: inline-flex;
  margin-top: 12px;
  padding: 8px 11px;
  border: 1px solid rgba(32,153,255,.3);
  border-radius: 8px;
  color: #5bc2ff;
  background: rgba(10,72,116,.16);
  font-size: 11px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.password-panel {
  margin-top: 22px;
  padding: 30px 32px;
  display: grid;
  grid-template-columns: .65fr 1.35fr;
  gap: 36px;
  align-items: start;
}
.password-copy h2 { margin: 7px 0 10px; font-size: 27px; }
.password-copy p { margin: 0; color: var(--muted); line-height: 1.6; }
.password-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: end; }
.password-form label { display: grid; gap: 7px; color: #9db0c2; font-size: 10px; text-transform: uppercase; }
.password-form input {
  min-height: 48px; padding: 0 14px; border: 1px solid rgba(87,146,193,.3);
  border-radius: 9px; background: #03101c; color: white; outline: none;
}
.password-form input:focus { border-color: #1688ff; box-shadow: 0 0 0 3px rgba(22,136,255,.1); }
.password-form .notice, .password-form .error { grid-column: 1 / -1; }

.news-image-real img, .news-row-image img, .article-image, .admin-news-thumb img, .current-news-image img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.news-image-real { overflow: hidden; }
.news-link { text-decoration: none; }
.news-page, .article-page, .admin-page { padding: 72px 0 90px; }
.news-page > h1, .admin-page h1 { margin: 8px 0 30px; font-family: Georgia, serif; font-size: 48px; font-weight: 500; }
.news-list-page { display: grid; gap: 16px; }
.news-row { display: grid; grid-template-columns: 290px 1fr; overflow: hidden; min-height: 180px; }
.news-row-image { min-height: 180px; background: #071625; display: grid; place-items: center; overflow: hidden; }
.news-row > div { padding: 24px 28px; }
.news-row time, .article-page time { color: #6f879c; font-size: 10px; }
.news-row h2 { margin: 7px 0 9px; }
.news-row h2 a { color: #eff7ff; text-decoration: none; }
.news-row p { color: var(--muted); line-height: 1.55; }

.article-page { max-width: 1080px; }
.back-link { color: #43b7ff; text-decoration: none; font-size: 12px; }
.article-page h1 { margin: 15px 0 12px; font-family: Georgia, serif; font-size: clamp(40px, 5vw, 68px); font-weight: 500; }
.article-summary { max-width: 820px; color: #9fb5c9; font-size: 19px; line-height: 1.6; }
.article-image { max-height: 600px; margin: 34px 0; border-radius: 16px; border: 1px solid rgba(83,144,195,.25); }
.article-content { max-width: 850px; color: #c0d0de; font-size: 16px; line-height: 1.8; white-space: pre-wrap; }

.admin-nav { color: #69c7ff !important; }
.admin-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; }
.admin-head h1 { margin-bottom: 0; }
.admin-links { display: flex; gap: 10px; }
.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.admin-stat { padding: 22px 24px; display: grid; gap: 8px; }
.admin-stat span { color: #738ba0; text-transform: uppercase; font-size: 10px; }
.admin-stat strong { font-family: Georgia, serif; font-size: 36px; font-weight: 500; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.admin-section { padding: 24px; }
.admin-section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.admin-section-head h2 { margin: 0; }
.admin-section-head a { color: #46baff; text-decoration: none; font-size: 11px; }
.admin-simple-list { display: grid; }
.admin-simple-list > a {
  padding: 13px 0; display: flex; justify-content: space-between; gap: 16px;
  border-top: 1px solid rgba(83,133,172,.15); color: #dbe9f4; text-decoration: none;
}
.admin-simple-list small { color: #6f879a; }

.admin-news-list, .admin-ticket-list { display: grid; gap: 14px; }
.admin-news-row { display: grid; grid-template-columns: 220px 1fr auto; overflow: hidden; align-items: stretch; }
.admin-news-thumb { min-height: 150px; background: #061522; color: #60788c; display: grid; place-items: center; overflow: hidden; }
.admin-news-copy { padding: 20px 24px; }
.admin-news-meta { display: flex; gap: 12px; align-items: center; }
.admin-news-copy h2 { margin: 9px 0 7px; font-size: 20px; }
.admin-news-copy p { margin: 0; color: var(--muted); line-height: 1.5; }
.admin-news-actions { min-width: 135px; padding: 18px; display: grid; align-content: center; gap: 9px; border-left: 1px solid rgba(83,133,172,.15); }
.admin-news-actions form, .admin-news-actions .btn { width: 100%; }
.admin-news-actions button { width: 100%; }

.admin-editor { padding: 30px; display: grid; gap: 18px; }
.admin-editor > label, .admin-ticket-reply label {
  display: grid; gap: 8px; color: #a5b7c8; font-size: 10px; text-transform: uppercase; letter-spacing: .04em;
}
.admin-editor input[type=text], .admin-editor input:not([type]), .admin-editor textarea,
.admin-ticket-reply textarea, .admin-ticket-reply select {
  width: 100%; padding: 14px; border: 1px solid rgba(86,148,196,.28);
  border-radius: 9px; background: #03101c; color: white; font: inherit; outline: none;
}
.admin-editor input:focus, .admin-editor textarea:focus, .admin-ticket-reply textarea:focus, .admin-ticket-reply select:focus {
  border-color: #1688ff; box-shadow: 0 0 0 3px rgba(22,136,255,.1);
}
.admin-editor textarea { resize: vertical; line-height: 1.6; }
.admin-editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.current-news-image { overflow: hidden; }
.current-news-image img { max-height: 220px; border-radius: 10px; object-fit: cover; margin-bottom: 10px; }
.check-label { display: flex !important; grid-template-columns: none !important; align-items: center; gap: 9px !important; color: #b7c7d5 !important; text-transform: none !important; font-size: 12px !important; }
.publish-check { padding-top: 4px; }
.editor-actions { display: flex; gap: 12px; }

.admin-ticket { padding: 25px; }
.admin-ticket-user { color: #71899e; font-size: 11px; }
.admin-ticket-message { margin: 20px 0; padding: 17px; border-radius: 10px; background: rgba(3,16,28,.72); color: #c0d0dd; line-height: 1.65; white-space: pre-wrap; }
.admin-ticket-reply { display: grid; grid-template-columns: 1fr 180px auto; gap: 14px; align-items: end; }
.admin-ticket-reply textarea { resize: vertical; min-height: 110px; }
.admin-ticket-reply select { min-height: 48px; }

.muted { color: var(--muted); }

@media (max-width: 1050px) {
  .password-panel, .password-form, .admin-grid, .admin-editor-grid { grid-template-columns: 1fr; }
  .password-form .notice, .password-form .error { grid-column: auto; }
  .admin-news-row { grid-template-columns: 170px 1fr; }
  .admin-news-actions { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); border-left: 0; border-top: 1px solid rgba(83,133,172,.15); }
  .admin-ticket-reply { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .news-row { grid-template-columns: 1fr; }
  .admin-head { align-items: start; flex-direction: column; }
  .admin-stats { grid-template-columns: 1fr; }
  .admin-news-row { grid-template-columns: 1fr; }
  .admin-news-actions { grid-template-columns: 1fr; }
  .admin-links, .editor-actions { flex-wrap: wrap; }
}


/* Otteria v0.4.1 — admin user directory */
.admin-stat-link {
  color: inherit;
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease, background .15s ease;
}
.admin-stat-link:hover {
  transform: translateY(-1px);
  border-color: rgba(39,154,240,.38);
  background: rgba(7,29,47,.9);
}
.admin-stat-link small {
  color: #4dbbff;
  font-size: 10px;
}

.admin-user-search {
  display: flex;
  gap: 10px;
  padding: 14px;
  margin-bottom: 14px;
}
.admin-user-search input {
  flex: 1;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(85,147,195,.28);
  border-radius: 9px;
  background: #03101c;
  color: white;
  outline: none;
}
.admin-user-search input:focus {
  border-color: #1688ff;
  box-shadow: 0 0 0 3px rgba(22,136,255,.1);
}
.admin-users-summary {
  margin: 12px 2px;
  color: #7890a4;
  font-size: 11px;
}
.admin-users-summary strong { color: #d7e7f4; }

.admin-users-table-wrap {
  overflow-x: auto;
}
.admin-users-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}
.admin-users-table th {
  padding: 14px 16px;
  color: #70889d;
  text-align: left;
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: .06em;
  border-bottom: 1px solid rgba(83,133,172,.18);
}
.admin-users-table td {
  padding: 15px 16px;
  color: #b9cad8;
  font-size: 12px;
  border-bottom: 1px solid rgba(83,133,172,.10);
  vertical-align: middle;
}
.admin-users-table tbody tr:hover {
  background: rgba(8,31,49,.48);
}
.admin-user-name {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 265px;
}
.admin-user-name img,
.admin-user-avatar-placeholder {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 8px;
  border: 1px solid rgba(93,157,205,.25);
  background: #061625;
  object-fit: cover;
  image-rendering: pixelated;
}
.admin-user-avatar-placeholder {
  display: grid;
  place-items: center;
  color: #59c1ff;
  font: 700 16px/1 Georgia, serif;
}
.admin-user-name strong {
  display: block;
  color: #edf7ff;
  font-size: 13px;
}
.admin-user-name code {
  display: block;
  margin-top: 4px;
  color: #5f778c;
  font-size: 9px;
}
.user-chip {
  display: inline-flex;
  padding: 6px 8px;
  border-radius: 7px;
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}
.admin-chip {
  color: #80d2ff;
  background: rgba(17,108,175,.20);
  border: 1px solid rgba(49,164,242,.27);
}
.normal-chip {
  color: #a9bbc9;
  background: rgba(91,112,129,.14);
  border: 1px solid rgba(122,144,162,.14);
}
.skin-chip {
  color: #9cf0c5;
  background: rgba(30,135,91,.16);
  border: 1px solid rgba(62,185,126,.18);
}
.muted-chip {
  color: #8496a5;
  background: rgba(72,86,99,.12);
  border: 1px solid rgba(108,126,142,.12);
}
.table-action {
  min-height: 36px;
  padding: 0 12px;
  font-size: 10px;
}
.admin-users-empty {
  padding: 50px !important;
  text-align: center;
  color: #71889c !important;
}

.admin-user-detail-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
}
.admin-user-profile-card {
  padding: 30px;
  text-align: center;
}
.admin-user-big-avatar {
  width: 128px;
  height: 128px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(74,153,211,.25);
  border-radius: 18px;
  overflow: hidden;
  background: #061624;
}
.admin-user-big-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}
.admin-user-big-avatar span {
  color: #5cc5ff;
  font: 500 55px/1 Georgia, serif;
}
.admin-user-profile-card h2 {
  margin: 0 0 7px;
  font: 500 30px/1.2 Georgia, serif;
}
.admin-user-profile-card p {
  margin: 0 0 16px;
  color: #8298aa;
}
.admin-user-data {
  padding: 30px;
}
.admin-user-data dl {
  margin: 18px 0 0;
}
.admin-user-data dl > div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid rgba(83,133,172,.13);
}
.admin-user-data dt {
  color: #70889b;
  font-size: 10px;
  text-transform: uppercase;
}
.admin-user-data dd {
  margin: 0;
  color: #d4e2ed;
  overflow-wrap: anywhere;
}
.admin-user-data code { color: #80bde3; }
.admin-user-note {
  margin-top: 20px;
  padding: 13px 15px;
  border-left: 3px solid #1b8ddc;
  border-radius: 0 8px 8px 0;
  background: rgba(9,55,88,.22);
  color: #7f97a9;
  font-size: 11px;
  line-height: 1.55;
}

@media (max-width: 850px) {
  .admin-user-detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .admin-user-search { flex-wrap: wrap; }
  .admin-user-search input { flex-basis: 100%; }
}

/* v0.5 */
.verify-card{max-width:660px}.verify-form{display:grid;gap:16px}.verification-code-input{font-size:28px!important;letter-spacing:.28em;text-align:center;font-weight:800}.verify-resend{margin-top:14px;display:flex;gap:14px;align-items:center;flex-wrap:wrap}.dev-mail-hint{margin:14px 0;padding:12px 14px;border:1px solid rgba(255,183,77,.28);border-radius:9px;background:rgba(97,62,8,.20);color:#e5c17c;font-size:11px}.email-verified-dot,.email-ok{color:#63e6a5;font-weight:800}.banned-chip{color:#ffc77e;background:rgba(143,82,17,.18);border:1px solid rgba(231,146,48,.22)}.disabled-chip{color:#ff9daa;background:rgba(137,35,49,.18);border:1px solid rgba(226,70,90,.22)}.account-row-disabled{opacity:.82}.user-status-stack{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}.admin-user-controls{margin-top:18px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.admin-control-card{padding:25px}.admin-control-card>p{min-height:64px;color:#839bad;font-size:12px;line-height:1.55}.admin-control-form{display:grid;gap:12px}.admin-control-form label{display:grid;gap:7px;color:#9eb1c1;font-size:10px;text-transform:uppercase}.admin-control-form textarea,.admin-control-form input{width:100%;padding:12px;border:1px solid rgba(85,147,195,.28);border-radius:9px;background:#03101c;color:white;font:inherit}.ban-reason{margin-bottom:14px;padding:11px;border-radius:8px;background:rgba(125,73,16,.16);color:#cba875}.danger-zone{border-color:rgba(210,65,83,.25)}@media(max-width:1100px){.admin-user-controls{grid-template-columns:1fr}.admin-control-card>p{min-height:0}}


/* Otteria v0.5.1 — account controls polish */
.admin-user-controls .admin-control-form {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
  align-items: stretch !important;
}

.admin-user-controls .admin-control-form label {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  align-items: stretch !important;
  margin: 0 !important;
  color: #93aabd !important;
  font-size: 10px !important;
  line-height: 1.35 !important;
  text-transform: uppercase !important;
  letter-spacing: .04em !important;
}

.admin-user-controls .admin-control-form textarea,
.admin-user-controls .admin-control-form input:not([type="hidden"]) {
  box-sizing: border-box !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 12px 14px !important;
  border: 1px solid rgba(82, 151, 204, .32) !important;
  border-radius: 9px !important;
  background: #03111e !important;
  color: #eaf6ff !important;
  -webkit-text-fill-color: #eaf6ff !important;
  caret-color: #43b9ff !important;
  font: inherit !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  outline: none !important;
  appearance: none !important;
}

.admin-user-controls .admin-control-form textarea {
  min-height: 88px !important;
  resize: vertical !important;
}

.admin-user-controls .admin-control-form input:not([type="hidden"]) {
  min-height: 46px !important;
}

.admin-user-controls .admin-control-form textarea::placeholder,
.admin-user-controls .admin-control-form input::placeholder {
  color: #587187 !important;
  opacity: 1 !important;
}

.admin-user-controls .admin-control-form textarea:focus,
.admin-user-controls .admin-control-form input:not([type="hidden"]):focus {
  border-color: #168cff !important;
  box-shadow: 0 0 0 3px rgba(22, 140, 255, .11) !important;
}

.admin-user-controls .admin-control-form .btn {
  justify-self: stretch;
  width: 100%;
}

.admin-user-controls .admin-control-card > form:not(.admin-control-form) .btn {
  width: 100%;
}

/* Homepage screenshot carousels */
.media-carousel,
.media-carousel-track {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.media-carousel {
  overflow: hidden;
  background: #071522;
}

.media-carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.008);
  transition: opacity .32s ease, transform .45s ease;
  pointer-events: none;
}

.media-carousel-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.media-carousel-arrow {
  position: absolute;
  z-index: 8;
  top: 50%;
  width: 42px;
  height: 56px;
  margin-top: -28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(119, 181, 227, .30);
  border-radius: 10px;
  background: rgba(2, 13, 23, .68);
  color: #dff4ff;
  font-size: 29px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.media-carousel-arrow:hover {
  background: rgba(5, 33, 55, .88);
  border-color: rgba(70, 181, 255, .55);
}

.media-carousel-arrow.media-prev { left: 18px; }
.media-carousel-arrow.media-next { right: 18px; }

.hero-image-carousel .media-carousel-arrow.media-prev { left: max(18px, calc((100vw - 1520px) / 2)); }
.hero-image-carousel .media-carousel-arrow.media-next { right: 24px; }

.media-carousel-dots {
  position: absolute;
  z-index: 9;
  left: 50%;
  bottom: 18px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.media-carousel-dots button {
  width: 9px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(186, 210, 228, .35);
  cursor: pointer;
  transition: width .2s ease, background .2s ease;
}

.media-carousel-dots button.active {
  width: 28px;
  background: #149cff;
}

.hero-media .media-carousel::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(1, 14, 26, .72) 0%, rgba(1, 14, 26, .34) 38%, rgba(1, 14, 26, .06) 74%),
    linear-gradient(0deg, rgba(1, 10, 18, .30), transparent 40%);
}

.world-media .media-carousel-arrow {
  width: 38px;
  height: 48px;
  margin-top: -24px;
}

.world-media .media-carousel-dots {
  bottom: 14px;
}

/* Admin screenshot manager */
.admin-media-sections {
  display: grid;
  gap: 20px;
}

.media-manager {
  padding: 26px;
}

.media-manager-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: start;
  margin-bottom: 20px;
}

.media-manager-head h2 {
  margin: 7px 0 8px;
  font-size: 27px;
}

.media-manager-head p {
  max-width: 760px;
  margin: 0;
  color: #839bad;
  font-size: 12px;
  line-height: 1.6;
}

.media-count {
  min-width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(56, 163, 238, .30);
  border-radius: 10px;
  background: rgba(5, 31, 51, .72);
  color: #62c6ff;
  font-weight: 800;
}

.media-upload-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 15px;
  border: 1px solid rgba(74, 137, 186, .20);
  border-radius: 12px;
  background: rgba(3, 17, 30, .64);
}

.media-file-field {
  min-width: 0;
  display: grid;
  gap: 7px;
  color: #a6b9c9;
  font-size: 11px;
  font-weight: 700;
}

.media-file-field input[type="file"] {
  box-sizing: border-box;
  width: 100%;
  min-height: 50px;
  padding: 7px 9px;
  border: 1px solid rgba(82, 151, 204, .30);
  border-radius: 9px;
  background: #03111e;
  color: #91a7b9;
  font: inherit;
}

.media-file-field input[type="file"]::file-selector-button {
  min-height: 34px;
  margin-right: 12px;
  padding: 0 14px;
  border: 1px solid rgba(43, 160, 244, .36);
  border-radius: 7px;
  background: rgba(13, 91, 148, .26);
  color: #dff4ff;
  font-weight: 750;
  cursor: pointer;
}

.media-file-field small {
  color: #617b90;
  font-size: 10px;
  font-weight: 400;
}

.admin-media-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.admin-media-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(72, 139, 191, .21);
  border-radius: 11px;
  background: #041321;
}

.admin-media-card > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  background: #020c15;
}

.admin-media-card-footer {
  min-height: 55px;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}

.admin-media-card-footer > span {
  color: #6c879c;
  font-size: 10px;
}

.media-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.media-card-actions form {
  margin: 0;
}

.square-button.mini {
  width: 34px;
  height: 34px;
  min-height: 34px;
}

.square-button.mini:disabled {
  opacity: .28;
  cursor: default;
}

.media-delete {
  min-height: 34px;
  padding: 0 10px;
  font-size: 9px;
}

.admin-media-empty {
  margin-top: 18px;
  min-height: 110px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(82, 151, 204, .22);
  border-radius: 11px;
  color: #637d91;
  background: rgba(3, 16, 28, .46);
  font-size: 11px;
}

@media (max-width: 1050px) {
  .admin-media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .media-upload-form {
    grid-template-columns: 1fr;
  }

  .admin-media-grid {
    grid-template-columns: 1fr;
  }

  .media-manager-head {
    align-items: start;
  }

  .hero-image-carousel .media-carousel-arrow.media-prev { left: 10px; }
  .hero-image-carousel .media-carousel-arrow.media-next { right: 10px; }
}


/* Otteria v0.6.0 — NERAVA legacy migration */
.admin-stats { grid-template-columns: repeat(4, 1fr); }

.legacy-login-cta { width: 100%; margin-top: 12px; }
.legacy-small-link {
  display: block; margin-top: 15px; color: #62bff6;
  text-align: center; font-size: 10px; text-decoration: none;
}
.legacy-small-link:hover { color: #a6dcff; }

.legacy-auth-wrap { padding-top: 70px; padding-bottom: 90px; }
.legacy-transfer-card { max-width: 650px; }
.legacy-transfer-card h1 { margin-bottom: 10px; }
.legacy-intro { line-height: 1.65; }

.legacy-flow {
  margin-top: 22px; padding-top: 16px; display: flex;
  justify-content: center; gap: 8px; flex-wrap: wrap;
  border-top: 1px solid rgba(77,139,188,.16);
  color: #718da3; font-size: 9px; text-transform: uppercase;
  letter-spacing: .04em;
}
.legacy-flow i { color: #2b719f; font-style: normal; }

.legacy-identity {
  margin: 16px 0; padding: 14px 15px; display: grid; gap: 6px;
  border: 1px solid rgba(61,165,236,.25); border-radius: 10px;
  background: rgba(6,47,76,.18);
}
.legacy-identity span {
  color: #66c7ff; font-size: 10px; text-transform: uppercase;
  letter-spacing: .05em;
}
.legacy-identity code {
  color: #d6ebf8; font-size: 12px; overflow-wrap: anywhere;
}
.legacy-help {
  margin: 14px 0 0; color: #93aabd; font-size: 11px; line-height: 1.55;
}

.legacy-profile-badge {
  margin-top: 14px; padding: 11px 12px; display: grid; gap: 5px;
  border: 1px solid rgba(55,189,130,.22); border-radius: 9px;
  background: rgba(21,103,69,.13);
}
.legacy-profile-badge span {
  color: #78e9ae; font-size: 10px; font-weight: 800; letter-spacing: .04em;
}
.legacy-profile-badge small {
  color: #7fa194; font-size: 9px; overflow-wrap: anywhere;
}
.profile-migration-notice { margin-top: 14px; }

.legacy-admin-summary {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 14px; margin-bottom: 18px;
}
.legacy-empty-admin { padding: 38px; text-align: center; }
.legacy-empty-admin h2 { margin-top: 0; }
.legacy-empty-admin p {
  max-width: 680px; margin: 0 auto; color: #8198aa; line-height: 1.6;
}
.legacy-users-table code { color: #7fb9dc; font-size: 10px; }
.legacy-linked-user { color: #57bfff; text-decoration: none; font-weight: 700; }

.legacy-admin-link-card {
  margin-top: 18px; padding: 24px 26px; display: flex;
  justify-content: space-between; gap: 24px; align-items: center;
  border-color: rgba(51,178,239,.26);
  background: linear-gradient(135deg, rgba(7,48,75,.24), rgba(3,16,28,.72));
}
.legacy-admin-link-card h2 { margin: 7px 0 8px; font-size: 23px; }
.legacy-admin-link-card p { margin: 0; color: #8ea5b7; line-height: 1.6; }
.legacy-admin-link-card code { color: #8dcef2; }

@media (max-width: 1050px) {
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
  .legacy-admin-summary { grid-template-columns: 1fr; }
  .legacy-admin-link-card { align-items: stretch; flex-direction: column; }
  .legacy-admin-link-card .btn { width: 100%; }
}
@media (max-width: 600px) {
  .admin-stats { grid-template-columns: 1fr; }
}


/* Otteria v0.6.1 — automatic NERAVA claim by nickname */
.legacy-auto-info {
  margin: 12px 0 4px;
  padding: 11px 13px;
  border: 1px solid rgba(59, 169, 237, .20);
  border-radius: 9px;
  background: rgba(5, 51, 82, .16);
  color: #87aabd;
  font-size: 10px;
  line-height: 1.55;
}

.legacy-detected-box {
  margin: 14px 0;
  padding: 13px 14px;
  display: grid;
  gap: 5px;
  border: 1px solid rgba(50, 189, 131, .26);
  border-radius: 10px;
  background: rgba(16, 104, 70, .14);
}

.legacy-detected-box span {
  color: #6ce7aa;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .06em;
}

.legacy-detected-box strong {
  color: #e7f8ef;
  font-size: 15px;
}

.legacy-detected-box small {
  color: #81a999;
  font-size: 9px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
