
/* ==========================================================================
   WAKAYASHI OFFICIAL DAEVANION BOARD CSS (100% 1:1 RECREATION)
   ========================================================================== */

.cg-daev {
  --daev-common: #c9a961;
  --daev-rare: #46b06a;
  --daev-legend: #4a8fe0;
  --daev-unique: #ea8a34;
  --daev-start: #34b3c9;
  background: #11151f;
  border: 1px solid #1e2638;
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.cg-daev-body {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .cg-daev-body {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.cg-daev-main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

/* Stage Selector */
.cg-daev-stages {
  display: flex;
}

.cg-daev-stages .lang-seg {
  display: flex;
  background: #0b0e14;
  border: 1px solid rgba(201,169,97,.55);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(242,210,122,.12);
}

.cg-daev-stages .lang-btn {
  padding: 0.45rem 1.1rem;
  background: #0f131b;
  border: none;
  color: #e2e8f0;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
}

.cg-daev-stages .lang-btn + .lang-btn {
  border-left: 1px solid rgba(201,169,97,.35);
}

.cg-daev-stages .lang-btn b {
  color: #d1b87a;
  font-weight: 700;
}

.cg-daev-stages .lang-btn.is-active {
  background: #d1b87a;
  color: #1a1206;
}

.cg-daev-stages .lang-btn.is-active b {
  color: inherit;
}

/* 6 Deity Tabs */
.cg-daev-tabs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.45rem;
}

@media (max-width: 800px) {
  .cg-daev-tabs {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cg-daev-tab {
  display: grid;
  padding: 0.55rem 0.5rem;
  border: 1px solid #1c2637;
  border-radius: 8px;
  background: #0f131b;
  color: #94a3b8;
  text-align: left;
  cursor: pointer;
  transition: border-color .12s ease, background .12s ease;
}

.cg-daev-tab:hover {
  border-color: rgba(201,169,97,.5);
}

.cg-daev-tab.is-active {
  border-color: #d1b87a;
  background: rgba(201,169,97,.12);
  box-shadow: 0 0 10px rgba(242,210,122,.25);
}

.cg-daev-tab b {
  font-size: 0.88rem;
  color: #e2e8f0;
}

.cg-daev-tab.is-active b {
  color: #d1b87a;
}

.cg-daev-tab span {
  font-size: 0.78rem;
  font-weight: 700;
  color: #d1b87a;
  margin: 0.15rem 0;
}

.cg-daev-tab small {
  font-size: 0.7rem;
  color: #64748b;
}

/* 11x11 CSS Grid with exact aspect ratio & radial gradient */
.cg-daev-grid {
  display: grid;
  gap: 4px;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1;
  padding: 0.85rem;
  border: 1px solid #1a2333;
  border-radius: 10px;
  background: radial-gradient(circle at center, #1b2230 0, #0b0e14 75%);
}

.cg-daev-node {
  display: block;
  min-width: 0;
  border-radius: 5px;
  position: relative;
  cursor: pointer;
  outline-offset: 2px;
}

.cg-daev-node > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  filter: grayscale(1) brightness(.45);
  opacity: .5;
  transition: filter .12s ease, opacity .12s ease;
}

.cg-daev-node.is-on > img {
  filter: none;
  opacity: 1;
}

.cg-daev-node.is-on {
  box-shadow: 0 0 8px var(--node-glow, transparent);
}

.cg-daev-node:hover > img {
  opacity: 1;
  filter: none;
}

.cg-daev-node--common { --node-glow: rgba(201,169,97,0.55); }
.cg-daev-node--rare { --node-glow: var(--daev-rare); }
.cg-daev-node--legend { --node-glow: var(--daev-legend); }
.cg-daev-node--unique { --node-glow: var(--daev-unique); }
.cg-daev-node--start { --node-glow: var(--daev-start); }

.cg-daev-node.is-skill {
  border: 2px solid color-mix(in srgb, var(--node-glow) 45%, #2a2f3a);
  background: #131924;
}

.cg-daev-node.is-skill.is-on {
  border-color: var(--node-glow);
}

.cg-daev-node.is-skill > img {
  border-radius: 3px;
}

/* Right Summary Panel */
.cg-daev-sum {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
  background: #0f141f;
  border: 1px solid #1c2637;
  border-radius: 8px;
  padding: 1.25rem;
}

.cg-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #1f2b3e;
  padding-bottom: 0.6rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.cg-bar span:last-child {
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748b;
}

.cg-daev-total {
  font-size: 0.82rem;
  color: #94a3b8;
  margin: -0.25rem 0 0.5rem 0;
}

.cg-daev-total b {
  color: #d1b87a;
}

.cg-daev-sum-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cg-daev-sum-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #64748b;
}

.cg-daev-skills {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cg-daev-skills li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: #e2e8f0;
}

.cg-daev-skills img {
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  border: 1px solid rgba(201,169,97,.5);
  background: #141b27;
  object-fit: cover;
}

.cg-daev-skills span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cg-val {
  color: #4ade80;
  font-weight: 800;
}

.cg-daev-stats {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cg-daev-stats > div {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid #1a2333;
  font-size: 0.82rem;
}

.cg-daev-stats dt {
  color: #94a3b8;
  margin: 0;
}

.cg-daev-stats dd {
  color: #e2e8f0;
  font-weight: 700;
  margin: 0;
}
