.yomo-tool {
  --yomo-tool-ink: var(--ij-ink, #202124);
  --yomo-tool-muted: var(--ij-muted, #545960);
  --yomo-tool-border: var(--ij-rule, #c7cacf);
  --yomo-tool-surface: var(--ij-paper, #fff);
  --yomo-tool-soft: #f4f5f6;
  --yomo-tool-focus: var(--ij-ink, #202124);
  --yomo-tool-action: #25282b;
  --yomo-tool-on-action: #fff;
  --yomo-tool-space: 1rem;
  color: inherit; font-family: inherit; max-width: 100%; min-width: 0;
  padding-block: var(--yomo-tool-space); line-height: 1.55;
}
.yomo-tool *, .yomo-tool *::before, .yomo-tool *::after { box-sizing: border-box; }
.yomo-tool [hidden] { display: none !important; }
.yomo-tool .yomo-tool-description { margin: 0 0 1.5rem; }
.yomo-tool .yomo-tool-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem 1.25rem; }
.yomo-tool .yomo-tool-field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; font-size: inherit; }
.yomo-tool .yomo-tool-field:has(textarea) { grid-column: 1 / -1; }
.yomo-tool :is(input, select, textarea, button) { font: inherit; color: inherit; max-width: 100%; border: 1px solid var(--yomo-tool-border); border-radius: .375rem; min-height: 44px; padding: .6rem .8rem; background: var(--yomo-tool-surface); }
.yomo-tool :is(textarea, input, select) { width: 100%; }
.yomo-tool textarea { resize: vertical; line-height: 1.5; }
.yomo-tool input[type=checkbox] { width: 24px; height: 24px; min-height: 24px; margin: 10px; }
.yomo-tool :is(button, a.yomo-tool-download) { cursor: pointer; text-transform: none; letter-spacing: normal; font-weight: 600; }
.yomo-tool button[type=submit], .yomo-tool .yomo-tool-download { color: var(--yomo-tool-on-action); background: var(--yomo-tool-action); border-color: var(--yomo-tool-action); }
.yomo-tool .yomo-tool-primary { color: var(--yomo-tool-on-action); background: var(--yomo-tool-action); border-color: var(--yomo-tool-action); }
.yomo-tool :is(button, a, input, select, textarea):focus-visible { outline: 3px solid var(--yomo-tool-focus); outline-offset: 3px; }
.yomo-tool button:disabled { opacity: .55; cursor: wait; }
.yomo-tool .yomo-tool-toolbar, .yomo-tool .yomo-tool-completion { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin-top: 1.25rem; }
.yomo-tool .yomo-tool-status { margin-block: 1rem; overflow-wrap: anywhere; }
.yomo-tool [data-state=error] { border-inline-start: 3px solid currentColor; padding-inline-start: .75rem; }
.yomo-tool .yomo-tool-result { min-width: 0; overflow-wrap: anywhere; }
.yomo-tool .yomo-tool-scroll { overflow: auto; max-height: 32rem; border: 1px solid var(--yomo-tool-border); border-radius: .375rem; }
.yomo-tool :is(pre, code) { white-space: pre-wrap; overflow-wrap: anywhere; }
.yomo-tool pre { padding: 1rem; background: var(--yomo-tool-soft); color: var(--yomo-tool-ink); margin-block: .75rem; }
.yomo-tool table { width: 100%; min-width: 32rem; border-collapse: collapse; font: inherit; }
.yomo-tool details { margin-block: 1rem; }
.yomo-tool summary { cursor: pointer; padding-block: .65rem; }
.yomo-tool .yomo-tool-deck { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: 1rem; }
.yomo-tool .yomo-tool-deck img { width: 100%; height: auto; }
.yomo-tool .yomo-tool-deck figure { margin: 0; min-width: 0; }
.yomo-tool figure { margin: 1rem 0; }
.yomo-tool fieldset { border: 1px solid var(--yomo-tool-border); padding: 1rem; margin: 1rem 0; min-width: 0; }
.yomo-tool legend { padding-inline: .3rem; font-weight: 600; }
.yomo-tool .yomo-tool-page-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,12rem),1fr)); gap: 1rem; padding: 0; list-style: none; margin: 1rem 0; }
.yomo-tool .yomo-tool-page-grid > li { border: 1px solid var(--yomo-tool-border); border-radius: .375rem; padding: 1rem; min-width: 0; }
.yomo-tool .yomo-tool-thumbnail { display: flex; align-items: center; justify-content: center; height: 180px; overflow: hidden; background: var(--yomo-tool-soft); }
.yomo-tool .yomo-tool-thumbnail img { max-width: 120px; max-height: 140px; object-fit: contain; }
.yomo-tool .yomo-tool-comparison { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
@media (max-width:640px) { .yomo-tool .yomo-tool-comparison { grid-template-columns:1fr; } }
.yomo-tool :is(th, td) { min-width: 5rem; padding: .65rem; border-bottom: 1px solid var(--yomo-tool-border); text-align: start; vertical-align: top; }
.yomo-tool :is(canvas, img, video, audio, svg) { max-width: 100%; }
.yomo-tool .yomo-tool-download { display: inline-flex; align-items: center; min-height: 44px; padding: .6rem .8rem; border-radius: .375rem; text-decoration: none; }
.yomo-tool .yomo-tool-note { color: var(--yomo-tool-muted); font-size: .95em; }
.yomo-tool .yomo-tool-timer-view { padding: 1.25rem; margin-top: 1.25rem; border: 1px solid var(--yomo-tool-border); border-radius: .375rem; background: var(--yomo-tool-surface); color: var(--yomo-tool-ink); }
.yomo-tool .yomo-tool-countdown { font-size: clamp(2rem, 7vw, 4.5rem); font-variant-numeric: tabular-nums; line-height: 1.2; margin: 1rem 0; }
.yomo-tool .yomo-tool-timer-view:fullscreen { padding: clamp(1rem,5vw,4rem); overflow: auto; display: flex; flex-direction: column; justify-content: center; }
.yomo-tool .yomo-tool-timer-view:fullscreen .yomo-tool-countdown { font-size: clamp(3rem,15vw,12rem); }
.yomo-tool .yomo-tool-projector-view { margin-top: 1.25rem; padding: 1rem; border: 1px solid var(--yomo-tool-border); border-radius: .375rem; background: var(--yomo-tool-surface); color: var(--yomo-tool-ink); }
.yomo-tool .yomo-tool-projector-viewport { height: 480px; width: 100%; position: relative; overflow: hidden; margin-top: 1rem; background: #000; }
.yomo-tool .yomo-tool-projector-viewport canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; touch-action: manipulation; }
.yomo-tool .yomo-tool-projector-view:fullscreen { padding: 1rem; overflow: auto; display: flex; flex-direction: column; }
.yomo-tool .yomo-tool-projector-view:fullscreen .yomo-tool-projector-viewport { flex: 1 0 280px; min-height: 280px; }
@media (max-width: 480px) { .yomo-tool .yomo-tool-fields { grid-template-columns: 1fr; } .yomo-tool .yomo-tool-toolbar > * { flex-grow: 1; } }
@media (prefers-reduced-motion: reduce) { .yomo-tool * { scroll-behavior: auto; animation: none; transition: none; } }
@media print { .yomo-tool :is(form, .yomo-tool-status, .yomo-tool-completion) { display: none; } .yomo-tool .yomo-tool-scroll { overflow: visible; max-height: none; } }

.yomo-tool .yomo-tool-projector-status { height: 5em; overflow: auto; flex-shrink: 0; }
.yomo-tool .yomo-tool-expression-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .5rem; align-items: start; }
.yomo-tool .yomo-tool-expression-row button { white-space: nowrap; }
.yomo-tool .yomo-tool-dialog { width: min(44rem,calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); overflow: auto; margin: auto; padding: 1.5rem; border: 1px solid var(--yomo-tool-border); border-radius: .375rem; color: var(--yomo-tool-ink); background: var(--yomo-tool-surface); font: inherit; }
.yomo-tool .yomo-tool-dialog::backdrop { background: rgba(0,0,0,.4); }
.yomo-tool .yomo-tool-dialog h2 { margin-top: 0; }
.yomo-tool .yomo-tool-dialog-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.yomo-tool .yomo-tool-bingo-current { text-align: center; padding: 1rem; border: 1px solid var(--yomo-tool-border); border-radius: .375rem; }
.yomo-tool .yomo-tool-bingo-board { display: grid; grid-template-columns: repeat(auto-fit,minmax(3.5rem,1fr)); gap: .5rem; list-style: none; padding: 0; margin: 1rem 0; }
.yomo-tool .yomo-tool-bingo-board li { margin: 0; padding: .65rem .25rem; min-height: 44px; text-align: center; border: 1px solid var(--yomo-tool-border); border-radius: .375rem; font-variant-numeric: tabular-nums; }
.yomo-tool .yomo-tool-bingo-board [data-called=true] { background: var(--yomo-tool-action); color: var(--yomo-tool-on-action); font-weight: 600; }
.yomo-tool[data-yomo-tool=bingo-number-generator], .yomo-tool[data-yomo-tool=uk-bingo-card-generator] { border: 1px solid var(--yomo-tool-border); border-radius: .375rem; padding: 1.25rem; margin-block: 1.5rem; }
.yomo-tool .yomo-tool-uk-deck { display: grid; justify-items: center; gap: 1.5rem; }
.yomo-tool .yomo-tool-uk-deck figure { width: 100%; max-width: 38rem; margin: 0; }
.yomo-tool .yomo-tool-uk-deck table { min-width: 0; table-layout: fixed; }
.yomo-tool .yomo-tool-uk-deck td { min-width: 0; padding: .65rem 0; text-align: center; border: 1px solid var(--yomo-tool-ink); background: #fff; color: #202124; font-variant-numeric: tabular-nums; }
.yomo-tool .yomo-tool-dialog .yomo-tool-fields { margin-top: 1rem; }
@media (max-width:480px) { .yomo-tool .yomo-tool-expression-row { grid-template-columns: 1fr; } .yomo-tool .yomo-tool-dialog { padding: 1rem; } }
.yomo-tool.yomo-tool-game { border: 1px solid var(--yomo-tool-border); border-radius: .375rem; padding: 1.25rem; margin-block: 1.5rem; }
.yomo-tool .yomo-tool-game-deck { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,16rem),1fr)); gap: 1.5rem; justify-items: center; }
.yomo-tool .yomo-tool-game-deck figure { width: 100%; max-width: 24rem; margin: 0; }
.yomo-tool .yomo-tool-game-deck table { min-width: 0; table-layout: fixed; }
.yomo-tool .yomo-tool-game-deck :is(th,td) { min-width: 0; padding: .7rem .1rem; text-align: center; border: 1px solid var(--yomo-tool-ink); font-variant-numeric: tabular-nums; }
.yomo-tool .yomo-tool-game-deck td { color: #202124; background: white; }
.yomo-tool .yomo-tool-raffle-preview { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .5rem; }
.yomo-tool .yomo-tool-raffle-ticket { border: 4px solid; border-radius: .375rem; padding: .7rem; width: 100%; text-align: center; display: grid; }
.yomo-tool .yomo-tool-raffle-ticket strong { font-size: 1.6rem; }
.yomo-tool .yomo-tool-card-stage { display: grid; place-items: center; padding: 1rem; }
.yomo-tool .yomo-tool-playing-card { width: min(100%,12rem); aspect-ratio: 5 / 7; border: 2px solid #202124; border-radius: .6rem; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 3rem; background: white; color: #202124; }
.yomo-tool .yomo-tool-playing-card span:last-child { font-size: 5rem; }
.yomo-tool .yomo-tool-dice-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: .75rem; margin-bottom: 1rem; }
.yomo-tool .yomo-tool-dice-results { display: flex; flex-wrap: wrap; gap: .75rem; }
.yomo-tool .yomo-tool-dice-results > div { padding: 1rem; border: 1px solid var(--yomo-tool-border); border-radius: .375rem; display: grid; text-align: center; }
.yomo-tool .yomo-tool-dice-results strong { font-size: 1.7rem; }
.yomo-tool .yomo-tool-sudoku { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(9,minmax(0,1fr)); width: 100%; max-width: 28rem; margin: 1rem auto; border: 2px solid var(--yomo-tool-ink); }
.yomo-tool .yomo-tool-sudoku > :is(label,div) { margin: 0; min-width: 0; border-right: 1px solid var(--yomo-tool-border); border-bottom: 1px solid var(--yomo-tool-border); text-align: center; }
.yomo-tool .yomo-tool-sudoku > div { padding-block: .7rem; }
.yomo-tool .yomo-tool-sudoku > :nth-child(3n) { border-right: 2px solid var(--yomo-tool-ink); }
.yomo-tool .yomo-tool-sudoku > :is(:nth-child(n+19):nth-child(-n+27),:nth-child(n+46):nth-child(-n+54)) { border-bottom: 2px solid var(--yomo-tool-ink); }
.yomo-tool .yomo-tool-sudoku input { padding: .2rem; min-height: 44px; border: 0; border-radius: 0; text-align: center; font-variant-numeric: tabular-nums; }
.yomo-tool .yomo-tool-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.yomo-tool .yomo-tool-puzzle-preview { margin: 1rem auto; width: 100%; max-width: 38rem; }
.yomo-tool .yomo-tool-puzzle-preview img { display: block; width: 100%; height: auto; }
.yomo-tool .yomo-tool-wheel-row { display: grid; grid-template-columns: minmax(0,1fr) 5rem auto; align-items: end; gap: .5rem; margin-bottom: 1rem; }
.yomo-tool .yomo-tool-wheel-row input[type=color] { padding: .25rem; }
.yomo-tool .yomo-tool-wheel-stage { position: relative; width: min(100%,32rem); margin: 2rem auto; }
.yomo-tool .yomo-tool-wheel-stage canvas { display: block; width: 100%; height: auto; }
.yomo-tool .yomo-tool-wheel-pointer { position: absolute; z-index: 1; top: 0; left: calc(50% - 10px); width: 0; height: 0; border-left: 10px solid transparent; border-right: 10px solid transparent; border-top: 22px solid var(--yomo-tool-ink); }
.yomo-tool .yomo-tool-wheel-stage { overflow: hidden; aspect-ratio: 1; }
.yomo-tool .yomo-tool-sudoku { aspect-ratio: 1; grid-template-rows: repeat(9,minmax(0,1fr)); }
.yomo-tool .yomo-tool-sudoku > :is(label,div) { min-height: 0; }
.yomo-tool .yomo-tool-sudoku > div { display: flex; align-items: center; justify-content: center; padding: 0; }
.yomo-tool .yomo-tool-sudoku input { height: 100%; min-height: 0; }
@media (max-width:480px) { .yomo-tool .yomo-tool-wheel-row { grid-template-columns: minmax(0,1fr) 3.5rem auto; } .yomo-tool .yomo-tool-wheel-row button { grid-column: auto; padding-inline: .5rem; font-size: .9rem; } }
