/* static/css/MainApp.css */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family:
    "Roboto",
    system-ui,
    -apple-system,
    sans-serif;
  margin: 0 auto;
  padding: 10px;
  background: #f5f5f5;
  color: #1a1a1a;
}
.body-main {
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
}
.header {
  text-align: center;
  margin-bottom: 20px;
  padding: 15px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.header h1 {
  font-size: clamp(1.5em, 4vw, 2.5em);
  color: #2563eb;
  margin-bottom: 10px;
  margin-top: 0px !important;
}
.header p {
  color: #4b5563;
  font-size: clamp(0.9em, 2vw, 1.1em);
}
.stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  background: aliceblue;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 10px !important;
}
.button-group,
.option-group {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  justify-content: center;
  padding: .3em;
  xxxmargin: .3em;
  background: aliceblue;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.toolbar {
  xxxmargin-top: 15px;
}
.toolbar-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.stats {
  display: flex;
  gap: .5em;
  font-size: 1.1em;
  color: #4b5563;
  align-items: center;
  max-height: 2em;
}
.timer {
  font-size: 1em;
  font-weight: bold;
  font-family: monospace;
  color: #2563eb;
  padding: 8px;
  background: #dbeafe;
  border-radius: 4px;
  margin-right: 8px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 5px;
}
.game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
  perspective: 1000px;
}
.word-tile {
  padding: 25px 15px;
  padding: 4px 15px;
  border: 2px solid #e5e7eb;
  background: white;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  transform-style: preserve-3d;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  justify-content: center;
  align-items: center;
}
.word-tile:hover:not(:selected) {
  transform: scale(1.05);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.word-tile-blur {
  transition: all 0.4s ease;
  opacity: 0.2;
}
.word-tile.selected:not(:hover) {
  background: #e0e7ff;
  border-color: #6366f1;
  transform: scale(0.95);
}
.word-tile.solved-yellow,
.solved-yellow {
  background: #fef9c3;
  border-color: #facc15;
  animation: solvePop 0.8s ease;
}
.word-tile.solved-green,
.solved-green {
  background: #dcfce7;
  border-color: #22c55e;
  animation: solvePop 0.8s ease;
}
.word-tile.solved-blue,
.solved-blue {
  background: #dbeafe;
  border-color: #3b82f6;
  animation: solvePop 0.8s ease;
}
.word-tile.solved-purple,
.solved-purple {
  background: #f3e8ff;
  border-color: #a855f7;
  animation: solvePop 0.8s ease;
}
.word-tile.solved-red,
.solved-red {
  background: #fee2e2;
  border-color: #ef4444;
  animation: solvePop 0.8s ease;
}
.word-tile.solved-orange,
.solved-orange {
  background: #ffedd5;
  border-color: #f97316;
  animation: solvePop 0.8s ease;
}
.word-tile.solved-teal,
.solved-teal {
  background: #ccfbf1;
  border-color: #14b8a6;
  animation: solvePop 0.8s ease;
}
.word-tile.solved-indigo,
.solved-indigo {
  background: #e0e7ff;
  border-color: #6366f1;
  animation: solvePop 0.8s ease;
}
.device-card {
  background: white;
  border-radius: 8px;
  padding: 16px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  height: 100%;
  text-transform: uppercase;
}
.device-card.clickable {
  cursor: pointer;
}
.device-card:hover:not(.word-tile-solved-focus) {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.35);
  transform: scale(1.0);
  background-color: #d3eff6;
}
@keyframes solvePop {
  0% {
    transform: scale(1) rotateY(0deg);
  }
  50% {
    transform: scale(1.05) rotateY(180deg);
  }
  100% {
    transform: scale(1) rotateY(360deg);
  }
}
@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px) rotate(-1deg);
  }
  75% {
    transform: translateX(5px) rotate(1deg);
  }
}
@keyframes slideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.fade-out {
  animation: fadeOut 500ms forwards;
}
@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
.button,
.option-item {
  padding: 1em 1em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.button,
.uiverse-button {
  padding-left: 2rem;
  padding-right: 2rem;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  text-align: center;
  align-items: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .2rem;
}
.hint-btn {
  background: #2563eb;
  color: white;
}
.hint-btn:hover:not(:disabled) {
  background: #1d4ed8;
  transform: scale(1.05);
}
.hint-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}
.library-btn {
  background: #8b5cf6;
  color: white;
  transform: scale(1);
  transition: transform 0.2s ease, background 0.2s ease;
}
.library-btn:hover:not(:disabled),
.library-btn:focus:not(:disabled) {
  background: #7c3aed;
  transform: scale(1.05);
}
.library-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}
.resources-btn {
  background: #2563eb;
  color: white;
  transform: scale(1);
  transition: transform 0.2s ease, background 0.2s ease;
}
.resources-btn:hover:not(:disabled),
.resources-btn:focus:not(:disabled) {
  background: #1d4ed8;
  transform: scale(1.05);
}
.resources-btn:hover {
  background: #1d4ed8;
  transform: scale(1.05);
}
.resources-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}
.solve-btn {
  background: #4CAF50;
  color: white;
}
.solve-btn:hover:not(:disabled) {
  background: #1dd81d;
  transform: scale(1.05);
}
.solve-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}
.submit-btn {
  background: #10b981;
  color: white;
}
.submit-btn:hover:not(:disabled) {
  background: #059669;
  transform: scale(1.05);
}
.retry-btn {
  background: #10b981;
  color: white;
}
.retry-btn:hover:not(:disabled) {
  background: #059669;
  transform: scale(1.05);
}
.duplicate-btn {
  background: #007bff;
  color: white;
}
.duplicate-btn:hover:not(:disabled) {
  background: #1072da;
  transform: scale(1.05);
}
.duplicate-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}
.delete-btn {
  background: #f25c21;
  color: white;
}
.delete-btn:hover:not(:disabled) {
  background: #ffc107;
  transform: scale(1.05);
}
.delete-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}
.cancel-btn {
  background: #f25c21;
  color: white;
}
.cancel-btn:hover:not(:disabled) {
  background: #ffc107;
  transform: scale(1.05);
}
.cancel-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}
.save-btn {
  background: #10b981;
  color: white;
}
.save-btn:hover:not(:disabled) {
  background: #059669;
  transform: scale(1.05);
}
.save-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}
.edit-btn {
  background: #10b981;
  color: white;
}
.edit-btn:hover:not(:disabled) {
  background: #059669;
  transform: scale(1.05);
}
.edit-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}
.help-btn {
  background: #2ab7a9;
  color: white;
  transform: scale(1);
  transition: transform 0.2s ease, background 0.2s ease;
}
.help-btn:hover:not(:disabled) {
  transform: scale(1.05);
  background: #0a7168;
}
.help-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}
.reset-btn {
  background: #2ab7a9;
  color: white;
  transform: scale(1);
  transition: transform 0.2s ease, background 0.2s ease;
}
.reset-btn:hover:not(:disabled) {
  transform: scale(1.05);
  background: #0a7168;
}
.create-btn {
  background: #4CAF50;
  color: white;
  transform: scale(1);
  transition: transform 0.2s ease, background 0.2s ease;
}
.create-btn:hover:not(:disabled) {
  background: #1dd81d;
  transform: scale(1.05);
}
.shift-btn {
  background: #4CAF50;
  color: white;
}
.shift-btn::after {
  content: "Shift";
}
.shift-btn:hover:not(:disabled) {
  background: #1dd81d;
  transform: scale(1.05);
}
.shift-btn:disabled {
  background: #ccc;
}
.export-btn {
  background: #5081bd;
  color: white;
}
.export-btn:hover:not(:disabled) {
  background: #5081bd;
  transform: scale(1.05);
}
.shuffle-btn {
  background: #8b5cf6;
  color: white;
}
.shuffle-btn:hover:not(:disabled) {
  background: #7c3aed;
  transform: scale(1.05);
}
.howto-btn {
  background: #8b5cf6;
  color: white;
}
.howto-btn:hover:not(:disabled) {
  background: #8b5cf6;
  transform: scale(1.05);
}
.messagesss {
  text-align: center;
  margin: 15px 0;
  padding: 15px;
  border-radius: 8px;
  animation: slideIn 0.3s ease;
  font-weight: 500;
  position: absolute;
  float: left;
  left: 27%;
  width: 28%;
  font-size: 14px;
  border: 1px solid transparent;
}
.message {
  text-align: center;
  margin: 15px auto;
  padding: 15px;
  border-radius: 8px;
  animation: slideIn 0.3s ease;
  font-weight: 500;
  position: relative;
  width: 90%;
  max-width: 400px;
  font-size: clamp(0.8em, 2vw, 0.9em);
  left: auto;
  border: 1px solid transparent;
}
.message.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #f87171;
}
.message.success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #4ade80;
}
.message.hint {
  background: #e0f2fe;
  color: #075985;
  border: 1px solid #38bdf8;
}
.message.off {
  opacity: 0;
}
.game-management {
  margin: 20px 0;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.controls-button-group {
  margin: 20px 0;
  padding: 0px;
  border-radius: 8px;
  justify-content: center;
}
.solved-categories-group {
  margin: 20px 0;
  padding: 0px;
  border-radius: 8px;
  justify-content: center;
}
.editor-button-group {
  margin: 20px 0;
  padding: 0px;
  border-radius: 8px;
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.drop-zone {
  border: 2px dashed #3b82f6;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  margin: 20px 0;
  transition: all 0.3s ease;
  background: #f8fafc;
  color: #4b5563;
  cursor: pointer;
}
.drop-zone.drag-over {
  background: #dbeafe;
  border-color: #2563eb;
  transform: scale(1.02);
}
.dragdrop-image {
  margin: 0;
  padding: 0;
  height: 100%;
  display: flex;
  top: 5vh;
  position: relative;
  justify-content: center;
  align-items: center;
}
.dragdrop-image img {
  max-width: 100%;
  max-height: 100%;
  opacity: 0.3;
}
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.modal-overlay.visible {
  display: flex;
  opacity: 1;
}
.modal {
  background: white;
  padding: 30px;
  border-radius: 12px;
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
  top: 15%;
}
.editor-modal.visible {
  transform: translateY(0);
  opacity: 1;
  display: block;
}
.editor-modal.visible {
  top: 5% !important;
}
.resources-modal.visible {
  transform: translateY(0);
  opacity: 1;
  display: block;
}
.resources-modal.visible {
  top: 5% !important;
}
.tutorial-modal.visible {
  transform: translateY(0);
  opacity: 1;
  display: block;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.modal-close {
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  padding: 5px;
  color: #6b7280;
  transition: color 0.2s ease;
}
.modal-close:hover {
  color: #1f2937;
}
.game-editor {
  display: grid;
  gap: 20px;
}
.group-editor {
  background: #f8fafc;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}
.group-theme-editor {
  background: #f8fafc;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}
.editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.editor-group-theme-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.word-input-group {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 10px 0;
}
.group-theme {
  xxxdisplay: flex;
  flex-direction: column;
  gap: 5px;
}
.group-theme label {
  font-size: 0.875rem;
  color: #4b5563;
  font-weight: 500;
}
.input-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.input-group label {
  font-size: 0.875rem;
  color: #4b5563;
  font-weight: 500;
}
input[type=text] {
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}
input[type=text]:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
input[type=text].error {
  border-color: #dc2626;
}
.color-select {
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.875rem;
  background: white;
  min-width: 20%;
  max-width: 30%;
  display: flex;
}
.game-sets {
  margin-top: 20px;
  display: grid;
  gap: 10px;
}
.game-set {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}
.game-set:hover {
  background: #f1f5f9;
}
.game-set-controls {
  display: flex;
  gap: 10px;
  margin-left: auto;
}
.drag-handle {
  cursor: move;
  padding: 5px;
  color: #64748b;
  font-size: 1.25em;
}
.drag-handle:hover {
  color: #0f172a;
}
.dragging {
  opacity: 0.5;
  background: #e2e8f0;
}
.level-select {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 5px 3px 5px;
  margin-left: 6px;
  xxxmargin-bottom: 5px;
}
.level-select-wrapper select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 1em;
  padding-right: 40px;
  display: block;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0;
  background: white;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  gap: .5em;
}
.hidden {
  display: none !important;
}
.confetti {
  position: fixed;
  width: 10px;
  height: 10px;
  background-color: #f00;
  animation: confetti 3s ease-out forwards;
  pointer-events: none;
}
@keyframes confetti {
  0% {
    transform: translateY(0) rotateZ(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotateZ(720deg);
    opacity: 0;
  }
}
.tutorial-modal {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}
.tutorial-header {
  text-align: center;
  margin-bottom: 2rem;
}
.tutorial-header h2 {
  color: #333;
  font-size: 2rem;
  margin: 0;
}
#toolbar-section {
  margin-top: 15px;
}
.tutorial-section {
  margin-bottom: 2rem;
}
.tutorial-section h3 {
  color: #5081bd;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 1rem 0;
}
.tutorial-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: #f7fafc;
  border-radius: 8px;
}
.step-number {
  background: #5081bd;
  color: white;
  xxwidth: 30px;
  xxheight: 30px;
  min-width: 24px;
  min-height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}
.step-content h4 {
  margin: 0;
  color: #2d3748;
}
.difficulty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.difficulty-item {
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
}
.difficulty-item h4 {
  margin: 0 0 0.5rem 0;
  color: #2d3748;
}
.difficulty-item p {
  margin: 0;
  font-size: 0.9rem;
}
.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.feature-item {
  text-align: center;
  padding: 1rem;
  background: #f7fafc;
  border-radius: 8px;
}
.feature-highlight {
  font-weight: bold;
  color: #2c5282;
  font-size: 1.1rem;
}
.feature-item p {
  margin: 0.5rem 0 0 0;
}
.modal-buttons {
  text-align: center;
  margin-top: 2rem;
}
.close-btn {
  background: #4CAF50;
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
}
.close-btn:hover {
  background: #1a365d;
}
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
  perspective: 1000px;
}
.word-tile {
  padding: 20px 15px;
  border: 2px solid #e5e7eb;
  background: white;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  transform-style: preserve-3d;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  font-size: clamp(0.8em, 2vw, 1em);
}
.controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}
.controls-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  xxxmargin: 20px 0;
}
.button,
.option-item {
  padding: 0.8em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: clamp(0.7em, 1.5vw, 0.9em);
  width: auto;
  min-width: 120px;
}
.solved-categories {
  margin-top: 20px;
  display: grid;
  gap: 10px;
}
.category {
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  max-width: 200px;
  align-items: center;
  display: flex;
}
.category:hover:not(.category-solved-focus) {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.35);
  transform: scale(1.0);
  background-color: #d3eff6;
}
.modal {
  width: 95%;
  max-width: 800px;
  max-height: 90vh;
  padding: 20px;
  margin: 20px auto;
}
.word-input-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
@media (max-width: 768px) {
  .body-main {
    padding: 0 10px;
  }
  .stats-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .button-group,
  .option-group,
  .solved-categories-group,
  .controls-button-group {
    justify-content: center;
  }
  .toolbar-options {
    position: static;
    float: none;
    margin: 8px 4px;
  }
  .game-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  .controls {
    flex-direction: column;
    align-items: stretch;
  }
  .button,
  .option-item {
    width: 100%;
    min-width: auto;
  }
}
@media (max-width: 480px) {
  .header {
    padding: 10px;
  }
  .word-tile {
    padding: 15px 10px;
  }
  .modal {
    padding: 15px;
    width: 98%;
  }
  .word-input-group {
    grid-template-columns: 1fr;
  }
}
.game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
  perspective: 1000px;
  width: 100%;
}
.word-tiles {
  aspect-ratio: 1.2;
  padding: 10px;
  border: 2px solid #e5e7eb;
  background: white;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  transform-style: preserve-3d;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(0.7em, 2vw, 1em);
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}
.tooltip {
  position: relative;
}
.tooltip:hover::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5em;
  background-color: rgba(149, 147, 147, 0.9);
  color: white;
  border-radius: 4px;
  font-size: 0.6em;
  white-space: nowrap;
  z-index: 1;
}
.uiverse-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.uiverse-button span {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.clickable svg {
  position: absolute;
  right: 0.3rem;
  width: 1.3rem;
  height: 1.3rem;
  padding-left: .3em;
  top: .5em;
}
.url-icon::after {
  position: absolute;
  right: 0.3rem;
  xxxwidth: 1.3rem;
  xxxheight: 1.3rem;
  padding-left: .3em;
  xxxurl-icontop: .5em;
}
.uiverse-button svg {
  position: absolute;
  right: 0.8rem;
  width: 1.3rem;
  height: 1.3rem;
  color: white;
  padding-left: .3em;
}
.uiverse-button:focus svg {
  animation: spin_357 0.5s linear;
}
.uiverse-button:hover svg {
  animation: spin_357 0.5s linear;
}
@keyframes spin_357 {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.url-icon::after {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 0-1z'/%3E%3Cpath fill-rule='evenodd' d='M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0v-5z'/%3E%3C/svg%3E");
  display: inline-block;
  margin-left: 4px;
  text-align: center;
}
@media (max-width: 768px) {
  .body-main {
    padding: 0 10px;
  }
  .word-tile {
    padding: 8px;
    padding: 4px 15px;
    font-size: clamp(0.6em, 1.8vw, 0.9em);
  }
  .game-grid {
    gap: 8px;
  }
  .url-icon::after {
    transform: scale(0.9);
    top: .2em;
    right: .1em;
  }
}
@media (max-width: 480px) {
  .word-tile {
    padding: 5px;
    padding-right: 1.5em;
    font-size: clamp(0.5em, 1.5vw, 0.8em);
  }
  .game-grid {
    xxxgap: 5px;
  }
  .url-icon::after {
    transform: scale(0.7);
    top: .2em;
    right: .05em;
  }
}
@media (max-width: 600px) {
  .tutorial-modal {
    padding: 1rem;
    width: 95%;
  }
  .step-grid,
  .difficulty-grid,
  .features-list {
    grid-template-columns: 1fr;
  }
  .uiverse-button {
    min-width: 8rem !important;
  }
}
.url-table {
  width: 100%;
}
.resources-modal-header {
  padding: 15px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.home-btn {
  background: #4CAF50;
  color: white;
  transform: scale(1);
  max-height: 2em !important;
  max-width: 2em !important;
  min-width: 2em !important;
  padding: 0px 2px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.home-btn svg {
  top: -6px;
}
.home-btn:hover {
  background: #1dd81d;
  transform: scale(1.05);
}
