:root { --home-tint: #e1fbe1; --home-accent: #008000; --shortcut-top: #00a000; --shortcut-bottom: #008000; }
.site-header, .shortcut-grid { background: var(--home-tint); }
.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: var(--home-accent); 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; justify-self: center; max-width: 100%; min-width: 0; padding: 0 9px; line-height: 22px; border-radius: 7px; color: #fff; background: linear-gradient(var(--shortcut-top),var(--shortcut-bottom)); box-shadow: 0 4px 7px #0002; text-align: center; font-size: 12px; 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: var(--home-tint); }
.draw-tabs { display: flex; background: #fff; }
.draw-tabs button { flex: 0 1 auto; padding: 4px 5px; min-height: 28px; border: 1px solid #bdbdbd; background: #f4f4f4; color: #aaa; font-size: 14px; }
.draw-tabs button[aria-selected="true"] { background: var(--home-tint); border-color: var(--home-accent); color: var(--home-accent); font-weight: 700; }
.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)) 28px 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: 9px; color: #ed7a00; font-size: clamp(10px,18cqw,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: 28px; height: 100cqw; color: #111; font-size: 48px; 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: 48cqw; }
.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 { flex-shrink: 0; padding: 3px 10px; border: 0; border-radius: 4px; background: #ff8000; color: #fff; }
.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: 8px; padding-bottom: 6px; border-bottom: 1px solid #eee; color: #f58219; font-size: 18px; }
.backup-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.backup-links a { color: #0089d9; font-size: 14px; text-decoration: underline; 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(var(--shortcut-top),var(--shortcut-bottom)); 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-number-attributes { background: #fff; }
.home-number-attributes h2 { height: 30px; margin: 10px 0 4px; color: #fff; background: linear-gradient(var(--shortcut-top),var(--shortcut-bottom)); line-height: 30px; text-align: center; font-size: 14px; font-weight: 700; }
.home-number-attributes h2:first-child { margin-top: 0; }
.home-zodiac-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 0; padding: 0; list-style: none; }
.home-zodiac-item { min-width: 0; padding: 5px 0; }
.home-zodiac-identity { display: flex; align-items: center; justify-content: center; }
.home-zodiac-identity img { width: 40px; height: 40px; margin: 0 4px; }
.home-zodiac-opposite { margin-left: 4px; color: #666; font-size: 12px; white-space: nowrap; }
.home-zodiac-numbers { text-align: center; }
.home-attribute-number { display: inline-block; height: 18px; margin: 0 2px; padding: 0 2px; border-radius: 3px; color: #fff; font-size: 12px; line-height: 18px; }
.home-attribute-number.red { background: #f00; }
.home-attribute-number.blue { background: #36f; }
.home-attribute-number.green { background: #093; }
.home-attribute-table { width: 100%; border-collapse: collapse; border-spacing: 0; font-size: 13px; }
.home-attribute-table th, .home-attribute-table td { padding: 5px; border: 1px solid #f1f1f1; background: #fff; }
.home-attribute-table th { width: 60px; text-align: center; font-weight: 400; }
.home-attribute-table td { text-align: left; }
.home-attribute-table [data-element="金"] th { color: #806600; }
.home-attribute-table [data-element="木"] th { color: #237823; }
.home-attribute-table [data-element="水"] th { color: #176fa8; }
.home-attribute-table [data-element="火"] th { color: #b34700; }
.home-attribute-table [data-element="土"] th { color: #806000; }
.home-attribute-table [data-parity] th, #home-wave-blue th { color: #36f; }
#home-wave-red th { color: #f00; }
#home-wave-green th { color: #093; }
.home-site-disclaimer { margin: 30px 45px; color: rgba(0,0,0,.9); font-size: 13px; font-weight: 700; text-align: center; }
.home-site-disclaimer p { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid currentColor; }
.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 var(--home-accent); border-radius: 18px; color: #fff; background: linear-gradient(var(--shortcut-top),var(--shortcut-bottom)); 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: clamp(10px,24cqw,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; } }
