/* Aether Rain detail page styled to match skills.html shell/header and panel system */

:root {
  --bg: #07111c;
  --bg-soft: #0d1828;
  --card: rgba(18, 29, 48, 0.95);
  --card-2: rgba(12, 23, 39, 0.95);
  --line: rgba(143, 173, 214, 0.22);
  --line-strong: rgba(143, 173, 214, 0.38);
  --text: #edf4ff;
  --muted: #9fb0c8;
  --accent: #62d0ff;
  --accent-2: #7b8cff;
  --good: #64d38a;
  --warn: #ffcc66;
  --danger: #ff7f7f;
  --radius: 18px;
  --shadow: 0 18px 42px rgba(0,0,0,.34);
  --max: 1240px;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  scroll-behavior: smooth;
  background:
    radial-gradient(circle at top, rgba(88,164,255,.18), transparent 34%),
    linear-gradient(180deg, #08111c 0%, #09131f 50%, #06101a 100%);
  color: var(--text);
}

body.nav-open { overflow: hidden; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

.wrap {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.siteHeader {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(6, 13, 23, 0.78);
  border-bottom: 1px solid rgba(143, 173, 214, 0.12);
}

.siteHeader .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 68px;
  padding: 0 4px;
  position: relative;
}

.brand {
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  letter-spacing:.02em;
  color:#fff;
  white-space:nowrap;
  font-size:16px;
}

.brand,
.brand:hover,
.brand:focus,
.brand:active {
  text-decoration: none;
}

.brandLogo {
  height: 36px;
  width: auto;
  display: block;
}

.siteNav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.siteNav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid transparent;
}

.siteNav a:hover,
.siteNav a.is-active {
  color: #fff;
  border-color: rgba(98,208,255,.28);
  background: rgba(98,208,255,.08);
  text-decoration: none;
}

.burgerBtn {
  display: none;
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  z-index: 41;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(143,173,214,.18);
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .22s ease, border-color .22s ease;
}

.burgerBtn:hover {
  background: rgba(98,208,255,.08);
  border-color: rgba(98,208,255,.4);
}

.burgerIcon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  transform: translate(-50%, 0);
  transform-origin: center;
  transition: transform .24s ease, opacity .2s ease;
}

.burgerIcon::before,
.burgerIcon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
}

.burgerIcon::before { top: -7px; }
.burgerIcon::after { top: 7px; }

.navOverlay {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: absolute;
  top: 68px;
  left: 10px;
  right: 10px;
  z-index: 40;
  padding: 10px;
  border: 1px solid rgba(143,173,214,.16);
  border-radius: 18px;
  background: rgba(6,13,23,.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 42px rgba(0,0,0,.42);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px) scale(.985);
  transform-origin: top center;
  transition: opacity .24s ease, transform .24s ease, visibility .24s ease;
}

.navOverlay[hidden] {
  display: flex;
}

.navOverlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.navPanel {
  display: contents;
}

.navClose {
  display: none;
}

.navMobile {
  display:flex;
  flex-direction:column;
  gap:6px;
}

.navMobile a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--text);
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.navMobile a:hover,
.navMobile a.is-active {
  background: rgba(98,208,255,.08);
  border-color: rgba(98,208,255,.22);
  color: #fff;
  text-decoration: none;
}

.pageShell {
  padding: 34px 0 34px;
  position:relative;
}

.detailHeader {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin:0 0 22px;
}

.back {
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid rgba(143,173,214,.18);
  background: rgba(255,255,255,.03);
  text-decoration: none;
}

.back:hover {
  color:#fff;
  border-color: rgba(98,208,255,.28);
  background: rgba(98,208,255,.08);
  text-decoration:none;
}

.toolbar { min-height: 1px; }

.skillRoot {
  display:flex;
  justify-content:center;
}

.cardFrame {
  width:min(100%, 980px);
  background: linear-gradient(180deg, rgba(15, 26, 42, .95), rgba(10, 18, 29, .96));
  border: 1px solid rgba(143, 173, 214, .16);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.cardInner { padding: 22px; }

.topTitle {
  display:flex;
  align-items:flex-start;
  gap:16px;
  margin:0;
}

.skillName {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.04;
  margin: 0 0 14px;
}

.skillKind {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #c8e5ff;
  background: rgba(98,208,255,.08);
  border: 1px solid rgba(98,208,255,.2);
  padding: 8px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.grid {
  display:grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.topTitle .iconBig {
  width:120px;
  height:120px;
  flex-shrink:0;
}

.tagsLine {
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin: 0 0 14px;
}

.tag {
  font-size:12px;
  color:var(--muted);
  background: rgba(255,255,255,.03);
  border:1px solid rgba(143,173,214,.16);
  padding: 4px 9px;
  border-radius:999px;
}

.desc,
.descInline {
  color: #d7e3f6;
  line-height: 1.55;
  font-size: 16px;
  margin: 0 0 18px;
}

.stats,
.effects {
  margin: 0;
  padding: 0;
  list-style: none;
}

.stats li {
  padding: 4px;
  color: #d7e3f6;
}

.stats li:last-child { border-bottom: 0; }
.stats b { color: var(--text); }

.effects {
  display:grid;
  gap:10px;
  margin-top:16px;
}

.effects li {
  color: #2dbdff;
  font-weight: 700;
}

.iconCol {
  display:flex;
  justify-content:flex-end;
}

.iconBig {
  width: 140px;
  height: 140px;
  border-radius: 20px;
  border: 1px solid rgba(143,173,214,.14);
  background: rgba(255,255,255,.03);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
}

.iconBig img {
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.videoWrap {
  padding: 0 22px 22px;
}

.videoTitle {
  display:flex;
  align-items:center;
  font-size: 21px;
  font-weight: 700;
  margin: 0 0 14px;
}

.videoTitle::before {
  min-width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(98,208,255,.12);
  border: 1px solid rgba(98,208,255,.22);
  color: #dff5ff;
  font-weight: 800;
  margin-right: 12px;
  font-size: 14px;
}

.responsive {
  position:relative;
  width:100%;
  padding-top:56.25%;
  border-radius:18px;
  overflow:hidden;
  border: 1px solid rgba(143,173,214,.14);
  background: rgba(255,255,255,.02);
}

.responsive iframe,
.responsive video {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
}

@media (max-width: 820px) {
  .wrap {
    width: min(calc(100% - 20px), var(--max));
  }

  .pageShell {
    padding: 18px 0 28px;
  }

  .siteHeader .wrap {
    padding-right: 52px;
  }

  .siteNav {
    display: none;
  }

  .burgerBtn {
    display: block;
  }

  .detailHeader {
    margin-bottom: 18px;
  }

  .cardInner,
  .videoWrap {
    padding: 18px;
  }

  .videoWrap {
    padding-top: 0;
  }

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

  .iconCol {
    justify-content: flex-start;
  }
}

@media (min-width: 821px) {
  .navOverlay {
    display: none !important;
  }
}

@media (max-width: 560px) {
  .skillName { font-size: 32px; }
  .brandText { font-size: 16px; }
  .iconBig { width: 120px; height: 120px; }
}

.backSide{
  position:absolute;
  left:-180px;
  top:10px;
}

@media (max-width:1100px){

  .backSide{
    position:static;
    display:inline-flex;
    margin-bottom:16px;
  }

}