/*
Theme Name: THE CHALLENGE
Description: Custom theme for THE CHALLENGE — Deep Dungeon Solo Challenge
Version: 1.0.2
Author: THE CHALLENGE
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #1c1c1c;
  --bg-2:     #242424;
  --bg-3:     #2c2c2c;
  --line:     #3a3a3a;
  --white:    #ffffff;
  --text-1:   #f0f0f0;
  --text-2:   #d0d0d0;
  --text-3:   #a0a0a0;
  --text-4:   #707070;
  --text-5:   #484848;
  --font-ja:  'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
  --font-en:  Georgia, 'Times New Roman', serif;
  --font-ui:  'Helvetica Neue', Arial, sans-serif;
  --max-w:    800px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--font-ja);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* =============================================
   TOPBAR
============================================= */
.tc-topbar-outer {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.tc-topbar {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
}

.tc-topbar__logo {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.45em;
  color: var(--white);
  font-weight: 400;
  text-transform: uppercase;
}

.tc-topbar__nav {
  display: flex;
  gap: 28px;
  list-style: none;
}

.tc-topbar__nav a {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--text-3);
  text-transform: uppercase;
  transition: color 0.2s;
}

.tc-topbar__nav a:hover,
.tc-topbar__nav .current-menu-item a { color: var(--white); }

.tc-topbar__lang {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--text-4);
}

.tc-topbar__menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--text-3);
  padding: 6px 14px;
  font-size: 9px;
  letter-spacing: 0.2em;
  cursor: pointer;
}

/* =============================================
   HERO
============================================= */
.tc-hero {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 100px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tc-hero__lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tc-hero__line {
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: rgba(255,255,255,0.04);
}

.tc-hero__line:nth-child(1) { left: 10%; }
.tc-hero__line:nth-child(2) { left: 25%; }
.tc-hero__line:nth-child(3) { left: 50%; }
.tc-hero__line:nth-child(4) { left: 75%; }
.tc-hero__line:nth-child(5) { left: 90%; }

.tc-hero__inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
}

.tc-hero__season {
  font-family: var(--font-ui);
  font-size: 9px;
  letter-spacing: 0.8em;
  color: var(--text-4);
  text-transform: uppercase;
  margin-bottom: 36px;
}

.tc-hero__subtitle {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.45em;
  color: var(--text-4);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.tc-hero__title {
  font-family: 'Playfair Display', var(--font-en);
  font-size: clamp(36px, 6vw, 80px);
  color: var(--white);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1;
  margin-top: 32px;
  margin-bottom: 4px;
  white-space: nowrap;
  display: inline-block;
  position: relative;
  text-shadow:
    0 0 40px rgba(255,255,255,0.08),
    0 2px 8px rgba(0,0,0,0.6);
}

.tc-hero__title strong {
  display: inline;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--white);
}

/* =============================================
   POLYGON DISSOLVE EFFECT (canvas overlay)
============================================= */
#tc-title-canvas {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10;
}

.tc-hero__rule {
  width: 1px;
  height: 48px;
  background: var(--text-5);
  margin: 36px auto;
}

.tc-hero__ja {
  font-size: 15px;
  color: var(--text-2);
  line-height: 2.4;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.tc-hero__en {
  font-family: var(--font-en);
  font-size: 12px;
  color: var(--text-4);
  line-height: 2;
  letter-spacing: 0.06em;
  font-style: italic;
}

/* =============================================
   SECTION COMMON
============================================= */
.tc-section {
  border-bottom: 1px solid var(--line);
}

.tc-section__header {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  max-width: var(--max-w);
  margin: 0 auto;
}

.tc-section__num {
  font-family: var(--font-ui);
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--text-4);
  background: var(--bg-2);
  padding: 16px 28px;
  border-right: 1px solid var(--line);
  display: flex;
  align-items: center;
  min-width: 90px;
}

.tc-section__title {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--text-3);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  text-transform: uppercase;
}

.tc-section__body {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 40px;
}

/* =============================================
   DUNGEON LIST
============================================= */
.tc-dd-list { list-style: none; }

.tc-dd-item {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}

.tc-dd-item:last-child { border-bottom: none; }

.tc-dd-item__index {
  font-family: var(--font-en);
  font-size: 32px;
  color: var(--text-5);
  font-weight: 700;
  min-width: 52px;
  line-height: 1;
  padding-top: 4px;
}

.tc-dd-item__bar {
  width: 2px;
  background: var(--text-5);
  margin: 0 20px 0 0;
  flex-shrink: 0;
}

.tc-dd-item__bar--open { background: var(--white); }

.tc-dd-item__info { flex: 1; }

.tc-dd-item__ja {
  font-size: 17px;
  color: var(--text-1);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.tc-dd-item__ja--closed { color: var(--text-5); }

.tc-dd-item__en {
  font-family: var(--font-ui);
  font-size: 9px;
  color: var(--text-4);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.tc-dd-item__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* =============================================
   TAGS
============================================= */
.tc-tag {
  font-family: var(--font-ui);
  font-size: 9px;
  letter-spacing: 0.15em;
  padding: 5px 12px;
  border: 1px solid;
  text-transform: uppercase;
}

.tc-tag--open {
  color: var(--white);
  border-color: var(--text-3);
  background: rgba(255,255,255,0.06);
}

.tc-tag--closed {
  color: var(--text-5);
  border-color: var(--text-5);
}

.tc-tag--winner {
  color: var(--text-3);
  border-color: var(--text-5);
  font-style: italic;
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.05em;
}

/* =============================================
   STEPS
============================================= */
.tc-steps { list-style: none; }

.tc-step {
  display: flex;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}

.tc-step:last-child { border-bottom: none; }

.tc-step__num {
  font-family: var(--font-en);
  font-size: 38px;
  color: var(--text-5);
  font-weight: 700;
  line-height: 1;
  min-width: 48px;
}

.tc-step__body { flex: 1; padding-top: 5px; }

.tc-step__title {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--white);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.tc-step__text {
  font-size: 13px;
  color: var(--text-3);
  line-height: 2;
  letter-spacing: 0.03em;
}

/* =============================================
   PRIZE
============================================= */
.tc-prize-list { list-style: none; }

.tc-prize-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.tc-prize-item:last-child { border-bottom: none; }

.tc-prize-item__type {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-2);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.tc-prize-item__note {
  font-size: 11px;
  color: var(--text-4);
  letter-spacing: 0.05em;
}

.tc-prize-item__amount {
  font-family: var(--font-en);
  font-size: 26px;
  color: var(--white);
  font-weight: 300;
  letter-spacing: 0.04em;
  text-align: right;
}

.tc-prize-item__amount small {
  font-size: 12px;
  color: var(--text-3);
  font-family: var(--font-ja);
}

/* =============================================
   RULES
============================================= */
.tc-rules { list-style: none; }

.tc-rule-item {
  display: flex;
  gap: 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}

.tc-rule-item:last-child { border-bottom: none; }

.tc-rule-item__label {
  font-family: var(--font-ui);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--text-4);
  text-transform: uppercase;
  min-width: 68px;
  padding-top: 3px;
  flex-shrink: 0;
}

.tc-rule-item__text {
  font-size: 13px;
  color: var(--text-3);
  line-height: 2;
  letter-spacing: 0.03em;
}

.tc-rule-item__text strong {
  color: var(--text-1);
  font-weight: 500;
}

/* =============================================
   FOOTER
============================================= */
.tc-footer-outer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}

.tc-footer {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tc-footer__copy {
  font-family: var(--font-ui);
  font-size: 9px;
  color: var(--text-5);
  letter-spacing: 0.2em;
}

.tc-footer__discord {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--text-3);
  border: 1px solid var(--text-5);
  padding: 10px 22px;
  text-transform: uppercase;
  transition: color 0.2s, border-color 0.2s;
}

.tc-footer__discord:hover {
  color: var(--white);
  border-color: var(--text-3);
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 680px) {
  .tc-topbar { padding: 12px 16px; }
  .tc-topbar__nav { display: none; }
  .tc-topbar__menu-btn { display: block; }
  .tc-hero { padding: 60px 16px 50px; min-height: 65vh; }
  .tc-section__body { padding: 0 16px 28px; }
  .tc-section__num { padding: 12px 14px; min-width: 56px; }
  .tc-dd-item__index { font-size: 22px; min-width: 36px; }
  .tc-prize-item { flex-direction: column; gap: 10px; align-items: flex-start; }
  .tc-prize-item__amount { text-align: left; }
  .tc-footer { padding: 20px 16px; flex-direction: column; gap: 14px; text-align: center; }
}

/* =============================================
   HERO VIDEO BACKGROUND
============================================= */
.tc-hero {
  position: relative;
}

.tc-hero__video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.tc-hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.tc-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.tc-hero__lines,
.tc-hero__inner {
  position: relative;
  z-index: 1;
}

/* =============================================
   SEASON BADGE — 点滅パルス
============================================= */
.tc-hero__season {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 9px;
  letter-spacing: 0.8em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  margin-bottom: 36px;
  padding: 8px 20px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(4px);
}

.tc-hero__season-pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%   { opacity: 1;   transform: scale(1); }
  50%  { opacity: 0.3; transform: scale(0.7); }
  100% { opacity: 1;   transform: scale(1); }
}

/* =============================================
   HERO COPY — 順番フェードイン
============================================= */
.tc-hero__copy {
  margin-top: 4px;
  text-align: center;
}

.tc-copy-line {
  display: block;
  font-size: 14px;
  color: var(--text-2);
  line-height: 2.2;
  letter-spacing: 0.1em;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.tc-copy-line.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.tc-copy-line--accent {
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.tc-copy-line--en {
  font-family: var(--font-en);
  font-size: 12px;
  font-style: italic;
  color: var(--text-4);
  letter-spacing: 0.06em;
  line-height: 2;
}

.tc-copy-line--strong {
  color: var(--text-2);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.tc-copy-divider {
  width: 1px;
  height: 32px;
  background: var(--text-5);
  margin: 20px auto;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.tc-copy-divider.is-visible {
  opacity: 1;
}
