/* Cup-specific presentation; mobile-play.css remains the viewport owner. */
.cup-phase-preview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin:22px 0 14px}
.cup-phase-preview>div{position:relative;min-width:0;padding:12px 7px 10px;border:1px solid #ffffff14;border-top:3px solid var(--phase);border-radius:4px 4px 12px 12px;background:linear-gradient(180deg,#ffffff09,transparent)}
.cup-phase-preview span{display:block;color:#aaa6b2;font-size:10px;font-variant-numeric:tabular-nums}
.cup-phase-preview strong{display:block;color:var(--phase);font-size:12px;line-height:1.5;margin-top:3px;overflow-wrap:anywhere}
.cup-rule-chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:18px}
.cup-rule-chips span{border:1px solid #f8ce6233;border-radius:20px;padding:6px 9px;color:#efd18b;background:#f8ce6208;font-size:10px;line-height:1.4}
.cup-previous{font-size:11px!important;color:#a8a2b0!important;line-height:1.6!important;padding:10px 12px;border:1px solid #ffffff14;border-radius:10px}
.cup-breakdown{border:1px solid #f8ce6235;border-radius:12px;background:linear-gradient(105deg,#f8ce6210,#111116);text-align:left}
.cup-breakdown[hidden],.cup-playtest[hidden],#cup-report-text[hidden]{display:none!important}
.cup-breakdown summary{display:flex;flex-direction:column;gap:2px;cursor:pointer;padding:9px 12px;min-height:44px;justify-content:center;list-style:none}
.cup-breakdown summary::-webkit-details-marker{display:none}
.cup-breakdown summary>span{display:flex;justify-content:space-between;gap:8px;color:#ffe299;font-size:12px;line-height:1.4}
.cup-breakdown summary b{font-variant-numeric:tabular-nums;white-space:nowrap}
.cup-breakdown summary small{font-size:10px;color:#aaa6b2}
.cup-breakdown summary .cup-next-line{display:flex;align-items:baseline;justify-content:space-between;gap:10px;color:#e5dcc9;line-height:1.5;font-size:11px}
.cup-next-line>span:first-child{min-width:0;overflow-wrap:anywhere}
.cup-details-cue{flex-shrink:0;color:#bcb3c5;font-size:10px}
.cup-details-cue i{display:inline-block;font-style:normal;margin-left:3px}
.cup-breakdown[open] .cup-details-cue i{transform:rotate(180deg)}
.cup-breakdown summary:focus-visible{outline:2px solid #ffd568;outline-offset:3px;border-radius:10px}
.cup-run-plan{margin:3px 12px 12px;padding:12px;border-left:3px solid #f8ce62;border-radius:0 8px 8px 0;background:#f8ce6209}
.cup-run-plan>strong{display:block;font-size:13px;line-height:1.4;color:#ffe299}
.cup-breakdown .cup-run-plan p{margin:7px 0 0!important;color:#c0bac8!important}
.cup-breakdown .cup-score-target b{color:#ffe299;font-variant-numeric:tabular-nums}
.cup-comparison{width:calc(100% - 24px);margin:0 12px 12px;border-collapse:collapse;font-size:11px;line-height:1.5;font-variant-numeric:tabular-nums}
.cup-comparison caption{text-align:left;font-size:10px;color:#b9b2c4;padding:3px 0 8px}
.cup-comparison th,.cup-comparison td{padding:6px 4px;border-bottom:1px solid #ffffff12;text-align:right}
.cup-comparison tr>*:first-child{text-align:left;padding-left:0}
.cup-comparison thead th{font-weight:500;color:#b9b2c4}.cup-comparison tbody th{font-weight:500;color:#ddd8e3}
.cup-comparison td{color:#f4d586}
.cup-personal-plan{margin-top:18px;padding-top:16px;border-top:1px solid #ffffff18}
.cup-personal-plan>span{display:block;font-size:10px;letter-spacing:1.5px;font-weight:800;color:#ffd568}
.cup-personal-plan>strong{display:block;font-size:26px;line-height:1.2;color:#f6edda;margin-top:7px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.ghost-card .cup-personal-plan>p{font-size:12px;line-height:1.6;margin:8px 0 14px}
.cup-personal-plan .cup-focus-preview{padding:12px;border:1px solid #f8ce6228;border-radius:10px;background:linear-gradient(120deg,#f8ce620b,transparent)}
.cup-focus-preview>span{display:block;font-size:9px;letter-spacing:1.2px;color:#c0b5a1;font-weight:800;margin-bottom:5px}
.cup-focus-preview>b{display:block;color:#ffe299;font-size:14px;line-height:1.4}
.ghost-card .cup-focus-preview>p{margin:6px 0 0;font-size:12px;line-height:1.6}
.cup-breakdown dl{margin:0 12px 8px;padding-top:7px;border-top:1px solid #ffffff15;font-size:12px}
.cup-breakdown dl>div{display:flex;justify-content:space-between;gap:12px;padding:5px 0}
.cup-breakdown dt{color:#bfb9c8}.cup-breakdown dd{margin:0;color:#f3eff8;font-variant-numeric:tabular-nums}
.cup-breakdown p{font-size:11px!important;line-height:1.5!important;margin:8px 12px 12px!important;color:#aaa6b2!important}
.cup-session #contract-fill{background:var(--cup-phase,#ffd568)}
.cup-session #heat-level{color:#ffd568}.cup-session #run-clock{color:#ffd568;font-weight:800}
.cup-playtest .secondary-button{min-height:44px;width:100%}
#cup-report-text{width:100%;min-height:240px;resize:vertical;padding:12px;background:#0c0c10;color:#ddd;border:1px solid #ffffff25;border-radius:10px;font:12px/1.6 monospace}
#cup-report-status{font-size:12px}.savings-estimate{grid-column:1/-1;font-size:10px;line-height:1.5;color:#aaa6b2}
@media(max-width:600px){.cup-phase-preview{margin:16px 0 10px}.cup-phase-preview>div{padding:9px 5px}.cup-phase-preview strong{font-size:10px}.cup-phase-preview span{font-size:9px}.cup-rule-chips span{font-size:9px;padding:5px 7px}}
