9bf4c20f11
Use dynamic viewport sizing and keyboard-aware spacing to keep new-game inputs and navigation reachable in PWA landscape mode on Android tablets. Refs #30. Made-with: Cursor
51 lines
889 B
CSS
51 lines
889 B
CSS
.layout {
|
|
height: var(--app-height);
|
|
overflow: hidden;
|
|
background-color: var(--color-background);
|
|
color: var(--color-text);
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.content {
|
|
flex: 1;
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: var(--space-md);
|
|
width: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
min-height: 0;
|
|
}
|
|
|
|
.screen {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
min-height: 0;
|
|
}
|
|
|
|
/* Tablet optimizations */
|
|
@media (min-width: 768px) and (max-width: 1024px) {
|
|
.content {
|
|
padding: var(--space-lg) var(--space-xl);
|
|
max-width: 900px;
|
|
}
|
|
}
|
|
|
|
/* Large tablet and small desktop */
|
|
@media (min-width: 1025px) {
|
|
.content {
|
|
padding: var(--space-xl);
|
|
}
|
|
}
|
|
|
|
/* Mobile adjustments */
|
|
@media (max-width: 767px) {
|
|
.content {
|
|
padding: var(--space-sm) var(--space-md);
|
|
}
|
|
} |