/* Approved illustrated card. Loaded last; all rules stay inside Jahrgang playing. */
body.in-match #game-stage#game-stage#game-stage .panel.jy--play{
 --jy-hero-rise:clamp(36px,calc((var(--jy-room) - 590px)*.4),96px);
 display:grid;grid-template-rows:auto auto auto minmax(min-content,1fr) auto;
 height:100dvh;min-height:100dvh;gap:12px;
 padding:calc(var(--jy-safe-top) + 12px) 18px calc(var(--jy-safe-bottom) + 20px);overflow:visible;
}
.jy--play .jy-question-area{display:flex;flex-direction:column;justify-content:center;min-height:min-content;gap:0;padding-top:var(--jy-hero-rise);padding-bottom:8px}
.jy--play .jy-illustrated-question{position:relative;flex:none;min-height:0;width:100%;margin:0;padding:86px 18px 22px;border:1.5px solid #0a0a0a;border-radius:18px;background:#fff8e5;box-shadow:3px 5px 0 #0a0a0a;isolation:isolate;overflow:visible}
.jy--play .jy-illustrated-question .jy-question{font:700 clamp(21px,5.85vw,25px)/1.3 var(--jy-body)!important;letter-spacing:-.025em;text-wrap:pretty;text-align:left;margin:0;overflow:visible}
.jy--play .jy-question-art-wrap{position:absolute;z-index:1;right:-2px;top:calc(0px - var(--jy-hero-rise));width:57%;height:calc(var(--jy-hero-rise) + 70px);pointer-events:none}
.jy-question-art-wrap::before{content:"";position:absolute;z-index:-1;inset:15% 2% 6% 4%;background:#b5dcf2;border-radius:44% 28% 42% 22% / 31% 39% 24% 43%;transform:rotate(-8deg)}
.jy .jy-question-art{display:block;width:100%;height:100%;object-fit:contain;object-position:center bottom;max-width:none;max-height:none;filter:none;border:0;border-radius:0;background:none;box-shadow:none}
.jy-question-ribbon{position:absolute;z-index:2;left:8px;top:24px;display:grid;place-items:center;width:55%;height:43px;padding:0 10px;background:#0a0a0a;clip-path:polygon(0 0,100% 0,94% 50%,100% 100%,0 100%,5% 50%);transform:rotate(-4deg);isolation:isolate}
.jy-question-ribbon::before{content:"";position:absolute;z-index:-1;inset:1.5px;background:#b5dcf2;clip-path:inherit}
.jy-question-ribbon span{display:block;white-space:nowrap;color:#0a0a0a;font:29px/1 var(--jy-head);text-transform:uppercase;letter-spacing:-.01em}
.jy--play .jy-entry{margin:0 2px 4px 0;padding:10px 13px 12px;gap:8px;border-radius:24px;box-shadow:3px 5px 0 #0a0a0a}
.jy--play .jy-year-display{min-width:190px;border-radius:20px;padding:4px 22px 7px}
.jy--play .jy-year-display output{font:800 54px/1.04 var(--jy-body);letter-spacing:-.06em}
.jy--play .jy-ruler{height:56px}
.jy--play .jy-entry .jy-primary{border-radius:16px;min-height:54px;margin-top:0;font-size:30px}
.jy--play .jy-entry.is-sent{min-height:220px;display:flex;flex-direction:column;justify-content:center;align-items:center}
@media(min-height:900px){.jy-question-ribbon{height:47px}.jy-question-ribbon span{font-size:31px}}
/* Size the overlap from the available viewport rather than pushing text into controls. */
@media(max-height:850px){
 body.in-match #game-stage#game-stage#game-stage .panel.jy--play{gap:10px;--jy-hero-rise:clamp(28px,calc((var(--jy-room) - 590px)*.4),65px)}
 .jy--play .jy-illustrated-question{padding:73px 16px 18px}
 .jy--play .jy-question-art-wrap{height:calc(var(--jy-hero-rise) + 61px);width:50%;right:3px}
 .jy--play .jy-question-ribbon{height:37px;top:22px}
 .jy--play .jy-question-ribbon span{font-size:26px}
 .jy--play .jy-illustrated-question .jy-question{font-size:21px!important;line-height:1.26!important}
 .jy--play .jy-year-display output{font-size:48px}
 .jy--play .jy-entry{padding:10px 12px 12px;gap:7px}
}
@media(max-height:780px){
 body.in-match #game-stage#game-stage#game-stage .panel.jy--play{padding-top:calc(var(--jy-safe-top) + 8px);padding-bottom:calc(var(--jy-safe-bottom) + 14px)}
 .jy--play .jy-year-display{min-width:170px;padding:3px 20px 6px}
 .jy--play .jy-entry.is-sent{min-height:208px}
}
/* Small viewports keep tap targets and the full question; year/label share one row. */
@media(max-height:650px){
 body.in-match #game-stage#game-stage#game-stage .panel.jy--play{height:auto;min-height:100dvh;gap:7px;--jy-hero-rise:20px;padding-inline:12px;padding-bottom:calc(var(--jy-safe-bottom) + 12px)}
 .jy--play .jy-question-area{padding-bottom:3px}
 .jy--play .jy-illustrated-question{padding:54px 13px 13px;border-radius:15px}
 .jy--play .jy-question-art-wrap{height:74px;right:6px;width:39%}
 .jy--play .jy-question-ribbon{height:31px;top:12px;width:58%;left:5px}
 .jy--play .jy-question-ribbon span{font-size:23px}
 .jy--play .jy-illustrated-question .jy-question{font-size:18px!important;line-height:1.23!important}
 .jy--play .eo-scores:not(.is-multi) .eo-player{min-height:54px;padding:5px 9px}
 .jy--play .eo-scores:not(.is-multi) .eo-player-score{font-size:26px}
 .jy--play .eo-scores:not(.is-multi) .eo-player-name{font-size:13px}
 .jy--play .jy-entry:not(.is-sent){grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px;padding:8px 12px 10px;border-radius:19px}
 .jy--play .jy-entry>.jy-label{grid-column:1;grid-row:1;justify-self:center}
 .jy--play .jy-value-row{grid-column:2;grid-row:1}
 .jy--play .jy-stepper,.jy--play .jy-entry .jy-primary,.jy--play .jy-submit-status{grid-column:1/-1}
 .jy--play .jy-year-display{min-width:128px;padding:2px 12px 4px;border-radius:13px}
 .jy--play .jy-year-display output{font-size:38px}
 .jy--play .jy-ruler{height:50px}
 .jy--play .jy-entry .jy-primary{min-height:46px;font-size:27px}
 .jy--play .jy-entry.is-sent{min-height:176px}
}
@media(max-width:350px){.jy--play .jy-question-ribbon span{font-size:25px}.jy--play .jy-illustrated-question .jy-question{font-size:20px!important}.jy--play .jy-stepper{gap:10px}}
@media(max-width:350px) and (max-height:650px){.jy--play .jy-question-ribbon span{font-size:23px}.jy--play .jy-illustrated-question .jy-question{font-size:18px!important}}
@media(max-height:740px){
 .jy--play[data-jy-players="3"] .jy-question-area,.jy--play[data-jy-players="4"] .jy-question-area{padding-top:32px}
 .jy--play[data-jy-players="3"] .jy-question-art-wrap,.jy--play[data-jy-players="4"] .jy-question-art-wrap{height:91px;top:-36px}
}
