/* word-hat — the secret word hat on DFTW workshop 3472 (templates/components/word-hat.php).
   $todo agent scaffold, unrefined: Derek to refine. The word and the hat share one grid
   cell so the word pops out of the hat's opening. Colors come from the scope: when the
   word is out, the section turns to data-emphasis='focused' and the hat repaints itself. */

.word-hat {
	margin-top: var(--above-block);
	display: grid;
	justify-items: center;
	max-width: 20rem;

	.word,
	.stage {
		grid-area: 1 / 1;
	}

	.word {
		z-index: 1;
		margin-top: 0;
	}

	.stage {
		display: grid;
		justify-items: center;
		width: 100%;
		padding-top: 3em;
		cursor: pointer;
	}

	div.stage {
		cursor: auto;
	}

	.hat-and-wand {
		width: 100%;
	}

	.note {
		margin-top: var(--above-block);
		justify-self: start;
	}

	/* An inline action at the end of the note: reads like a link in the sentence. */
	.replay {
		display: inline;
		color: var(--accent);
		text-decoration: underline;
	}
}
