/* Shared functional components for the two domain templates. */
body[class^="theme-"]:not(.theme-classic){padding:0;background:#f0f0f0}
body[class^="theme-"]:not(.theme-classic) .wrap{width:780px;max-width:100%;margin:0 auto;padding:0 10px 12px;border:0;border-radius:0;box-shadow:none;min-height:80vh}
.theme-masthead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 -10px;padding:18px 20px}
.theme-brand{font-size:24px;font-weight:800;line-height:1.35}.theme-brand small{display:block;margin-top:3px;font-size:11px;font-weight:400;letter-spacing:1px}
.theme-home-link{padding:6px 12px;border:1px solid currentColor;border-radius:4px;font-size:12px;white-space:nowrap}
.theme-games{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:0 -10px 10px}
.theme-games a{display:grid;place-items:center;min-height:43px;font-size:14px;font-weight:700;text-align:center}
.theme-draw{margin:10px 0 12px;padding:0;border:1px solid #e3e3e3;background:#fff}
.theme-issue{display:flex;align-items:center;gap:10px;min-height:75px;padding:12px 18px;border-bottom:1px solid #eee;font-size:14px}
.theme-issue small{display:block;margin-top:4px;font-size:12px;color:#888}.theme-issue strong{font-size:16px;font-weight:500}
.theme-issue time{margin-left:auto;font-size:12px;color:#888;font-variant-numeric:tabular-nums;white-space:nowrap}
.theme-game-mark{display:grid;place-items:center;flex:none;width:44px;height:44px;border:1px solid #eee;border-radius:50%;font-size:20px;font-weight:800}
.theme-timer{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;padding:14px 10px;color:#666;border-bottom:1px solid #eee;font-size:13px}
.theme-timer strong{font-variant-numeric:tabular-nums;font-size:22px;font-weight:500;white-space:nowrap}.theme-timer small{font-size:11px;color:#999}
.theme-equation{display:flex;align-items:center;justify-content:center;gap:9px;min-height:82px;padding:14px 8px;font-variant-numeric:tabular-nums}
.theme-equation b,.theme-equation>strong{display:grid;place-items:center;width:39px;height:39px;font-size:22px;color:#fff;font-weight:700}
.theme-equation i{font-style:normal;font-size:14px;color:#888}.theme-result{display:grid;place-items:center;flex:none;width:29px;height:29px;border-radius:50%;color:#fff;font-weight:700;font-size:14px}.theme-result.red{background:#ed2437}.theme-result.blue{background:#009bcf}
.theme-sections{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0 0 12px;overflow:hidden}
.theme-sections a{min-height:36px;display:grid;place-items:center;text-align:center;font-size:13px}
.theme-bottom-nav{display:none}
.theme-scratch-toolbar[hidden],.theme-scratch-mask[hidden],.theme-scratch-reveal[hidden]{display:none!important}
.theme-scratch-toolbar{grid-column:1/-1;display:flex;align-items:center;flex-wrap:wrap;gap:7px;padding:8px 10px;background:#fff;font-size:11px}
.theme-scratch-toolbar button{min-height:30px;padding:5px 10px;border:1px solid #d9e5ed;border-radius:4px;font:inherit;font-size:12px;cursor:pointer;background:#f4f8fb;color:#46657a}
.theme-scratch-toolbar [data-scratch-status]{flex:1;min-width:90px;color:#8a929b;line-height:1.5}
.theme-scratch-toolbar button:focus-visible{outline:2px solid #1968d6;outline-offset:2px}
.theme-scratch-toolbar .theme-scratch-reveal{margin-left:auto;color:#2477a5;background:#fff}
.theme-scratch-toolbar [data-scratch-status]{order:1}
.theme-scratch-toolbar .theme-scratch-reveal{order:2;margin-left:0}
.theme-scratch-toolbar .theme-scratch-toggle{order:3;margin-left:auto;flex:none}
.theme-protected-content{position:relative}
.theme-protected-content.is-locked{height:280px;overflow:hidden;border:1px solid #e1e6ec;border-radius:6px;background:#f4f6f9}
.theme-protected-content.is-locked>[data-scratch-content]{visibility:hidden;pointer-events:none;user-select:none}
.theme-content-lock[hidden]{display:none!important}
.theme-content-lock{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;padding:24px;text-align:center;background:#f4f6f9;color:#788899}
.theme-content-lock>span{display:grid;place-items:center;width:40px;height:40px;border:1px solid #d8e2ec;border-radius:50%;color:#8b9dae;font-size:22px;background:#fff}
.theme-content-lock strong{color:#536a80;font-size:15px}.theme-content-lock p{margin:0;font-size:12px;line-height:1.7}
.theme-content-lock button{margin-top:4px;padding:7px 16px;border:1px solid #c9dce9;border-radius:4px;background:#fff;color:#287ba8;font:inherit;font-size:12px;cursor:pointer}
.theme-content-lock button:focus-visible{outline:2px solid #1968d6;outline-offset:2px}
.theme-scratch-area{position:relative;grid-column:1/-1;min-width:0;overflow:hidden}
.theme-scratch-mask{position:absolute;inset:0;display:block;width:100%;height:100%;touch-action:none;cursor:crosshair;user-select:none;-webkit-user-select:none}
.theme-scratch-area.is-masked [data-scratch-result]{user-select:none;-webkit-user-select:none}
.theme-hasldz .theme-scratch-toggle[aria-pressed="true"]{background:#b51526;border-color:#b51526;color:#fff}
.theme-pc28me .theme-scratch-toggle[aria-pressed="true"]{background:#355596;border-color:#355596;color:#fff}
body[class^="theme-"]:not(.theme-classic) .method-nav a,body[class^="theme-"]:not(.theme-classic) .plan-nav a{box-shadow:none}
body[class^="theme-"]:not(.theme-classic) .page-heading{padding:10px 12px;background:#fafafa}
body[class^="theme-"]:not(.theme-classic) .page-heading h1{font-size:15px}
body[class^="theme-"]:not(.theme-classic) .page-heading p{font-size:11px}
body[class^="theme-"]:not(.theme-classic) .prediction-table th,body[class^="theme-"]:not(.theme-classic) .prediction-table td{height:42px;padding:6px 3px;font-size:12px}
body[class^="theme-"]:not(.theme-classic) .prediction-table .period-time time{font-size:11px}
body[class^="theme-"]:not(.theme-classic) .prediction-table .period-time b{font-size:11px}
body[class^="theme-"]:not(.theme-classic) .text-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 0}
body[class^="theme-"]:not(.theme-classic) .text-links a:nth-child(2){border-right:0}
.theme-games a:focus-visible,.theme-sections a:focus-visible,.theme-bottom-nav a:focus-visible{outline:2px solid #222;outline-offset:-3px}
@media(max-width:560px){
  .theme-masthead{padding:14px}.theme-brand{font-size:21px}.theme-games a{font-size:12px;min-height:40px}
  .theme-issue{padding:10px;font-size:13px}.theme-issue time{font-size:10px}.theme-game-mark{width:37px;height:37px;font-size:17px}
  .theme-timer{gap:7px;padding:11px 6px}.theme-timer strong{font-size:20px}.theme-timer small{width:100%;text-align:center}
  .theme-equation{gap:6px;min-height:75px}.theme-equation b,.theme-equation>strong{width:33px;height:35px;font-size:20px}
  body[class^="theme-"]:not(.theme-classic) .method-nav a,body[class^="theme-"]:not(.theme-classic) .plan-nav a{font-size:11px;height:34px}
  body[class^="theme-"]:not(.theme-classic) .prediction-table th,body[class^="theme-"]:not(.theme-classic) .prediction-table td{font-size:10px;padding:6px 1px}
  body[class^="theme-"]:not(.theme-classic) .prediction-table .period-time time,body[class^="theme-"]:not(.theme-classic) .prediction-table .period-time b{font-size:9px}
  body[class^="theme-"]:not(.theme-classic) .prediction-table .prediction-group b{min-width:21px;width:21px;height:21px;font-size:10px;padding:0}
  body[class^="theme-"]:not(.theme-classic) .prediction-table .draw{font-size:10px}
}
