/* Word Chain — linked word cards; the current word lined up over the new word. */
.dxg .wc { position: relative; height: 100%; display: flex; flex-direction: column; gap: clamp(6px, 1.2vh, 12px); padding: clamp(8px, 1.4vh, 16px) clamp(10px, 2.4vw, 28px); overflow-y: auto; }
.wc-top { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: center; }
.wc-skill { font-family: var(--g-head); font-size: .85rem; padding: 3px 12px; border-radius: 999px; background: #DDF2F0; color: #0E4A49; }
.wc-count { font-family: var(--g-head); color: var(--g-navy); }
.wc-hint { min-height: 34px; font-size: .9rem; padding: 0 14px; }
.wc-hint[hidden] { display: none; }
/* The chain: linked cards that wrap instead of shrinking */
.wc-rail { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 30px; margin: 0; padding: 0; list-style: none; }
.wc-node { position: relative; display: flex; align-items: center; min-height: 48px; padding: 4px 14px; border-radius: 12px; background: #fff; border: 2px solid var(--g-border);
	font-family: var(--g-head); font-weight: 500; font-size: 1.5rem; color: var(--g-navy); }
.wc-node + .wc-node::before { content: ""; position: absolute; left: -30px; top: 50%; width: 30px; height: 4px; margin-top: -2px; background: repeating-linear-gradient(90deg, #C9D6D8 0 6px, transparent 6px 10px); }
.wc-node.is-done { border-color: #7CCBC4; background: #F3FBFA; }
.wc-node.is-done + .wc-node.is-done::before { background: var(--g-aqua); height: 5px; margin-top: -2.5px; border-radius: 3px; }
.wc-node__u.is-changed { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; font-weight: 700; color: #0E4A49; }
.wc-node.is-todo { color: #9FB2B5; border-style: dashed; }
.wc-node.is-goal { border: 2px solid #E0C052; background: #FFF9E8; }
.wc-node.is-goal::after { content: "goal"; position: absolute; top: -10px; right: 6px; padding: 0 6px; border-radius: 6px; background: #F6D878; font-size: .65rem; letter-spacing: .06em; color: #5C4500; }
.wc-node__goal { font-weight: 600; }
.wc-node.is-linked { animation: wc-link .45s ease-out; }
@keyframes wc-link { from { transform: scale(.7); opacity: .3; } }
.wc-rail.is-complete .wc-node { border-color: var(--g-aqua); }
/* Work area */
.wc-work { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(6px, 1.4vh, 12px); }
.wc-task { margin: 0; font-family: var(--g-head); font-weight: 500; font-size: clamp(1.2rem, 1rem + .8vw, 1.5rem); color: var(--g-navy); text-align: center; }
.wc-task b { color: var(--g-blue); }
.wc-compare { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.wc-row { display: grid; grid-template-columns: 64px repeat(var(--n, 3), clamp(64px, 8vw, 88px)) 52px; align-items: center; gap: 10px; }
.wc-compare { --n: 3; }
.wc-row__label { font-family: var(--g-head); font-size: .85rem; color: var(--g-muted); text-align: right; }
.wc-tile, .wc-cell { height: clamp(64px, 9vh, 86px); display: grid; place-items: center; border-radius: 14px; font-family: var(--g-head); font-weight: 500; font-size: clamp(2.4rem, 1.8rem + 2vw, 3.4rem); color: var(--g-navy); }
.wc-tile { margin: 0; padding: 0; cursor: pointer; background: #fff; border: 3px solid #B9C8CA; border-bottom-width: 6px; transition: transform .12s ease, border-color .15s ease; }
.wc-tile:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--g-aqua); }
.wc-tile:focus-visible { outline: 4px solid var(--g-blue); outline-offset: 3px; }
.wc-tile:disabled { cursor: default; }
.wc-tile.is-same { border-style: dotted; color: #6B7684; }
.wc-tile.is-picked { border-color: #E0C052; background: #FFF6D6; box-shadow: 0 0 0 4px rgba(246, 216, 120, .45); }
.wc-tile.is-hinted { outline: 4px dashed #E0C052; outline-offset: 3px; }
.wc-tile.is-new { border-color: var(--g-aqua); background: #E2F5F3; text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 8px; animation: wc-flip .35s ease-out; }
@keyframes wc-flip { 0% { transform: rotateX(90deg); } 100% { transform: none; } }
.wc-cell { border: 2px dashed #D9E3E4; background: #FAFCFC; }
.wc-row--goal .wc-cell { color: #3E5563; }
.wc-cell.is-new { border: 2px solid var(--g-aqua); background: #E2F5F3; text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 8px; color: var(--g-navy); }
.wc-arrow { font-size: 1.4rem; color: var(--g-muted); line-height: 1; }
.wc-hear { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--g-border); background: #fff; cursor: pointer; font-size: 1.2rem; }
.wc-hear:focus-visible { outline: 3px solid var(--g-blue); outline-offset: 2px; }
.wc-ask { margin: 0; min-height: 1.5em; font-family: var(--g-head); font-weight: 500; color: var(--g-blue); text-align: center; max-width: 640px; }
.wc-choices { width: min(100%, 520px); }
.wc-choices .dxq-choices { width: 100%; }
.wc-choices .dxq-choice { min-height: 76px; font-size: clamp(2.2rem, 1.6rem + 1.6vw, 2.8rem); }
.wc-done { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.wc-done__title { margin: 0; font-family: var(--g-head); font-weight: 700; font-size: 2rem; color: var(--g-blue); }
.wc-done__words { margin: 0; font-family: var(--g-head); font-size: 1.4rem; }
.wc-streak { position: absolute; top: 8px; right: 12px; padding: 3px 12px; border-radius: 999px; background: #FFF5D1; border: 2px solid #E9C85A; font-family: var(--g-head); font-weight: 600; font-size: .9rem; color: #5C4500; opacity: 0; transition: opacity .2s; }
.wc-streak.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .wc-tile.is-new, .wc-node.is-linked { animation: none; } }
@media (max-width: 599px) {
	.wc-skill { display: none; }
	.wc-rail { gap: 6px 22px; }
	.wc-node { font-size: 1.15rem; min-height: 40px; padding: 2px 10px; }
	.wc-node + .wc-node::before { left: -22px; width: 22px; }
	.wc-row { grid-template-columns: 44px repeat(var(--n, 3), 60px) 44px; gap: 6px; }
	.wc-tile, .wc-cell { height: 60px; font-size: 2.2rem; }
	.wc-hear { width: 40px; height: 40px; }
	.wc-choices .dxq-choices { grid-template-columns: repeat(3, 1fr); }
	.wc-choices .dxq-choices--3 .dxq-choice:last-child { grid-column: auto; }
	.wc-choices .dxq-choice { min-height: 60px; font-size: 2rem; }
	.wc-streak { position: static; align-self: center; }
}
