  * { box-sizing: border-box; }
  body {
    margin: 0;
    padding: 0;
    background-color: #08083a;
    background-image:
      radial-gradient(#ffffff 1px, transparent 1px),
      radial-gradient(#ffffff 1px, transparent 1px);
    background-size: 60px 60px;
    background-position: 0 0, 30px 30px;
    font-family: "Comic Sans MS", "Chalkboard SE", "Marker Felt", cursive, sans-serif;
    color: #1a1a4d;
  }

  .page {
    max-width: 780px;
    margin: 0 auto;
    padding: 14px 14px 60px;
  }

  /* Marquee banner */
  .banner {
    background: #ffe600;
    border: 4px double #1a1a4d;
    padding: 6px 0;
    overflow: hidden;
    white-space: nowrap;
    margin-bottom: 10px;
  }
  .banner span {
    display: inline-block;
    padding-left: 100%;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 1px;
    animation: scroll-left 16s linear infinite;
  }
  @keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
  }

  .titlecard {
    background: #ffffff;
    border: 6px ridge #1a1a4d;
    text-align: center;
    padding: 10px 8px 4px;
    margin-bottom: 10px;
  }
  .titlecard h1 {
    font-size: 34px;
    margin: 4px 0 0;
    color: #b5122e;
    text-shadow: 2px 2px 0 #ffe600, -1px -1px 0 #1a1a4d;
    letter-spacing: 1px;
  }
  .titlecard .subtitle {
    font-size: 13px;
    font-weight: bold;
    color: #1a1a4d;
    margin: 2px 0 8px;
  }
  .badgerow {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
  }
  .badge {
    background: #1a1a4d;
    color: #ffe600;
    font-size: 10px;
    font-weight: bold;
    padding: 3px 8px;
    border: 2px solid #ffe600;
    white-space: nowrap;
  }
  .blink {
    animation: blink 1s steps(1) infinite;
  }
  @keyframes blink {
    50% { opacity: 0; }
  }

  .maincard {
    background: #d8e4ff;
    border: 5px groove #1a1a4d;
    padding: 16px;
    position: relative;
  }

  .drummy-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 8px;
  }

  .speech {
    background: #fff;
    border: 3px solid #1a1a4d;
    border-radius: 18px;
    padding: 10px 14px;
    max-width: 480px;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: -6px;
    position: relative;
    z-index: 2;
    transition: opacity 0.2s ease;
  }

  .drummy-img {
    width: 200px;
    image-rendering: -webkit-optimize-contrast;
    filter: drop-shadow(3px 4px 0 rgba(0,0,0,0.25));
  }
  .drummy-img.thinking {
    animation: wiggle 0.5s ease-in-out infinite;
  }
  @keyframes wiggle {
    0%, 100% { transform: rotate(-2deg) translateY(0); }
    50% { transform: rotate(2deg) translateY(-4px); }
  }

  .searchbox {
    background: #fff;
    border: 3px inset #1a1a4d;
    padding: 14px;
    max-width: 520px;
    margin: 6px auto 0;
    text-align: center;
  }
  .searchbox label {
    display: block;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 6px;
  }
  .searchrow {
    display: flex;
    gap: 6px;
  }
  .searchrow input[type="text"] {
    flex: 1;
    padding: 8px;
    font-size: 14px;
    border: 2px solid #1a1a4d;
    font-family: inherit;
  }
  .searchrow button {
    background: #b5122e;
    color: #fff;
    font-weight: bold;
    border: 3px outset #ff5c73;
    padding: 8px 14px;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
  }
  .searchrow button:active {
    border-style: inset;
  }
  .hint {
    font-size: 10px;
    color: #444;
    margin-top: 6px;
  }

  .response {
    max-width: 520px;
    margin: 14px auto 0;
    background: #fffbdc;
    border: 3px dashed #1a1a4d;
    padding: 12px;
    font-size: 14px;
    display: none;
  }
  .response.show { display: block; }
  .response .tag {
    font-weight: bold;
    color: #b5122e;
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
  }
  .response .thinkline {
    font-style: italic;
  }

  .footerbar {
    text-align: center;
    margin-top: 14px;
    font-size: 10px;
    color: #cfd8ff;
  }
  .counter {
    display: inline-block;
    background: #000;
    color: #0f0;
    font-family: "Courier New", monospace;
    padding: 2px 6px;
    letter-spacing: 2px;
    border: 2px solid #444;
    font-size: 12px;
  }
  .stripes {
    height: 14px;
    background: repeating-linear-gradient(45deg, #ffe600, #ffe600 10px, #1a1a4d 10px, #1a1a4d 20px);
    margin: 10px 0;
    border: 2px solid #1a1a4d;
  }