/* codename mode (lib/codenames.js): create toggle, tag extras, marker, "Unmasked!" tags, wish tag. */

.cn-marker { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--soft); }

/* create: the toggle */
.cn-toggle { display: flex; align-items: flex-start; gap: 12px; padding: 10px 2px; min-height: 44px; cursor: pointer; }
.cn-toggle input { flex: none; width: 24px; height: 24px; margin-top: 2px; accent-color: var(--red); }
.cn-toggle strong { display: block; font-size: 16px; }
.cn-toggle small { display: block; margin-top: 2px; color: var(--soft); font-size: 13px; line-height: 1.35; }

/* tag: codename dice + the second small tag */
.tag-dice {
  position: absolute; right: 14px; top: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--kraft); box-shadow: 0 2px 0 var(--kraft-dark); font-size: 22px; cursor: pointer;
}
.tag-dice:active { transform: translateY(1px); box-shadow: none; }
.tag-hush { margin: 6px 0 0; text-align: center; color: var(--red-dark); font-family: var(--hand); font-weight: 600; font-size: 22px; }
.tag-extra { margin-top: 22px; transform: rotate(-0.8deg); transition: opacity 0.25s ease; }
.tag-extra[hidden] { display: none; }
.tag-extra.is-locked { opacity: 0.35; pointer-events: none; }
.tag-screen .tag-extra .tag { padding: 14px 18px 14px 52px; clip-path: polygon(38px 0, 100% 0, 100% 100%, 38px 100%, 0 50%); }
.tag-extra .twine { left: 8px; width: 60px; }
.tag-extra .tag-from { margin-top: 6px; }
.tag-extra .tag-from:first-child { margin-top: 0; }
.tag-small {
  display: block; width: 100%; min-height: 44px; padding: 4px 2px; border: 0; border-bottom: 2px dotted var(--kraft-dark); border-radius: 0;
  background: transparent; font-family: var(--hand); font-weight: 600; font-size: 26px; line-height: 1.15; color: oklch(0.28 0.07 260); resize: none;
}
.tag-small::placeholder { color: var(--soft); opacity: 0.5; }
.tag-small:focus-visible { outline: none; border-bottom-color: var(--red); }

/* my santa: their wish */
.ms-wish { margin: 10px 20px 0 26px; transform: rotate(0.8deg); }
.ms-wish[hidden] { display: none; }
.ms-wish .twine { left: 8px; width: 60px; }
.ms-wish .tag { padding: 12px 18px 14px 52px; clip-path: polygon(38px 0, 100% 0, 100% 100%, 38px 100%, 0 50%); }
.ms-wish-text { font-family: var(--hand); font-weight: 600; font-size: 26px; line-height: 1.15; overflow-wrap: anywhere; color: oklch(0.28 0.07 260); margin-top: 2px; }

/* unmasking */
.ms-unmask { margin: 14px 20px 0; }
.ms-unmask[hidden] { display: none; }
.cn-unmasked { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.cn-note { margin: 0; color: var(--soft); font-size: 13px; }
.cn-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cn-tag {
  position: relative; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 16px 10px 44px; min-height: 52px;
  background: var(--tag); border-radius: 6px; box-shadow: 0 2px 0 var(--kraft-dark), 0 8px 12px -8px oklch(0.3 0.03 50 / 0.4);
  clip-path: polygon(30px 0, 100% 0, 100% 100%, 30px 100%, 0 50%); transform: rotate(var(--tilt, 0deg));
}
.cn-tag .tag-hole { left: 16px; top: 50%; margin-top: -5px; }
.cn-code { font-size: 24px; color: var(--soft); overflow-wrap: anywhere; }
.cn-arrow { color: var(--red); font-weight: 700; }
.cn-real { font-size: 19px; overflow-wrap: anywhere; }

.tag-screen.is-codenames .tag-input { font-size: 40px; padding-right: 52px; }
