/* custom.css — custom questions screen (.cu-) + the entry button on the photos screen */
.cu-root { overflow: hidden; }
.cu-view { position: absolute; inset: 0; }
.cu-privacy { position: absolute; left: 20px; right: 20px; top: 60px; text-align: center; font-size: 14px; line-height: 1.25; -webkit-text-stroke: 3px var(--navy);
  word-break: auto-phrase; line-break: strict; overflow-wrap: anywhere; }
.cu-ptitle { font-size: 18px; line-height: 24px; font-weight: 900; color: var(--magenta); text-align: center; margin-bottom: 6px; }
.cu-list { display: flex; flex-direction: column; gap: 8px; max-height: 380px; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; touch-action: pan-y; padding: 2px; }
.cu-list::-webkit-scrollbar { display: none; }
.cu-card { flex: none; display: flex; align-items: center; gap: 8px; min-height: 64px; padding: 4px 6px; border: 3px solid var(--navy); border-radius: 16px; background: #fff; }
.cu-sil, .cu-tilethumb, .cu-prev { background: linear-gradient(#bfe6ff, #8fb6f0); border: 3px solid var(--navy); border-radius: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; flex: none; }
.cu-sil { width: 56px; height: 56px; }
.cu-sil canvas, .cu-tilethumb canvas, .cu-prev canvas { width: 100%; height: 100%; object-fit: contain; filter: brightness(0) opacity(.85); }
.cu-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cu-name { font-size: 17px; line-height: 20px; font-weight: 900; overflow-wrap: anywhere; }
.cu-sub { font-size: 13px; line-height: 16px; font-weight: 800; color: var(--teal); }
.cu-ib { flex: none; width: 44px; height: 44px; padding: 0; border: 3px solid var(--navy); border-radius: 50%; background: var(--yellow); color: var(--navy); font-family: var(--font);
  font-size: 22px; font-weight: 900; line-height: 1; cursor: pointer; outline: none; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 0 rgba(29,43,107,.5);
  transition: transform .12s cubic-bezier(.3,1.6,.5,1); }
.cu-ib.del { background: var(--magenta); color: #fff; }
.cu-ib:hover, .cu-ib.focus { transform: scale(1.08); }
.cu-ib:active { transform: scale(.92); }
.cu-msg { font-size: 16px; line-height: 1.35; font-weight: 800; text-align: center; padding: 6px 4px; overflow-wrap: anywhere; word-break: auto-phrase; line-break: strict; }
.cu-pnote { margin-top: 12px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 79, 163, 0.1); color: var(--navy); text-align: center; font-size: 13px; line-height: 1.3; font-weight: 800; overflow-wrap: anywhere; }
.cu-big { position: absolute; left: 0; right: 0; margin: 0 auto; width: 280px; top: 628px; height: 58px; font-size: 22px; z-index: 3; }
.cu-big.disabled::before { filter: grayscale(0.8) brightness(0.85); }

.cu-grid { display: grid; grid-template-columns: repeat(3, 84px); gap: 10px 8px; justify-content: center; padding: 4px 0; }
.cu-tile { width: 84px; cursor: pointer; }
.cu-tilethumb { width: 84px; height: 84px; transition: transform .12s cubic-bezier(.3,1.6,.5,1); }
.cu-tile:hover .cu-tilethumb, .cu-tile.focus .cu-tilethumb { transform: scale(1.06); }
.cu-tile:active .cu-tilethumb { transform: scale(.94); }
.cu-tilename { margin-top: 4px; text-align: center; font-size: 14px; line-height: 17px; font-weight: 900; overflow-wrap: anywhere; }
.cu-pickwrap { position: absolute; left: 0; right: 0; top: 130px; display: flex; justify-content: center; }
.cu-pickwrap .panel { max-height: 470px; }
.cu-hint { position: absolute; left: 20px; right: 20px; top: 60px; text-align: center; font-size: 14px; line-height: 1.25; -webkit-text-stroke: 3px var(--navy); overflow-wrap: anywhere; word-break: auto-phrase; line-break: strict; }
.cu-center { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 6px 0; }

.cu-scroll { position: absolute; left: 0; right: 0; top: 62px; bottom: 82px; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; touch-action: pan-y; padding: 4px 28px 14px; }
.cu-scroll::-webkit-scrollbar { display: none; }
.cu-form { display: flex; flex-direction: column; gap: 6px; }
.cu-prev { width: 84px; height: 84px; align-self: center; margin-bottom: 4px; }
.cu-label { font-size: 15px; line-height: 20px; font-weight: 900; color: var(--magenta); margin-top: 6px; }
.cu-input { width: 100%; height: 48px; padding: 0 14px; border: 3px solid var(--navy); border-radius: 12px; background: var(--cream); color: var(--navy);
  font-family: var(--font); font-size: 18px; font-weight: 900; outline: none; box-shadow: inset 0 3px 0 rgba(29,43,107,.12);
  user-select: text; -webkit-user-select: text; -webkit-appearance: none; appearance: none; }
.cu-input::placeholder { color: rgba(29,43,107,.38); font-weight: 800; }
.cu-input:focus { border-color: var(--magenta); box-shadow: 0 0 0 3px var(--yellow); }
.cu-wrow { display: flex; align-items: center; gap: 8px; }
.cu-wrow .cu-input { flex: 1; min-width: 0; }
.cu-addw { align-self: center; min-height: 46px; margin-top: 6px; padding: 0 20px; font-size: 16px; border-radius: 22px; }
.cu-actions { position: absolute; left: 20px; right: 20px; top: 630px; height: 56px; display: flex; gap: 14px; z-index: 3; }
.cu-actions .btn { flex: 1; min-width: 0; height: 56px; padding: 0 12px; font-size: 19px; }

/* entry button on the photos screen: shares the row of the "photos in quiz" toggle */
.ph-root .ph-mix { left: 20px; width: 184px; padding: 0 8px; font-size: 15px; }
.ph-root .ph-custom { position: absolute; left: 212px; top: 122px; width: 164px; height: 52px; min-height: 44px; padding: 0 8px; font-size: 15px; border-radius: 22px; gap: 6px; }
.ph-root .ph-custom .ui-bicon { width: 26px; height: 26px; }
