/* Talayag extras: game console, account type, avatars and the progress report. */

/* ---------- game console ---------- */
.arcade-bar { display: flex; align-items: center; gap: 18px; width: 100%; min-height: 96px; margin-top: 20px; padding: 14px 22px; border: 4px solid #fff; border-radius: 28px; background: linear-gradient(120deg, #FFD9EA, #E6DEFF 55%, #D5ECFF); color: var(--tinta); text-align: left; box-shadow: 0 8px 22px rgba(120,90,160,.18); transition: transform .12s ease, box-shadow .12s ease; }
.arcade-bar:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(120,90,160,.24); }
.arcade-bar:active { transform: translateY(2px); }
.arcade-bar .cat-tx { flex: 1; min-width: 0; }
.arcade-icon { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; flex-shrink: 0; border-radius: 22px; background: #fff; font-size: 36px; line-height: 1; box-shadow: 0 4px 0 rgba(120,90,160,.18); }
.arcade-bar:hover .arcade-icon { animation: arcadeTilt .7s ease; }
.arcade-bar + .cats { margin-top: 14px; }
@keyframes arcadeTilt { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 60% { transform: rotate(10deg); } }
.arcade-row { width: 100%; text-align: left; }

.slots { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 18px 0 8px; }
.slots span { display: flex; align-items: center; justify-content: center; width: clamp(30px, 9vw, 46px); height: clamp(40px, 11vw, 54px); border-radius: 12px; background: #fff; border: 2px solid var(--guhit); border-bottom-width: 5px; font-family: var(--display); font-size: clamp(20px, 6vw, 28px); font-weight: 700; color: var(--tinta); }
.slots span.on { background: var(--butter); border-color: #E8C860; animation: slotPop .2s ease; }
@keyframes slotPop { from { transform: scale(.7); } to { transform: scale(1); } }
.keys { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.keys button, .tiles button { min-height: 44px; padding: 0; border-radius: 12px; border: 2px solid #fff; background: var(--lav); color: var(--tinta); font-family: var(--display); font-size: 20px; font-weight: 700; box-shadow: 0 3px 0 rgba(120,90,160,.25); transition: transform .08s ease; }
.tiles button { width: 52px; min-height: 56px; font-size: 26px; background: var(--sky); }
.keys button:active, .tiles button:active { transform: translateY(2px); box-shadow: none; }
.keys button.right { background: var(--mint); }
.keys button.wrong { background: #F3E4E0; color: #A08A84; }
.keys button:disabled, .tiles button:disabled { box-shadow: none; opacity: .55; }
.keys button.right:disabled { opacity: 1; }
.game > .meta { text-align: center; }
.game .tools .linkish { background: none; border: 0; padding: 8px; font: inherit; font-size: 14px; color: var(--abo); text-decoration: underline; }

/* ---------- account type ---------- */
.acct-pick { margin: 14px 0 4px; padding: 14px; border-radius: 20px; background: linear-gradient(120deg, var(--peach), var(--lav)); }
.acct-pick > b { display: block; font-family: var(--display); font-size: 18px; }
.acct-pick-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.acct-pick-row button { min-height: 48px; padding: 6px 4px; border-radius: 16px; border: 3px solid #fff; background: #fff; color: var(--tinta); font-family: var(--display); font-size: 17px; font-weight: 700; box-shadow: 0 3px 0 rgba(120,90,160,.2); }
.acct-pick-row button.on { background: var(--tinta); border-color: var(--tinta); color: #fff; box-shadow: none; }
.acct-pick .fine { margin: 8px 0 0; color: var(--tinta); }

/* ---------- avatars ---------- */
.avatar.has-icon { background: #fff !important; font-size: 18px; line-height: 1; box-shadow: 0 0 0 2px var(--lav); }
.kid .avatar.has-icon { font-size: 34px; }
.avatars { margin: 18px 0 6px; padding: 18px; border-radius: 24px; background: linear-gradient(120deg, var(--butter), var(--peach)); border: 4px solid #fff; box-shadow: 0 8px 22px rgba(120,90,160,.12); }
.avatars h2 { margin: 0 0 10px; font-family: var(--display); font-size: 22px; }
.avatar-row { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.avatar-pick { aspect-ratio: 1 / 1; padding: 0; border-radius: 50%; border: 3px solid #fff; background: #fff; font-size: clamp(22px, 5.5vw, 30px); line-height: 1; transition: transform .1s ease; }
.avatar-pick:hover { transform: scale(1.1) rotate(-6deg); }
.avatar-pick.on { border-color: var(--tinta); box-shadow: 0 0 0 3px var(--butter); transform: scale(1.08); }

/* ---------- parent and teacher dashboard ---------- */
.authcard.dash { max-width: 720px; }
.dash-empty { margin: 16px 0 0; padding: 16px 18px; border-radius: 20px; background: var(--butter); font-size: 16px; line-height: 1.45; }
.dash-class { margin-top: 16px; padding: 6px 16px 14px; border-radius: 24px; background: linear-gradient(140deg, #F6F1FF, #EEF7FF); border: 3px solid #fff; box-shadow: 0 6px 18px rgba(120,90,160,.12); }
.dash-class-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 2px 4px; }
.dash-class-head h2 { margin: 0; font-family: var(--display); font-size: 22px; line-height: 1.15; }
.dash-class-head span { font-size: 13px; color: var(--abo); }
.dash-class-head .btn { min-height: 40px; padding: 6px 14px; font-size: 14px; white-space: nowrap; }
.learner { margin-top: 10px; padding: 12px 14px; border-radius: 18px; background: #fff; border: 1.5px solid var(--guhit); }
.learner-head { display: flex; align-items: center; gap: 12px; }
.learner-tx { flex: 1; min-width: 0; }
.learner-tx b { display: block; font-family: var(--display); font-size: 20px; line-height: 1.1; }
.learner-tx span { display: block; font-size: 13px; line-height: 1.4; color: var(--abo); }
.learner-head .btn { min-height: 40px; padding: 6px 16px; font-size: 15px; }
.learner-more { margin-top: 8px; font-size: 14px; }
.learner-more summary { cursor: pointer; font-weight: 600; }
.learner-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.learner-tools select { height: 38px; max-width: 60%; padding: 0 10px; border: 1.5px solid var(--guhit); border-radius: 12px; background: #fff; color: var(--tinta); font-family: var(--ui); font-size: 14px; }
.learner-tools .linkish, .dash .fine .linkish { margin-left: auto; background: none; border: 0; padding: 4px 0; font: inherit; font-size: 13px; text-decoration: underline; }
.dash .fine .linkish { margin-left: 0; }
.linkish.danger { color: #A3301A; }
.report-av { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; background: var(--lav); font-family: var(--display); font-size: 26px; font-weight: 700; line-height: 1; }
.report-list { list-style: none; margin: 12px 0 0; padding: 0; }
.report-list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 2px; border-top: 1px solid var(--guhit); font-size: 15px; }
.report-list b { white-space: nowrap; }

@media (max-width: 560px) {
  .arcade-bar { gap: 14px; min-height: 88px; padding: 12px 16px; border-radius: 24px; }
  .arcade-icon { width: 54px; height: 54px; font-size: 30px; border-radius: 18px; }
  .arcade-bar .pill { display: none; }
  .keys { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .avatar-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .authcard.dash { padding: 22px 14px; }
  .dash-class { padding: 4px 10px 12px; }
  .learner { padding: 10px; }
  .learner-head { gap: 10px; }
  .report-av { width: 42px; height: 42px; font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { .arcade-icon, .slots span.on { animation: none !important; } .arcade-bar, .acct-opt, .avatar-pick, .keys button, .tiles button { transition: none; } }
