.site-header, .shortcut-grid { background: #ffcdd2; }
.brand { display: flex; align-items: center; justify-content: space-between; padding: 5px 0; min-height: 86px; }
.brand img { width: min(14vw,84px); height: auto; aspect-ratio: 84 / 76; }
.brand strong { flex: 1; text-align: center; color: #087338; font-size: clamp(28px,7vw,48px); }
.red-strip { min-height: 24px; line-height: 24px; margin: 2px 0; text-align: center; background: #d32f2f; color: white; border-radius: 5px; font-size: 14px; }
.calendar-strip { white-space: nowrap; overflow: hidden; font-size: 13px; }
.shortcut-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); grid-template-rows: repeat(3,1fr); gap: 4px 10px; min-height: 88px; padding: 3px 8px; align-items: center; }
.shortcut-grid a { display: block; min-width: 0; padding: 0 6px; line-height: 22px; border-radius: 12px; color: #fff; background: linear-gradient(#ff8983,#f70000); text-align: center; font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shortcut-empty { grid-column: 1 / -1; grid-row: 1 / -1; text-align: center; color: #a83a44; }
.notice-bar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; margin-top: 4px; background: #fff9ee; color: #d9a66c; }
.notice-icon { flex: 0 0 20px; width: 20px; height: 20px; }
.notice-window { overflow: hidden; flex: 1; }
.notice-window p { width: max-content; max-width: none; white-space: nowrap; animation: notice-scroll 25s linear infinite; }
@keyframes notice-scroll { from { transform: translateX(0); } to { transform: translateX(-60%); } }
.draw-section { background: #ffcdd2; }
.draw-tabs { display: flex; background: #fff; }
.draw-tabs button { flex: 1; padding: 5px; min-height: 28px; border: 1px solid #a9a9a9; background: #fff; color: #111; font-size: 12px; }
.draw-tabs button[aria-selected="true"] { background: #ffcdd2; border-color: #d32f2f; color: #d32f2f; }
.draw-title { display: flex; align-items: center; justify-content: space-between; gap: 5px; padding: 10px 8px 8px; min-height: 52px; font-size: 14px; }
.draw-title > span { white-space: nowrap; }
.draw-title b { font-weight: 400; }
.draw-numbers { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)) 16px minmax(0,1fr); align-items: start; gap: 5px; padding: 16px 8px 18px; }
.ball { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; container-type: inline-size; }
.ball b { display: grid; place-items: center; width: 100%; aspect-ratio: 1; background: url('../images/ball-blue.png') center / contain no-repeat; color: #080808; font: 700 38cqw/1 Arial,sans-serif; }
.ball-red b { background-image: url('../images/ball-red.png'); }
.ball-green b { background-image: url('../images/ball-green.png'); }
.ball small { display: block; width: 100%; margin-top: 5px; color: #ed7a00; font-size: 14px; font-weight: 700; text-align: center; white-space: nowrap; }
.ball:nth-child(7) { grid-column: 8; }
.ball:nth-child(7)::before { content: "+"; position: absolute; right: calc(100% + 5px); top: 0; display: grid; place-items: center; width: 16px; height: 100cqw; color: #111; font-size: 24px; line-height: 1; font-weight: 700; text-align: center; }
.ball:not([data-number]):not(.ball-sealed) b { background-image: none; border: 1px solid #d89ba3; border-radius: 50%; }
.ball:not([data-number]):not(.ball-sealed) small { visibility: hidden; }
.ball-sealed b { font-size: 28px; }
.draw-pending { grid-column: 1 / -1; padding: 30px 0; text-align: center; color: #955761; }
.draw-info { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; min-height: 40px; background: #a4e0d8; color: #f60; font-weight: 700; }
.draw-info button { padding: 3px 10px; border: 0; border-radius: 4px; background: #ffc; color: #f60; }
.draw-status { display: flex; gap: 8px; font-size: 12px; color: #9c2222; }
.draw-status:not(:has(> :not([hidden]))) { display: none; }
.backup-domains { margin: 4px 0; padding: 10px 7px; border: .5em solid transparent; border-radius: 8px; background: linear-gradient(#fff,#fff) padding-box,repeating-linear-gradient(-45deg,#9a0001,red 12.5%,transparent 0,transparent 25%,#058d45 0,#014e1e 37.5%,transparent 0,transparent 50%) 0/1.5em 1.5em; text-align: center; }
.backup-domains h2 { margin-bottom: 12px; color: #f58219; font-size: 18px; }
.backup-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.backup-links a { color: #e33e2b; font-size: 20px; overflow-wrap: anywhere; }
.backup-links .empty-panel { grid-column: 1/-1; }
.banner { position: relative; }
.banner img { display: block; width: 100%; }
.banner > button { width: 50%; border: 1px solid #ddd; background: #fff; }
.home-content-item, .related-predictions { margin-top: 5px; border: 1px solid #ddd; }
.home-content-item h2, .related-predictions h2 { padding: 0 8px; color: #fff; background: linear-gradient(#fa3b3b,#d32f2f); font-size: 18px; line-height: 42px; text-align: center; }
.reference-title-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; }
.reference-title-list a { padding: 12px 5px; text-align: center; background: #fff; color: #d00000; border: 1px solid #ddd; }
.home-footnote { padding: 18px; text-align: center; color: #555; }
.app-download { margin: 5px 0; padding-bottom: 5px; background: #f3f3ae; color: #333; text-align: center; font-size: 13px; }
.app-download-row { display: flex; align-items: center; margin-bottom: 10px; }
.app-icon { flex: 0 0 100px; padding: 10px; }
.app-icon img { display: block; margin: 0 auto 4px; }
.app-icon span { display: block; }
.app-download-row p { padding: 0 10px; line-height: 18px; text-align: left; text-indent: 2em; }
.app-download button { margin: 10px 0; padding: 5px 25px; border: 1px solid #d32f2f; border-radius: 18px; color: #fff; background: linear-gradient(#fa3b3b,#d32f2f); box-shadow: 0 10px 14px -7px #d32f2f; font-size: 16px; cursor: default; }
.about-content { padding: 5px; font-size: 13px; line-height: 1.8; }
.about-content h1 { font-size: 20px; margin: 10px 0; }
.about-content p { margin: 12px 0; }
@media (max-width: 515px) {
  .brand { min-height: 70px; }
  .shortcut-grid { gap: 4px 5px; padding-inline: 4px; }
  .shortcut-grid a { padding: 0 3px; font-size: 12px; }
  .draw-title { font-size: 12px; min-height: 44px; padding: 8px 4px; }
  .draw-numbers { gap: 2px; padding: 10px 4px 12px; grid-template-columns: repeat(6,minmax(0,1fr)) 12px minmax(0,1fr); }
  .ball small { font-size: 12px; }
  .ball:nth-child(7)::before { width: 12px; right: calc(100% + 2px); font-size: 20px; }
  .draw-info { font-size: 12px; padding-inline: 6px; }
}
@media (max-width: 360px) { .draw-title { flex-wrap: wrap; } .shortcut-grid a { font-size: 11px; } }
