/* Page background and font */
body {
  background: #d9eefb;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  margin: 0;
  padding: 20px 0;
}

/* Centered white wrapper */
#wrapper {
  width: 960px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #a9d0e8;
  padding: 10px;
}

/* Top navigation bar */
#nav {
  background: #2f8fd0;
  border: 1px solid #1f6fa8;
}
#nav:after {
  content: "";
  display: block;
  clear: both;
}
#nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
#nav li {
  float: left;
}
#nav a {
  display: block;
  padding: 4px 12px;
  font-size: 12px;
  color: #ffffff;
  font-weight: bold;
  text-decoration: none;
  border-right: 1px solid #1f6fa8;
}
#nav a:hover, #nav a.current, #nav button.current {
  background: #f26d00;
}

/* Account area on the right of the nav */
#nav ul.account {
  float: right;
}
#nav ul.account span, #nav ul.account button {
  display: block;
  padding: 4px 12px;
  font-size: 12px;
  font-family: inherit;
  font-weight: bold;
  color: #ffffff;
}
#nav ul.account button {
  background: none;
  border: 0;
  border-left: 1px solid #1f6fa8;
  cursor: pointer;
}
#nav ul.account button:hover {
  background: #f26d00;
}
#nav form {
  margin: 0;
}

/* Login and signup forms */
form.auth, div.auth {
  width: 300px;
  margin: 40px auto;
}
form.auth label, form.auth input[type=text], form.auth input[type=email], form.auth input[type=password] {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 8px;
}
form.auth input[type=text], form.auth input[type=email], form.auth input[type=password] {
  padding: 5px;
  border: 1px solid #a9d0e8;
}
form.auth .error, div.auth .error {
  color: #c00000;
}

/* Logo, small and on the left */
#header {
  position: relative;
}
#header > a img {
  display: block;
  margin: 0 0 10px 0;
  width: 240px;
  max-width: 100%;
}

/* Profile tile, top right: picture, username and level ring */
#profile {
  display: block;
  text-decoration: none;
  position: absolute;
  top: 10px;
  right: 0;
  width: 230px;
  height: 64px;
  padding: 6px;
  background: #eef7fd;
  border: 1px solid #a9d0e8;
}
#profile:hover {
  background: #ddeefa;
  border-color: #2f8fd0;
}
#profile .pfp {
  float: left;
  width: 64px;
  height: 64px;
  border: 1px solid #a9d0e8;
}
#profile .info {
  margin-left: 76px;
}
#profile .name {
  font-size: 15px;
  font-weight: bold;
  color: #145a9c;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
#profile .level {
  margin-top: 4px;
  font-size: 11px;
  color: #666666;
}
#profile .level svg {
  float: left;
  margin-right: 6px;
}
#profile .level span {
  display: block;
  padding-top: 12px;
}
.ring-bg {
  stroke: #cfe3f1;
}
.ring-fill {
  stroke: #f26d00;
}
.ring-num {
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 15px;
  font-weight: bold;
  fill: #145a9c;
}

/* Main content area */
#main {
  min-height: 400px;
}

/* Footer */
#footer {
  text-align: center;
  font-size: 11px;
  color: #666666;
}
#footer a {
  color: #145a9c;
}

/* Profile page */
.profile-page {
  overflow: hidden;
  width: 560px;
  margin: 40px auto;
}
.site-logo { position: relative; display: inline-block; }
.logo-unread { position: absolute; top: -7px; right: -7px; }
.unread-badge, .unread-inline, .social-count { display: inline-block !important; min-width: 18px; padding: 2px 5px !important; color: #fff !important; background: #c62828; border-radius: 12px; font-size: 10px !important; font-weight: bold; line-height: 1.35; text-align: center; box-sizing: border-box; }
.unread-badge[hidden], .unread-inline[hidden] { display: none !important; }
#nav li.messages-menu { position: relative; }
#nav ul.account li.messages-menu > button { height: 27px; padding: 4px 10px; }
#nav .messages-menu .unread-inline { display: inline-block !important; min-width: 16px; margin-left: 2px; padding: 1px 4px !important; border-radius: 10px; vertical-align: 1px; }
.messages-dropdown { position: absolute; z-index: 20; top: 100%; left: 0; width: 275px; padding: 10px; color: #51483c; background: #fff; border: 1px solid #a9d0e8; border-top: 3px solid #f26d00; box-shadow: 0 5px 14px rgba(0,0,0,.2); }
.messages-dropdown[hidden] { display: none; }
.messages-dropdown > strong { display: block; padding-bottom: 7px; color: #145a9c; border-bottom: 1px solid #d5e7f1; }
.messages-dropdown p { margin: 8px 0; color: #666; font-size: 12px; }
.messages-dropdown .preview-message { display: block; padding: 8px 3px; color: #51483c; border-bottom: 1px solid #e7eef2; text-decoration: none; }
.messages-dropdown .preview-message:hover { background: #eef7fd; }
.messages-dropdown .preview-message strong, .messages-dropdown .preview-message span { display: block; padding: 0 !important; color: inherit !important; font-size: 12px !important; }
.messages-dropdown .preview-message span { margin-top: 3px; color: #666 !important; font-weight: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.messages-dropdown .all-messages { margin-top: 8px; padding: 7px !important; color: #145a9c !important; background: #eef7fd; border: 0 !important; text-align: center; }
.profile-page .pfp {
  float: left;
  width: 160px;
  height: 160px;
  border: 1px solid #a9d0e8;
}
.profile-page .details {
  margin-left: 180px;
}
.profile-page h2 {
  margin: 0 0 12px 0;
  color: #145a9c;
}
.profile-page th {
  text-align: left;
  padding: 4px 16px 4px 0;
  color: #666666;
}

/* User search in the nav bar */
#nav li.search {
  position: relative;
  padding: 2px 0 2px 8px;
}
#nav li.search input {
  width: 160px;
  padding: 2px 6px;
  font-size: 12px;
  font-family: inherit;
  border: 1px solid #1f6fa8;
}
#search-results {
  position: absolute;
  top: 100%;
  left: 8px;
  width: 200px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #ffffff;
  border: 1px solid #a9d0e8;
  z-index: 10;
}
#search-results[hidden] {
  display: none;
}
#search-results li {
  float: none;
}
#search-results a {
  padding: 5px 8px;
  border-right: 0;
  color: #145a9c;
  font-weight: normal;
}
#search-results a:hover {
  background: #ddeefa;
  color: #145a9c;
}
#nav ul.account #search-results a span {
  float: right;
  color: #000000;
  font-size: 11px;
}
#search-results .none {
  padding: 5px 8px;
  font-size: 12px;
  color: #888888;
}

/* Search results page */
.search-page {
  padding: 10px 20px;
}
.search-page h2 {
  font-size: 18px;
  color: #145a9c;
}
.user-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.user-list li {
  padding: 6px 0;
  border-bottom: 1px solid #d9eefb;
}
.user-list a {
  font-weight: bold;
  color: #145a9c;
}
.user-list span {
  margin-left: 10px;
  font-size: 12px;
  color: #666666;
}

/* Profile editing (own profile only) */
.profile-page .pfp-box {
  position: relative;
  float: left;
  width: 162px;
  height: 162px;
}
.profile-page .pfp {
  object-fit: cover;
}
.edit-buttons {
  float: right;
}
.edit-buttons button {
  padding: 4px 14px;
  font-family: inherit;
  font-size: 12px;
  color: #ffffff;
  background: #2f8fd0;
  border: 1px solid #1f6fa8;
  cursor: pointer;
}
#cancel-btn {
  background: #888888;
  border-color: #666666;
}
.profile-page .error {
  clear: both;
  margin: 0 0 10px 0;
  padding: 6px 10px;
  color: #a00000;
  background: #fde8e8;
  border: 1px solid #e0a0a0;
}
.edit-only {
  display: none;
}
.editing .edit-only {
  display: inline;
}
.editing #edit-btn, .editing .name-text {
  display: none;
}
.pfp-edit, .name-edit {
  color: #f26d00;
  cursor: pointer;
}
.pfp-edit {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 160px;
  height: 160px;
  font-size: 48px;
  line-height: 160px;
  text-align: center;
  color: #ffffff;
  background: #000000;
  opacity: 0;
  filter: alpha(opacity=0);
}
.editing .pfp-edit {
  display: block;
}
.editing .pfp-edit:hover {
  opacity: 0.5;
  filter: alpha(opacity=50);
}
#username-input {
  width: 200px;
  padding: 2px 4px;
  font-family: inherit;
  font-size: inherit;
  font-weight: bold;
  color: #145a9c;
  border: 1px dashed #2f8fd0;
  background: #ffffff;
}

/* Homepage */
.home {
  padding: 10px 20px;
}
.hero {
  margin-bottom: 20px;
  padding: 24px 30px;
  text-align: center;
  background: #eaf5fc;
  border: 1px solid #a9d0e8;
}
.hero h1 {
  margin: 0 0 10px 0;
  font-size: 30px;
  color: #145a9c;
}
.hero p {
  width: 600px;
  margin: 0 auto 14px auto;
  font-size: 15px;
  line-height: 1.5;
  color: #444444;
}
.hero .buttons {
  margin: 20px auto 0 auto;
}
a.button {
  display: inline-block;
  margin: 0 5px;
  padding: 9px 22px;
  font-size: 14px;
  font-weight: bold;
  color: #ffffff;
  text-decoration: none;
  background: #f26d00;
  border: 1px solid #b84f00;
}
a.button:hover {
  background: #ff8a24;
}
a.button.alt {
  background: #2f8fd0;
  border-color: #1f6fa8;
}
a.button.alt:hover {
  background: #4aa6e3;
}
.features {
  overflow: hidden;
  margin-bottom: 20px;
}
.feature {
  float: left;
  width: 256px;
  margin-right: 20px;
  padding: 12px 16px;
  border: 1px solid #a9d0e8;
  border-top: 4px solid #f26d00;
}
.feature.last {
  margin-right: 0;
}
.feature h3 {
  margin: 0 0 6px 0;
  color: #145a9c;
}
.feature p {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: #555555;
}
.phrases {
  width: 420px;
  margin: 0 auto 20px auto;
  border: 1px solid #a9d0e8;
}
.phrases h3 {
  margin: 0;
  padding: 6px 12px;
  font-size: 14px;
  color: #ffffff;
  background: #2f8fd0;
}
.phrases table {
  width: 100%;
  border-collapse: collapse;
}
.phrases td {
  padding: 7px 12px;
  font-size: 13px;
  color: #555555;
  border-bottom: 1px solid #d9eefb;
}
.phrases td.es {
  width: 50%;
  font-weight: bold;
  color: #145a9c;
}

/* Chat with Lola: full-page chat window */
.chat {
  width: 100%;
  margin: 0;
  background: #dbe3ec;
  border: 1px solid #8a99ab;
}
.chat-bar {
  position: relative;
  padding: 8px 10px;
  text-align: center;
  background: #6b86a8;
  border-bottom: 1px solid #4d6685;
}
.chat-name {
  font-size: 15px;
  font-weight: bold;
  color: #ffffff;
}
.messages {
  height: calc(100vh - 330px);
  min-height: 380px;
  overflow-y: auto;
  padding: 10px;
  background: #ffffff;
}
.msg {
  clear: both;
  max-width: 70%;
  margin: 0 0 8px 0;
  padding: 7px 12px;
  font-size: 13px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-wrap: break-word;
  border-radius: 16px;
}
.msg.them {
  float: left;
  color: #000000;
  background: #e3e3e8;
  border-bottom-left-radius: 4px;
}
.msg.me {
  float: right;
  color: #ffffff;
  background: #1f8dea;
  border-bottom-right-radius: 4px;
}
.typing span {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 3px 2px;
  background: #8a8a90;
  border-radius: 4px;
  animation: blink 1.2s infinite;
}
.typing span:nth-child(2) {
  animation-delay: 0.2s;
}
.typing span:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes blink {
  0%, 60%, 100% { opacity: 0.25; }
  30% { opacity: 1; }
}
.chat-input {
  overflow: hidden;
  padding: 8px;
  background: #c4cfdb;
  border-top: 1px solid #8a99ab;
}
.chat-input input[type=text] {
  float: left;
  width: 80%;
  padding: 7px 12px;
  font-family: inherit;
  font-size: 13px;
  border: 1px solid #8a99ab;
  border-radius: 14px;
}
.chat-input button {
  float: right;
  width: 14%;
  padding: 7px 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: bold;
  color: #ffffff;
  background: #1f8dea;
  border: 1px solid #1670bb;
  border-radius: 14px;
  cursor: pointer;
}
.chat-input button:disabled {
  background: #9bb8d3;
  border-color: #9bb8d3;
  cursor: default;
}


/* Signup: date of birth and terms checkbox */
form.auth select {
  margin-right: 4px;
  padding: 4px;
  border: 1px solid #a9d0e8;
}
form.auth fieldset.dob {
  margin: 0 0 8px 0;
  padding: 0;
  border: 0;
}
form.auth fieldset.dob legend {
  padding: 0;
  margin-bottom: 4px;
}
form.auth .hidden-label {
  position: absolute;
  left: -9999px;
}
form.auth p.agree {
  font-size: 13px;
  line-height: 1.4;
}
form.auth p.agree input {
  float: left;
  margin: 3px 8px 0 0;
}
form.auth p.agree label {
  display: block;
  overflow: hidden;
  width: auto;
}

/* Legal pages: Terms of Service and Privacy Policy */
.legal {
  max-width: 720px;
  margin: 20px auto;
  padding: 0 10px;
  font-size: 14px;
  line-height: 1.6;
  color: #222222;
}
.legal h1 {
  color: #145a9c;
  margin-bottom: 4px;
}
.legal h2 {
  color: #145a9c;
  margin: 28px 0 6px 0;
  padding-bottom: 3px;
  border-bottom: 1px solid #a9d0e8;
}
.legal h3 {
  margin: 18px 0 4px 0;
}
.legal a {
  color: #0b4f8f;
}
.legal a:focus, #footer a:focus {
  outline: 2px solid #f26d00;
}
.legal .updated {
  color: #555555;
  margin-top: 0;
}
.legal .toc {
  padding: 8px 16px;
  background: #eaf5fc;
  border: 1px solid #a9d0e8;
}
.legal .toc ol {
  margin: 4px 0;
  padding-left: 22px;
}
.legal table {
  border-collapse: collapse;
  width: 100%;
}
.legal th, .legal td {
  padding: 4px 8px;
  text-align: left;
  vertical-align: top;
  border: 1px solid #a9d0e8;
}

/* Cookie consent banner (only used when ads are turned on) */
#consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 20px;
  font-size: 13px;
  text-align: center;
  background: #eaf5fc;
  border-top: 1px solid #a9d0e8;
}
#consent[hidden] {
  display: none;
}
#consent button {
  margin: 0 4px;
  padding: 4px 14px;
  font-family: inherit;
  font-weight: bold;
  color: #ffffff;
  background: #2f8fd0;
  border: 1px solid #1f6fa8;
  cursor: pointer;
}

/* Lessons path (SVG map) */
.path-intro {
  text-align: center;
}
.path-intro h2 {
  margin-bottom: 4px;
  color: #145a9c;
}
.path-map {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}
.path-map .trail-edge {
  fill: none;
  stroke: #c9a76b;
  stroke-width: 26px;
  stroke-linecap: round;
}
.path-map .trail {
  fill: none;
  stroke: #f3e0b5;
  stroke-width: 18px;
  stroke-linecap: round;
}
.path-map .banner rect {
  fill: #2f8fd0;
  stroke: #1f6fa8;
  stroke-width: 2px;
}
.path-map .banner text {
  fill: #ffffff;
  font-size: 17px;
  font-weight: bold;
}
.path-map .node circle {
  stroke-width: 4px;
}
.path-map .node text {
  font-size: 18px;
  font-weight: bold;
  fill: #ffffff;
}
.path-map .node.done circle {
  fill: #4a9c1c;
  stroke: #2e6f0e;
}
.path-map .node.current circle {
  fill: #f26d00;
  stroke: #b84f00;
}
.path-map .node.current circle.halo {
  fill: none;
  stroke: #ffbf3f;
  stroke-width: 4px;
  animation: pulse 1.4s infinite;
}
.path-map .node.locked circle {
  fill: #9aa7b3;
  stroke: #6f7c88;
}
.path-map a.node {
  cursor: pointer;
}
.path-map a.node:hover circle, .path-map a.node:focus circle {
  stroke: #145a9c;
}
.path-map a.node:focus {
  outline: none;
}
.path-map .label {
  font-size: 13px;
  fill: #145a9c;
}
@keyframes pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* Lesson page */
.lesson {
  width: 640px;
  margin: 20px auto;
  font-size: 14px;
  line-height: 1.5;
}
.lesson h2, .lesson h3 {
  color: #145a9c;
}
.lesson .crumbs {
  font-size: 12px;
}
.lesson .tip {
  padding: 8px 12px;
  background: #fff6e0;
  border: 1px solid #f0c060;
}
.lesson .done-note {
  font-size: 12px;
  color: #555555;
}
.lesson [hidden] {
  display: none !important;
}

/* Lesson player: progress bar, exercise area and feedback */
.pbar {
  height: 14px;
  margin: 14px 0;
  background: #e4f1fa;
  border: 1px solid #a9d0e8;
}
.pfill {
  width: 0;
  height: 14px;
  background: #6cc030;
}
.stage {
  min-height: 300px;
  padding: 10px 0;
  text-align: center;
}
.stage .prompt {
  margin: 8px 0;
  font-size: 16px;
  font-weight: bold;
  color: #145a9c;
}
.stage .card {
  padding: 18px 10px;
  margin: 0 auto 14px auto;
  width: 420px;
  background: #f4fafe;
  border: 1px solid #a9d0e8;
}
.stage .big {
  font-size: 34px;
  font-weight: bold;
  color: #145a9c;
}
.stage .meaning {
  margin-top: 6px;
  font-size: 18px;
  color: #444444;
}
.stage button {
  font-family: inherit;
  cursor: pointer;
}
.stage button.speaker {
  padding: 4px 10px;
  margin-top: 6px;
  font-size: 16px;
  background: #ffffff;
  border: 1px solid #a9d0e8;
}
.stage button.speaker.big {
  padding: 10px 22px;
  font-size: 30px;
}
.options {
  width: 560px;
  margin: 0 auto;
  overflow: hidden;
}
.stage .opt {
  float: left;
  width: 270px;
  min-height: 46px;
  margin: 0 5px 10px 5px;
  padding: 8px;
  font-size: 15px;
  color: #145a9c;
  background: #ffffff;
  border: 2px solid #a9d0e8;
}
.stage .opt.sel {
  background: #dff0fb;
  border-color: #2f8fd0;
}
.stage .opt.right {
  color: #2e6f0e;
  background: #eaf7e0;
  border-color: #6cc030;
}
.stage .opt.wrong {
  color: #b00000;
  background: #fdeaea;
  border-color: #d08080;
}
.stage .opt:disabled {
  cursor: default;
}
.stage .match {
  width: 560px;
  margin: 0 auto;
  overflow: hidden;
}
.stage .match .col {
  float: left;
  width: 280px;
}
.stage .match .opt {
  float: none;
  display: block;
  width: 260px;
}
.stage input.answer {
  width: 360px;
  padding: 8px;
  font-family: inherit;
  font-size: 18px;
  text-align: center;
  border: 2px solid #a9d0e8;
}
.stage .keys {
  margin-top: 10px;
}
.stage .key {
  width: 34px;
  height: 32px;
  margin: 0 2px;
  font-size: 16px;
  background: #ffffff;
  border: 1px solid #a9d0e8;
}
.stage .mic {
  padding: 12px 26px;
  margin-top: 6px;
  font-size: 18px;
  font-weight: bold;
  color: #ffffff;
  background: #2f8fd0;
  border: 1px solid #145a9c;
}
.stage .mic.live {
  background: #d02020;
  border-color: #900000;
}
.stage .status {
  min-height: 22px;
  margin: 10px 0;
  color: #555555;
}
.stage .skip {
  padding: 0;
  font-size: 12px;
  color: #145a9c;
  text-decoration: underline;
  background: none;
  border: 0;
}
.stage .trophy {
  margin-top: 20px;
  font-size: 64px;
}
.stage .reward {
  font-size: 18px;
  font-weight: bold;
  color: #f26d00;
}
.stage .done-links a {
  margin: 0 4px;
}
.lesson a.button, .lesson .primary {
  display: inline-block;
  padding: 8px 22px;
  font-family: inherit;
  font-size: 15px;
  font-weight: bold;
  color: #ffffff;
  text-decoration: none;
  background: #f26d00;
  border: 1px solid #b84f00;
  cursor: pointer;
}
.lesson a.button.alt {
  background: #2f8fd0;
  border-color: #145a9c;
}
.lesson .primary:disabled {
  color: #999999;
  background: #e6e6e6;
  border-color: #cccccc;
  cursor: default;
}
.lesson-practice-setting { display: block; margin: 8px 0; color: #315d7a; font-size: 13px; }
.lesson-practice-setting input { margin-right: 7px; accent-color: #2f8fd0; }
.lesson-speech-note { margin: 8px 0; color: #567181; font-size: 12px; }
.unit-jump-label { margin-right: 8px; color: #145a9c; font-weight: bold; }
.unit-jump { max-width: min(100%, 440px); padding: 6px 9px; color: #145a9c; background: #f4fafe; border: 1px solid #a9d0e8; font: inherit; }
.feedback {
  padding: 10px 14px;
  margin-bottom: 10px;
  text-align: left;
  border: 1px solid #a9d0e8;
}
.feedback.good {
  color: #2e6f0e;
  background: #eaf7e0;
  border-color: #6cc030;
}
.feedback.bad {
  color: #b00000;
  background: #fdeaea;
  border-color: #d08080;
}
.actions {
  text-align: right;
}

/* Shared content pages and vocabulary games */
.content-page { max-width: 760px; margin: 24px auto; padding: 10px 20px; color: #444; line-height: 1.55; }
.content-page h2, .content-page h3 { color: #145a9c; }
.content-page .feature-row { display: flex; gap: 16px; margin: 22px 0; }
.content-page .feature-row .feature { float: none; flex: 1; width: auto; margin: 0; box-sizing: border-box; }
.info-box, .game-board { padding: 14px 18px; margin: 18px 0; background: #f4fafe; border: 1px solid #a9d0e8; }
.info-box p { margin-bottom: 0; }
.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.game-card { display: block; box-sizing: border-box; padding: 14px; text-align: left; text-decoration: none; color: #145a9c; background: #f4fafe; border: 1px solid #a9d0e8; border-top: 4px solid #f26d00; font: inherit; cursor: pointer; }
.game-card:hover, .game-card:focus { background: #eaf5fc; border-color: #2f8fd0; }
.game-card strong, .game-card span { display: block; }
.game-card span { margin-top: 5px; font-size: 13px; color: #555; }
.game-top { display: flex; align-items: center; justify-content: space-between; }
.game-top h3 { margin: 0 0 12px; color: #145a9c; }
.game-board #game-content { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; min-height: 100px; text-align: center; }
.game-page .game-board { padding: 18px; }
.game-page .game-top { color: #145a9c; font-weight: bold; }
.game-meter { height: 10px; margin: 12px 0 18px; background: #e4f1fa; border: 1px solid #a9d0e8; }
.game-meter span { display: block; width: 0; height: 100%; background: #6cc030; transition: width .2s ease; }
.game-content { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; min-height: 180px; text-align: center; }
.game-content .game-prompt { flex-basis: 100%; margin: 8px 0; color: #145a9c; font-size: 18px; font-weight: bold; }
.game-actions { min-height: 38px; text-align: right; }
.game-feedback { min-height: 24px; color: #555; }
.game-feedback.good { color: #2e6f0e; font-weight: bold; }
.game-feedback.bad { color: #b00000; }
.game-best { font-size: 12px; color: #666; text-align: right; }
.game-play { margin-top: 12px; color: #f26d00 !important; font-weight: bold; }
.game-option.game-good { border-color: #6cc030; }
.game-option.game-retry { border-color: #f0c060; }
.game-submit { color: #fff; background: #2f8fd0; border-color: #1f6fa8; }
.scrambled-word { width: 100%; color: #f26d00; font-size: 28px; font-weight: bold; letter-spacing: .16em; }
.memory-grid { display: grid; grid-template-columns: repeat(4, minmax(70px, 1fr)); gap: 8px; width: 100%; }
.memory-card { min-height: 64px; padding: 6px !important; overflow-wrap: anywhere; font-size: 13px; font-weight: bold; }
.memory-card.revealed { background: #dff0fb; border-color: #2f8fd0; }
.memory-card.matched { color: #2e6f0e; background: #eaf7e0; border-color: #6cc030; }
.game-finish-icon { width: 100%; font-size: 48px; }
.game-finish-title { width: 100%; margin: 0; color: #145a9c; }
.game-best-new { width: 100%; color: #f26d00; font-weight: bold; }
.quest-feature { display: flex; align-items: center; gap: 20px; margin: 20px 0 26px; padding: 14px 18px; color: #145a9c; text-decoration: none; background: #eaf5fc; border: 1px solid #a9d0e8; border-left: 5px solid #f26d00; }
.quest-feature:hover { background: #ddeefa; border-color: #2f8fd0; }
.quest-art { flex: 0 0 245px; padding: 18px 8px; text-align: center; font-size: 34px; background: linear-gradient(#84d9ec 0 62%, #69bd67 62%); border: 1px solid #a9d0e8; }
.quest-art img, .restaurant-art img { display: block; width: 100%; height: 110px; object-fit: cover; border-radius: 10px; }
.quest-copy, .quest-copy span, .quest-copy b { display: block; }
.quest-copy strong { font-size: 19px; color: #145a9c; }
.quest-copy span { margin: 7px 0; font-size: 13px; color: #555; }
.quest-copy b { color: #f26d00; }
.quest-page { max-width: 1000px; margin: 18px auto; padding: 0 16px; color: #444; }
.quest-page h2 { margin: 8px 0; color: #145a9c; }
.quest-page .crumbs { font-size: 12px; }
.quest-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.quest-heading p { margin: 4px 0; }
.quest-best { padding: 7px 12px; color: #145a9c; background: #fff6e0; border: 1px solid #f0c060; font-weight: bold; white-space: nowrap; }
.quest-frame { position: relative; overflow: hidden; background: #79d6ed; border: 1px solid #1f6fa8; box-shadow: 0 5px 0 #a9d0e8; }
#quest-canvas { display: block; width: 100%; height: auto; }
.quest-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(20, 47, 71, .68); }
.quest-overlay[hidden] { display: none; }
.quest-panel { width: min(480px, 100%); max-height: 100%; overflow-y: auto; padding: 20px 24px; text-align: center; color: #444; background: #fff; border: 2px solid #a9d0e8; border-top: 5px solid #f26d00; box-shadow: 0 8px 24px rgba(0,0,0,.22); }
.quest-panel h3 { margin: 5px 0 10px; color: #145a9c; font-size: 24px; }
.quest-logo { font-size: 36px; }
.quest-logo img { display: block; width: min(300px, 100%); height: 104px; margin: auto; object-fit: cover; border-radius: 12px; }
.quest-controls-copy { padding: 8px; background: #eef7fd; border: 1px solid #a9d0e8; font-size: 12px; }
.quest-panel .primary { padding: 9px 20px; color: #fff; background: #f26d00; border: 1px solid #b84f00; font: bold 15px "Trebuchet MS", Verdana, sans-serif; cursor: pointer; }
.quest-kicker { color: #f26d00; font-size: 12px; font-weight: bold; letter-spacing: .12em; }
.quest-answers { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 12px 0; }
.quest-answer { padding: 10px; color: #145a9c; background: #f4fafe; border: 1px solid #a9d0e8; font: bold 15px "Trebuchet MS", Verdana, sans-serif; cursor: pointer; }
.quest-answer:hover:not(:disabled), .quest-answer:focus-visible { background: #ddeefa; border-color: #2f8fd0; }
.quest-answer:disabled { color: #888; cursor: default; }
.quest-touch { display: none; }
.quest-help { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; padding: 13px; margin-top: 10px; background: #eef7fd; border: 1px solid #a9d0e8; font-size: 12px; }
.quest-help b { color: #145a9c; }
.quest-status { min-height: 22px; margin: 10px 2px; color: #145a9c; font-size: 13px; }
.quest-page button:focus-visible { outline: 3px solid #f26d00; outline-offset: 2px; }
.restaurant-feature { display: flex; align-items: center; gap: 20px; margin: 12px 0 24px; padding: 14px 18px; color: #145a9c; text-decoration: none; background: #fff6e8; border: 1px solid #eccb98; border-left: 5px solid #f26d00; }
.restaurant-feature:hover { background: #fff0d5; border-color: #f0b054; }
.restaurant-art { flex: 0 0 245px; padding: 18px 8px; text-align: center; font-size: 34px; background: linear-gradient(#eaf5fc 0 60%, #d08b56 60%); border: 1px solid #e0bd90; }
.restaurant-page { max-width: 1000px; margin: 18px auto; padding: 0 16px; color: #444; }
.restaurant-page .crumbs { font-size: 12px; }
.restaurant-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.restaurant-heading h2 { margin: 8px 0; color: #145a9c; }
.restaurant-heading p { margin: 4px 0; }
.cafe-best { padding: 7px 12px; color: #145a9c; background: #fff6e0; border: 1px solid #f0c060; font-weight: bold; white-space: nowrap; }
.cafe-shell { position: relative; overflow: hidden; background: #fffaf0; border: 1px solid #b78a61; box-shadow: 0 5px 0 #d8c4a7; }
.cafe-hud { display: flex; justify-content: space-around; gap: 8px; padding: 10px 14px; color: #fff; background: #145a9c; }
.cafe-hud > div { display: flex; flex-direction: column; align-items: center; min-width: 78px; }
.cafe-hud strong { font-size: 19px; }
.cafe-hud strong.urgent { color: #ffd26b; animation: pulse 1s infinite; }
.hud-label { font-size: 9px; letter-spacing: .12em; opacity: .85; }
.cafe-hud #cafe-hearts { color: #ffccd0; letter-spacing: .06em; }
.cafe-scene { position: relative; height: 210px; overflow: hidden; background: linear-gradient(180deg, #d7eef4 0%, #eff7e9 72%, #c98b5b 72%, #ad6e46 100%); border-bottom: 7px solid #8e563b; }
.cafe-window { position: absolute; top: 18px; left: 7%; width: 155px; height: 104px; background: #a7d9e8; border: 8px solid #fff7e8; box-shadow: 0 0 0 2px #a96f4c; }
.cafe-window span { position: absolute; top: 6px; left: 12px; font-size: 30px; }
.cafe-window i { position: absolute; top: 0; bottom: 0; left: 50%; width: 5px; background: #fff7e8; }
.cafe-window i:nth-of-type(2) { top: 48%; right: 0; bottom: auto; left: 0; width: auto; height: 5px; }
.cafe-window b { position: absolute; right: 4px; bottom: 4px; padding: 2px 4px; color: #fff; background: #6bad61; font-size: 9px; letter-spacing: .12em; }
.cafe-shelf { position: absolute; top: 20px; right: 6%; display: flex; gap: 17px; padding: 8px 13px; background: #b87e52; border: 3px solid #986544; font-size: 23px; box-shadow: 0 8px 0 rgba(98,64,43,.15); }
.cafe-shelf img { width: 42px; height: 36px; object-fit: contain; }
.cafe-sign { position: absolute; top: 100px; left: 50%; transform: translateX(-50%); padding: 7px 16px; color: #fff9e9; background: #145a9c; border: 3px solid #f2bd5e; font-size: 15px; font-weight: bold; letter-spacing: .16em; white-space: nowrap; }
.cafe-sign em { color: #ffd26b; font-size: 10px; }
.cafe-guests { position: absolute; right: 0; bottom: 0; left: 0; display: flex; justify-content: center; align-items: end; gap: clamp(10px, 5vw, 58px); height: 110px; }
.cafe-guest { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 48px; animation: guest-arrive .28s ease-out; }
.guest-person { font-size: 54px; line-height: 1; filter: drop-shadow(0 3px 1px rgba(0,0,0,.18)); }
.guest-person { width: 52px; height: 68px; object-fit: contain; }
.guest-bubble { position: absolute; top: -23px; right: -10px; display: grid; place-items: center; width: 31px; height: 27px; background: #fff; border: 1px solid #a9d0e8; border-radius: 50%; font-size: 17px; }
.guest-bubble { width: 38px; height: 34px; object-fit: contain; }
.guest-number { position: absolute; bottom: 3px; left: -8px; display: grid; place-items: center; width: 19px; height: 19px; color: #fff; background: #f26d00; border: 1px solid #fff; border-radius: 50%; font-size: 10px; font-weight: bold; }
.guest-cooking .guest-bubble { background: #eaf7e0; }
.cafe-counter { position: absolute; right: 0; bottom: 0; left: 0; display: flex; justify-content: space-around; align-items: center; height: 24px; background: #825239; border-top: 4px solid #e4b579; font-size: 21px; line-height: 1; }
.cafe-counter img { width: 44px; height: 34px; object-fit: contain; }
.cafe-main { display: grid; grid-template-columns: minmax(250px, .9fr) minmax(350px, 1.4fr); min-height: 310px; }
.cafe-orders, .cafe-kitchen { padding: 14px; }
.cafe-orders { background: #fffaf0; border-right: 1px solid #dfc9a9; }
.cafe-kitchen { background: #fff; }
.cafe-section-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 2px solid #f0dfc7; }
.cafe-section-title h3 { margin: 0; color: #145a9c; font-size: 16px; }
.cafe-section-title span { color: #777; font-size: 10px; text-align: right; }
.cafe-ticket { margin-bottom: 10px; padding: 10px; background: #fff; border: 1px solid #dfc9a9; border-left: 4px solid #f0b454; box-shadow: 0 2px 4px rgba(95,69,43,.08); }
.cafe-ticket.ticket-selected { border-left-color: #2f8fd0; background: #f4fafe; }
.cafe-ticket.ticket-cooking { border-left-color: #6cc030; }
.ticket-top, .ticket-tools { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.ticket-guest { color: #145a9c; font-size: 11px; font-weight: bold; }
.ticket-status { padding: 2px 5px; color: #777; background: #f4f1ea; font-size: 9px; }
.ticket-spanish { margin: 9px 0 6px; color: #333; font-size: 13px; font-weight: bold; line-height: 1.35; }
.ticket-tools { justify-content: flex-start; flex-wrap: wrap; }
.ticket-tool { padding: 3px 6px; color: #145a9c; background: #eef7fd; border: 1px solid #c3dbea; font: 10px "Trebuchet MS", Verdana, sans-serif; cursor: pointer; }
.ticket-translation { margin: 6px 0; color: #69604f; font-size: 11px; font-style: italic; }
.patience-track { height: 5px; margin: 8px 0; overflow: hidden; background: #eee7da; }
.patience-fill { display: block; height: 100%; background: #6cc030; transition: width .1s linear; }
.patience-fill.patience-low { background: #e45b43; }
.ticket-select { width: 100%; padding: 6px 8px; color: #145a9c; background: #f4fafe; border: 1px solid #a9d0e8; font: bold 11px "Trebuchet MS", Verdana, sans-serif; cursor: pointer; }
.ticket-note { margin: 5px 0 0; color: #4d8a3a; font-size: 10px; }
.orders-empty { padding: 25px 8px; color: #8b816f; text-align: center; font-size: 12px; }
.cafe-kitchen-content { min-height: 208px; text-align: center; }
.kitchen-idle { padding: 18px 8px; color: #84684e; font-size: 43px; }
.kitchen-idle img, .idle-chef { display: block; width: 64px; height: 82px; margin: 0 auto 4px; object-fit: contain; }
.kitchen-idle p { margin: 3px; color: #145a9c; font-size: 15px; font-weight: bold; }
.kitchen-idle span { font-size: 11px; }
.kitchen-prompt { margin: 10px 0; color: #145a9c; font-weight: bold; font-size: 13px; }
.menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.menu-choice, .ingredient-choice { min-height: 42px; padding: 7px; color: #145a9c; background: #f4fafe; border: 1px solid #a9d0e8; font: bold 11px "Trebuchet MS", Verdana, sans-serif; cursor: pointer; }
.dish-thumbnail { display: block; width: 74px; height: 62px; margin: 0 auto 4px; object-fit: contain; }
.menu-choice:hover, .ingredient-choice:hover { background: #e3f3fc; border-color: #2f8fd0; }
.recipe-progress { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 8px 0; }
.recipe-chip { padding: 4px 6px; color: #85735f; background: #f4f1ea; border: 1px solid #e5d9c6; font-size: 9px; }
.recipe-chip.recipe-done { color: #2e6f0e; background: #eaf7e0; border-color: #b4d79c; }
.ingredient-instruction { margin: 8px 0; color: #c65d16; font-weight: bold; font-size: 15px; }
.ingredient-instruction span { color: #777; font-size: 11px; font-weight: normal; }
.ingredient-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ingredient-choice { min-height: 55px; }
.pan-art { margin: 4px 0; font-size: 52px; animation: pan-wiggle .55s ease-in-out infinite alternate; }
.pan-art { width: 82px; height: 72px; object-fit: contain; }
.cook-track { position: relative; height: 18px; margin: 10px 8px; overflow: hidden; background: #e5e0d7; border: 1px solid #bca88c; border-radius: 9px; }
.cook-target { position: absolute; top: 0; bottom: 0; background: rgba(108,192,48,.55); border-left: 2px solid #52992b; border-right: 2px solid #52992b; }
.cook-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: #f26d00; transition: width .06s linear; }
.stove-flames { color: #f26d00; font-size: 17px; }
.stove-action { margin: 8px; }
.cafe-primary, .cafe-secondary { margin: 5px; padding: 8px 14px; color: #fff; background: #f26d00; border: 1px solid #b84f00; font: bold 12px "Trebuchet MS", Verdana, sans-serif; cursor: pointer; }
.cafe-secondary { color: #145a9c; background: #eef7fd; border-color: #a9d0e8; }
.served-dish { margin: 5px; font-size: 62px; animation: dish-pop .35s ease-out; }
.served-dish { display: block; width: 110px; height: 88px; margin: 5px auto; object-fit: contain; }
.served-tip { color: #4f8c37; font-size: 12px; font-weight: bold; }
.cafe-message { min-height: 20px; margin: 8px 14px 12px; padding: 7px 10px; color: #615947; background: #f6f0e5; border-left: 3px solid #e0c99f; font-size: 11px; }
.cafe-message.good { color: #2e6f0e; background: #eef8e8; border-color: #6cc030; }
.cafe-message.warn { color: #985124; background: #fff4e4; border-color: #f0b454; }
.cafe-message.cheer { color: #145a9c; background: #eef7fd; border-color: #2f8fd0; }
.cafe-overlay { position: absolute; z-index: 4; inset: 0; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(48,54,49,.68); }
.cafe-overlay[hidden] { display: none; }
.cafe-panel { width: min(470px, 100%); max-height: 100%; overflow: auto; padding: 20px 24px; color: #51483c; background: #fffaf0; border: 2px solid #dfc9a9; border-top: 5px solid #f26d00; box-shadow: 0 9px 26px rgba(0,0,0,.25); text-align: center; }
.cafe-panel h3 { margin: 5px 0 10px; color: #145a9c; font-size: 24px; }
.cafe-logo { font-size: 35px; }
.cafe-logo img { display: block; width: min(280px, 100%); height: 104px; margin: 0 auto 8px; object-fit: cover; border-radius: 12px; }
.cafe-how { padding: 9px; background: #eef7fd; border: 1px solid #c9dfea; text-align: left; font-size: 11px; line-height: 1.6; }
.cafe-mobile-guide { display: none; }
.cafe-page button:focus-visible, .cafe-shell button:focus-visible { outline: 3px solid #f26d00; outline-offset: 2px; }
.cafe-glossary { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 18px; padding: 12px; margin-top: 12px; color: #655b4c; background: #fff6e8; border: 1px solid #e8d3b3; font-size: 11px; }
.cafe-glossary strong { color: #145a9c; }
@keyframes guest-arrive { from { transform: translateY(22px) scale(.8); opacity: .2; } to { transform: translateY(0) scale(1); opacity: 1; } }
@keyframes pan-wiggle { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
@keyframes dish-pop { from { transform: scale(.55) rotate(-12deg); } to { transform: scale(1) rotate(0); } }
.game-option, .game-answer { padding: 9px 13px; color: #145a9c; background: #fff; border: 1px solid #a9d0e8; font: inherit; }
.game-option { cursor: pointer; }
.game-option:hover, .game-option.selected { background: #dff0fb; border-color: #2f8fd0; }
.hangout-feature { display: flex; align-items: center; gap: 18px; padding: 18px; margin: 14px 0; color: #145a9c; text-decoration: none; background: #f4fafe; border: 1px solid #a9d0e8; border-top: 4px solid #f26d00; }
.hangout-feature:hover, .hangout-tile:hover { background: #eaf5fc; border-color: #2f8fd0; }
.hangout-art { display: flex; align-items: center; justify-content: center; flex: 0 0 115px; height: 84px; gap: 7px; background: #dceefa; border-radius: 12px; }
.hangout-art span { width: 21px; height: 21px; border-radius: 50%; background: #2f8fd0; border: 4px solid #fff; box-shadow: 0 2px 5px #8ab7d0; }
.hangout-art span:nth-child(2) { transform: translateY(-11px); background: #f26d00; }
.hangout-page { max-width: 790px; }
.hangout-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 20px 0; }
.hangout-tile { display: flex; flex-direction: column; min-height: 185px; padding: 17px; color: #145a9c; text-decoration: none; background: #f4fafe; border: 1px solid #a9d0e8; border-top: 4px solid #f26d00; }
.hangout-tile strong { margin: 7px 0; font-size: 20px; }
.hangout-tile > span:not(.hangout-mark) { color: #555; line-height: 1.5; }
.hangout-tile b { margin-top: auto; padding-top: 15px; color: #2e6f0e; }
.hangout-mark { color: #777; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.hangout-safety { display: grid; gap: 5px; padding: 12px 14px; color: #615947; background: #fff6e8; border: 1px solid #e8d3b3; font-size: 12px; line-height: 1.5; }
.hangout-safety strong { color: #a54d12; }
.hangout-ai-note { margin: 20px 0 8px; color: #555; font-weight: bold; }
.hangout-bots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hangout-bots .game-card { min-height: 76px; }
.chat-page { max-width: 740px; }
.hangout-transcript { display: flex; flex-direction: column; gap: 7px; height: 340px; overflow-y: auto; padding: 12px; background: #f4fafe; border: 1px solid #a9d0e8; }
.hangout-message { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; max-width: 88%; padding: 8px 10px; background: #fff; border: 1px solid #d5e7f1; border-radius: 6px; overflow-wrap: anywhere; }
.hangout-message strong { color: #145a9c; font-size: 12px; }
.hangout-message span { grid-column: 1 / -1; white-space: pre-wrap; }
.hangout-message time { grid-column: 2; grid-row: 1; color: #888; font-size: 10px; }
.hangout-message.own-message { align-self: flex-end; background: #eaf5fc; }
.hangout-message.bot-message { max-width: 100%; border-left: 4px solid #6cc030; }
.message-report { grid-column: 1 / -1; justify-self: start; padding: 2px 5px; color: #9a321f; background: transparent; border: 0; font-family: inherit; font-size: 11px; text-decoration: underline; cursor: pointer; }
.hangout-compose { margin-top: 12px; }
.hangout-compose label { display: block; margin-bottom: 5px; color: #555; font-size: 12px; }
.hangout-compose > div { display: flex; gap: 8px; }
.hangout-compose input:not([type=hidden]) { flex: 1; min-width: 0; padding: 9px; border: 1px solid #a9d0e8; font: inherit; }
.hangout-compose .primary, .hangout-page .primary { padding: 8px 15px; color: white; background: #f26d00; border: 1px solid #b84f00; font: bold 12px "Trebuchet MS", Verdana, sans-serif; cursor: pointer; }
.hangout-status { min-height: 19px; margin: 7px 0; color: #9a321f; font-size: 12px; }
.hangout-footnote { color: #777; font-size: 11px; }
.hangout-match-state { padding: 12px; margin: 12px 0; color: #145a9c; background: #eef7fd; border: 1px solid #a9d0e8; font-weight: bold; }
.hangout-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.hangout-ai-offer > div { display: flex; gap: 8px; }
.hangout-ai-offer .game-card { flex: 1; }
.ai-badge { display: inline-block; padding: 4px 8px; color: #2e6f0e; background: #eaf7e0; border: 1px solid #b4d79c; font-size: 12px; vertical-align: middle; }
.moderation-list { display: grid; gap: 10px; }
.moderation-report { padding: 12px; background: #fff6e8; border: 1px solid #e8d3b3; }
.moderation-report h3 { margin-top: 0; color: #145a9c; }
.moderation-report blockquote { padding: 8px; background: #fff; overflow-wrap: anywhere; }
.social-page { max-width: 760px; }
.social-page h3 { margin: 20px 0 10px; color: #145a9c; }
.social-list { display: grid; gap: 8px; }
.social-card { display: flex; align-items: center; gap: 9px; min-height: 50px; padding: 8px 10px; background: #f4fafe; border: 1px solid #a9d0e8; }
.social-card > a:first-child { display: flex; flex: 1; align-items: center; gap: 9px; min-width: 0; color: #145a9c; text-decoration: none; }
.social-card > a:first-child:hover strong { text-decoration: underline; }
.social-card .pfp { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.social-card form { margin: 0; }
.social-card .primary, .social-inline-form .primary, .social-button { display: inline-block; padding: 7px 12px; color: #fff; background: #f26d00; border: 1px solid #b84f00; font: bold 12px "Trebuchet MS", Verdana, sans-serif; text-decoration: none; cursor: pointer; }
.social-card .cafe-secondary, .social-inline-form .cafe-secondary { padding: 7px 10px; }
.friend-pending { color: #777; font-size: 12px; }
.profile-social { margin: 4px 0 12px; font-size: 12px; }
.profile-social a { color: #145a9c; }
.profile-social strong { font-size: 14px; }
.social-inline-form { display: inline-block; margin: 0 8px 10px 0; }
.conversation-card { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; padding: 11px 13px; color: #145a9c; background: #f4fafe; border: 1px solid #a9d0e8; text-decoration: none; }
.conversation-card > span:last-child { grid-column: 1 / -1; color: #666; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation-card:hover { background: #eaf5fc; }
.social-empty { padding: 12px; color: #666; background: #f4fafe; border: 1px solid #d5e7f1; }
.private-chat { max-width: 720px; }
.private-transcript { display: flex; flex-direction: column; gap: 7px; height: 360px; overflow-y: auto; padding: 12px; background: #f4fafe; border: 1px solid #a9d0e8; }
.private-message { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-self: flex-start; max-width: 82%; padding: 8px 10px; background: #fff; border: 1px solid #d5e7f1; border-radius: 6px; overflow-wrap: anywhere; }
.private-message span { white-space: pre-wrap; }
.private-message time { align-self: end; color: #888; font-size: 10px; white-space: nowrap; }
.private-message.mine { align-self: flex-end; background: #eaf5fc; }
.private-compose { margin-top: 12px; }
.private-compose label { display: block; margin-bottom: 5px; color: #555; font-size: 12px; }
.private-compose > div { display: flex; gap: 8px; }
.private-compose input:not([type=hidden]) { flex: 1; min-width: 0; padding: 9px; border: 1px solid #a9d0e8; font: inherit; }
.private-compose .primary { padding: 8px 15px; color: #fff; background: #f26d00; border: 1px solid #b84f00; font: bold 12px "Trebuchet MS", Verdana, sans-serif; cursor: pointer; }
.flash-card { width: 100%; padding: 18px; color: #145a9c; background: #fff; border: 1px solid #a9d0e8; font-size: 24px; font-weight: bold; }
.game-board .primary { padding: 7px 18px; color: white; background: #f26d00; border: 1px solid #b84f00; font: inherit; cursor: pointer; }
.goal-line { padding: 8px 12px; background: #fff6e0; border: 1px solid #f0c060; }
.privacy-setting { display: block; margin: 10px 0; font-size: 12px; color: #555; }
.pagination { display: flex; justify-content: space-between; padding: 12px 0; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #f26d00; outline-offset: 2px; }
@media (max-width: 980px) {
  body { padding: 0; }
  #wrapper { width: auto; max-width: 960px; margin: 0 8px; }
  .path-map { max-width: 100%; height: auto; }
}
@media (max-width: 650px) {
  #profile { position: static; width: auto; max-width: 230px; margin: 8px 0; }
  #nav li, #nav ul.account { float: none; }
  #nav ul, #nav ul.account { display: flex; flex-wrap: wrap; }
  #nav a { padding: 8px; }
  #nav li.search { padding: 7px; }
  .home, .search-page { padding: 10px; }
  .hero { padding: 18px 12px; }
  .hero h1 { font-size: 24px; }
  .hero p, .lesson, .profile-page, .phrases { width: auto; max-width: 100%; box-sizing: border-box; }
  .features, .content-page .feature-row { display: block; }
  .feature, .content-page .feature-row .feature { float: none; width: auto; margin: 0 0 10px; }
  .phrases { margin: 0 0 20px; }
  .profile-page { margin: 20px auto; }
  .stage .card, .options, .stage .match, .stage input.answer { width: 100%; box-sizing: border-box; }
  .stage .opt { width: calc(50% - 10px); box-sizing: border-box; }
  .stage .match .col { width: 50%; }
  .stage .match .opt { width: calc(100% - 10px); }
  .game-grid { grid-template-columns: 1fr; }
  .hangout-feature { align-items: flex-start; gap: 10px; padding: 12px; }
  .hangout-art { flex-basis: 70px; height: 70px; }
  .hangout-tiles, .hangout-bots { grid-template-columns: 1fr; }
  .hangout-tile { min-height: 150px; }
  .hangout-transcript { height: 55vh; min-height: 240px; }
  .hangout-message { max-width: 96%; }
  .hangout-ai-offer > div { display: grid; }
  .hangout-actions { display: grid; }
  .quest-feature { display: block; padding: 10px; }
  .quest-art { margin-bottom: 10px; font-size: 26px; }
  .quest-page { padding: 0 8px; }
  .quest-heading { align-items: flex-start; }
  .quest-panel { padding: 12px 14px; }
  .quest-panel h3 { font-size: 19px; }
  .quest-controls-copy { font-size: 10px; }
  .quest-touch { position: absolute; right: 12px; bottom: 12px; left: 12px; display: flex; justify-content: space-between; pointer-events: none; }
  .quest-touch > div { display: flex; gap: 8px; }
  .quest-touch button { width: 54px; height: 48px; color: #fff; background: rgba(20,90,156,.8); border: 1px solid #fff; border-radius: 8px; font: bold 16px "Trebuchet MS", Verdana, sans-serif; pointer-events: auto; touch-action: none; }
  .quest-touch button[data-control="jump"] { width: 82px; background: rgba(242,109,0,.9); }
  .quest-help { display: none; }
  .restaurant-feature { display: block; padding: 10px; }
  .restaurant-art { margin-bottom: 10px; font-size: 27px; }
  .restaurant-page { padding: 0 8px; }
  .restaurant-heading { align-items: flex-start; }
  .cafe-main { grid-template-columns: 1fr; }
  .cafe-orders { border-right: 0; border-bottom: 1px solid #dfc9a9; }
  .cafe-scene { height: 160px; }
  .cafe-window { transform: scale(.75); transform-origin: top left; }
  .cafe-shelf { top: 12px; gap: 7px; font-size: 17px; }
  .cafe-sign { top: 75px; font-size: 11px; }
  .cafe-guests { height: 84px; }
  .guest-person { font-size: 39px; }
  .cafe-counter { height: 20px; font-size: 17px; }
  .cafe-hud { padding: 8px 3px; }
  .cafe-hud > div { min-width: 0; }
  .cafe-hud strong { font-size: 15px; }
  .hud-label { font-size: 8px; }
  .cafe-orders, .cafe-kitchen { padding: 10px; }
  .menu-choice, .ingredient-choice { font-size: 10px; }
  .cafe-mobile-guide { display: block; padding: 7px; color: #145a9c; background: #eef7fd; text-align: center; font-size: 10px; }
  .cafe-panel { padding: 13px 15px; }
  .cafe-panel h3 { font-size: 20px; }
  .cafe-glossary { display: grid; grid-template-columns: 1fr 1fr; }
  .content-page { margin: 12px auto; padding: 8px 10px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
