#pictureArithmeticScreen.picture-arithmetic{width:100%;max-width:680px;margin:auto;box-sizing:border-box;padding:4px 8px 8px;height:calc(100svh - 104px);max-height:850px;min-height:580px;display:grid;grid-template-rows:64px 84px minmax(210px,1fr) 52px 42px 68px;gap:6px;color:#234f42}
#pictureArithmeticScreen[hidden]{display:none!important}
#pictureArithmeticScreen .pa-heading{text-align:center}#pictureArithmeticScreen h2{font-size:24px;line-height:1.3;margin:4px 0}#pictureArithmeticScreen .pa-progress{margin:0;font-size:15px}
#pictureArithmeticScreen .pa-prompt{margin:0;display:flex;align-items:center;justify-content:center;text-align:center;line-height:1.35;font-weight:700;font-size:21px;padding:4px;background:#fff8df;border-radius:16px;box-sizing:border-box}
#pictureArithmeticScreen .pa-world{display:grid;align-items:center;min-height:0;gap:10px}#pictureArithmeticScreen .pa-add-world{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
#pictureArithmeticScreen .pa-group{border:3px solid #70a88a;border-radius:18px;background:#eaf8e9;padding:8px;box-sizing:border-box;min-width:0}#pictureArithmeticScreen .pa-add-world .pa-group:last-child{background:#fff0e2;border-color:#cf9363}
#pictureArithmeticScreen h3{font-size:24px;line-height:28px;margin:0 0 8px;text-align:center}#pictureArithmeticScreen .pa-objects{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;justify-content:center;align-content:center}
#pictureArithmeticScreen .pa-item{position:relative;display:flex;justify-content:center;align-items:center;min-width:0;height:40px}#pictureArithmeticScreen .pa-item img{width:36px;height:36px;object-fit:contain;display:block}
#pictureArithmeticScreen .pa-sub-group .pa-objects{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 6px}#pictureArithmeticScreen .pa-sub-group .pa-item{height:55px}#pictureArithmeticScreen .pa-sub-group .pa-item img{width:44px;height:44px}
#pictureArithmeticScreen .pa-gone{background:repeating-linear-gradient(135deg,#ebedef,#ebedef 5px,#f8f9f9 5px,#f8f9f9 10px);border:1px dashed #6f7880;border-radius:9px}#pictureArithmeticScreen .pa-gone img{opacity:.25;filter:grayscale(1)}#pictureArithmeticScreen .pa-gone-tag{position:absolute;bottom:-8px;padding:1px 5px;border-radius:6px;background:#f0f2f2;color:#48525a;font-size:12px;font-weight:700}
#pictureArithmeticScreen .pa-legend{font-size:18px;line-height:1.4;text-align:center;margin:0 0 12px;font-weight:700}#pictureArithmeticScreen .pa-equation{margin:0;display:flex;align-items:center;justify-content:center;font-size:32px;line-height:1.2;font-weight:800}
#pictureArithmeticScreen .pa-feedback{margin:0;display:flex;align-items:center;justify-content:center;text-align:center;font-size:17px;line-height:1.2}#pictureArithmeticScreen .pa-actions{display:flex;justify-content:center;align-items:center;gap:12px}
#pictureArithmeticScreen button{min-height:58px;font-size:27px;min-width:76px;border:2px solid #5a8771;border-radius:16px;background:#fff2b3;color:#234f42;padding:8px 12px;touch-action:manipulation}#pictureArithmeticScreen .pa-answer:disabled{opacity:1;background:#e5f2e6}#pictureArithmeticScreen.pa-correct .pa-world{outline:3px solid #a7cda4;border-radius:18px}#pictureArithmeticScreen .pa-retry{outline:3px solid #e6c580;border-radius:18px}
#pictureArithmeticScreen[data-phase="clear"]{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:16px}#pictureArithmeticScreen .pa-clear-button{width:100%;font-size:22px}#pictureArithmeticScreen .pa-clear-result{font-size:24px}
@media(min-width:600px){#pictureArithmeticScreen .pa-item{height:58px}#pictureArithmeticScreen .pa-item img{width:52px;height:52px}#pictureArithmeticScreen .pa-sub-group .pa-item{height:72px}#pictureArithmeticScreen .pa-sub-group .pa-item img{width:64px;height:64px}#pictureArithmeticScreen .pa-prompt{font-size:26px}#pictureArithmeticScreen button{min-width:110px}#pictureArithmeticScreen .pa-legend{font-size:24px}}
/* 2026-10-20 Cloud: plus between the two groups. Group boxes keep their previous size (the 8px screen padding becomes the wider gap); only the pictures are slightly smaller. */
#pictureArithmeticScreen .pa-add-world{grid-template-columns:minmax(0,1fr) 25px minmax(0,1fr);gap:0;margin:0 -8px}
#pictureArithmeticScreen .pa-plus{display:flex;align-items:center;justify-content:center;font-size:30px;font-weight:800;line-height:1;color:#234f42;-webkit-text-stroke:1.5px #234f42}
#pictureArithmeticScreen .pa-add-world .pa-item img{width:32px;height:32px}
@media(min-width:600px){#pictureArithmeticScreen .pa-add-world .pa-item img{width:46px;height:46px}#pictureArithmeticScreen .pa-plus{font-size:30px}}

/* Ten-place boxes have invariant geometry, independent of item count. */
#pictureArithmeticScreen .pa-add-world .pa-group{height:236px;display:grid;grid-template-rows:28px 1fr;row-gap:8px;align-self:center}
#pictureArithmeticScreen .pa-add-world .pa-group h3{margin:0}
#pictureArithmeticScreen .pa-add-world .pa-objects{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(4,40px);gap:5px;align-content:center}
@media(min-width:600px){#pictureArithmeticScreen .pa-add-world .pa-group{height:308px}#pictureArithmeticScreen .pa-add-world .pa-objects{grid-template-rows:repeat(4,58px)}}

/* Fit the add-picture page below the shared two-row nav; keep boxes, text and keys unchanged. */
#pictureArithmeticScreen.picture-arithmetic[data-op=add]{height:calc(100svh - 128px)}

/* Addition picture lesson: keep group boxes without the enclosing result outline. */
#pictureArithmeticScreen[data-op=add] .pa-world{outline:none!important;border-color:transparent}

