/* Grouped lottery guide. Scoped separately so cached general styles cannot hide it. */
.lottery-guide { color: #c3d2de; }
.lottery-intro { padding: 18px 20px; border: 1px solid #2c465a; border-radius: 10px; background: #0c1c2c; }
.lottery-intro p { margin: 0; line-height: 1.65; max-width: 75ch; }
.lottery-rules { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.lottery-rules span { padding: 5px 10px; border: 1px solid #355064; border-radius: 5px; font-size: 12px; color: #b1c7d8; background: #13283a; }
.lottery-rules strong { color: #f3d18d; }
.lottery-guide .lottery-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 24px 0 14px; padding: 16px; border: 1px solid #29465b; border-radius: 9px; background: #0b1a28; color-scheme: dark; }
.lottery-guide .lottery-filters label { display: grid; gap: 7px; flex: 1 1 155px; color: #9eb7cb; font-size: 12px; font-weight: 600; }
.lottery-guide .lottery-filters .lottery-search { flex: 2 1 220px; }
.lottery-guide .lottery-filters :is(input[type=search], select) { box-sizing: border-box; width: 100%; min-width: 0; height: 42px; padding: 0 12px; font: 400 14px var(--sans, sans-serif); border: 1px solid #36556b; border-radius: 6px; background: #112638; color: #e1ebf2; }
.lottery-guide .lottery-filters input::placeholder { color: #8099ad; opacity: 1; }
.lottery-guide .lottery-filters option { background: #112638; color: #e1ebf2; }
.lottery-guide .lottery-filters button { height: 42px; padding: 0 20px; border: 1px solid #ab8645; border-radius: 6px; background: #d2ad68; color: #14202b; font: 700 14px var(--sans, sans-serif); cursor: pointer; }
.lottery-guide .lottery-filters button:hover { background: #eac786; }
.lottery-guide .lottery-clear { display: flex; align-items: center; height: 42px; padding: 0 6px; color: #a9c8df; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.lottery-clear:hover { color: #e2c58f; }
.lottery-catalog-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: #91acbf; font-size: 12px; line-height: 1.5; }
.lottery-catalog-note strong { color: #d8e4ed; }
.lottery-category { margin: 26px 0; }
.lottery-category h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 700 23px/1.3 var(--serif); color: #f1d69e; }
.lottery-category h2 span { display: inline-grid; place-items: center; min-width: 25px; height: 23px; padding: 0 5px; border: 1px solid #355166; border-radius: 5px; font: 500 12px var(--sans, sans-serif); color: #9eb8cb; background: #132739; }
.lottery-list { display: grid; gap: 8px; }
.lottery-card { min-width: 0; border: 1px solid #2d495e; border-radius: 8px; background: linear-gradient(100deg, #112638, #0d1c2b); overflow: hidden; }
.lottery-card > summary, .lottery-card-summary { display: grid; grid-template-columns: minmax(180px, 1fr) auto 118px 14px; align-items: center; gap: 14px; padding: 14px 16px; list-style: none; }
.lottery-card > summary { cursor: pointer; }
.lottery-card > summary::-webkit-details-marker { display: none; }
.lottery-card > summary:hover { background: #173247; }
.lottery-card[open] { border-color: #67849b; }
.lottery-card[open] > summary { background: #183246; border-bottom: 1px solid #365469; }
.lottery-guide .lottery-item { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lottery-guide .lottery-item img { flex: 0 0 44px; width: 44px; height: 44px; object-fit: contain; border: 1px solid #36546a; border-radius: 7px; background: radial-gradient(ellipse at center, #294359, #0b1926); }
.lottery-item > div { min-width: 0; }
.lottery-item strong { display: block; color: #edf1ed; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.lottery-item small, .lottery-chance small { display: block; margin-top: 4px; color: #92acbf; font-size: 11px; line-height: 1.4; }
.lottery-attributes { display: flex; flex-wrap: wrap; gap: 5px; max-width: 195px; }
.lottery-attributes > span { padding: 3px 7px; border: 1px solid #304c60; border-radius: 4px; color: #9fb6c8; font-size: 11px; white-space: nowrap; }
.lottery-attributes .lottery-quality { width: 100%; color: #d1b97e; border-color: #625536; background: #302d22; text-align: center; }
.lottery-attributes b { color: #e7d4a5; font-weight: 600; }
.lottery-attributes b.lottery-bless { color: #edb07d; }
.lottery-chance { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lottery-chance strong { color: #f2cf84; font-size: 15px; font-weight: 600; }
.lottery-chevron { color: #9db6c8; font-size: 20px; transition: transform .15s ease; }
.lottery-card[open] .lottery-chevron { transform: rotate(180deg); }
.lottery-breakdown { padding: 14px 16px 16px; }
.lottery-breakdown p { margin: 0 0 12px; max-width: 85ch; font-size: 12px; line-height: 1.6; color: #a5bbcb; }
.lottery-matrix-scroll { overflow-x: auto; border: 1px solid #2e4a5e; border-radius: 6px; scrollbar-color: #48687e #0b1926; }
.lottery-matrix { width: 100%; border-collapse: collapse; font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lottery-matrix :is(th, td) { padding: 10px 9px; text-align: right; }
.lottery-matrix thead { color: #9eb8ca; background: #0a1926; }
.lottery-matrix th:first-child { text-align: left; }
.lottery-matrix tbody tr { border-top: 1px solid #2b4355; }
.lottery-matrix tbody tr:nth-child(even) { background: #132a3c; }
.lottery-matrix td { color: #c4d3de; }
.lottery-q-6 { color: #8cc5ed; }.lottery-q-7 { color: #a0d2bd; }.lottery-q-8 { color: #d9b1e4; }.lottery-q-9 { color: #f2cb7d; }
.lottery-supplies { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lottery-supplies .lottery-card-summary { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.lottery-supplies .lottery-chance strong { font-size: 14px; }
.lottery-supplies .lottery-item { gap: 9px; }
.lottery-supplies .lottery-item strong { font-size: 13px; }
.lottery-footnote, .lottery-empty { margin: 18px 0; color: #91aabd; font-size: 12px; line-height: 1.7; }
@media (max-width: 1120px) and (min-width: 851px), (max-width: 600px) {
    .lottery-card > summary { grid-template-columns: minmax(0, 1fr) auto 12px; gap: 10px; padding: 12px; }
    .lottery-attributes { grid-row: 2; grid-column: 1 / 3; max-width: none; gap: 6px; }
    .lottery-attributes .lottery-quality { width: auto; }
    .lottery-chance { grid-row: 1; grid-column: 2; }
    .lottery-chevron { grid-row: 1; grid-column: 3; }
    .lottery-supplies { grid-template-columns: 1fr; }
    .lottery-supplies .lottery-chance { grid-column: 2; }
}
@media (max-width: 420px) {
    .lottery-guide .lottery-filters label { flex-basis: 100%; }
    .lottery-intro { padding: 15px; }
    .lottery-item strong { font-size: 13px; }
    .lottery-item small { font-size: 10px; }
    .lottery-chance strong { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .lottery-chevron { transition: none; } }
