:root {
  --navy: #0f111a;
  --blue: #3f6fe0;
  --ink: #14151c;
  --muted: #6b6e7f;
  --line: #e7e8ee;
  --soft: #f5f7fb;
  --card: #ffffff;
  --font: 'Noto Sans KR','Inter',sans-serif;
}

body {
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 3px;
  color: #8fb0ff;
  margin-bottom: 14px;
}

.guide-hero {
  background:
    linear-gradient(135deg, #142246 0%, #10131d 58%, #0b0e16 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.guide-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 20%, rgba(63,111,224,.38), transparent 34%),
    radial-gradient(circle at 82% 34%, rgba(76,128,255,.2), transparent 28%),
    radial-gradient(rgba(255,255,255,.075) 1px, transparent 1px);
  background-size: auto, auto, 22px 22px;
  pointer-events: none;
}

.guide-hero::after {
  content: "GAME GUIDE";
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(52px, 8vw, 142px);
  font-weight: 900;
  letter-spacing: -5px;
  color: #fff;
  opacity: .045;
  white-space: nowrap;
  pointer-events: none;
}

.guide-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0,1fr) 360px;
  gap: 42px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 64px;
  padding-left: 62px;
}

.guide-hero-inner::before {
  content: "";
  position: absolute;
  left: 32px;
  top: 64px;
  width: 5px;
  height: calc(100% - 128px);
  background: linear-gradient(180deg, #4f7cff, #8fb0ff);
  box-shadow: 0 0 26px rgba(79,124,255,.55);
}

.guide-copy h1 {
  font-size: clamp(34px,4vw,50px);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -1px;
  margin-bottom: 16px;
  text-shadow: 0 12px 30px rgba(0,0,0,.28);
}

.guide-copy p {
  max-width: 620px;
  color: rgba(255,255,255,.74);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 24px;
}

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

.guide-stats span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.075);
  color: rgba(255,255,255,.78);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.guide-stats strong {
  color: #fff;
  font-weight: 900;
}

.guide-search-card {
  background: rgba(255,255,255,.92);
  color: var(--ink);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 24px 60px -22px rgba(0,0,0,.55);
  backdrop-filter: blur(10px);
}

.guide-search-card label {
  display: block;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 10px;
}

.guide-search-box {
  display: flex;
  align-items: center;
  border: 1px solid #dce3ef;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.guide-search-box input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 14px 15px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
}

.guide-search-box span {
  width: 44px;
  text-align: center;
  color: var(--muted);
}

.guide-search-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.guide-main {
  padding: 58px 0 88px;
  background: #fff;
}

.guide-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 20px;
}

.guide-toolbar h2 {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -.3px;
}

.guide-toolbar p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

.guide-result {
  font-size: 12px;
  font-weight: 900;
  color: var(--blue);
  background: #eef3ff;
  padding: 8px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.guide-category-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.guide-category-tabs button {
  border: 1px solid var(--line);
  background: #fff;
  color: #333;
  border-radius: 999px;
  padding: 9px 13px;
  font-size: 12px;
  font-weight: 900;
  font-family: inherit;
  cursor: pointer;
  transition: .18s;
}

.guide-category-tabs button:hover,
.guide-category-tabs button.active {
  border-color: var(--blue);
  background: #eef3ff;
  color: var(--blue);
}

.guide-root {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.guide-loading,
.guide-empty {
  padding: 60px 24px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--soft);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.guide-section {
  border-top: 1px solid #eef0f5;
  padding-top: 28px;
}

.guide-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.guide-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.guide-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.guide-section-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #f1f5ff;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
}

.guide-section h3 {
  font-size: 21px;
  font-weight: 900;
}

.guide-section p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
}

.guide-count {
  font-size: 12px;
  font-weight: 900;
  color: var(--blue);
  background: #eef3ff;
  padding: 7px 10px;
  border-radius: 999px;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
}

.guide-card {
  border: 1px solid #e5eaf3;
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  transition: transform .2s,box-shadow .2s,border-color .2s;
  box-shadow: 0 12px 28px rgba(15,17,26,.045);
}

.guide-card:hover {
  transform: translateY(-4px);
  border-color: rgba(63,111,224,.32);
  box-shadow: 0 18px 42px rgba(15,17,26,.12);
}

.guide-card.open {
  border-color: var(--blue);
  box-shadow: 0 18px 42px rgba(63,111,224,.18);
}

.guide-art {
  position: relative;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg,#374151,#111827);
  overflow: hidden;
}

.guide-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.guide-card:hover .guide-art img {
  transform: scale(1.05);
}

.guide-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}

.guide-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0,0,0,.58);
  color: #fff;
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 10px;
  font-weight: 900;
  z-index: 2;
}

.guide-card-body {
  padding: 16px;
}

.guide-card h4 {
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 7px;
}

.guide-card-desc {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 39px;
}

.guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}

.guide-meta span {
  font-size: 10.5px;
  font-weight: 800;
  color: #4c5568;
  background: #f4f6fb;
  border: 1px solid #edf0f6;
  border-radius: 999px;
  padding: 5px 8px;
}

.guide-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.guide-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #d7deec;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  padding: 10px;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: .18s;
}

.guide-btn:hover {
  background: #111827;
  border-color: #111827;
  color: #fff;
}

.guide-btn.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.guide-btn.primary:hover {
  background: #111827;
  border-color: #111827;
}

.guide-detail {
  display: none;
  border-top: 1px solid var(--line);
  background: #fbfcff;
  padding: 15px;
}

.guide-card.open .guide-detail {
  display: block;
  animation: guideOpen .18s ease-out;
}

@keyframes guideOpen {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.guide-detail-section {
  margin-bottom: 14px;
}

.guide-detail-section:last-child {
  margin-bottom: 0;
}

.guide-detail-title {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .8px;
  color: var(--blue);
  margin-bottom: 8px;
}

.guide-detail ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.guide-detail li {
  font-size: 12.5px;
  color: #555d70;
  line-height: 1.55;
  position: relative;
  padding-left: 13px;
}

.guide-detail li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
}

.guide-related {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.guide-related-list {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.guide-related-list a {
  font-size: 11px;
  font-weight: 900;
  color: var(--blue);
  background: #eef3ff;
  border-radius: 999px;
  padding: 6px 8px;
  text-decoration: none;
}

@media(max-width:980px) {
  .wrap {
    padding: 0 22px;
  }

  .guide-hero-inner {
    grid-template-columns: 1fr;
    padding: 48px 22px 48px 52px;
  }

  .guide-hero-inner::before {
    left: 22px;
    top: 44px;
    height: calc(100% - 88px);
  }

  .guide-hero::after {
    right: 24px;
    font-size: 82px;
  }

  .guide-search-card {
    max-width: 520px;
  }

  .guide-grid {
    grid-template-columns: repeat(2,1fr);
  }
}

@media(max-width:560px) {
  .guide-copy h1 {
    font-size: 32px;
  }

  .guide-hero-inner {
    gap: 22px;
    padding: 52px 18px 52px 42px;
  }

  .guide-hero-inner::before {
    left: 18px;
    top: 48px;
    height: calc(100% - 96px);
  }

  .guide-hero::after {
    content: "GUIDE";
    right: 10px;
    top: 58%;
    font-size: 60px;
    opacity: .04;
  }

  .guide-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  .guide-main {
    padding: 42px 0 64px;
  }
}

.guide-card-actions{
  margin-top:18px;
}

.guide-open-btn{
  width:100%;
  height:44px;
  border:0;
  background:#2563eb;
  color:#fff;
  font-weight:900;
  cursor:pointer;
  font-family:var(--font);
}

.guide-modal{
  position:fixed;
  inset:0;
  z-index:9999;
  display:none;
}

.guide-modal.is-open{
  display:block;
}

.guide-modal-dim{
  position:absolute;
  inset:0;
  background:rgba(6,10,24,.66);
  backdrop-filter:blur(4px);
}

.guide-modal-panel{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:min(760px, calc(100% - 32px));
  max-height:82vh;
  background:#fff;
  box-shadow:0 30px 80px rgba(0,0,0,.32);
  display:flex;
  flex-direction:column;
  overflow:hidden;
}

.guide-modal-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding:24px 26px 18px;
  border-bottom:1px solid #e7e8ee;
}

.guide-modal-category{
  color:#2563eb;
  font-size:12px;
  font-weight:900;
  letter-spacing:.12em;
  margin-bottom:8px;
}

.guide-modal-head h3{
  margin:0;
  font-size:26px;
  line-height:1.25;
  color:#111827;
}

.guide-modal-close{
  width:38px;
  height:38px;
  border:1px solid #e5e7eb;
  background:#fff;
  font-size:26px;
  line-height:1;
  cursor:pointer;
}

.guide-modal-body{
  padding:24px 26px;
  overflow:auto;
}

.guide-section{
  margin-bottom:24px;
}

.guide-section:last-child{
  margin-bottom:0;
}

.guide-section h4{
  margin:0 0 10px;
  font-size:16px;
  color:#111827;
}

.guide-section ul{
  margin:0;
  padding-left:18px;
}

.guide-section li{
  margin:7px 0;
  color:#4b5563;
  line-height:1.65;
}

.guide-modal-foot{
  padding:18px 26px 24px;
  border-top:1px solid #e7e8ee;
}

.guide-play-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  height:48px;
  background:#111827;
  color:#fff;
  font-weight:900;
  text-decoration:none;
}

body.guide-modal-open{
  overflow:hidden;
}

@media (max-width:768px){
  .guide-modal-panel{
    left:0;
    top:0;
    transform:none;
    width:100%;
    height:100%;
    max-height:none;
  }

  .guide-modal-head{
    padding:18px 18px 14px;
  }

  .guide-modal-head h3{
    font-size:22px;
  }

  .guide-modal-body{
    padding:20px 18px;
  }

  .guide-modal-foot{
    padding:14px 18px 18px;
  }

  .guide-play-btn{
    height:50px;
  }
}

.guide-layer{
  position:fixed !important;
  inset:0 !important;
  z-index:99999 !important;
  display:none !important;
}

.guide-layer.is-open{
  display:block !important;
}

.guide-layer-dim{
  position:absolute;
  inset:0;
  background:rgba(7,11,25,.72);
  backdrop-filter:blur(7px);
}

.guide-layer-panel{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:min(720px, calc(100% - 36px));
  max-height:82vh;
  background:#fff;
  border-radius:22px;
  box-shadow:0 34px 100px rgba(0,0,0,.38);
  display:flex;
  flex-direction:column;
  overflow:hidden;
}

.guide-layer-head{
  display:flex;
  justify-content:space-between;
  gap:18px;
  padding:28px 30px 22px;
  background:linear-gradient(135deg,#0f172a,#111827);
  color:#fff;
}

.guide-layer-category{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:26px;
  padding:0 10px;
  border-radius:999px;
  background:rgba(59,130,246,.18);
  color:#93c5fd;
  font-size:12px;
  font-weight:900;
  margin-bottom:12px;
}

.guide-layer-head h3{
  margin:0;
  font-size:30px;
  line-height:1.2;
  color:#fff;
  letter-spacing:-.04em;
}

.guide-layer-close{
  flex:0 0 auto;
  width:42px;
  height:42px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:12px;
  background:rgba(255,255,255,.08);
  color:#fff;
  font-size:28px;
  cursor:pointer;
}

.guide-layer-body{
  padding:28px 30px;
  overflow:auto;
  background:#f8fafc;
}

.guide-detail-section{
  padding:20px 20px 18px;
  margin-bottom:16px;
  background:#fff;
  border:1px solid #e7eaf0;
  border-radius:18px;
  box-shadow:0 10px 26px rgba(15,23,42,.05);
}

.guide-detail-title{
  display:flex;
  align-items:center;
  gap:7px;
  margin-bottom:12px;
  color:#2563eb;
  font-size:14px;
  font-weight:900;
}

.guide-detail-section ul{
  margin:0;
  padding-left:18px;
}

.guide-detail-section li{
  margin:8px 0;
  color:#374151;
  font-size:15px;
  line-height:1.65;
}

.guide-related{
  padding:20px;
  background:#eef4ff;
  border:1px solid #dbeafe;
  border-radius:18px;
}

.guide-related-list{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.guide-related-list a{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:0 11px;
  border-radius:999px;
  background:#fff;
  color:#2563eb;
  font-size:13px;
  font-weight:900;
  text-decoration:none;
}

.guide-layer-foot{
  padding:18px 30px 26px;
  background:#fff;
  border-top:1px solid #e7e8ee;
}

.guide-layer-play{
  display:flex;
  align-items:center;
  justify-content:center;
  height:52px;
  border-radius:14px;
  background:#2563eb;
  color:#fff;
  font-size:16px;
  font-weight:900;
  text-decoration:none;
  box-shadow:0 14px 30px rgba(37,99,235,.28);
}

body.guide-layer-open{
  overflow:hidden;
}

@media (max-width:768px){
  .guide-layer-panel{
    left:0;
    top:0;
    transform:none;
    width:100%;
    height:100%;
    max-height:none;
    border-radius:0;
  }

  .guide-layer-head{
    padding:22px 20px 18px;
  }

  .guide-layer-head h3{
    font-size:25px;
  }

  .guide-layer-body{
    padding:18px;
  }

  .guide-detail-section{
    padding:18px 16px;
    border-radius:16px;
  }

  .guide-layer-foot{
    padding:14px 18px 18px;
  }

  .guide-layer-play{
    height:52px;
    border-radius:13px;
  }
}