.tatou-odai {
  --to-ink: #172f3d;
  --to-soft: #4e626a;
  --to-line: #c8d3d5;
  box-sizing: border-box;
  max-width: 760px;
  margin: 24px auto;
  padding: clamp(16px, 4vw, 38px);
  border: 1px solid var(--to-line);
  border-radius: 18px;
  color: var(--to-ink);
  background: #f7f7f2;
  font: 1rem/1.6 "BIZ UDPGothic", "Yu Gothic", Meiryo, system-ui, sans-serif;
  text-align: left;
}
.tatou-odai *, .tatou-odai *::before, .tatou-odai *::after { box-sizing: border-box; }
.tatou-odai p { margin: 0; }
.tatou-odai .to-header, .tatou-odai .to-timer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
}
.tatou-odai .to-header { justify-content: space-between; margin-bottom: 20px; }
.tatou-odai .to-header h2 {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--to-ink);
  font-size: clamp(21px, 4vw, 30px);
  line-height: 1.35;
}
.tatou-odai .to-header h2::before, .tatou-odai .to-header h2::after { content: none; }
.tatou-odai label { max-width: 100%; color: var(--to-soft); font-size: .85em; font-weight: 700; }
.tatou-odai select, .tatou-odai button {
  max-width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid var(--to-line);
  border-radius: 8px;
  background: #fff;
  color: var(--to-ink);
  font: inherit;
  line-height: 1.4;
}
.tatou-odai select { margin-left: 4px; }
.tatou-odai button { font-weight: 700; box-shadow: none; cursor: pointer; }
.tatou-odai button:hover:not(:disabled) { background: #e8edec; }
.tatou-odai button:disabled { opacity: .55; cursor: default; }
.tatou-odai :is(select, button):focus-visible { outline: 3px solid #15738c; outline-offset: 3px; }
.tatou-odai .to-card {
  display: grid;
  align-content: space-between;
  gap: 24px;
  min-height: 230px;
  padding: clamp(20px, 5vw, 40px);
  border: 1px solid #9faeae;
  border-top: 5px solid #efb85d;
  border-radius: 12px;
  background: #fffdf7;
  box-shadow: 0 4px 0 -1px #e4e4d9, 0 5px 0 -1px #b7bfbc;
}
.tatou-odai .to-category { color: var(--to-soft); font-size: .85em; font-weight: 700; }
.tatou-odai .to-prompt {
  margin: 14px 0 0;
  font-size: clamp(22px, 4.6vw, 36px);
  font-weight: 700;
  line-height: 1.55;
  line-break: strict;
  overflow-wrap: anywhere;
}
.tatou-odai .to-example:not(:empty) {
  margin-top: 8px;
  color: var(--to-soft);
  overflow-wrap: anywhere;
}
.tatou-odai button.to-draw {
  justify-self: start;
  padding: 10px 24px;
  border-color: var(--to-ink);
  background: var(--to-ink);
  color: white;
}
.tatou-odai button.to-draw:hover { background: #2d5463; }
.tatou-odai .to-timer { margin-top: 24px; gap: 8px; }
.tatou-odai .to-dial { margin-right: auto; }
.tatou-odai .to-dial span { display: block; color: var(--to-soft); font-size: .8em; }
.tatou-odai output {
  color: var(--to-ink);
  font: 700 29px/1.3 "Courier New", monospace;
  font-variant-numeric: tabular-nums;
}
.tatou-odai .to-status:not(:empty) {
  margin: 16px 0 0;
  padding: 10px 14px;
  border-left: 4px solid #b77619;
  background: #fff3d8;
  font-weight: 700;
}
.tatou-odai .to-examples {
  margin-top: 12px;
  padding: 10px 14px;
  border: 1px solid var(--to-line);
  border-radius: 8px;
  background: #fffdf7;
}
.tatou-odai .to-examples summary { cursor: pointer; font-weight: 700; }
.tatou-odai .to-examples p { margin-top: 8px; }
@media (max-width: 480px) {
  .tatou-odai .to-timer { display: grid; grid-template-columns: 1fr 1fr; }
  .tatou-odai .to-dial { display: flex; align-items: baseline; gap: 8px; grid-column: 1 / -1; }
  .tatou-odai button { padding-inline: 8px; }
}
