#tcg-root {
  --tcg-ivory: #f3f0e8;
  --tcg-paper: #fbf8f0;
  --tcg-ink: #2d2d2b;
  --tcg-muted: #6d6962;
  --tcg-line: rgba(45, 45, 43, .2);
  color: var(--tcg-ink);
  font-family: Manrope, "Helvetica Neue", Arial, sans-serif;
}

#tcg-root *, #tcg-root *::before, #tcg-root *::after { box-sizing: border-box; }
#tcg-root [hidden] { display: none !important; }

.tcg-launcher {
  position: fixed;
  right: clamp(1rem, 2.5vw, 2.2rem);
  bottom: clamp(1rem, 2.5vw, 2.2rem);
  z-index: 99990;
  display: flex;
  align-items: center;
  gap: .5rem;
  min-height: 52px;
  padding: .45rem .9rem .45rem .45rem;
  color: var(--tcg-ink);
  background: rgba(251, 248, 240, .96);
  border: 1px solid var(--tcg-line);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(39, 35, 30, .12);
  cursor: pointer;
}

.tcg-launcher img { width: 42px; height: 42px; object-fit: contain; }
.tcg-launcher span { font: 600 .8rem/1 Manrope, "Helvetica Neue", Arial, sans-serif; }

.tcg-guide {
  position: fixed;
  right: clamp(1rem, 2.5vw, 2.2rem);
  bottom: clamp(1rem, 2.5vw, 2.2rem);
  z-index: 99991;
  width: min(390px, calc(100vw - 2rem));
  max-height: min(690px, calc(100vh - 2rem));
  overflow: auto;
  padding: 2rem;
  color: var(--tcg-ink);
  background: rgba(251, 248, 240, .985);
  border: 1px solid var(--tcg-line);
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(39, 35, 30, .17);
}

.tcg-close {
  position: absolute;
  top: .65rem;
  right: .8rem;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  color: var(--tcg-ink);
  background: transparent;
  border: 0;
  border-radius: 50%;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.tcg-cube { display: block; width: 82px; height: auto; margin: -.2rem 0 1rem; }
.tcg-guide h2 { margin: 0; color: var(--tcg-ink); font: 550 1.65rem/1.15 Manrope, "Helvetica Neue", Arial, sans-serif; letter-spacing: -.025em; }
.tcg-lead, .tcg-panel > p:not(.tcg-kicker) { color: var(--tcg-muted); font-size: 1rem; line-height: 1.62; }
.tcg-lead { margin: .55rem 0 1.35rem; }
.tcg-kicker { margin: 0 0 1rem; color: var(--tcg-muted); font-size: .73rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.tcg-panel > p:not(.tcg-kicker) { margin: 1rem 0 1.4rem; }
.tcg-menu, .tcg-panel-links { display: grid; gap: .55rem; }

.tcg-menu a, .tcg-menu button, .tcg-panel-links a {
  display: block;
  width: 100%;
  margin: 0;
  padding: .78rem .9rem;
  color: var(--tcg-ink);
  background: transparent;
  border: 1px solid var(--tcg-line);
  border-radius: 9px;
  box-shadow: none;
  font: 520 .9rem/1.25 Manrope, "Helvetica Neue", Arial, sans-serif;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.tcg-menu a:hover, .tcg-menu button:hover, .tcg-panel-links a:hover {
  color: var(--tcg-ink);
  background: #fffdf7;
  border-color: rgba(45, 45, 43, .42);
  transform: translateY(-1px);
}

.tcg-panel { padding-top: .55rem; }
.tcg-panel-links a::after { content: " ↗"; color: var(--tcg-muted); }
.tcg-panel-actions { display: flex; gap: .6rem; margin-top: 1.5rem; }

.tcg-panel-actions button {
  margin: 0;
  padding: .65rem .8rem;
  color: var(--tcg-muted);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--tcg-line);
  border-radius: 0;
  box-shadow: none;
  font: 550 .75rem/1.2 Manrope, "Helvetica Neue", Arial, sans-serif;
  cursor: pointer;
}

#tcg-root button:focus-visible, #tcg-root a:focus-visible { outline: 2px solid var(--tcg-ink); outline-offset: 3px; }

@media (max-width: 760px) {
  .tcg-guide { right: .7rem; bottom: .7rem; width: calc(100vw - 1.4rem); max-height: calc(100dvh - 1.4rem); padding: 1.6rem; }
  .tcg-launcher { right: .8rem; bottom: .8rem; }
  .tcg-panel-actions { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  #tcg-root *, #tcg-root *::before, #tcg-root *::after { scroll-behavior: auto !important; transition: none !important; }
}

