.tool-tabs { display: flex; gap: 5px; width: fit-content; margin: 0 0 30px; padding: 5px; border: 1px solid #303442; border-radius: 12px; background: #191d27; }
.tool-tabs button { border: 0; border-radius: 8px; background: transparent; color: #a6aec1; min-width: 104px; padding: 11px 22px; font-size: 13px; font-weight: 650; }
.tool-tabs button[aria-selected=true] { background: #c4b5fd; color: #221b38; box-shadow: 0 3px 10px #0002; }
.tool-tabs button span { margin-left: 6px; font-size: 8px; letter-spacing: 1px; opacity: .7; }
body[data-tool=pick] [data-roulette] { display: none !important; }
body[data-tool=pick] { background: radial-gradient(ellipse at 65% 0%, #30294466, transparent 50%), #10121a; }
body[data-tool=pick].readonly main { max-width: 1510px; }
.pick-heading { display: flex; justify-content: space-between; align-items: center; margin: 0 0 30px; }
.pick-heading h1 { font-size: clamp(26px, 3vw, 36px); }
.pick-heading h1 span { color: #ccbbff; }
.pick-heading > div > p:last-child { margin: 12px 0 0; color: #9da6bb; font-size: 13px; }
.pick-spark { color: #c1b0ff; font-size: 54px; padding: 0 16px; }
.pick-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); align-items: start; gap: 24px; }
.pick-sidebar { display: grid; gap: 16px; }
.pick-card { min-width: 0; background: #1b1e2a; border: 1px solid #333545; border-radius: 18px; padding: 23px; }
.pick-card .eyebrow { font-size: 8px; letter-spacing: 1.5px; color: #ad9cd6; }
.pick-card h2 { font-size: 17px; color: #f1edff; margin: 0 0 5px; }
.pick-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pick-fields label { color: #b9bed1; }
.pick-fields input { font-size: 18px; font-weight: 650; }
.pick-hint { font-size: 11px; color: #969eb5; line-height: 1.9; margin: 14px 0; }
.pick-primary, .pick-secondary { width: 100%; border: 0; border-radius: 9px; padding: 12px 14px; font-size: 12px; font-weight: 650; }
.pick-primary { background: #c7b5ff; color: #281b45; display: flex; justify-content: space-between; align-items: center; }
.pick-primary span { font-size: 18px; }
.pick-secondary { background: #303548; color: #e1d8ff; margin-top: 13px; }
#pick-link { display: block; margin-top: 16px; padding: 12px; border-radius: 8px; border: 1px solid #373b4f; background: #121621; color: #c7b5ff; font-size: 10px; line-height: 1.8; overflow-wrap: anywhere; }
.pick-storage-note { margin: 2px 4px; color: #838da3; font-size: 10px; line-height: 1.9; }
.pick-board-panel { --board-bg: #eeeaf9; --cell: #8673c8; --cell-deep: #6955ab; --ink: #473b67; min-width: 0; min-height: 540px; padding: clamp(18px, 2.5vw, 36px); border: 1px solid #ffffff40; border-radius: 24px; background: radial-gradient(ellipse at top right, #ffffffb0, transparent 75%), var(--board-bg); color: var(--ink); box-shadow: 0 18px 60px #0002; transition: background-color .3s; color-scheme: light; }
.pick-board-panel[data-theme="1"] { --board-bg: #e0f1f2; --cell: #4b98aa; --cell-deep: #327184; --ink: #2c5761; }
.pick-board-panel[data-theme="2"] { --board-bg: #f9e9df; --cell: #d59974; --cell-deep: #b17854; --ink: #7d5138; }
.pick-board-panel[data-theme="3"] { --board-bg: #e7efdf; --cell: #83a167; --cell-deep: #617f46; --ink: #496234; }
.pick-board-panel[data-theme="4"] { --board-bg: #f4e4ec; --cell: #bc7fa0; --cell-deep: #9b5c7e; --ink: #74465d; }
.pick-board-panel[data-theme="5"] { --board-bg: #e5eaf8; --cell: #7d93ca; --cell-deep: #5c72a9; --ink: #3f527f; }
.pick-board-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pick-board-top .eyebrow { color: var(--ink); opacity: .65; font-size: 9px; }
.pick-board-top h2 { font-size: clamp(16px, 1.8vw, 22px); letter-spacing: -.7px; }
.pick-reset { flex: 0 0 auto; padding: 9px 13px; border: 1px solid #ffffff; border-radius: 9px; background: #ffffffa8; color: var(--ink); font-size: 11px; }
.pick-stats { display: flex; flex-wrap: wrap; gap: 9px; margin: 22px 0 0; }
.pick-stats > span { display: flex; align-items: center; gap: 9px; padding: 8px 13px; border-radius: 30px; background: #ffffffa0; font-size: 11px; }
.pick-stats strong { font-size: 16px; }
#pick-status { min-height: 19px; color: var(--ink); opacity: .85; font-size: 11px; line-height: 1.8; margin: 16px 0; overflow-wrap: anywhere; }
#pick-status[data-error=true] { color: #a72d43; opacity: 1; }
.pick-empty { display: flex; min-height: 340px; align-items: center; justify-content: center; flex-direction: column; text-align: center; }
.pick-empty > span { font-size: 65px; color: var(--cell); margin-bottom: 20px; }
.pick-empty strong { font-size: 17px; }
.pick-empty p { font-size: 12px; line-height: 1.8; opacity: .75; }
.pick-capture-note { display: none; }
.pick-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(9px, 1.25vw, 18px); }
.pick-cell { min-width: 0; min-height: 72px; aspect-ratio: 1.12; border: 1px solid #ffffff35; border-radius: 14px; display: flex; align-items: center; justify-content: center; gap: 7px; flex-direction: column; background: linear-gradient(145deg, #ffffff13, transparent), var(--cell); color: #fff; box-shadow: 0 5px 0 var(--cell-deep), 0 8px 14px #0001; font-size: clamp(18px, 2.2vw, 30px); font-weight: 750; position: relative; }
.pick-cell:not(:disabled):hover { transform: translateY(-3px); }
.pick-cell:not(:disabled):active { transform: translateY(3px); box-shadow: 0 2px 0 var(--cell-deep); }
.pick-cell:disabled { cursor: default; opacity: 1; }
.pick-cell small { font-size: clamp(12px, 1.25vw, 17px); letter-spacing: .1em; font-weight: 650; }
.pick-cell[data-result=lose] { background: #d85e71; box-shadow: 0 4px 0 #b74256; }
.pick-cell[data-result=win] { background: #349c72; box-shadow: 0 4px 0 #237451, 0 0 25px #349c7225; }
.pick-cell[data-result=win]::after { content: '✦'; position: absolute; top: 8px; right: 10px; font-size: 13px; color: #e7ffb4; }
.pick-cell[data-pending=true] { opacity: .6; }
.pick-result { margin-top: 22px; padding: 14px 18px; border-radius: 12px; background: #ffffffb5; font-weight: 650; font-size: 14px; text-align: center; }
.pick-result[data-win=true] { color: #237451; }
.pick-footer { margin: 28px 0; color: #8c94ab; text-align: center; font-size: 11px; }
.pick-card form > label { display: block; margin: 14px 0 8px; color: #aab2c6; font-size: 12px; }
.pick-card form > input { width: 100%; min-width: 0; box-sizing: border-box; }
.pick-mode-choice { display: flex; align-items: flex-start; gap: 9px; margin-top: 18px; color: #e1d8ff; font-size: 12px; line-height: 1.6; cursor: pointer; }
.pick-mode-choice input { flex: 0 0 auto; width: 16px; height: 16px; margin: 2px 0 0; accent-color: #c7b5ff; }
#pick-auth-phrase { display: block; padding: 14px 8px; border: 1px solid #695d99; border-radius: 10px; background: #28243c; color: #e3d6ff; text-align: center; font-size: 16px; white-space: nowrap; user-select: all; }
.pick-cell[data-locked=true] { cursor: default; opacity: .82; }
@media(max-width:1000px) { .pick-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 16px; } .pick-card { padding: 18px; } .pick-grid { gap: 10px; } }
@media(max-width:730px) { .pick-layout { grid-template-columns: 1fr; } .pick-sidebar { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; } .pick-storage-note { grid-column: 1/-1; } .pick-card { padding: 16px; } .pick-grid { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; } .pick-cell { min-height: 52px; border-radius: 10px; font-size: 20px; } .pick-cell small { font-size: 11px; } .pick-board-panel { padding: 18px 14px 24px; min-height: 400px; } .pick-heading { margin-bottom: 22px; } .pick-heading h1 { font-size: 26px; } }
@media(max-width:480px) { .pick-sidebar { grid-template-columns: 1fr; } .pick-fields { gap: 16px; } .pick-spark { font-size: 34px; padding: 0; } .pick-board-top h2 { font-size: 15px; } .pick-reset { padding: 8px 10px; font-size: 10px; } .pick-cell { min-height: 50px; font-size: 17px; gap: 4px; } .pick-cell[data-result=win]::after { top: 3px; right: 4px; font-size: 9px; } }
@media(prefers-reduced-motion:reduce) { .pick-cell, .pick-board-panel { transition: none; } }
body.pick-only { overflow: hidden; }
body.pick-only .topbar,
body.pick-only .ad-rail,
body.pick-only main > :not(#pick-tool),
body.pick-only .pick-heading,
body.pick-only .pick-sidebar,
body.pick-only .pick-footer { display: none !important; }
body.pick-only .page-shell,
body.pick-only main,
body.pick-only #pick-tool,
body.pick-only .pick-layout { display: block; width: auto; min-width: 0; max-width: none; margin: 0; padding: 0; }
body.pick-only .pick-board-panel { position: fixed; inset: 0; z-index: 10; width: 100%; height: 100vh; height: 100dvh; min-height: 0; margin: 0; padding: clamp(8px, 2vh, 16px); border: 0; border-radius: 0; display: grid; grid-template-rows: auto auto auto minmax(0,1fr) auto; gap: clamp(4px, 1vh, 8px); box-shadow: none; }
body.pick-only .pick-board-top { grid-row: 1; min-width: 0; }
body.pick-only .pick-board-top .eyebrow { display: none; }
body.pick-only .pick-board-top h2 { font-size: clamp(12px, 3vh, 18px); }
body.pick-only .pick-reset { padding: 6px 11px; font-size: 11px; }
body.pick-only .pick-stats { grid-row: 2; margin: 0; gap: 8px; }
body.pick-only .pick-stats > span { padding: 4px 10px; font-size: 10px; }
body.pick-only .pick-stats strong { font-size: 13px; }
body.pick-only #pick-status { grid-row: 3; min-height: 0; margin: 0; font-size: 10px; }
body.pick-only #pick-status:not([data-error=true]) { display: none; }
body.pick-only .pick-grid { grid-row: 4; min-height: 0; min-width: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 0 0 6px; grid-template-columns: repeat(var(--pick-columns,5), minmax(0,1fr)); grid-auto-rows: var(--pick-row-size, 1fr); gap: var(--pick-gap,8px); align-content: start; }
body.pick-only .pick-cell { min-height: 0; aspect-ratio: auto; padding: 3px; gap: 2px; border-radius: var(--pick-cell-radius,8px); font-size: var(--pick-number-size,18px); line-height: 1.05; }
body.pick-only .pick-cell small { font-size: max(9px, calc(var(--pick-number-size,18px) * .52)); line-height: 1; }
body.pick-only .pick-cell:not(:disabled):hover, body.pick-only .pick-cell:not(:disabled):active { transform: none; }
body.pick-only .pick-cell[data-result=win]::after { display: none; }
body.pick-only .pick-result { grid-row: 5; margin: 0; padding: 5px 10px; font-size: 11px; }
body.pick-only .pick-empty { grid-row: 4; min-height: 0; }
body.pick-only .pick-empty > span { font-size: 32px; margin-bottom: 10px; }
body.pick-only .pick-empty strong { font-size: 14px; }
body.pick-only .pick-empty p { font-size: 11px; }
body.pick-only .pick-standard-note { display: none; }
body.pick-only .pick-capture-note { display: block; }

.pick-cell[data-recent=true]{box-shadow:inset 0 0 0 3px #fff2b0,inset 0 0 0 6px #3b2d5daa,0 5px 0 var(--cell-deep);z-index:1}
