/* ============================================================
   Class2Class . YOUR TAKE
   Only the two control rows; the card, header, buttons, fields
   and note come from gamekit.css. Kept deliberately small: the
   game sits beside the hero and must not out-shout it.
   ============================================================ */

.ytk-controls {
  display: grid;
  margin-top: 13px;
  background: #fff;
  border: 1.5px solid var(--cg-line);
  border-radius: 12px;
  padding: 4px 14px 14px;
}
.ytk-control {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
}
.ytk-control + .ytk-control {
  margin-top: 11px;
  border-top: 1px solid var(--cg-line);
}
.ytk-lab {
  flex: none;
  width: 4.6em;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--cg-soft);
}
.ytk-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ytk-swatch {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 1.5px var(--cg-line);
  padding: 0;
  cursor: pointer;
  transition:
    transform 0.18s var(--cg-ease),
    box-shadow 0.18s var(--cg-ease);
  -webkit-tap-highlight-color: transparent;
}
.ytk-swatch:hover {
  transform: translateY(-2px) scale(1.06);
}
.ytk-swatch[aria-pressed='true'] {
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 4.5px var(--cg-ink);
  transform: scale(1.06);
}

.ytk-custom {
  position: relative;
  width: 25px;
  height: 25px;
  flex: none;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 1.5px var(--cg-line);
  background: conic-gradient(#ee46bc, #f68d39, #78c142, #5cb2ff, #8157d9, #ee46bc);
  display: grid;
  place-items: center;
  transition:
    transform 0.18s var(--cg-ease),
    box-shadow 0.18s var(--cg-ease);
}
.ytk-custom:hover {
  transform: translateY(-2px) scale(1.06);
}
.ytk-custom.is-on {
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 4.5px var(--cg-ink);
  transform: scale(1.06);
}
.ytk-custom input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  border: none;
  padding: 0;
  cursor: pointer;
}
.ytk-custom .plus {
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(61, 58, 64, 0.55);
  pointer-events: none;
}

.ytk-tone,
.ytk-corner {
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cg-ink);
  background: rgba(255, 255, 255, 0.6);
  border: 1.5px solid var(--cg-line);
  border-radius: 100px;
  padding: 4px 11px;
  cursor: pointer;
  transition:
    border-color 0.18s var(--cg-ease),
    background 0.18s var(--cg-ease);
  -webkit-tap-highlight-color: transparent;
}
.ytk-tone:hover,
.ytk-corner:hover {
  border-color: var(--cg-soft);
}
.ytk-tone[aria-pressed='true'],
.ytk-corner[aria-pressed='true'] {
  border-color: var(--cg-ink);
  background: #fff;
  box-shadow: 0 6px 16px -12px rgba(61, 58, 64, 0.7);
}

/* the tone buttons carry a swatch of the paper they set */
.ytk-tone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ytk-tone .chip {
  width: 13px;
  height: 13px;
  border-radius: 4px;
  border: 1px solid rgba(61, 58, 64, 0.2);
  flex: none;
}

.ytk-reset {
  display: block;
  margin: 9px 0 0 auto;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--cg-soft);
  background: none;
  border: none;
  padding: 2px 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  -webkit-tap-highlight-color: transparent;
}
.ytk-reset:hover {
  color: var(--cg-ink);
}
.ytk-reset[hidden] {
  display: none;
}

@media (max-width: 420px) {
  .ytk-control {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .ytk-lab {
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ytk-swatch,
  .ytk-custom {
    position: relative;
    width: 25px;
    height: 25px;
    flex: none;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 0 1.5px var(--cg-line);
    background: conic-gradient(#ee46bc, #f68d39, #78c142, #5cb2ff, #8157d9, #ee46bc);
    display: grid;
    place-items: center;
    transition:
      transform 0.18s var(--cg-ease),
      box-shadow 0.18s var(--cg-ease);
  }
  .ytk-custom:hover {
    transform: translateY(-2px) scale(1.06);
  }
  .ytk-custom.is-on {
    box-shadow:
      0 0 0 2px #fff,
      0 0 0 4.5px var(--cg-ink);
    transform: scale(1.06);
  }
  .ytk-custom input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    border: none;
    padding: 0;
    cursor: pointer;
  }
  .ytk-custom .plus {
    font-size: 0.8rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(61, 58, 64, 0.55);
    pointer-events: none;
  }

  .ytk-tone,
  .ytk-corner {
    transition: none;
  }
  .ytk-swatch:hover {
    transform: none;
  }
}
