/* GODIUS: ETERNAL WAR - PlayinWorld landing */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", Arial, sans-serif;
  background: #000;
  color: #ccc;
  line-height: 1.5;
  min-height: 100vh;
}

a {
  color: #b8d4f0;
  text-decoration: none;
}

a:hover {
  color: #fff;
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---- Landing page ---- */

.landing {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.lang-switch-top {
  position: fixed;
  top: 16px;
  right: 20px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.55);
  padding: 6px 14px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.lang-switch-top a {
  color: #aaa;
  text-decoration: none;
}

.lang-switch-top a.active,
.lang-switch-top a:hover {
  color: #fff;
}

.lang-switch-top .sep {
  color: #555;
}

/* Floating download (bottom-right, round image) */
.download-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  display: block;
  width: 64px;
  height: 64px;
  padding: 0;
  border: none;
  border-radius: 50%;
  overflow: hidden;
  line-height: 0;
  background: transparent;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.download-float:hover {
  text-decoration: none;
  transform: scale(1.08);
  filter: brightness(1.12);
}

.download-float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.hero {
  position: relative;
  flex: 1 1 auto;
  min-height: 93vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  background-color: #000;
  background-image: url("../images/KakaoTalk_20260521_171422885_01.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center -200px;
  padding-bottom: 48px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, rgba(0, 0, 0, 0.85) 100%);
  pointer-events: none;
}

.social-links {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 20px;
}

.social-links a {
  display: block;
  transition: transform 0.2s ease, filter 0.2s ease;
  line-height: 0;
}

.social-links a:hover {
  transform: scale(1.08);
  filter: brightness(1.15);
  text-decoration: none;
}

.social-links img {
  width: 120px;
  height: auto;
}

/* ---- Footer (matches 22.png) ---- */

.site-footer {
  background: #0a0a0a;
  padding: 28px 20px 36px;
  text-align: center;
}

.site-footer--compact {
  padding: 20px;
  margin-top: auto;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 8px;
  margin-bottom: 24px;
  font-size: 14px;
}

.footer-nav a {
  color: #ddd;
  text-decoration: none;
  white-space: nowrap;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-nav .sep {
  color: #555;
  user-select: none;
}

.rating-box {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  max-width: 100%;
  width: fit-content;
  margin: 0 auto 24px;
  border: 1px solid #444;
}

.rating-icons {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 24px;
  border-right: 1px solid #444;
  min-width: 100px;
}

.rating-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.rating-table-wrap {
  flex: 0 1 auto;
  min-width: 0;
  overflow-x: auto;
}

.rating-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  table-layout: auto;
}

.rating-table th,
.rating-table td {
  border: 1px solid #3a7ab8;
  padding: 8px 12px;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.rating-table th {
  background: #2a5f8f;
  color: #fff;
  font-weight: 600;
  width: auto;
}

.rating-table td {
  background: #111;
  color: #ddd;
  width: auto;
}

.company-info {
  font-size: 11px;
  color: #888;
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto;
}

.company-info a {
  color: #9ab;
}

.footer-copy {
  margin-top: 16px;
  font-size: 11px;
  color: #666;
}

/* ---- Terms pages ---- */

.terms-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #111;
}

.terms-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: #0a0a0a;
  border-bottom: 1px solid #333;
  position: sticky;
  top: 0;
  z-index: 10;
}

.back-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.back-link:hover {
  opacity: 0.88;
}

.back-logo {
  display: block;
  height: 36px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.lang-switch {
  display: flex;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.lang-switch a {
  color: #888;
}

.lang-switch a.active {
  color: #fff;
}

.terms-content {
  flex: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 32px 24px 48px;
  width: 100%;
}

.doc-title {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 1px solid #333;
}

.terms-content h2 {
  font-size: 1.1rem;
  color: #e8c87a;
  margin: 28px 0 12px;
}

.terms-content h3 {
  font-size: 1rem;
  color: #ccc;
  margin: 16px 0 8px;
}

.terms-content h4 {
  font-size: 0.95rem;
  color: #9ab;
  margin: 12px 0 6px;
}

.terms-content p {
  margin-bottom: 12px;
  color: #bbb;
  font-size: 14px;
  line-height: 1.7;
}

.terms-content ul {
  margin: 0 0 16px 20px;
  color: #bbb;
  font-size: 14px;
}

.terms-content li {
  margin-bottom: 6px;
  line-height: 1.6;
}

.terms-content .doc-meta {
  color: #888;
  font-size: 13px;
  margin: -12px 0 24px;
}

.terms-content .note {
  color: #999;
  font-size: 13px;
  margin: 8px 0 14px;
}

.terms-content .warn {
  color: #d4a574;
  font-size: 13px;
  margin: 8px 0 14px;
}

.terms-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: 13px;
  color: #bbb;
}

.terms-content th,
.terms-content td {
  border: 1px solid #333;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
}

.terms-content th {
  background: #1a1a1a;
  color: #ddd;
  font-weight: 700;
  white-space: nowrap;
}

.terms-content td {
  background: #121212;
}

/* ---- How to Godius guide ---- */

.howto-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at top, rgba(42, 95, 143, 0.18) 0%, transparent 55%),
    linear-gradient(180deg, #050505 0%, #0a0a0a 40%, #000 100%);
  color: #ccc;
}

.howto-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  background: rgba(0, 0, 0, 0.85);
  border-bottom: 1px solid rgba(232, 200, 122, 0.25);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(8px);
}

.howto-header .back-link {
  justify-self: start;
}

.howto-header .lang-switch {
  justify-self: end;
}

.howto-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: center;
  color: #e8c87a;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 14px;
}

.howto-brand-icon {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 0 8px rgba(232, 200, 122, 0.45));
}

.howto-hero {
  height: 160px;
  background-color: #000;
  background-image:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.92) 100%),
    url("../images/KakaoTalk_20260521_171422885_01.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 20%;
  border-bottom: 1px solid rgba(58, 122, 184, 0.35);
}

/* How to nav — connected depth1/depth2 tab panel */
.howto-nav {
  position: sticky;
  top: 69px;
  z-index: 20;
  background: #0a0a0a;
  border-bottom: 1px solid #2c2c2c;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
}

.howto-nav-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 16px 16px;
}

.howto-nav-panel {
  border: 1px solid #3f3f3f;
  background: #141414;
  overflow: hidden;
}

/* Depth1: equal-width primary tabs */
.howto-nav-depth1 {
  display: flex;
  width: 100%;
  background: #1a1a1a;
  border-bottom: 1px solid #3f3f3f;
}

.howto-depth1-btn {
  appearance: none;
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  border: 0;
  border-right: 1px solid #333;
  background: transparent;
  color: #9a9a9a;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  height: 50px;
  line-height: 50px;
  padding: 0 6px;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.15s ease, color 0.15s ease;
}

.howto-depth1-btn:last-child {
  border-right: 0;
}

.howto-depth1-btn:hover {
  color: #eee;
  background: #2a2a2a;
}

/* Active depth1 opens into depth2 strip (shared bg) */
.howto-depth1-btn.is-active {
  color: #fff;
  background: #101010;
  box-shadow: inset 0 2px 0 #e8c87a;
}

.howto-depth1-btn.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: #101010;
  z-index: 2;
}

/* Depth2: same panel width, equal cells by count */
.howto-nav-depth2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  width: 100%;
  background: #101010;
}

.howto-nav-depth2[data-count="1"] { grid-template-columns: repeat(1, 1fr); }
.howto-nav-depth2[data-count="2"] { grid-template-columns: repeat(2, 1fr); }
.howto-nav-depth2[data-count="3"] { grid-template-columns: repeat(3, 1fr); }
.howto-nav-depth2[data-count="4"] { grid-template-columns: repeat(4, 1fr); }
.howto-nav-depth2[data-count="5"] { grid-template-columns: repeat(5, 1fr); }
.howto-nav-depth2[data-count="6"] { grid-template-columns: repeat(6, 1fr); }
.howto-nav-depth2[data-count="7"] { grid-template-columns: repeat(7, 1fr); }
.howto-nav-depth2[data-count="8"] { grid-template-columns: repeat(4, 1fr); }
.howto-nav-depth2[data-count="9"] { grid-template-columns: repeat(5, 1fr); }
.howto-nav-depth2[data-count="10"] { grid-template-columns: repeat(5, 1fr); }
.howto-nav-depth2[data-count="11"] { grid-template-columns: repeat(6, 1fr); }
.howto-nav-depth2[data-count="12"] { grid-template-columns: repeat(6, 1fr); }

.howto-nav-depth2[hidden] {
  display: none !important;
}

.howto-depth2-link {
  display: block;
  height: 44px;
  line-height: 44px;
  padding: 0 8px;
  text-align: center;
  color: #8f8f8f;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-right: 1px solid #2a2a2a;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.howto-depth2-link:hover {
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  border-bottom-color: rgba(232, 200, 122, 0.45);
}

.howto-depth2-link.is-active {
  color: #fff;
  background: rgba(232, 200, 122, 0.1);
  border-bottom-color: #e8c87a;
}

.howto-depth2-empty {
  display: block;
  grid-column: 1 / -1;
  height: 44px;
  line-height: 44px;
  text-align: center;
  color: #666;
  font-size: 13px;
}

.howto-main {
  flex: 1;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 36px 24px 56px;
}

.howto-section[hidden] {
  display: none !important;
}

.howto-title {
  font-size: 1.75rem;
  color: #fff;
  margin-bottom: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(232, 200, 122, 0.35);
  letter-spacing: 0.02em;
}

.howto-lead {
  color: #bbb;
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 28px;
}

.howto-body {
  color: #bbb;
  font-size: 14px;
  line-height: 1.75;
}

.howto-body p {
  margin-bottom: 12px;
}

.howto-body img {
  max-width: 100%;
  height: auto;
}

/* Guide content centered; FAQ stays left */
.howto-section.is-centered .howto-title,
.howto-section.is-centered .howto-lead,
.howto-section.is-centered .howto-body {
  text-align: center;
}

.howto-section.is-centered .howto-body img,
.howto-section.is-centered .howto-body table {
  margin-left: auto;
  margin-right: auto;
}

.howto-section.is-centered .howto-body table {
  text-align: left;
}

.howto-section.is-faq .howto-title,
.howto-section.is-faq .howto-lead,
.howto-section.is-faq .howto-body {
  text-align: left;
}

/* Remote .html embed (admin upload → image1…/*.html) */
.howto-html-embed {
  text-align: left;
  margin: 16px 0 28px;
  max-width: 100%;
  overflow-x: auto;
  color: #222;
  background: #f5f5f2;
  padding: 20px 16px;
  border-radius: 4px;
}

.howto-html-embed h1 {
  font-size: 20px;
  margin: 0 0 12px;
  color: #222;
}

.howto-html-embed h2.section-title,
.howto-html-embed h2 {
  margin-top: 28px;
  margin-bottom: 6px;
  font-size: 16px;
  background: #2c2c2c;
  color: #fff;
  padding: 8px 12px;
  border-radius: 4px;
}

.howto-html-embed p.desc {
  margin: 0 0 10px 2px;
  color: #555;
  font-size: 13px;
}

.howto-html-embed table.item-table,
.howto-html-embed table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 13px;
  margin-bottom: 8px;
}

.howto-html-embed table.item-table th,
.howto-html-embed table.item-table td,
.howto-html-embed table th,
.howto-html-embed table td {
  border: 1px solid #ddd;
  padding: 7px 10px;
  text-align: center;
  color: #222;
}

.howto-html-embed table.item-table th,
.howto-html-embed table th {
  background: #3b3b3b;
  color: #fff;
  font-weight: 600;
}

.howto-html-embed table.item-table tr:nth-child(even) td,
.howto-html-embed table tr:nth-child(even) td {
  background: #fafafa;
}

.howto-html-embed table.item-table td:first-child,
.howto-html-embed table td:first-child {
  font-weight: 600;
  text-align: left;
}

.howto-html-embed .unavail {
  color: #b33;
  font-size: 12px;
}

/* World map (guide_8) */
.howto-worldmap {
  width: 100%;
}

.howto-worldmap-hint {
  color: #999;
  font-size: 13px;
  margin-bottom: 16px;
}

.howto-worldmap-frame {
  display: inline-block;
  max-width: 100%;
  line-height: 0;
  border: 1px solid #333;
  background: #000;
}

.howto-worldmap-img {
  display: block;
  width: 800px;
  max-width: 100%;
  height: auto;
  cursor: crosshair;
}

.howto-wm-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.78);
}

.howto-wm-modal[hidden] {
  display: none !important;
}

body.howto-wm-open {
  overflow: hidden;
}

.howto-wm-dialog {
  position: relative;
  max-width: min(720px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: #111;
  border: 1px solid #444;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.65);
}

.howto-wm-close {
  position: sticky;
  top: 8px;
  float: right;
  margin: 8px 8px 0 0;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.howto-wm-body {
  clear: both;
  line-height: 0;
}

.howto-wm-detail {
  display: block;
  width: 100%;
  height: auto;
}


.howto-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.howto-card {
  background: linear-gradient(160deg, rgba(20, 28, 40, 0.9) 0%, rgba(10, 10, 12, 0.95) 100%);
  border: 1px solid rgba(58, 122, 184, 0.35);
  padding: 20px 18px;
  min-height: 140px;
}

.howto-card h3 {
  color: #e8c87a;
  font-size: 1rem;
  margin-bottom: 10px;
}

.howto-card p {
  color: #bbb;
  font-size: 14px;
  line-height: 1.65;
}

.howto-panel {
  background: rgba(12, 14, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid #2a5f8f;
  padding: 22px 24px;
}

.howto-panel h3 {
  color: #e8c87a;
  font-size: 1rem;
  margin: 18px 0 8px;
}

.howto-panel h3:first-child {
  margin-top: 0;
}

.howto-panel p {
  color: #bbb;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 4px;
}

.howto-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.howto-list li {
  position: relative;
  padding: 14px 16px 14px 28px;
  margin-bottom: 10px;
  background: rgba(12, 14, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #bbb;
  font-size: 14px;
  line-height: 1.65;
}

.howto-list li::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 1.15em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e8c87a;
  box-shadow: 0 0 8px rgba(232, 200, 122, 0.6);
}

.howto-list strong {
  color: #dce9f7;
}

.howto-note {
  margin-top: 16px;
  font-size: 13px;
  color: #777;
  font-style: italic;
}

.howto-faq details {
  background: rgba(12, 14, 18, 0.85);
  border: 1px solid rgba(58, 122, 184, 0.3);
  margin-bottom: 10px;
  padding: 0;
}

.howto-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 18px;
  color: #e8c87a;
  font-weight: 600;
  font-size: 14px;
}

.howto-faq summary::-webkit-details-marker {
  display: none;
}

.howto-faq summary::before {
  content: "+";
  display: inline-block;
  width: 1.2em;
  color: #9ab;
  font-weight: 700;
}

.howto-faq details[open] summary::before {
  content: "–";
}

.howto-faq details p {
  padding: 0 18px 16px 18px;
  color: #bbb;
  font-size: 14px;
  line-height: 1.7;
}

/* ---- Responsive ---- */

/* Tablet (641px ~ 1024px) */
@media (max-width: 1024px) {
  .hero {
    min-height: 82vh;
    background-position: center -100px;
    padding-bottom: 40px;
  }

  .hero::after {
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.88) 100%);
  }

  .social-links {
    gap: 22px;
  }

  .social-links img {
    width: 104px;
  }
}

/* Mobile (640px 이하) */
@media (max-width: 640px) {
  .hero {
    min-height: 64vh;
    padding-bottom: 32px;
    background-position: center top;
  }

  .hero::after {
    background: linear-gradient(to bottom, transparent 45%, rgba(0, 0, 0, 0.9) 100%);
  }

  .social-links {
    gap: 16px;
  }

  .social-links img {
    width: 88px;
  }

  .lang-switch-top {
    top: 12px;
    right: 12px;
    font-size: 13px;
    padding: 5px 12px;
  }

  .download-float {
    display: none;
  }

  .rating-box {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
  }

  .rating-table-wrap {
    width: 100%;
    -webkit-overflow-scrolling: touch;
  }

  .rating-icons {
    flex-direction: row;
    border-right: none;
    border-bottom: 1px solid #444;
  }

  .rating-table th,
  .rating-table td {
    font-size: 11px;
    padding: 6px 8px;
  }

  .company-info {
    font-size: 10px;
  }

  .howto-header {
    grid-template-columns: 1fr auto;
    padding: 12px 14px;
  }

  .back-logo {
    height: 28px;
    max-width: 120px;
  }

  .howto-brand span {
    display: none;
  }

  .howto-hero {
    height: 110px;
  }

  .howto-nav {
    top: 64px;
  }

  .howto-nav-shell {
    padding: 10px 12px 12px;
  }

  .howto-nav-depth1 {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .howto-depth1-btn {
    flex: 0 0 auto;
    min-width: 104px;
    height: 44px;
    line-height: 44px;
    font-size: 12px;
    padding: 0 10px;
  }

  .howto-nav-depth2,
  .howto-nav-depth2[data-count] {
    grid-template-columns: repeat(3, 1fr);
  }

  .howto-depth2-link {
    height: 40px;
    line-height: 40px;
    font-size: 12px;
  }

  .howto-main {
    padding: 24px 16px 40px;
  }

  .howto-title {
    font-size: 1.35rem;
  }

  .howto-grid {
    grid-template-columns: 1fr;
  }
}

/* Small mobile (480px 이하) */
@media (max-width: 480px) {
  .hero {
    min-height: 58vh;
    padding-bottom: 24px;
  }

  .social-links {
    gap: 12px;
  }

  .social-links img {
    width: 72px;
  }
}
